@microsoft/msgraph-beta-sdk-devicemanagement
Version:
DeviceManagement fluent API for Microsoft Graph
99 lines • 5.3 kB
TypeScript
import { type DeviceHealthScriptPolicyState, type DeviceHealthScriptPolicyStateCollectionResponse } from '@microsoft/msgraph-beta-sdk/models/index.js';
import { type CountRequestBuilder } from './count/index.js';
import { type WithIdWithPolicyIdWithDeviceIdRequestBuilder } from './withIdWithPolicyIdWithDeviceId/index.js';
import { type BaseRequestBuilder, type KeysToExcludeForNavigationMetadata, type NavigationMetadata, type RequestConfiguration, type RequestInformation, type RequestsMetadata } from '@microsoft/kiota-abstractions';
/**
* Provides operations to manage the deviceHealthScriptStates property of the microsoft.graph.managedDevice entity.
*/
export interface DeviceHealthScriptStatesRequestBuilder extends BaseRequestBuilder<DeviceHealthScriptStatesRequestBuilder> {
/**
* Provides operations to count the resources in the collection.
*/
get count(): CountRequestBuilder;
/**
* Results of device health scripts that ran for this device. Default is empty list. This property is read-only.
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
* @returns {Promise<DeviceHealthScriptPolicyStateCollectionResponse>}
* @throws {ODataError} error when the service returns a 4XX or 5XX status code
*/
get(requestConfiguration?: RequestConfiguration<DeviceHealthScriptStatesRequestBuilderGetQueryParameters> | undefined): Promise<DeviceHealthScriptPolicyStateCollectionResponse | undefined>;
/**
* Create new navigation property to deviceHealthScriptStates for deviceManagement
* @param body Contains properties for policy run state of the device health script.
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
* @returns {Promise<DeviceHealthScriptPolicyState>}
* @throws {ODataError} error when the service returns a 4XX or 5XX status code
*/
post(body: DeviceHealthScriptPolicyState, requestConfiguration?: RequestConfiguration<object> | undefined): Promise<DeviceHealthScriptPolicyState | undefined>;
/**
* Results of device health scripts that ran for this device. Default is empty list. This property is read-only.
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
* @returns {RequestInformation}
*/
toGetRequestInformation(requestConfiguration?: RequestConfiguration<DeviceHealthScriptStatesRequestBuilderGetQueryParameters> | undefined): RequestInformation;
/**
* Create new navigation property to deviceHealthScriptStates for deviceManagement
* @param body Contains properties for policy run state of the device health script.
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
* @returns {RequestInformation}
*/
toPostRequestInformation(body: DeviceHealthScriptPolicyState, requestConfiguration?: RequestConfiguration<object> | undefined): RequestInformation;
/**
* Provides operations to manage the deviceHealthScriptStates property of the microsoft.graph.managedDevice entity.
* @param deviceId Property in multi-part unique identifier of deviceHealthScriptPolicyState
* @param id Property in multi-part unique identifier of deviceHealthScriptPolicyState
* @param policyId Property in multi-part unique identifier of deviceHealthScriptPolicyState
* @returns {WithIdWithPolicyIdWithDeviceIdRequestBuilder}
*/
withIdWithPolicyIdWithDeviceId(deviceId: string | undefined, id: string | undefined, policyId: string | undefined): WithIdWithPolicyIdWithDeviceIdRequestBuilder;
}
/**
* Results of device health scripts that ran for this device. Default is empty list. This property is read-only.
*/
export interface DeviceHealthScriptStatesRequestBuilderGetQueryParameters {
/**
* Include count of items
*/
count?: boolean;
/**
* Expand related entities
*/
expand?: string[];
/**
* Filter items by property values
*/
filter?: string;
/**
* Order items by property values
*/
orderby?: string[];
/**
* Search items by search phrases
*/
search?: string;
/**
* Select properties to be returned
*/
select?: string[];
/**
* Skip the first n items
*/
skip?: number;
/**
* Show only the first n items
*/
top?: number;
}
/**
* Uri template for the request builder.
*/
export declare const DeviceHealthScriptStatesRequestBuilderUriTemplate = "{+baseurl}/deviceManagement/comanagedDevices/{managedDevice%2Did}/deviceHealthScriptStates{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}";
/**
* Metadata for all the navigation properties in the request builder.
*/
export declare const DeviceHealthScriptStatesRequestBuilderNavigationMetadata: Record<Exclude<keyof DeviceHealthScriptStatesRequestBuilder, KeysToExcludeForNavigationMetadata>, NavigationMetadata>;
/**
* Metadata for all the requests in the request builder.
*/
export declare const DeviceHealthScriptStatesRequestBuilderRequestsMetadata: RequestsMetadata;
//# sourceMappingURL=index.d.ts.map