/// <summary>
 /// Gets provider operations metadata for the specified resource provider.
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='resourceProviderNamespace'>
 /// The namespace of the resource provider.
 /// </param>
 /// <param name='apiVersion'>
 /// The API version to use for the operation.
 /// </param>
 /// <param name='expand'>
 /// Specifies whether to expand the values.
 /// </param>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async Task <ProviderOperationsMetadataInner> GetAsync(this IProviderOperationsMetadataOperations operations, string resourceProviderNamespace, string apiVersion, string expand = "resourceTypes", CancellationToken cancellationToken = default(CancellationToken))
 {
     using (var _result = await operations.GetWithHttpMessagesAsync(resourceProviderNamespace, apiVersion, expand, null, cancellationToken).ConfigureAwait(false))
     {
         return(_result.Body);
     }
 }
 /// <summary>
 /// Gets provider operations metadata for all resource providers.
 /// </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 <ProviderOperationsMetadata> > ListNextAsync(this IProviderOperationsMetadataOperations operations, string nextPageLink, CancellationToken cancellationToken = default(CancellationToken))
 {
     using (var _result = await operations.ListNextWithHttpMessagesAsync(nextPageLink, null, cancellationToken).ConfigureAwait(false))
     {
         return(_result.Body);
     }
 }
 /// <summary>
 /// Gets provider operations metadata for all resource providers.
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='expand'>
 /// Specifies whether to expand the values.
 /// </param>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async Task <IPage <ProviderOperationsMetadata> > ListAsync(this IProviderOperationsMetadataOperations operations, string expand = "resourceTypes", CancellationToken cancellationToken = default(CancellationToken))
 {
     using (var _result = await operations.ListWithHttpMessagesAsync(expand, null, cancellationToken).ConfigureAwait(false))
     {
         return(_result.Body);
     }
 }
Exemple #4
0
 /// <summary>
 /// Gets provider operations metadata list
 /// </summary>
 /// <param name='operations'>
 /// Reference to the
 /// Microsoft.Azure.Management.Internal.Resources.IProviderOperationsMetadataOperations.
 /// </param>
 /// <returns>
 /// Provider operations metadata list
 /// </returns>
 public static ProviderOperationsMetadataListResult List(this IProviderOperationsMetadataOperations operations)
 {
     return(Task.Factory.StartNew((object s) =>
     {
         return ((IProviderOperationsMetadataOperations)s).ListAsync();
     }
                                  , operations, CancellationToken.None, TaskCreationOptions.None, TaskScheduler.Default).Unwrap().GetAwaiter().GetResult());
 }
Exemple #5
0
 /// <summary>
 /// Gets provider operations metadata
 /// </summary>
 /// <param name='operations'>
 /// Reference to the
 /// Microsoft.Azure.Management.Internal.Resources.IProviderOperationsMetadataOperations.
 /// </param>
 /// <param name='resourceProviderNamespace'>
 /// Required. Namespace of the resource provider.
 /// </param>
 /// <returns>
 /// Provider operations metadata
 /// </returns>
 public static ProviderOperationsMetadataGetResult Get(this IProviderOperationsMetadataOperations operations, string resourceProviderNamespace)
 {
     return(Task.Factory.StartNew((object s) =>
     {
         return ((IProviderOperationsMetadataOperations)s).GetAsync(resourceProviderNamespace);
     }
                                  , operations, CancellationToken.None, TaskCreationOptions.None, TaskScheduler.Default).Unwrap().GetAwaiter().GetResult());
 }
 /// <summary>
 /// Initializes a new instance of the ResourceManagementClient class.
 /// </summary>
 /// <param name='httpClient'>
 /// The Http client
 /// </param>
 public ResourceManagementClient(HttpClient httpClient)
     : base(httpClient)
 {
     this._deploymentOperations             = new DeploymentOperationOperations(this);
     this._deployments                      = new DeploymentOperations(this);
     this._providers                        = new ProviderOperations(this);
     this._providerOperationsMetadata       = new ProviderOperationsMetadataOperations(this);
     this._resourceGroups                   = new ResourceGroupOperations(this);
     this._resources                        = new ResourceOperations(this);
     this._resourceProviderOperationDetails = new ResourceProviderOperationDetailsOperations(this);
     this._tags       = new TagOperations(this);
     this._apiVersion = "2014-04-01-preview";
     this._longRunningOperationInitialTimeout = -1;
     this._longRunningOperationRetryTimeout   = -1;
     this.HttpClient.Timeout = TimeSpan.FromSeconds(300);
 }
Exemple #7
0
 /// <summary>
 /// Gets provider operations metadata list
 /// </summary>
 /// <param name='operations'>
 /// Reference to the
 /// Microsoft.Azure.Management.Internal.Resources.IProviderOperationsMetadataOperations.
 /// </param>
 /// <returns>
 /// Provider operations metadata list
 /// </returns>
 public static Task <ProviderOperationsMetadataListResult> ListAsync(this IProviderOperationsMetadataOperations operations)
 {
     return(operations.ListAsync(CancellationToken.None));
 }
Exemple #8
0
 /// <summary>
 /// Gets provider operations metadata
 /// </summary>
 /// <param name='operations'>
 /// Reference to the
 /// Microsoft.Azure.Management.Internal.Resources.IProviderOperationsMetadataOperations.
 /// </param>
 /// <param name='resourceProviderNamespace'>
 /// Required. Namespace of the resource provider.
 /// </param>
 /// <returns>
 /// Provider operations metadata
 /// </returns>
 public static Task <ProviderOperationsMetadataGetResult> GetAsync(this IProviderOperationsMetadataOperations operations, string resourceProviderNamespace)
 {
     return(operations.GetAsync(resourceProviderNamespace, CancellationToken.None));
 }
 /// <summary>
 /// Gets provider operations metadata for all resource providers.
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='expand'>
 /// Specifies whether to expand the values.
 /// </param>
 public static IPage <ProviderOperationsMetadata> List(this IProviderOperationsMetadataOperations operations, string expand = "resourceTypes")
 {
     return(operations.ListAsync(expand).GetAwaiter().GetResult());
 }
 /// <summary>
 /// Gets provider operations metadata for the specified resource provider.
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='resourceProviderNamespace'>
 /// The namespace of the resource provider.
 /// </param>
 /// <param name='expand'>
 /// Specifies whether to expand the values.
 /// </param>
 public static ProviderOperationsMetadata Get(this IProviderOperationsMetadataOperations operations, string resourceProviderNamespace, string expand = "resourceTypes")
 {
     return(operations.GetAsync(resourceProviderNamespace, expand).GetAwaiter().GetResult());
 }
 /// <summary>
 /// Gets provider operations metadata for all resource providers.
 /// </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 <ProviderOperationsMetadata> ListNext(this IProviderOperationsMetadataOperations operations, string nextPageLink)
 {
     return(operations.ListNextAsync(nextPageLink).GetAwaiter().GetResult());
 }
 /// <summary>
 /// Gets provider operations metadata list
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='apiVersion'>
 /// </param>
 /// <param name='expand'>
 /// </param>
 public static IPage <ProviderOperationsMetadata> List(this IProviderOperationsMetadataOperations operations, string apiVersion, string expand = "resourceTypes")
 {
     return(Task.Factory.StartNew(s => ((IProviderOperationsMetadataOperations)s).ListAsync(apiVersion, expand), operations, CancellationToken.None, TaskCreationOptions.None, TaskScheduler.Default).Unwrap().GetAwaiter().GetResult());
 }
 /// <summary>
 /// Gets provider operations metadata list
 /// </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 <ProviderOperationsMetadata> ListNext(this IProviderOperationsMetadataOperations operations, string nextPageLink)
 {
     return(Task.Factory.StartNew(s => ((IProviderOperationsMetadataOperations)s).ListNextAsync(nextPageLink), operations, CancellationToken.None, TaskCreationOptions.None, TaskScheduler.Default).Unwrap().GetAwaiter().GetResult());
 }