/// <summary>
 /// Validates whether the specified template is syntactically correct and will
 /// be accepted by Azure Resource Manager..
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='resourceGroupName'>
 /// The name of the resource group the template will be deployed to. The name
 /// is case insensitive.
 /// </param>
 /// <param name='deploymentName'>
 /// The name of the deployment.
 /// </param>
 /// <param name='parameters'>
 /// Parameters to validate.
 /// </param>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async Task <DeploymentValidateResult> ValidateAsync(this IDeploymentsOperations operations, string resourceGroupName, string deploymentName, Deployment parameters, CancellationToken cancellationToken = default(CancellationToken))
 {
     using (var _result = await operations.ValidateWithHttpMessagesAsync(resourceGroupName, deploymentName, parameters, null, cancellationToken).ConfigureAwait(false))
     {
         return(_result.Body);
     }
 }
 /// <summary>
 /// Checks whether the deployment exists.
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='resourceGroupName'>
 /// The name of the resource group with the deployment to check. The name is
 /// case insensitive.
 /// </param>
 /// <param name='deploymentName'>
 /// The name of the deployment to check.
 /// </param>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async Task <bool> CheckExistenceAsync(this IDeploymentsOperations operations, string resourceGroupName, string deploymentName, CancellationToken cancellationToken = default(CancellationToken))
 {
     using (var _result = await operations.CheckExistenceWithHttpMessagesAsync(resourceGroupName, deploymentName, null, cancellationToken).ConfigureAwait(false))
     {
         return(_result.Body);
     }
 }
 /// <summary>
 /// Get a list of deployments.
 /// </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>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async Task <IPage <DeploymentExtendedInner> > ListNextAsync(this IDeploymentsOperations operations, string nextPageLink, CancellationToken cancellationToken = default(CancellationToken))
 {
     using (var _result = await operations.ListNextWithHttpMessagesAsync(nextPageLink, null, cancellationToken).ConfigureAwait(false))
     {
         return(_result.Body);
     }
 }
 /// <summary>
 /// Deploys resources to a resource group.
 /// </summary>
 /// <remarks>
 /// You can provide the template and parameters directly in the request or link
 /// to JSON files.
 /// </remarks>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='resourceGroupName'>
 /// The name of the resource group to deploy the resources to. The name is case
 /// insensitive. The resource group must already exist.
 /// </param>
 /// <param name='deploymentName'>
 /// The name of the deployment.
 /// </param>
 /// <param name='properties'>
 /// The deployment properties.
 /// </param>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async Task <DeploymentExtendedInner> BeginCreateOrUpdateAsync(this IDeploymentsOperations operations, string resourceGroupName, string deploymentName, DeploymentPropertiesInner properties, CancellationToken cancellationToken = default(CancellationToken))
 {
     using (var _result = await operations.BeginCreateOrUpdateWithHttpMessagesAsync(resourceGroupName, deploymentName, properties, null, cancellationToken).ConfigureAwait(false))
     {
         return(_result.Body);
     }
 }
 /// <summary>
 /// Gets the deployments associated with the Cognitive Services account.
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='resourceGroupName'>
 /// The name of the resource group. The name is case insensitive.
 /// </param>
 /// <param name='accountName'>
 /// The name of Cognitive Services account.
 /// </param>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async Task <IPage <Deployment> > ListAsync(this IDeploymentsOperations operations, string resourceGroupName, string accountName, CancellationToken cancellationToken = default(CancellationToken))
 {
     using (var _result = await operations.ListWithHttpMessagesAsync(resourceGroupName, accountName, null, cancellationToken).ConfigureAwait(false))
     {
         return(_result.Body);
     }
 }
 /// <summary>
 /// Get a list of deployments.
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='resourceGroupName'>
 /// The name of the resource group to filter by. The name is case insensitive.
 /// </param>
 /// <param name='odataQuery'>
 /// OData parameters to apply to the operation.
 /// </param>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async Task <IPage <DeploymentExtendedInner> > ListAsync(this IDeploymentsOperations operations, string resourceGroupName, ODataQuery <DeploymentExtendedFilterInner> odataQuery = default(ODataQuery <DeploymentExtendedFilterInner>), CancellationToken cancellationToken = default(CancellationToken))
 {
     using (var _result = await operations.ListWithHttpMessagesAsync(resourceGroupName, odataQuery, null, cancellationToken).ConfigureAwait(false))
     {
         return(_result.Body);
     }
 }
Exemple #7
0
 /// <summary>
 /// Get deployment log file URL
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='resourceGroupName'>
 /// The name of the resource group that contains the resource. You can obtain
 /// this value from the Azure Resource Manager API or the portal.
 /// </param>
 /// <param name='serviceName'>
 /// The name of the Service resource.
 /// </param>
 /// <param name='appName'>
 /// The name of the App resource.
 /// </param>
 /// <param name='deploymentName'>
 /// The name of the Deployment resource.
 /// </param>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async Task <LogFileUrlResponse> GetLogFileUrlAsync(this IDeploymentsOperations operations, string resourceGroupName, string serviceName, string appName, string deploymentName, CancellationToken cancellationToken = default(CancellationToken))
 {
     using (var _result = await operations.GetLogFileUrlWithHttpMessagesAsync(resourceGroupName, serviceName, appName, deploymentName, null, cancellationToken).ConfigureAwait(false))
     {
         return(_result.Body);
     }
 }
Exemple #8
0
 /// <summary>
 /// Operation to update an exiting Deployment.
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='resourceGroupName'>
 /// The name of the resource group that contains the resource. You can obtain
 /// this value from the Azure Resource Manager API or the portal.
 /// </param>
 /// <param name='serviceName'>
 /// The name of the Service resource.
 /// </param>
 /// <param name='appName'>
 /// The name of the App resource.
 /// </param>
 /// <param name='deploymentName'>
 /// The name of the Deployment resource.
 /// </param>
 /// <param name='deploymentResource'>
 /// Parameters for the update operation
 /// </param>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async Task <DeploymentResource> BeginUpdateAsync(this IDeploymentsOperations operations, string resourceGroupName, string serviceName, string appName, string deploymentName, DeploymentResource deploymentResource, CancellationToken cancellationToken = default(CancellationToken))
 {
     using (var _result = await operations.BeginUpdateWithHttpMessagesAsync(resourceGroupName, serviceName, appName, deploymentName, deploymentResource, null, cancellationToken).ConfigureAwait(false))
     {
         return(_result.Body);
     }
 }
Exemple #9
0
 /// <summary>
 /// List deployments for a certain service
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='resourceGroupName'>
 /// The name of the resource group that contains the resource. You can obtain
 /// this value from the Azure Resource Manager API or the portal.
 /// </param>
 /// <param name='serviceName'>
 /// The name of the Service resource.
 /// </param>
 /// <param name='version'>
 /// Version of the deployments to be listed
 /// </param>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async Task <IPage <DeploymentResource> > ListForClusterAsync(this IDeploymentsOperations operations, string resourceGroupName, string serviceName, IList <string> version = default(IList <string>), CancellationToken cancellationToken = default(CancellationToken))
 {
     using (var _result = await operations.ListForClusterWithHttpMessagesAsync(resourceGroupName, serviceName, version, null, cancellationToken).ConfigureAwait(false))
     {
         return(_result.Body);
     }
 }
 /// <summary>
 /// Exports the template used for specified deployment.
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='resourceGroupName'>
 /// The name of the resource group. The name is case insensitive.
 /// </param>
 /// <param name='deploymentName'>
 /// The name of the deployment from which to get the template.
 /// </param>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async Task <DeploymentExportResultInner> ExportTemplateAsync(this IDeploymentsOperations operations, string resourceGroupName, string deploymentName, CancellationToken cancellationToken = default(CancellationToken))
 {
     using (var _result = await operations.ExportTemplateWithHttpMessagesAsync(resourceGroupName, deploymentName, null, cancellationToken).ConfigureAwait(false))
     {
         return(_result.Body);
     }
 }
 /// <summary>
 /// Update the state of specified deployments associated with the Cognitive
 /// Services account.
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='resourceGroupName'>
 /// The name of the resource group. The name is case insensitive.
 /// </param>
 /// <param name='accountName'>
 /// The name of Cognitive Services account.
 /// </param>
 /// <param name='deploymentName'>
 /// The name of the deployment associated with the Cognitive Services Account
 /// </param>
 /// <param name='deployment'>
 /// The deployment properties.
 /// </param>
 public static Deployment BeginCreateOrUpdate(this IDeploymentsOperations operations, string resourceGroupName, string accountName, string deploymentName, Deployment deployment)
 {
     return(operations.BeginCreateOrUpdateAsync(resourceGroupName, accountName, deploymentName, deployment).GetAwaiter().GetResult());
 }
 /// <summary>
 /// Deploys resources to a resource group.
 /// </summary>
 /// <remarks>
 /// You can provide the template and parameters directly in the request or link
 /// to JSON files.
 /// </remarks>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='resourceGroupName'>
 /// The name of the resource group to deploy the resources to. The name is case
 /// insensitive. The resource group must already exist.
 /// </param>
 /// <param name='deploymentName'>
 /// The name of the deployment.
 /// </param>
 /// <param name='parameters'>
 /// Additional parameters supplied to the operation.
 /// </param>
 public static DeploymentExtended BeginCreateOrUpdate(this IDeploymentsOperations operations, string resourceGroupName, string deploymentName, Deployment parameters)
 {
     return(operations.BeginCreateOrUpdateAsync(resourceGroupName, deploymentName, parameters).GetAwaiter().GetResult());
 }
 /// <summary>
 /// Get all the deployments for a resource group.
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='resourceGroupName'>
 /// The name of the resource group with the deployments to get. The name is
 /// case insensitive.
 /// </param>
 /// <param name='odataQuery'>
 /// OData parameters to apply to the operation.
 /// </param>
 public static IPage <DeploymentExtended> List(this IDeploymentsOperations operations, string resourceGroupName, ODataQuery <DeploymentExtendedFilter> odataQuery = default(ODataQuery <DeploymentExtendedFilter>))
 {
     return(operations.ListAsync(resourceGroupName, odataQuery).GetAwaiter().GetResult());
 }
Exemple #14
0
 /// <summary>
 /// Get a list of deployments.
 /// </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 <DeploymentExtended> ListNext(this IDeploymentsOperations operations, string nextPageLink)
 {
     return(Task.Factory.StartNew(s => ((IDeploymentsOperations)s).ListNextAsync(nextPageLink), operations, CancellationToken.None, TaskCreationOptions.None, TaskScheduler.Default).Unwrap().GetAwaiter().GetResult());
 }
Exemple #15
0
 /// <summary>
 /// List deployments for a certain service
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='resourceGroupName'>
 /// The name of the resource group that contains the resource. You can obtain
 /// this value from the Azure Resource Manager API or the portal.
 /// </param>
 /// <param name='serviceName'>
 /// The name of the Service resource.
 /// </param>
 /// <param name='version'>
 /// Version of the deployments to be listed
 /// </param>
 public static IPage <DeploymentResource> ListForCluster(this IDeploymentsOperations operations, string resourceGroupName, string serviceName, IList <string> version = default(IList <string>))
 {
     return(operations.ListForClusterAsync(resourceGroupName, serviceName, version).GetAwaiter().GetResult());
 }
 /// <summary>
 /// Checks whether the deployment exists.
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='resourceGroupName'>
 /// The name of the resource group with the deployment to check. The name is
 /// case insensitive.
 /// </param>
 /// <param name='deploymentName'>
 /// The name of the deployment to check.
 /// </param>
 public static bool CheckExistence(this IDeploymentsOperations operations, string resourceGroupName, string deploymentName)
 {
     return(operations.CheckExistenceAsync(resourceGroupName, deploymentName).GetAwaiter().GetResult());
 }
Exemple #17
0
 /// <summary>
 /// Restart the deployment.
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='resourceGroupName'>
 /// The name of the resource group that contains the resource. You can obtain
 /// this value from the Azure Resource Manager API or the portal.
 /// </param>
 /// <param name='serviceName'>
 /// The name of the Service resource.
 /// </param>
 /// <param name='appName'>
 /// The name of the App resource.
 /// </param>
 /// <param name='deploymentName'>
 /// The name of the Deployment resource.
 /// </param>
 public static void BeginRestart(this IDeploymentsOperations operations, string resourceGroupName, string serviceName, string appName, string deploymentName)
 {
     operations.BeginRestartAsync(resourceGroupName, serviceName, appName, deploymentName).GetAwaiter().GetResult();
 }
Exemple #18
0
 /// <summary>
 /// Operation to update an exiting Deployment.
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='resourceGroupName'>
 /// The name of the resource group that contains the resource. You can obtain
 /// this value from the Azure Resource Manager API or the portal.
 /// </param>
 /// <param name='serviceName'>
 /// The name of the Service resource.
 /// </param>
 /// <param name='appName'>
 /// The name of the App resource.
 /// </param>
 /// <param name='deploymentName'>
 /// The name of the Deployment resource.
 /// </param>
 /// <param name='deploymentResource'>
 /// Parameters for the update operation
 /// </param>
 public static DeploymentResource BeginUpdate(this IDeploymentsOperations operations, string resourceGroupName, string serviceName, string appName, string deploymentName, DeploymentResource deploymentResource)
 {
     return(operations.BeginUpdateAsync(resourceGroupName, serviceName, appName, deploymentName, deploymentResource).GetAwaiter().GetResult());
 }
Exemple #19
0
 /// <summary>
 /// Get deployment log file URL
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='resourceGroupName'>
 /// The name of the resource group that contains the resource. You can obtain
 /// this value from the Azure Resource Manager API or the portal.
 /// </param>
 /// <param name='serviceName'>
 /// The name of the Service resource.
 /// </param>
 /// <param name='appName'>
 /// The name of the App resource.
 /// </param>
 /// <param name='deploymentName'>
 /// The name of the Deployment resource.
 /// </param>
 public static LogFileUrlResponse GetLogFileUrl(this IDeploymentsOperations operations, string resourceGroupName, string serviceName, string appName, string deploymentName)
 {
     return(operations.GetLogFileUrlAsync(resourceGroupName, serviceName, appName, deploymentName).GetAwaiter().GetResult());
 }
 /// <summary>
 /// Deletes the specified deployment associated with the Cognitive Services
 /// account.
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='resourceGroupName'>
 /// The name of the resource group. The name is case insensitive.
 /// </param>
 /// <param name='accountName'>
 /// The name of Cognitive Services account.
 /// </param>
 /// <param name='deploymentName'>
 /// The name of the deployment associated with the Cognitive Services Account
 /// </param>
 public static void BeginDelete(this IDeploymentsOperations operations, string resourceGroupName, string accountName, string deploymentName)
 {
     operations.BeginDeleteAsync(resourceGroupName, accountName, deploymentName).GetAwaiter().GetResult();
 }
 /// <summary>
 /// Gets the deployments associated with the Cognitive Services account.
 /// </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 <Deployment> ListNext(this IDeploymentsOperations operations, string nextPageLink)
 {
     return(operations.ListNextAsync(nextPageLink).GetAwaiter().GetResult());
 }
 /// <summary>
 /// Cancels a currently running template deployment.
 /// </summary>
 /// <remarks>
 /// You can cancel a deployment only if the provisioningState is Accepted or
 /// Running. After the deployment is canceled, the provisioningState is set to
 /// Canceled. Canceling a template deployment stops the currently running
 /// template deployment and leaves the resource group partially deployed.
 /// </remarks>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='resourceGroupName'>
 /// The name of the resource group. The name is case insensitive.
 /// </param>
 /// <param name='deploymentName'>
 /// The name of the deployment to cancel.
 /// </param>
 public static void Cancel(this IDeploymentsOperations operations, string resourceGroupName, string deploymentName)
 {
     operations.CancelAsync(resourceGroupName, deploymentName).GetAwaiter().GetResult();
 }
 /// <summary>
 /// Gets the specified deployments associated with the Cognitive Services
 /// account.
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='resourceGroupName'>
 /// The name of the resource group. The name is case insensitive.
 /// </param>
 /// <param name='accountName'>
 /// The name of Cognitive Services account.
 /// </param>
 /// <param name='deploymentName'>
 /// The name of the deployment associated with the Cognitive Services Account
 /// </param>
 public static Deployment Get(this IDeploymentsOperations operations, string resourceGroupName, string accountName, string deploymentName)
 {
     return(operations.GetAsync(resourceGroupName, accountName, deploymentName).GetAwaiter().GetResult());
 }
 /// <summary>
 /// Deletes a deployment from the deployment history.
 /// </summary>
 /// <remarks>
 /// A template deployment that is currently running cannot be deleted. Deleting
 /// a template deployment removes the associated deployment operations.
 /// Deleting a template deployment does not affect the state of the resource
 /// group. This is an asynchronous operation that returns a status of 202 until
 /// the template deployment is successfully deleted. The Location response
 /// header contains the URI that is used to obtain the status of the process.
 /// While the process is running, a call to the URI in the Location header
 /// returns a status of 202. When the process finishes, the URI in the Location
 /// header returns a status of 204 on success. If the asynchronous request
 /// failed, the URI in the Location header returns an error-level status code.
 /// </remarks>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='resourceGroupName'>
 /// The name of the resource group with the deployment to delete. The name is
 /// case insensitive.
 /// </param>
 /// <param name='deploymentName'>
 /// The name of the deployment to delete.
 /// </param>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async Task DeleteAsync(this IDeploymentsOperations operations, string resourceGroupName, string deploymentName, CancellationToken cancellationToken = default(CancellationToken))
 {
     (await operations.DeleteWithHttpMessagesAsync(resourceGroupName, deploymentName, null, cancellationToken).ConfigureAwait(false)).Dispose();
 }
 /// <summary>
 /// Validates whether the specified template is syntactically correct and will
 /// be accepted by Azure Resource Manager..
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='resourceGroupName'>
 /// The name of the resource group the template will be deployed to. The name
 /// is case insensitive.
 /// </param>
 /// <param name='deploymentName'>
 /// The name of the deployment.
 /// </param>
 /// <param name='parameters'>
 /// Parameters to validate.
 /// </param>
 public static DeploymentValidateResult Validate(this IDeploymentsOperations operations, string resourceGroupName, string deploymentName, Deployment parameters)
 {
     return(operations.ValidateAsync(resourceGroupName, deploymentName, parameters).GetAwaiter().GetResult());
 }
Exemple #26
0
 /// <summary>
 /// Delete deployment.
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='resourceGroupName'>
 /// The name of the resource group. The name is case insensitive.
 /// </param>
 /// <param name='deploymentName'>
 /// The name of the deployment to be deleted.
 /// </param>
 public static void BeginDelete(this IDeploymentsOperations operations, string resourceGroupName, string deploymentName)
 {
     Task.Factory.StartNew(s => ((IDeploymentsOperations)s).BeginDeleteAsync(resourceGroupName, deploymentName), operations, CancellationToken.None, TaskCreationOptions.None, TaskScheduler.Default).Unwrap().GetAwaiter().GetResult();
 }
Exemple #27
0
 /// <summary>
 /// Exports a deployment template.
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='resourceGroupName'>
 /// The name of the resource group. The name is case insensitive.
 /// </param>
 /// <param name='deploymentName'>
 /// The name of the deployment.
 /// </param>
 public static DeploymentExportResult ExportTemplate(this IDeploymentsOperations operations, string resourceGroupName, string deploymentName)
 {
     return(Task.Factory.StartNew(s => ((IDeploymentsOperations)s).ExportTemplateAsync(resourceGroupName, deploymentName), operations, CancellationToken.None, TaskCreationOptions.None, TaskScheduler.Default).Unwrap().GetAwaiter().GetResult());
 }
 /// <summary>
 /// Exports the template used for specified deployment.
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='resourceGroupName'>
 /// The name of the resource group. The name is case insensitive.
 /// </param>
 /// <param name='deploymentName'>
 /// The name of the deployment from which to get the template.
 /// </param>
 public static DeploymentExportResult ExportTemplate(this IDeploymentsOperations operations, string resourceGroupName, string deploymentName)
 {
     return(operations.ExportTemplateAsync(resourceGroupName, deploymentName).GetAwaiter().GetResult());
 }
Exemple #29
0
 /// <summary>
 /// Create a named template deployment using a template.
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='resourceGroupName'>
 /// The name of the resource group. The name is case insensitive.
 /// </param>
 /// <param name='deploymentName'>
 /// The name of the deployment.
 /// </param>
 /// <param name='parameters'>
 /// Additional parameters supplied to the operation.
 /// </param>
 public static DeploymentExtended BeginCreateOrUpdate(this IDeploymentsOperations operations, string resourceGroupName, string deploymentName, Deployment parameters)
 {
     return(Task.Factory.StartNew(s => ((IDeploymentsOperations)s).BeginCreateOrUpdateAsync(resourceGroupName, deploymentName, parameters), operations, CancellationToken.None, TaskCreationOptions.None, TaskScheduler.Default).Unwrap().GetAwaiter().GetResult());
 }
Exemple #30
0
 /// <summary>
 /// Get a list of deployments.
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='resourceGroupName'>
 /// The name of the resource group to filter by. The name is case insensitive.
 /// </param>
 /// <param name='odataQuery'>
 /// OData parameters to apply to the operation.
 /// </param>
 public static IPage <DeploymentExtended> List(this IDeploymentsOperations operations, string resourceGroupName, ODataQuery <DeploymentExtendedFilter> odataQuery = default(ODataQuery <DeploymentExtendedFilter>))
 {
     return(Task.Factory.StartNew(s => ((IDeploymentsOperations)s).ListAsync(resourceGroupName, odataQuery), operations, CancellationToken.None, TaskCreationOptions.None, TaskScheduler.Default).Unwrap().GetAwaiter().GetResult());
 }