/// <summary> /// Lists Resource Group Memberships. /// </summary> /// <param name="license">List resource group memberships for a license.</param> /// <param name="person">List resource group memberships for a person.</param> /// <param name="personOrganization">List resource group memberships for an organization.</param> /// <param name="status">Limit resource group memberships to a specific status.</param> /// <param name="max">Limit the maximum number of items in the response.</param> /// <param name="cancellationToken"><see cref="CancellationToken"/> to be used for cancellation.</param> /// <returns><see cref="TeamsResult{TTeamsObject}"/> to get result.</returns> public Task <TeamsListResult <ResourceGroupMembershipList> > ListResourceGroupMembershipsAsync(License license = null, Person person = null, Organization personOrganization = null, ResourceGroupMembershipStatus status = null, int?max = null, CancellationToken?cancellationToken = null) { return(ListResourceGroupMembershipsAsync(license?.Id, person?.Id, personOrganization?.Id, status, max, cancellationToken)); }
/// <summary> /// Updates Resource Group membership. /// </summary> /// <param name="resourceGroupMembership"><see cref="ResourceGroupMembership"/> to be updated.</param> /// <param name="resourceGroup"><see cref="ResourceGroup"/> to which this resource group membership belongs.</param> /// <param name="license"><see cref="License"/> for the Hybrid Services licensed feature.</param> /// <param name="person"><see cref="Person"/> to which this resource group membership is associated.</param> /// <param name="personOrganization"><see cref="Organization"/> for the person.</param> /// <param name="status">The activation status of the resource group membership.</param> /// <param name="cancellationToken"><see cref="CancellationToken"/> to be used for cancellation.</param> /// <returns><see cref="TeamsResult{TTeamsObject}"/> to get result.</returns> public Task <TeamsResult <ResourceGroupMembership> > UpdateResourceGroupMembershipAsync(ResourceGroupMembership resourceGroupMembership, ResourceGroup resourceGroup, License license, Person person, Organization personOrganization, ResourceGroupMembershipStatus status = null, CancellationToken?cancellationToken = null) { return(UpdateResourceGroupMembershipAsync(resourceGroupMembership.Id, resourceGroup.Id, license.Id, person.Id, personOrganization.Id, status, cancellationToken)); }
/// <summary> /// Gets license detail. /// </summary> /// <param name="license"><see cref="License"/> that the detail info is gotten.</param> /// <param name="cancellationToken"><see cref="CancellationToken"/> to be used for cancellation.</param> /// <returns><see cref="TeamsResult{TTeamsObject}"/> to get result.</returns> public Task <TeamsResult <License> > GetLicenseAsync(License license, CancellationToken?cancellationToken = null) { return(GetLicenseAsync(license.Id, cancellationToken)); }