/// <summary> /// Get all Experiments in a specific workspace. /// </summary> /// <remarks> /// Get all experiments in a specific workspace with the specified query /// filters. /// </remarks> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='nextPageLink'> /// The NextLink from the previous successful call to List operation. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task <IPage <Experiment> > GetByQueryNextAsync(this IExperimentsOperations operations, string nextPageLink, CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.GetByQueryNextWithHttpMessagesAsync(nextPageLink, null, cancellationToken).ConfigureAwait(false)) { return(_result.Body); } }
/// <summary> /// Get details of an Experiment. /// </summary> /// <remarks> /// Get details of an Experiment with specific Experiment name. /// </remarks> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='subscriptionId'> /// The Azure Subscription ID. /// </param> /// <param name='resourceGroupName'> /// The Name of the resource group in which the workspace is located. /// </param> /// <param name='workspaceName'> /// The name of the workspace. /// </param> /// <param name='experimentName'> /// The experiment name. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task <Experiment> GetAsync(this IExperimentsOperations operations, System.Guid subscriptionId, string resourceGroupName, string workspaceName, string experimentName, CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.GetWithHttpMessagesAsync(subscriptionId, resourceGroupName, workspaceName, experimentName, null, cancellationToken).ConfigureAwait(false)) { return(_result.Body); } }
/// <summary> /// Gets a list of Experiments /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='resourceGroupName'> /// Name of the Resource group within the Azure subscription. /// </param> /// <param name='profileName'> /// The Profile identifier associated with the Tenant and Partner /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task <IPage <Experiment> > ListByProfileAsync(this IExperimentsOperations operations, string resourceGroupName, string profileName, CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.ListByProfileWithHttpMessagesAsync(resourceGroupName, profileName, null, cancellationToken).ConfigureAwait(false)) { return(_result.Body); } }
/// <summary> /// Get a list of Experiment resources in a subscription. /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='running'> /// Optional value that indicates whether to filter results based on if the /// Experiment is currently running. If null, then the results will not be /// filtered. /// </param> /// <param name='continuationToken'> /// String that sets the continuation token. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task <IPage <Experiment> > ListAllAsync(this IExperimentsOperations operations, bool?running = default(bool?), string continuationToken = default(string), CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.ListAllWithHttpMessagesAsync(running, continuationToken, null, cancellationToken).ConfigureAwait(false)) { return(_result.Body); } }
/// <summary> /// Gets a list of Experiments within the specified Workspace. /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='resourceGroupName'> /// Name of the resource group to which the resource belongs. /// </param> /// <param name='workspaceName'> /// The name of the workspace. Workspace names can only contain a combination /// of alphanumeric characters along with dash (-) and underscore (_). The name /// must be from 1 through 64 characters long. /// </param> /// <param name='experimentsListByWorkspaceOptions'> /// Additional parameters for the operation /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task <IPage <Experiment> > ListByWorkspaceAsync(this IExperimentsOperations operations, string resourceGroupName, string workspaceName, ExperimentsListByWorkspaceOptions experimentsListByWorkspaceOptions = default(ExperimentsListByWorkspaceOptions), CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.ListByWorkspaceWithHttpMessagesAsync(resourceGroupName, workspaceName, experimentsListByWorkspaceOptions, null, cancellationToken).ConfigureAwait(false)) { return(_result.Body); } }
/// <summary> /// Creates an Experiment. /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='resourceGroupName'> /// Name of the resource group to which the resource belongs. /// </param> /// <param name='workspaceName'> /// The name of the workspace. Workspace names can only contain a combination /// of alphanumeric characters along with dash (-) and underscore (_). The name /// must be from 1 through 64 characters long. /// </param> /// <param name='experimentName'> /// The name of the experiment. Experiment names can only contain a combination /// of alphanumeric characters along with dash (-) and underscore (_). The name /// must be from 1 through 64 characters long. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task <Experiment> BeginCreateAsync(this IExperimentsOperations operations, string resourceGroupName, string workspaceName, string experimentName, CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.BeginCreateWithHttpMessagesAsync(resourceGroupName, workspaceName, experimentName, null, cancellationToken).ConfigureAwait(false)) { return(_result.Body); } }
/// <summary> /// Get a status of a Experiment resource. /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='resourceGroupName'> /// String that represents an Azure resource group. /// </param> /// <param name='experimentName'> /// String that represents a Experiment resource name. /// </param> /// <param name='statusId'> /// GUID that represents a Experiment status. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task <ExperimentStatus> GetStatusAsync(this IExperimentsOperations operations, string resourceGroupName, string experimentName, string statusId, CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.GetStatusWithHttpMessagesAsync(resourceGroupName, experimentName, statusId, null, cancellationToken).ConfigureAwait(false)) { return(_result.Body); } }
/// <summary> /// Updates an Experiment by Experiment id /// </summary> /// <remarks> /// Updates an Experiment /// </remarks> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='resourceGroupName'> /// Name of the Resource group within the Azure subscription. /// </param> /// <param name='profileName'> /// The Profile identifier associated with the Tenant and Partner /// </param> /// <param name='experimentName'> /// The Experiment identifier associated with the Experiment /// </param> /// <param name='parameters'> /// The Experiment Update Model /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task <Experiment> BeginUpdateAsync(this IExperimentsOperations operations, string resourceGroupName, string profileName, string experimentName, ExperimentUpdateModel parameters, CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.BeginUpdateWithHttpMessagesAsync(resourceGroupName, profileName, experimentName, parameters, null, cancellationToken).ConfigureAwait(false)) { return(_result.Body); } }
/// <summary> /// Gets a list of Experiments within the specified Workspace. /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='nextPageLink'> /// The NextLink from the previous successful call to List operation. /// </param> public static IPage <Experiment> ListByWorkspaceNext(this IExperimentsOperations operations, string nextPageLink) { return(operations.ListByWorkspaceNextAsync(nextPageLink).GetAwaiter().GetResult()); }
/// <summary> /// Deletes an Experiment. /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='resourceGroupName'> /// Name of the resource group to which the resource belongs. /// </param> /// <param name='workspaceName'> /// The name of the workspace. Workspace names can only contain a combination /// of alphanumeric characters along with dash (-) and underscore (_). The name /// must be from 1 through 64 characters long. /// </param> /// <param name='experimentName'> /// The name of the experiment. Experiment names can only contain a combination /// of alphanumeric characters along with dash (-) and underscore (_). The name /// must be from 1 through 64 characters long. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task BeginDeleteAsync(this IExperimentsOperations operations, string resourceGroupName, string workspaceName, string experimentName, CancellationToken cancellationToken = default(CancellationToken)) { (await operations.BeginDeleteWithHttpMessagesAsync(resourceGroupName, workspaceName, experimentName, null, cancellationToken).ConfigureAwait(false)).Dispose(); }
/// <summary> /// Deletes an Experiment. /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='resourceGroupName'> /// Name of the resource group to which the resource belongs. /// </param> /// <param name='workspaceName'> /// The name of the workspace. Workspace names can only contain a combination /// of alphanumeric characters along with dash (-) and underscore (_). The name /// must be from 1 through 64 characters long. /// </param> /// <param name='experimentName'> /// The name of the experiment. Experiment names can only contain a combination /// of alphanumeric characters along with dash (-) and underscore (_). The name /// must be from 1 through 64 characters long. /// </param> public static void BeginDelete(this IExperimentsOperations operations, string resourceGroupName, string workspaceName, string experimentName) { operations.BeginDeleteAsync(resourceGroupName, workspaceName, experimentName).GetAwaiter().GetResult(); }
/// <summary> /// Get all Experiments in a specific workspace. /// </summary> /// <remarks> /// Get all experiments in a specific workspace with the specified query /// filters. /// </remarks> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='nextPageLink'> /// The NextLink from the previous successful call to List operation. /// </param> public static IPage <Experiment> GetByQueryNext(this IExperimentsOperations operations, string nextPageLink) { return(operations.GetByQueryNextAsync(nextPageLink).GetAwaiter().GetResult()); }
/// <summary> /// Get a list of statuses of a Experiment resource. /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='resourceGroupName'> /// String that represents an Azure resource group. /// </param> /// <param name='experimentName'> /// String that represents a Experiment resource name. /// </param> public static IPage <ExperimentStatus> ListAllStatuses(this IExperimentsOperations operations, string resourceGroupName, string experimentName) { return(operations.ListAllStatusesAsync(resourceGroupName, experimentName).GetAwaiter().GetResult()); }
/// <summary> /// Creates an Experiment. /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='resourceGroupName'> /// Name of the resource group to which the resource belongs. /// </param> /// <param name='workspaceName'> /// The name of the workspace. Workspace names can only contain a combination /// of alphanumeric characters along with dash (-) and underscore (_). The name /// must be from 1 through 64 characters long. /// </param> /// <param name='experimentName'> /// The name of the experiment. Experiment names can only contain a combination /// of alphanumeric characters along with dash (-) and underscore (_). The name /// must be from 1 through 64 characters long. /// </param> public static Experiment Create(this IExperimentsOperations operations, string resourceGroupName, string workspaceName, string experimentName) { return(operations.CreateAsync(resourceGroupName, workspaceName, experimentName).GetAwaiter().GetResult()); }
/// <summary> /// Cancel a running Experiment resource. /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='resourceGroupName'> /// String that represents an Azure resource group. /// </param> /// <param name='experimentName'> /// String that represents a Experiment resource name. /// </param> public static ExperimentCancelOperationResult BeginCancel(this IExperimentsOperations operations, string resourceGroupName, string experimentName) { return(operations.BeginCancelAsync(resourceGroupName, experimentName).GetAwaiter().GetResult()); }
/// <summary> /// Create or update a Experiment resource. /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='resourceGroupName'> /// String that represents an Azure resource group. /// </param> /// <param name='experimentName'> /// String that represents a Experiment resource name. /// </param> /// <param name='experiment'> /// Experiment resource to be created or updated. /// </param> public static Experiment BeginCreateOrUpdate(this IExperimentsOperations operations, string resourceGroupName, string experimentName, Experiment experiment) { return(operations.BeginCreateOrUpdateAsync(resourceGroupName, experimentName, experiment).GetAwaiter().GetResult()); }
/// <summary> /// Get an execution detail of a Experiment resource. /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='resourceGroupName'> /// String that represents an Azure resource group. /// </param> /// <param name='experimentName'> /// String that represents a Experiment resource name. /// </param> /// <param name='executionDetailsId'> /// GUID that represents a Experiment execution detail. /// </param> public static ExperimentExecutionDetails GetExecutionDetails(this IExperimentsOperations operations, string resourceGroupName, string experimentName, string executionDetailsId) { return(operations.GetExecutionDetailsAsync(resourceGroupName, experimentName, executionDetailsId).GetAwaiter().GetResult()); }
/// <summary> /// Get a status of a Experiment resource. /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='resourceGroupName'> /// String that represents an Azure resource group. /// </param> /// <param name='experimentName'> /// String that represents a Experiment resource name. /// </param> /// <param name='statusId'> /// GUID that represents a Experiment status. /// </param> public static ExperimentStatus GetStatus(this IExperimentsOperations operations, string resourceGroupName, string experimentName, string statusId) { return(operations.GetStatusAsync(resourceGroupName, experimentName, statusId).GetAwaiter().GetResult()); }
/// <summary> /// Gets a list of Experiments within the specified Workspace. /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='resourceGroupName'> /// Name of the resource group to which the resource belongs. /// </param> /// <param name='workspaceName'> /// The name of the workspace. Workspace names can only contain a combination /// of alphanumeric characters along with dash (-) and underscore (_). The name /// must be from 1 through 64 characters long. /// </param> /// <param name='experimentsListByWorkspaceOptions'> /// Additional parameters for the operation /// </param> public static IPage <Experiment> ListByWorkspace(this IExperimentsOperations operations, string resourceGroupName, string workspaceName, ExperimentsListByWorkspaceOptions experimentsListByWorkspaceOptions = default(ExperimentsListByWorkspaceOptions)) { return(operations.ListByWorkspaceAsync(resourceGroupName, workspaceName, experimentsListByWorkspaceOptions).GetAwaiter().GetResult()); }
/// <summary> /// Get all Experiments in a specific workspace. /// </summary> /// <remarks> /// Get all experiments in a specific workspace with the specified query /// filters. /// </remarks> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='subscriptionId'> /// The Azure Subscription ID. /// </param> /// <param name='resourceGroupName'> /// The Name of the resource group in which the workspace is located. /// </param> /// <param name='workspaceName'> /// The name of the workspace. /// </param> /// <param name='queryParams'> /// Query parameters for data sorting and filtering. /// </param> public static IPage <Experiment> GetByQuery(this IExperimentsOperations operations, System.Guid subscriptionId, string resourceGroupName, string workspaceName, QueryParams queryParams = default(QueryParams)) { return(operations.GetByQueryAsync(subscriptionId, resourceGroupName, workspaceName, queryParams).GetAwaiter().GetResult()); }
/// <summary> /// Get a list of statuses of a Experiment resource. /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='nextPageLink'> /// The NextLink from the previous successful call to List operation. /// </param> public static IPage <ExperimentStatus> ListAllStatusesNext(this IExperimentsOperations operations, string nextPageLink) { return(operations.ListAllStatusesNextAsync(nextPageLink).GetAwaiter().GetResult()); }
/// <summary> /// Start a Experiment resource. /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='resourceGroupName'> /// String that represents an Azure resource group. /// </param> /// <param name='experimentName'> /// String that represents a Experiment resource name. /// </param> public static ExperimentStartOperationResult Start(this IExperimentsOperations operations, string resourceGroupName, string experimentName) { return(operations.StartAsync(resourceGroupName, experimentName).GetAwaiter().GetResult()); }
/// <summary> /// Update details of an Experiment. /// </summary> /// <remarks> /// Update details of an Experiment with specific Experiment Id. /// </remarks> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='subscriptionId'> /// The Azure Subscription ID. /// </param> /// <param name='resourceGroupName'> /// The Name of the resource group in which the workspace is located. /// </param> /// <param name='workspaceName'> /// The name of the workspace. /// </param> /// <param name='experimentId'> /// The identifier of the experiment. /// </param> /// <param name='modifyExperimentDto'> /// Experiment details which needs to be updated. /// </param> public static Experiment Update(this IExperimentsOperations operations, System.Guid subscriptionId, string resourceGroupName, string workspaceName, string experimentId, ModifyExperiment modifyExperimentDto = default(ModifyExperiment)) { return(operations.UpdateAsync(subscriptionId, resourceGroupName, workspaceName, experimentId, modifyExperimentDto).GetAwaiter().GetResult()); }
/// <summary> /// Get details of an Experiment. /// </summary> /// <remarks> /// Get details of an Experiment with specific Experiment name. /// </remarks> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='subscriptionId'> /// The Azure Subscription ID. /// </param> /// <param name='resourceGroupName'> /// The Name of the resource group in which the workspace is located. /// </param> /// <param name='workspaceName'> /// The name of the workspace. /// </param> /// <param name='experimentName'> /// The experiment name. /// </param> public static Experiment Get(this IExperimentsOperations operations, System.Guid subscriptionId, string resourceGroupName, string workspaceName, string experimentName) { return(operations.GetAsync(subscriptionId, resourceGroupName, workspaceName, experimentName).GetAwaiter().GetResult()); }
/// <summary> /// Delete list of Tags in an Experiment. /// </summary> /// <remarks> /// Delete list of Tags from a specific Experiment Id. /// </remarks> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='subscriptionId'> /// The Azure Subscription ID. /// </param> /// <param name='resourceGroupName'> /// The Name of the resource group in which the workspace is located. /// </param> /// <param name='workspaceName'> /// The name of the workspace. /// </param> /// <param name='experimentId'> /// The identifier of the experiment. /// </param> /// <param name='tags'> /// The requested tags list to be deleted. /// </param> public static Experiment DeleteTags(this IExperimentsOperations operations, System.Guid subscriptionId, string resourceGroupName, string workspaceName, string experimentId, DeleteTagsCommand tags = default(DeleteTagsCommand)) { return(operations.DeleteTagsAsync(subscriptionId, resourceGroupName, workspaceName, experimentId, tags).GetAwaiter().GetResult()); }
/// <summary> /// Updates an Experiment by Experiment id /// </summary> /// <remarks> /// Updates an Experiment /// </remarks> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='resourceGroupName'> /// Name of the Resource group within the Azure subscription. /// </param> /// <param name='profileName'> /// The Profile identifier associated with the Tenant and Partner /// </param> /// <param name='experimentName'> /// The Experiment identifier associated with the Experiment /// </param> /// <param name='parameters'> /// The Experiment Update Model /// </param> public static Experiment BeginUpdate(this IExperimentsOperations operations, string resourceGroupName, string profileName, string experimentName, ExperimentUpdateModel parameters) { return(operations.BeginUpdateAsync(resourceGroupName, profileName, experimentName, parameters).GetAwaiter().GetResult()); }
/// <summary> /// Get a list of execution details of a Experiment resource. /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='nextPageLink'> /// The NextLink from the previous successful call to List operation. /// </param> public static IPage <ExperimentExecutionDetails> ListExecutionDetailsNext(this IExperimentsOperations operations, string nextPageLink) { return(operations.ListExecutionDetailsNextAsync(nextPageLink).GetAwaiter().GetResult()); }
/// <summary> /// Gets a list of Experiments /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='resourceGroupName'> /// Name of the Resource group within the Azure subscription. /// </param> /// <param name='profileName'> /// The Profile identifier associated with the Tenant and Partner /// </param> public static IPage <Experiment> ListByProfile(this IExperimentsOperations operations, string resourceGroupName, string profileName) { return(operations.ListByProfileAsync(resourceGroupName, profileName).GetAwaiter().GetResult()); }
/// <summary> /// Get a list of Experiment resources in a resource group. /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='resourceGroupName'> /// String that represents an Azure resource group. /// </param> /// <param name='running'> /// Optional value that indicates whether to filter results based on if the /// Experiment is currently running. If null, then the results will not be /// filtered. /// </param> /// <param name='continuationToken'> /// String that sets the continuation token. /// </param> public static IPage <Experiment> List(this IExperimentsOperations operations, string resourceGroupName, bool?running = default(bool?), string continuationToken = default(string)) { return(operations.ListAsync(resourceGroupName, running, continuationToken).GetAwaiter().GetResult()); }
/// <summary> /// Deletes an Experiment /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='resourceGroupName'> /// Name of the Resource group within the Azure subscription. /// </param> /// <param name='profileName'> /// The Profile identifier associated with the Tenant and Partner /// </param> /// <param name='experimentName'> /// The Experiment identifier associated with the Experiment /// </param> public static void Delete(this IExperimentsOperations operations, string resourceGroupName, string profileName, string experimentName) { operations.DeleteAsync(resourceGroupName, profileName, experimentName).GetAwaiter().GetResult(); }