UNPKG

@microsoft/msgraph-beta-sdk-admin

Version:
85 lines 4.69 kB
import { type Assignment } from '@microsoft/msgraph-beta-sdk/models/cloudLicensing/index.js'; import { type AllotmentRequestBuilder } from './allotment/index.js'; import { type AssignedToRequestBuilder } from './assignedTo/index.js'; import { type BaseRequestBuilder, type KeysToExcludeForNavigationMetadata, type NavigationMetadata, type RequestConfiguration, type RequestInformation, type RequestsMetadata } from '@microsoft/kiota-abstractions'; /** * Provides operations to manage the assignments property of the microsoft.graph.cloudLicensing.adminCloudLicensing entity. */ export interface AssignmentItemRequestBuilder extends BaseRequestBuilder<AssignmentItemRequestBuilder> { /** * Provides operations to manage the allotment property of the microsoft.graph.cloudLicensing.assignment entity. */ get allotment(): AllotmentRequestBuilder; /** * Provides operations to manage the assignedTo property of the microsoft.graph.cloudLicensing.assignment entity. */ get assignedTo(): AssignedToRequestBuilder; /** * Delete an assignment object. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @throws {ODataError} error when the service returns a 4XX or 5XX status code * @see {@link https://learn.microsoft.com/graph/api/cloudlicensing-assignment-delete?view=graph-rest-beta|Find more info here} */ delete(requestConfiguration?: RequestConfiguration<object> | undefined): Promise<void>; /** * Read the properties and relationships of an assignment object. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @returns {Promise<Assignment>} * @throws {ODataError} error when the service returns a 4XX or 5XX status code * @see {@link https://learn.microsoft.com/graph/api/cloudlicensing-assignment-get?view=graph-rest-beta|Find more info here} */ get(requestConfiguration?: RequestConfiguration<AssignmentItemRequestBuilderGetQueryParameters> | undefined): Promise<Assignment | undefined>; /** * Update the navigation property assignments in admin * @param body The request body * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @returns {Promise<Assignment>} * @throws {ODataError} error when the service returns a 4XX or 5XX status code */ patch(body: Assignment, requestConfiguration?: RequestConfiguration<object> | undefined): Promise<Assignment | undefined>; /** * Delete an assignment object. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @returns {RequestInformation} */ toDeleteRequestInformation(requestConfiguration?: RequestConfiguration<object> | undefined): RequestInformation; /** * Read the properties and relationships of an assignment object. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @returns {RequestInformation} */ toGetRequestInformation(requestConfiguration?: RequestConfiguration<AssignmentItemRequestBuilderGetQueryParameters> | undefined): RequestInformation; /** * Update the navigation property assignments in admin * @param body The request body * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @returns {RequestInformation} */ toPatchRequestInformation(body: Assignment, requestConfiguration?: RequestConfiguration<object> | undefined): RequestInformation; } /** * Read the properties and relationships of an assignment object. */ export interface AssignmentItemRequestBuilderGetQueryParameters { /** * Expand related entities */ expand?: string[]; /** * Select properties to be returned */ select?: string[]; } /** * Uri template for the request builder. */ export declare const AssignmentItemRequestBuilderUriTemplate = "{+baseurl}/admin/cloudLicensing/assignments/{assignment%2Did}{?%24expand,%24select}"; /** * Metadata for all the navigation properties in the request builder. */ export declare const AssignmentItemRequestBuilderNavigationMetadata: Record<Exclude<keyof AssignmentItemRequestBuilder, KeysToExcludeForNavigationMetadata>, NavigationMetadata>; /** * Metadata for all the requests in the request builder. */ export declare const AssignmentItemRequestBuilderRequestsMetadata: RequestsMetadata; //# sourceMappingURL=index.d.ts.map