/// <summary> /// Gets a single tenant license based on its id. /// </summary> /// <remarks> /// Host only. Requires authentication. /// </remarks> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='tenantId'> /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task <LicenseDto> GetTenantLicenseByTenantidAsync(this IHostLicenses operations, int tenantId, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { using (var _result = await operations.GetTenantLicenseByTenantidWithHttpMessagesAsync(tenantId, null, cancellationToken).ConfigureAwait(false)) { return(_result.Body); } }
/// <summary> /// Gets a single tenant license based on its id. /// </summary> /// <remarks> /// Client Credentials Flow required permissions: Administration or /// Administration.Read. /// /// Host only. Requires authentication. /// </remarks> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='tenantId'> /// </param> /// <param name='expand'> /// Indicates the related entities to be represented inline. The maximum depth /// is 2. /// </param> /// <param name='select'> /// Limits the properties returned in the result. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task <LicenseDto> GetTenantLicenseByTenantidAsync(this IHostLicenses operations, int tenantId, string expand = default(string), string select = default(string), CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.GetTenantLicenseByTenantidWithHttpMessagesAsync(tenantId, expand, select, null, cancellationToken).ConfigureAwait(false)) { return(_result.Body); } }