Ejemplo n.º 1
0
 /// <summary>
 /// Get information about a specific ApiApp
 /// </summary>
 /// <param name='operations'>
 /// Reference to the
 /// Microsoft.Azure.Management.ApiApps.IApiAppOperations.
 /// </param>
 /// <param name='resourceGroup'>
 /// Required. The resource group containing the api app
 /// </param>
 /// <param name='name'>
 /// Required. The instance name of the apiapp
 /// </param>
 /// <returns>
 /// A standard service response including an HTTP status code and
 /// request ID.
 /// </returns>
 public static GetApiAppResponse Get(this IApiAppOperations operations, string resourceGroup, string name)
 {
     return(Task.Factory.StartNew((object s) =>
     {
         return ((IApiAppOperations)s).GetAsync(resourceGroup, name);
     }
                                  , operations, CancellationToken.None, TaskCreationOptions.None, TaskScheduler.Default).Unwrap().GetAwaiter().GetResult());
 }
Ejemplo n.º 2
0
 /// <summary>
 /// List the next set of ApiApps from the previous list call.
 /// </summary>
 /// <param name='operations'>
 /// Reference to the
 /// Microsoft.Azure.Management.ApiApps.IApiAppOperations.
 /// </param>
 /// <param name='nextLink'>
 /// Required. NextLink from a previous successful call to List
 /// operation.
 /// </param>
 /// <returns>
 /// A standard service response including an HTTP status code and
 /// request ID.
 /// </returns>
 public static ListApiAppsResponse ListNext(this IApiAppOperations operations, string nextLink)
 {
     return(Task.Factory.StartNew((object s) =>
     {
         return ((IApiAppOperations)s).ListNextAsync(nextLink);
     }
                                  , operations, CancellationToken.None, TaskCreationOptions.None, TaskScheduler.Default).Unwrap().GetAwaiter().GetResult());
 }
Ejemplo n.º 3
0
 /// <summary>
 /// Initializes a new instance of the ApiAppManagementClient class.
 /// </summary>
 /// <param name='httpClient'>
 /// The Http client
 /// </param>
 public ApiAppManagementClient(HttpClient httpClient)
     : base(httpClient)
 {
     this._apiApps    = new ApiAppOperations(this);
     this._templates  = new TemplateOperations(this);
     this._apiVersion = "2015-03-01-preview";
     this._longRunningOperationInitialTimeout = -1;
     this._longRunningOperationRetryTimeout   = -1;
     this.HttpClient.Timeout = TimeSpan.FromSeconds(300);
 }
Ejemplo n.º 4
0
 /// <summary>
 /// Get information about a specific ApiApp
 /// </summary>
 /// <param name='operations'>
 /// Reference to the
 /// Microsoft.Azure.Management.ApiApps.IApiAppOperations.
 /// </param>
 /// <param name='resourceGroup'>
 /// Required. The resource group containing the api app
 /// </param>
 /// <param name='name'>
 /// Required. The instance name of the apiapp
 /// </param>
 /// <returns>
 /// A standard service response including an HTTP status code and
 /// request ID.
 /// </returns>
 public static Task <GetApiAppResponse> GetAsync(this IApiAppOperations operations, string resourceGroup, string name)
 {
     return(operations.GetAsync(resourceGroup, name, CancellationToken.None));
 }
Ejemplo n.º 5
0
 /// <summary>
 /// List the next set of ApiApps from the previous list call.
 /// </summary>
 /// <param name='operations'>
 /// Reference to the
 /// Microsoft.Azure.Management.ApiApps.IApiAppOperations.
 /// </param>
 /// <param name='nextLink'>
 /// Required. NextLink from a previous successful call to List
 /// operation.
 /// </param>
 /// <returns>
 /// A standard service response including an HTTP status code and
 /// request ID.
 /// </returns>
 public static Task <ListApiAppsResponse> ListNextAsync(this IApiAppOperations operations, string nextLink)
 {
     return(operations.ListNextAsync(nextLink, CancellationToken.None));
 }
Ejemplo n.º 6
0
 /// <summary>
 /// Return list of the deployed ApiApps for this subscription
 /// </summary>
 /// <param name='operations'>
 /// Reference to the
 /// Microsoft.Azure.Management.ApiApps.IApiAppOperations.
 /// </param>
 /// <returns>
 /// A standard service response including an HTTP status code and
 /// request ID.
 /// </returns>
 public static Task <ListApiAppsResponse> ListAllAsync(this IApiAppOperations operations)
 {
     return(operations.ListAllAsync(CancellationToken.None));
 }
Ejemplo n.º 7
0
 /// <summary>
 /// Return list of the deployed ApiApps for the resource group
 /// </summary>
 /// <param name='operations'>
 /// Reference to the
 /// Microsoft.Azure.Management.ApiApps.IApiAppOperations.
 /// </param>
 /// <param name='resourceGroup'>
 /// Required. Name of the resource group containing the apiapps to list
 /// </param>
 /// <param name='expand'>
 /// Optional. Option controlling how much data to return, valid options
 /// are "basic" or "detail"
 /// </param>
 /// <returns>
 /// A standard service response including an HTTP status code and
 /// request ID.
 /// </returns>
 public static Task <ListApiAppsResponse> ListAsync(this IApiAppOperations operations, string resourceGroup, string expand)
 {
     return(operations.ListAsync(resourceGroup, expand, CancellationToken.None));
 }