/// <summary> /// Get a partner registration. /// </summary> /// <remarks> /// Gets a partner registration with the specified parameters. /// </remarks> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='resourceGroupName'> /// The name of the resource group within the user's subscription. /// </param> /// <param name='partnerRegistrationName'> /// Name of the partner registration. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task <PartnerRegistration> GetAsync(this IPartnerRegistrationsOperations operations, string resourceGroupName, string partnerRegistrationName, CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.GetWithHttpMessagesAsync(resourceGroupName, partnerRegistrationName, null, cancellationToken).ConfigureAwait(false)) { return(_result.Body); } }
/// <summary> /// List all available partners registrations. /// </summary> /// <remarks> /// List all partners registrations. /// </remarks> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task <IEnumerable <PartnerRegistration> > ListAsync(this IPartnerRegistrationsOperations operations, CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.ListWithHttpMessagesAsync(null, cancellationToken).ConfigureAwait(false)) { return(_result.Body); } }
/// <summary> /// Create a partner registration. /// </summary> /// <remarks> /// Creates a new partner registration with the specified parameters. /// </remarks> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='resourceGroupName'> /// The name of the resource group within the user's subscription. /// </param> /// <param name='partnerRegistrationName'> /// Name of the partner registration. /// </param> /// <param name='partnerRegistrationInfo'> /// PartnerRegistration information. /// </param> public static PartnerRegistration CreateOrUpdate(this IPartnerRegistrationsOperations operations, string resourceGroupName, string partnerRegistrationName, PartnerRegistration partnerRegistrationInfo) { return(operations.CreateOrUpdateAsync(resourceGroupName, partnerRegistrationName, partnerRegistrationInfo).GetAwaiter().GetResult()); }
/// <summary> /// List partner registrations under a resource group. /// </summary> /// <remarks> /// List all the partner registrations under a resource group. /// </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 <PartnerRegistration> > ListByResourceGroupNextAsync(this IPartnerRegistrationsOperations operations, string nextPageLink, CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.ListByResourceGroupNextWithHttpMessagesAsync(nextPageLink, null, cancellationToken).ConfigureAwait(false)) { return(_result.Body); } }
/// <summary> /// List partner registrations under a resource group. /// </summary> /// <remarks> /// List all the partner registrations under a resource group. /// </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 <PartnerRegistration> ListByResourceGroupNext(this IPartnerRegistrationsOperations operations, string nextPageLink) { return(operations.ListByResourceGroupNextAsync(nextPageLink).GetAwaiter().GetResult()); }
/// <summary> /// Get a partner registration. /// </summary> /// <remarks> /// Gets a partner registration with the specified parameters. /// </remarks> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='resourceGroupName'> /// The name of the resource group within the user's subscription. /// </param> /// <param name='partnerRegistrationName'> /// Name of the partner registration. /// </param> public static PartnerRegistration Get(this IPartnerRegistrationsOperations operations, string resourceGroupName, string partnerRegistrationName) { return(operations.GetAsync(resourceGroupName, partnerRegistrationName).GetAwaiter().GetResult()); }
/// <summary> /// List partner registrations under a resource group. /// </summary> /// <remarks> /// List all the partner registrations under a resource group. /// </remarks> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='resourceGroupName'> /// The name of the resource group within the user's subscription. /// </param> /// <param name='filter'> /// The query used to filter the search results using OData syntax. Filtering /// is permitted on the 'name' property only and with limited number of OData /// operations. These operations are: the 'contains' function as well as the /// following logical operations: not, and, or, eq (for equal), and ne (for not /// equal). No arithmetic operations are supported. The following is a valid /// filter example: $filter=contains(namE, 'PATTERN') and name ne 'PATTERN-1'. /// The following is not a valid filter example: $filter=location eq 'westus'. /// </param> /// <param name='top'> /// The number of results to return per page for the list operation. Valid /// range for top parameter is 1 to 100. If not specified, the default number /// of results to be returned is 20 items per page. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task <IPage <PartnerRegistration> > ListByResourceGroupAsync(this IPartnerRegistrationsOperations operations, string resourceGroupName, string filter = default(string), int?top = default(int?), CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.ListByResourceGroupWithHttpMessagesAsync(resourceGroupName, filter, top, null, cancellationToken).ConfigureAwait(false)) { return(_result.Body); } }
/// <summary> /// List all available partners registrations. /// </summary> /// <remarks> /// List all partners registrations. /// </remarks> /// <param name='operations'> /// The operations group for this extension method. /// </param> public static IEnumerable <PartnerRegistration> List(this IPartnerRegistrationsOperations operations) { return(operations.ListAsync().GetAwaiter().GetResult()); }
/// <summary> /// List partner registrations under a resource group. /// </summary> /// <remarks> /// List all the partner registrations under a resource group. /// </remarks> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='resourceGroupName'> /// The name of the resource group within the user's subscription. /// </param> /// <param name='filter'> /// The query used to filter the search results using OData syntax. Filtering /// is permitted on the 'name' property only and with limited number of OData /// operations. These operations are: the 'contains' function as well as the /// following logical operations: not, and, or, eq (for equal), and ne (for not /// equal). No arithmetic operations are supported. The following is a valid /// filter example: $filter=contains(namE, 'PATTERN') and name ne 'PATTERN-1'. /// The following is not a valid filter example: $filter=location eq 'westus'. /// </param> /// <param name='top'> /// The number of results to return per page for the list operation. Valid /// range for top parameter is 1 to 100. If not specified, the default number /// of results to be returned is 20 items per page. /// </param> public static IPage <PartnerRegistration> ListByResourceGroup(this IPartnerRegistrationsOperations operations, string resourceGroupName, string filter = default(string), int?top = default(int?)) { return(operations.ListByResourceGroupAsync(resourceGroupName, filter, top).GetAwaiter().GetResult()); }
/// <summary> /// List partner registrations under an Azure subscription. /// </summary> /// <remarks> /// List all the partner registrations under an Azure subscription. /// </remarks> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='filter'> /// The query used to filter the search results using OData syntax. Filtering /// is permitted on the 'name' property only and with limited number of OData /// operations. These operations are: the 'contains' function as well as the /// following logical operations: not, and, or, eq (for equal), and ne (for not /// equal). No arithmetic operations are supported. The following is a valid /// filter example: $filter=contains(namE, 'PATTERN') and name ne 'PATTERN-1'. /// The following is not a valid filter example: $filter=location eq 'westus'. /// </param> /// <param name='top'> /// The number of results to return per page for the list operation. Valid /// range for top parameter is 1 to 100. If not specified, the default number /// of results to be returned is 20 items per page. /// </param> public static IPage <PartnerRegistration> ListBySubscription(this IPartnerRegistrationsOperations operations, string filter = default(string), int?top = default(int?)) { return(operations.ListBySubscriptionAsync(filter, top).GetAwaiter().GetResult()); }
/// <summary> /// Update a partner registration. /// </summary> /// <remarks> /// Updates a partner registration with the specified parameters. /// </remarks> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='resourceGroupName'> /// The name of the resource group within the user's subscription. /// </param> /// <param name='partnerRegistrationName'> /// Name of the partner registration. /// </param> /// <param name='partnerRegistrationUpdateParameters'> /// Partner registration update information. /// </param> public static PartnerRegistration Update(this IPartnerRegistrationsOperations operations, string resourceGroupName, string partnerRegistrationName, PartnerRegistrationUpdateParameters partnerRegistrationUpdateParameters) { return(operations.UpdateAsync(resourceGroupName, partnerRegistrationName, partnerRegistrationUpdateParameters).GetAwaiter().GetResult()); }
/// <summary> /// Delete a partner registration. /// </summary> /// <remarks> /// Deletes a partner registration with the specified parameters. /// </remarks> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='resourceGroupName'> /// The name of the resource group within the user's subscription. /// </param> /// <param name='partnerRegistrationName'> /// Name of the partner registration. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task DeleteAsync(this IPartnerRegistrationsOperations operations, string resourceGroupName, string partnerRegistrationName, CancellationToken cancellationToken = default(CancellationToken)) { (await operations.DeleteWithHttpMessagesAsync(resourceGroupName, partnerRegistrationName, null, cancellationToken).ConfigureAwait(false)).Dispose(); }
/// <summary> /// Delete a partner registration. /// </summary> /// <remarks> /// Deletes a partner registration with the specified parameters. /// </remarks> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='resourceGroupName'> /// The name of the resource group within the user's subscription. /// </param> /// <param name='partnerRegistrationName'> /// Name of the partner registration. /// </param> public static void Delete(this IPartnerRegistrationsOperations operations, string resourceGroupName, string partnerRegistrationName) { operations.DeleteAsync(resourceGroupName, partnerRegistrationName).GetAwaiter().GetResult(); }