/// <summary> /// Retrieves information about a gallery Application Definition. /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='resourceGroupName'> /// The name of the resource group. /// </param> /// <param name='galleryName'> /// The name of the Shared Application Gallery from which the Application /// Definitions are to be retrieved. /// </param> /// <param name='galleryApplicationName'> /// The name of the gallery Application Definition to be retrieved. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task <GalleryApplicationInner> GetAsync(this IGalleryApplicationsOperations operations, string resourceGroupName, string galleryName, string galleryApplicationName, CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.GetWithHttpMessagesAsync(resourceGroupName, galleryName, galleryApplicationName, null, cancellationToken).ConfigureAwait(false)) { return(_result.Body); } }
/// <summary> /// Delete a gallery Application. /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='resourceGroupName'> /// The name of the resource group. /// </param> /// <param name='galleryName'> /// The name of the Shared Application Gallery in which the Application /// Definition is to be deleted. /// </param> /// <param name='galleryApplicationName'> /// The name of the gallery Application Definition to be deleted. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task DeleteAsync(this IGalleryApplicationsOperations operations, string resourceGroupName, string galleryName, string galleryApplicationName, CancellationToken cancellationToken = default(CancellationToken)) { (await operations.DeleteWithHttpMessagesAsync(resourceGroupName, galleryName, galleryApplicationName, null, cancellationToken).ConfigureAwait(false)).Dispose(); }
/// <summary> /// List gallery Application Definitions in a gallery. /// </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 <GalleryApplicationInner> > ListByGalleryNextAsync(this IGalleryApplicationsOperations operations, string nextPageLink, CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.ListByGalleryNextWithHttpMessagesAsync(nextPageLink, null, cancellationToken).ConfigureAwait(false)) { return(_result.Body); } }
/// <summary> /// List gallery Application Definitions in a gallery. /// </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 <GalleryApplication> ListByGalleryNext(this IGalleryApplicationsOperations operations, string nextPageLink) { return(operations.ListByGalleryNextAsync(nextPageLink).GetAwaiter().GetResult()); }
/// <summary> /// Create or update a gallery Application Definition. /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='resourceGroupName'> /// The name of the resource group. /// </param> /// <param name='galleryName'> /// The name of the Shared Application Gallery in which the Application /// Definition is to be created. /// </param> /// <param name='galleryApplicationName'> /// The name of the gallery Application Definition to be created or updated. /// The allowed characters are alphabets and numbers with dots, dashes, and /// periods allowed in the middle. The maximum length is 80 characters. /// </param> /// <param name='galleryApplication'> /// Parameters supplied to the create or update gallery Application operation. /// </param> public static GalleryApplication CreateOrUpdate(this IGalleryApplicationsOperations operations, string resourceGroupName, string galleryName, string galleryApplicationName, GalleryApplication galleryApplication) { return(operations.CreateOrUpdateAsync(resourceGroupName, galleryName, galleryApplicationName, galleryApplication).GetAwaiter().GetResult()); }
/// <summary> /// Delete a gallery Application. /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='resourceGroupName'> /// The name of the resource group. /// </param> /// <param name='galleryName'> /// The name of the Shared Application Gallery in which the Application /// Definition is to be deleted. /// </param> /// <param name='galleryApplicationName'> /// The name of the gallery Application Definition to be deleted. /// </param> public static void BeginDelete(this IGalleryApplicationsOperations operations, string resourceGroupName, string galleryName, string galleryApplicationName) { operations.BeginDeleteAsync(resourceGroupName, galleryName, galleryApplicationName).GetAwaiter().GetResult(); }
/// <summary> /// List gallery Application Definitions in a gallery. /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='resourceGroupName'> /// The name of the resource group. /// </param> /// <param name='galleryName'> /// The name of the Shared Application Gallery from which Application /// Definitions are to be listed. /// </param> public static IPage <GalleryApplication> ListByGallery(this IGalleryApplicationsOperations operations, string resourceGroupName, string galleryName) { return(operations.ListByGalleryAsync(resourceGroupName, galleryName).GetAwaiter().GetResult()); }
/// <summary> /// Retrieves information about a gallery Application Definition. /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='resourceGroupName'> /// The name of the resource group. /// </param> /// <param name='galleryName'> /// The name of the Shared Application Gallery from which the Application /// Definitions are to be retrieved. /// </param> /// <param name='galleryApplicationName'> /// The name of the gallery Application Definition to be retrieved. /// </param> public static GalleryApplication Get(this IGalleryApplicationsOperations operations, string resourceGroupName, string galleryName, string galleryApplicationName) { return(operations.GetAsync(resourceGroupName, galleryName, galleryApplicationName).GetAwaiter().GetResult()); }