@microsoft/msgraph-beta-sdk-admin
Version:
Admin fluent API for Microsoft Graph
43 lines • 2.51 kB
TypeScript
import { type UsageRight } from '@microsoft/msgraph-beta-sdk/models/cloudLicensing/index.js';
import { type BaseRequestBuilder, type RequestConfiguration, type RequestInformation, type RequestsMetadata } from '@microsoft/kiota-abstractions';
/**
* Provides operations to manage the usageRight property of the microsoft.graph.cloudLicensing.assignmentError entity.
*/
export interface UsageRightRequestBuilder extends BaseRequestBuilder<UsageRightRequestBuilder> {
/**
* Get a usageRight object affected by an assignmentError. A usageRight object is returned only if a preexisting one is in effect and can't be updated due to this assignmentError.
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
* @returns {Promise<UsageRight>}
* @throws {ODataError} error when the service returns a 4XX or 5XX status code
* @see {@link https://learn.microsoft.com/graph/api/cloudlicensing-assignmenterror-get-usageright?view=graph-rest-beta|Find more info here}
*/
get(requestConfiguration?: RequestConfiguration<UsageRightRequestBuilderGetQueryParameters> | undefined): Promise<UsageRight | undefined>;
/**
* Get a usageRight object affected by an assignmentError. A usageRight object is returned only if a preexisting one is in effect and can't be updated due to this assignmentError.
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
* @returns {RequestInformation}
*/
toGetRequestInformation(requestConfiguration?: RequestConfiguration<UsageRightRequestBuilderGetQueryParameters> | undefined): RequestInformation;
}
/**
* Get a usageRight object affected by an assignmentError. A usageRight object is returned only if a preexisting one is in effect and can't be updated due to this assignmentError.
*/
export interface UsageRightRequestBuilderGetQueryParameters {
/**
* Expand related entities
*/
expand?: string[];
/**
* Select properties to be returned
*/
select?: string[];
}
/**
* Uri template for the request builder.
*/
export declare const UsageRightRequestBuilderUriTemplate = "{+baseurl}/admin/cloudLicensing/assignmentErrors/{assignmentError%2Did}/usageRight{?%24expand,%24select}";
/**
* Metadata for all the requests in the request builder.
*/
export declare const UsageRightRequestBuilderRequestsMetadata: RequestsMetadata;
//# sourceMappingURL=index.d.ts.map