@microsoft/msgraph-beta-sdk-devices
Version:
Devices fluent API for Microsoft Graph
141 lines • 7.75 kB
TypeScript
import { type Device } from '@microsoft/msgraph-beta-sdk/models/index.js';
import { type CheckMemberGroupsRequestBuilder } from './checkMemberGroups/index.js';
import { type CheckMemberObjectsRequestBuilder } from './checkMemberObjects/index.js';
import { type CommandsRequestBuilder } from './commands/index.js';
import { type DeviceTemplateRequestBuilder } from './deviceTemplate/index.js';
import { type ExtensionsRequestBuilder } from './extensions/index.js';
import { type GetMemberGroupsRequestBuilder } from './getMemberGroups/index.js';
import { type GetMemberObjectsRequestBuilder } from './getMemberObjects/index.js';
import { type MemberOfRequestBuilder } from './memberOf/index.js';
import { type RegisteredOwnersRequestBuilder } from './registeredOwners/index.js';
import { type RegisteredUsersRequestBuilder } from './registeredUsers/index.js';
import { type RestoreRequestBuilder } from './restore/index.js';
import { type TransitiveMemberOfRequestBuilder } from './transitiveMemberOf/index.js';
import { type UsageRightsRequestBuilder } from './usageRights/index.js';
import { type BaseRequestBuilder, type KeysToExcludeForNavigationMetadata, type NavigationMetadata, type RequestConfiguration, type RequestInformation, type RequestsMetadata } from '@microsoft/kiota-abstractions';
/**
* Provides operations to manage the collection of device entities.
*/
export interface DeviceItemRequestBuilder extends BaseRequestBuilder<DeviceItemRequestBuilder> {
/**
* Provides operations to call the checkMemberGroups method.
*/
get checkMemberGroups(): CheckMemberGroupsRequestBuilder;
/**
* Provides operations to call the checkMemberObjects method.
*/
get checkMemberObjects(): CheckMemberObjectsRequestBuilder;
/**
* Provides operations to manage the commands property of the microsoft.graph.device entity.
*/
get commands(): CommandsRequestBuilder;
/**
* Provides operations to manage the deviceTemplate property of the microsoft.graph.device entity.
*/
get deviceTemplate(): DeviceTemplateRequestBuilder;
/**
* Provides operations to manage the extensions property of the microsoft.graph.device entity.
*/
get extensions(): ExtensionsRequestBuilder;
/**
* Provides operations to call the getMemberGroups method.
*/
get getMemberGroups(): GetMemberGroupsRequestBuilder;
/**
* Provides operations to call the getMemberObjects method.
*/
get getMemberObjects(): GetMemberObjectsRequestBuilder;
/**
* Provides operations to manage the memberOf property of the microsoft.graph.device entity.
*/
get memberOf(): MemberOfRequestBuilder;
/**
* Provides operations to manage the registeredOwners property of the microsoft.graph.device entity.
*/
get registeredOwners(): RegisteredOwnersRequestBuilder;
/**
* Provides operations to manage the registeredUsers property of the microsoft.graph.device entity.
*/
get registeredUsers(): RegisteredUsersRequestBuilder;
/**
* Provides operations to call the restore method.
*/
get restore(): RestoreRequestBuilder;
/**
* Provides operations to manage the transitiveMemberOf property of the microsoft.graph.device entity.
*/
get transitiveMemberOf(): TransitiveMemberOfRequestBuilder;
/**
* Provides operations to manage the usageRights property of the microsoft.graph.device entity.
*/
get usageRights(): UsageRightsRequestBuilder;
/**
* Delete a registered device.
* @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/device-delete?view=graph-rest-beta|Find more info here}
*/
delete(requestConfiguration?: RequestConfiguration<object> | undefined): Promise<void>;
/**
* Get the properties and relationships of a device object. Since the device resource supports extensions, you can also use the GET operation to get custom properties and extension data in a device instance.
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
* @returns {Promise<Device>}
* @throws {ODataError} error when the service returns a 4XX or 5XX status code
* @see {@link https://learn.microsoft.com/graph/api/device-get?view=graph-rest-beta|Find more info here}
*/
get(requestConfiguration?: RequestConfiguration<DeviceItemRequestBuilderGetQueryParameters> | undefined): Promise<Device | undefined>;
/**
* Update the properties of a device. Only certain properties of a device can be updated through approved Mobile Device Management (MDM) apps.
* @param body The request body
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
* @returns {Promise<Device>}
* @throws {ODataError} error when the service returns a 4XX or 5XX status code
* @see {@link https://learn.microsoft.com/graph/api/device-update?view=graph-rest-beta|Find more info here}
*/
patch(body: Device, requestConfiguration?: RequestConfiguration<object> | undefined): Promise<Device | undefined>;
/**
* Delete a registered device.
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
* @returns {RequestInformation}
*/
toDeleteRequestInformation(requestConfiguration?: RequestConfiguration<object> | undefined): RequestInformation;
/**
* Get the properties and relationships of a device object. Since the device resource supports extensions, you can also use the GET operation to get custom properties and extension data in a device instance.
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
* @returns {RequestInformation}
*/
toGetRequestInformation(requestConfiguration?: RequestConfiguration<DeviceItemRequestBuilderGetQueryParameters> | undefined): RequestInformation;
/**
* Update the properties of a device. Only certain properties of a device can be updated through approved Mobile Device Management (MDM) apps.
* @param body The request body
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
* @returns {RequestInformation}
*/
toPatchRequestInformation(body: Device, requestConfiguration?: RequestConfiguration<object> | undefined): RequestInformation;
}
/**
* Get the properties and relationships of a device object. Since the device resource supports extensions, you can also use the GET operation to get custom properties and extension data in a device instance.
*/
export interface DeviceItemRequestBuilderGetQueryParameters {
/**
* Expand related entities
*/
expand?: string[];
/**
* Select properties to be returned
*/
select?: string[];
}
/**
* Uri template for the request builder.
*/
export declare const DeviceItemRequestBuilderUriTemplate = "{+baseurl}/devices/{device%2Did}{?%24expand,%24select}";
/**
* Metadata for all the navigation properties in the request builder.
*/
export declare const DeviceItemRequestBuilderNavigationMetadata: Record<Exclude<keyof DeviceItemRequestBuilder, KeysToExcludeForNavigationMetadata>, NavigationMetadata>;
/**
* Metadata for all the requests in the request builder.
*/
export declare const DeviceItemRequestBuilderRequestsMetadata: RequestsMetadata;
//# sourceMappingURL=index.d.ts.map