/// <summary> /// Get Invitation in a share. /// </summary> /// <remarks> /// Get an invitation in a share /// </remarks> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='resourceGroupName'> /// The resource group name. /// </param> /// <param name='accountName'> /// The name of the share account. /// </param> /// <param name='shareName'> /// The name of the share. /// </param> /// <param name='invitationName'> /// The name of the invitation. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task <Invitation> GetAsync(this IInvitationsOperations operations, string resourceGroupName, string accountName, string shareName, string invitationName, CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.GetWithHttpMessagesAsync(resourceGroupName, accountName, shareName, invitationName, null, cancellationToken).ConfigureAwait(false)) { return(_result.Body); } }
/// <summary> /// List all Invitations in a share. /// </summary> /// <remarks> /// List invitations in a share /// </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 <Invitation> > ListByShareNextAsync(this IInvitationsOperations operations, string nextPageLink, CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.ListByShareNextWithHttpMessagesAsync(nextPageLink, null, cancellationToken).ConfigureAwait(false)) { return(_result.Body); } }
/// <summary> /// List all Invitations in a share. /// </summary> /// <remarks> /// List invitations in a share /// </remarks> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='resourceGroupName'> /// The resource group name. /// </param> /// <param name='accountName'> /// The name of the share account. /// </param> /// <param name='shareName'> /// The name of the share. /// </param> /// <param name='skipToken'> /// The continuation token /// </param> /// <param name='filter'> /// Filters the results using OData syntax. /// </param> /// <param name='orderby'> /// Sorts the results using OData syntax. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task <IPage <Invitation> > ListByShareAsync(this IInvitationsOperations operations, string resourceGroupName, string accountName, string shareName, string skipToken = default(string), string filter = default(string), string orderby = default(string), CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.ListByShareWithHttpMessagesAsync(resourceGroupName, accountName, shareName, skipToken, filter, orderby, null, cancellationToken).ConfigureAwait(false)) { return(_result.Body); } }
/// <summary> /// Get Invitation in a share. /// </summary> /// <remarks> /// Get an invitation in a share /// </remarks> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='resourceGroupName'> /// The resource group name. /// </param> /// <param name='accountName'> /// The name of the share account. /// </param> /// <param name='shareName'> /// The name of the share. /// </param> /// <param name='invitationName'> /// The name of the invitation. /// </param> public static Invitation Get(this IInvitationsOperations operations, string resourceGroupName, string accountName, string shareName, string invitationName) { return(operations.GetAsync(resourceGroupName, accountName, shareName, invitationName).GetAwaiter().GetResult()); }
/// <summary> /// List all Invitations in a share. /// </summary> /// <remarks> /// List invitations in a share /// </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 <Invitation> ListByShareNext(this IInvitationsOperations operations, string nextPageLink) { return(operations.ListByShareNextAsync(nextPageLink).GetAwaiter().GetResult()); }
/// <summary> /// List all Invitations in a share. /// </summary> /// <remarks> /// List invitations in a share /// </remarks> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='resourceGroupName'> /// The resource group name. /// </param> /// <param name='accountName'> /// The name of the share account. /// </param> /// <param name='shareName'> /// The name of the share. /// </param> /// <param name='skipToken'> /// The continuation token /// </param> public static IPage <Invitation> ListByShare(this IInvitationsOperations operations, string resourceGroupName, string accountName, string shareName, string skipToken = default(string)) { return(operations.ListByShareAsync(resourceGroupName, accountName, shareName, skipToken).GetAwaiter().GetResult()); }
/// <summary> /// Delete Invitation in a share. /// </summary> /// <remarks> /// Delete an invitation in a share /// </remarks> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='resourceGroupName'> /// The resource group name. /// </param> /// <param name='accountName'> /// The name of the share account. /// </param> /// <param name='shareName'> /// The name of the share. /// </param> /// <param name='invitationName'> /// The name of the invitation. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task DeleteAsync(this IInvitationsOperations operations, string resourceGroupName, string accountName, string shareName, string invitationName, CancellationToken cancellationToken = default(CancellationToken)) { (await operations.DeleteWithHttpMessagesAsync(resourceGroupName, accountName, shareName, invitationName, null, cancellationToken).ConfigureAwait(false)).Dispose(); }
/// <summary> /// Delete Invitation in a share. /// </summary> /// <remarks> /// Delete an invitation in a share /// </remarks> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='resourceGroupName'> /// The resource group name. /// </param> /// <param name='accountName'> /// The name of the share account. /// </param> /// <param name='shareName'> /// The name of the share. /// </param> /// <param name='invitationName'> /// The name of the invitation. /// </param> public static void Delete(this IInvitationsOperations operations, string resourceGroupName, string accountName, string shareName, string invitationName) { operations.DeleteAsync(resourceGroupName, accountName, shareName, invitationName).GetAwaiter().GetResult(); }