Skip to content

Commit

Permalink
Generated from 1531f0e6d9a37ddcb42515435db7ae115dae6d02
Browse files Browse the repository at this point in the history
Merge pull request #3 from ninghu/ninhu/azureml-api-2020-08-01

Add missing definition of last operaton for compute instance
  • Loading branch information
SDK Automation committed Aug 20, 2020
1 parent 8802858 commit b9893aa
Show file tree
Hide file tree
Showing 11 changed files with 303 additions and 33 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ export class AzureMachineLearningWorkspacesContext extends msRestAzure.AzureServ
credentials: msRest.ServiceClientCredentials;
subscriptionId: string;
apiVersion?: string;
recommended?: boolean;

/**
* Initializes a new instance of the AzureMachineLearningWorkspaces class.
Expand Down Expand Up @@ -52,6 +53,9 @@ export class AzureMachineLearningWorkspacesContext extends msRestAzure.AzureServ
this.credentials = credentials;
this.subscriptionId = subscriptionId;

if(options.recommended !== null && options.recommended !== undefined) {
this.recommended = options.recommended;
}
if(options.acceptLanguage !== null && options.acceptLanguage !== undefined) {
this.acceptLanguage = options.acceptLanguage;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -430,6 +430,35 @@ export interface Usage {
readonly name?: UsageName;
}

/**
* The estimated price info for using a VM of a particular OS type, tier, etc.
*/
export interface EstimatedVMPrice {
/**
* Retail price. The price charged for using the VM.
*/
retailPrice: number;
/**
* OS type. Operating system type used by the VM. Possible values include: 'Linux', 'Windows'
*/
osType: VMPriceOSType;
/**
* VM tier. The type of the VM. Possible values include: 'Standard', 'LowPriority', 'Spot'
*/
vmTier: VMTier;
}

/**
* The estimated price info for using a VM.
*/
export interface EstimatedVMPrices {
/**
* List of estimated VM prices. The list of estimated prices for using a VM of a particular OS
* type, tier, etc.
*/
values: EstimatedVMPrice[];
}

/**
* Describes the properties of a VM size.
*/
Expand Down Expand Up @@ -479,16 +508,14 @@ export interface VirtualMachineSize {
* **NOTE: This property will not be serialized. It can only be populated by the server.**
*/
readonly premiumIO?: boolean;
}

/**
* The List Virtual Machine size operation response.
*/
export interface VirtualMachineSizeListResult {
/**
* The list of virtual machine sizes supported by AmlCompute.
* Estimated VM prices. The estimated price information for using a VM.
*/
amlCompute?: VirtualMachineSize[];
estimatedVMPrices?: EstimatedVMPrices;
/**
* Supported Compute Types. Specifies the compute types supported by the virtual machine size.
*/
supportedComputeTypes?: string[];
}

/**
Expand Down Expand Up @@ -1270,6 +1297,26 @@ export interface ComputeInstanceCreatedBy {
readonly userId?: string;
}

/**
* The last operation on ComputeInstance.
*/
export interface ComputeInstanceLastOperation {
/**
* Name of the last operation. Possible values include: 'Create', 'Start', 'Stop', 'Restart',
* 'Reimage', 'Delete'
*/
operationName?: OperationName;
/**
* Time of the last operation.
*/
operationTime?: Date;
/**
* Operation status. Possible values include: 'InProgress', 'Succeeded', 'CreateFailed',
* 'StartFailed', 'StopFailed', 'RestartFailed', 'ReimageFailed', 'DeleteFailed'
*/
operationStatus?: OperationStatus;
}

/**
* Compute Instance properties
*/
Expand Down Expand Up @@ -1316,12 +1363,16 @@ export interface ComputeInstanceProperties {
readonly errors?: MachineLearningServiceError[];
/**
* The current state of this ComputeInstance. Possible values include: 'Creating',
* 'CreateFailed', 'Deleting', 'Running', 'Restarting', 'RestartFailed', 'JobRunning',
* 'SettingUp', 'Starting', 'StartFailed', 'StopFailed', 'Stopped', 'Stopping', 'UserSettingUp',
* 'Unknown', 'Unusable'
* 'CreateFailed', 'Deleting', 'Running', 'Restarting', 'JobRunning', 'SettingUp', 'SetupFailed',
* 'Starting', 'Stopped', 'Stopping', 'UserSettingUp', 'UserSetupFailed', 'Unknown', 'Unusable'
* **NOTE: This property will not be serialized. It can only be populated by the server.**
*/
readonly state?: ComputeInstanceState;
/**
* The last operation on ComputeInstance.
* **NOTE: This property will not be serialized. It can only be populated by the server.**
*/
readonly lastOperation?: ComputeInstanceLastOperation;
}

/**
Expand Down Expand Up @@ -2108,6 +2159,16 @@ export interface WorkspacesListBySubscriptionOptionalParams extends msRest.Reque
skiptoken?: string;
}

/**
* Optional Parameters.
*/
export interface VirtualMachineSizesListOptionalParams extends msRest.RequestOptionsBase {
/**
* Type of compute to filter by.
*/
computeType?: string;
}

/**
* Optional Parameters.
*/
Expand Down Expand Up @@ -2136,6 +2197,10 @@ export interface MachineLearningComputeListByWorkspaceOptionalParams extends msR
* An interface representing AzureMachineLearningWorkspacesOptions.
*/
export interface AzureMachineLearningWorkspacesOptions extends AzureServiceClientOptions {
/**
* Specifies whether to return recommended vm sizes or all vm sizes
*/
recommended?: boolean;
baseUri?: string;
}

Expand Down Expand Up @@ -2211,6 +2276,18 @@ export interface ListUsagesResult extends Array<Usage> {
readonly nextLink?: string;
}

/**
* @interface
* The List Virtual Machine size operation response.
* @extends Array<VirtualMachineSize>
*/
export interface VirtualMachineSizeListResult extends Array<VirtualMachineSize> {
/**
* The list of virtual machine sizes supported by AmlCompute.
*/
amlCompute?: VirtualMachineSize[];
}

/**
* @interface
* The List WorkspaceQuotasByVMFamily operation response.
Expand Down Expand Up @@ -2303,6 +2380,22 @@ export type PrivateEndpointConnectionProvisioningState = 'Succeeded' | 'Creating
*/
export type UsageUnit = 'Count';

/**
* Defines values for VMPriceOSType.
* Possible values include: 'Linux', 'Windows'
* @readonly
* @enum {string}
*/
export type VMPriceOSType = 'Linux' | 'Windows';

/**
* Defines values for VMTier.
* Possible values include: 'Standard', 'LowPriority', 'Spot'
* @readonly
* @enum {string}
*/
export type VMTier = 'Standard' | 'LowPriority' | 'Spot';

/**
* Defines values for QuotaUnit.
* Possible values include: 'Count'
Expand Down Expand Up @@ -2373,12 +2466,29 @@ export type SshPublicAccess = 'Enabled' | 'Disabled';
/**
* Defines values for ComputeInstanceState.
* Possible values include: 'Creating', 'CreateFailed', 'Deleting', 'Running', 'Restarting',
* 'RestartFailed', 'JobRunning', 'SettingUp', 'Starting', 'StartFailed', 'StopFailed', 'Stopped',
* 'Stopping', 'UserSettingUp', 'Unknown', 'Unusable'
* 'JobRunning', 'SettingUp', 'SetupFailed', 'Starting', 'Stopped', 'Stopping', 'UserSettingUp',
* 'UserSetupFailed', 'Unknown', 'Unusable'
* @readonly
* @enum {string}
*/
export type ComputeInstanceState = 'Creating' | 'CreateFailed' | 'Deleting' | 'Running' | 'Restarting' | 'JobRunning' | 'SettingUp' | 'SetupFailed' | 'Starting' | 'Stopped' | 'Stopping' | 'UserSettingUp' | 'UserSetupFailed' | 'Unknown' | 'Unusable';

/**
* Defines values for OperationName.
* Possible values include: 'Create', 'Start', 'Stop', 'Restart', 'Reimage', 'Delete'
* @readonly
* @enum {string}
*/
export type OperationName = 'Create' | 'Start' | 'Stop' | 'Restart' | 'Reimage' | 'Delete';

/**
* Defines values for OperationStatus.
* Possible values include: 'InProgress', 'Succeeded', 'CreateFailed', 'StartFailed', 'StopFailed',
* 'RestartFailed', 'ReimageFailed', 'DeleteFailed'
* @readonly
* @enum {string}
*/
export type ComputeInstanceState = 'Creating' | 'CreateFailed' | 'Deleting' | 'Running' | 'Restarting' | 'RestartFailed' | 'JobRunning' | 'SettingUp' | 'Starting' | 'StartFailed' | 'StopFailed' | 'Stopped' | 'Stopping' | 'UserSettingUp' | 'Unknown' | 'Unusable';
export type OperationStatus = 'InProgress' | 'Succeeded' | 'CreateFailed' | 'StartFailed' | 'StopFailed' | 'RestartFailed' | 'ReimageFailed' | 'DeleteFailed';

/**
* Defines values for NodeState.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ export {
ComputeInstanceApplication,
ComputeInstanceConnectivityEndpoints,
ComputeInstanceCreatedBy,
ComputeInstanceLastOperation,
ComputeInstanceProperties,
ComputeInstanceSshSettings,
ComputeNodesInformation,
Expand Down
Loading

0 comments on commit b9893aa

Please sign in to comment.