@microsoft/msgraph-beta-sdk-devicemanagement
Version:
DeviceManagement fluent API for Microsoft Graph
69 lines • 4.3 kB
TypeScript
import { type DeviceHealthScriptPolicyState } from '@microsoft/msgraph-beta-sdk/models/index.js';
import { type BaseRequestBuilder, 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 WithIdWithPolicyIdWithDeviceIdRequestBuilder extends BaseRequestBuilder<WithIdWithPolicyIdWithDeviceIdRequestBuilder> {
/**
* Delete navigation property deviceHealthScriptStates for deviceManagement
* @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
*/
delete(requestConfiguration?: RequestConfiguration<object> | undefined): Promise<void>;
/**
* 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<DeviceHealthScriptPolicyState>}
* @throws {ODataError} error when the service returns a 4XX or 5XX status code
*/
get(requestConfiguration?: RequestConfiguration<WithIdWithPolicyIdWithDeviceIdRequestBuilderGetQueryParameters> | undefined): Promise<DeviceHealthScriptPolicyState | undefined>;
/**
* Update the navigation property deviceHealthScriptStates in 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
*/
patch(body: DeviceHealthScriptPolicyState, requestConfiguration?: RequestConfiguration<object> | undefined): Promise<DeviceHealthScriptPolicyState | undefined>;
/**
* Delete navigation property deviceHealthScriptStates for deviceManagement
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
* @returns {RequestInformation}
*/
toDeleteRequestInformation(requestConfiguration?: RequestConfiguration<object> | undefined): RequestInformation;
/**
* 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<WithIdWithPolicyIdWithDeviceIdRequestBuilderGetQueryParameters> | undefined): RequestInformation;
/**
* Update the navigation property deviceHealthScriptStates in 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}
*/
toPatchRequestInformation(body: DeviceHealthScriptPolicyState, requestConfiguration?: RequestConfiguration<object> | undefined): RequestInformation;
}
/**
* Results of device health scripts that ran for this device. Default is empty list. This property is read-only.
*/
export interface WithIdWithPolicyIdWithDeviceIdRequestBuilderGetQueryParameters {
/**
* Expand related entities
*/
expand?: string[];
/**
* Select properties to be returned
*/
select?: string[];
}
/**
* Uri template for the request builder.
*/
export declare const WithIdWithPolicyIdWithDeviceIdRequestBuilderUriTemplate = "{+baseurl}/deviceManagement/comanagedDevices/{managedDevice%2Did}/deviceHealthScriptStates/id='{id}',policyId='{policyId}',deviceId='{deviceId}'{?%24expand,%24select}";
/**
* Metadata for all the requests in the request builder.
*/
export declare const WithIdWithPolicyIdWithDeviceIdRequestBuilderRequestsMetadata: RequestsMetadata;
//# sourceMappingURL=index.d.ts.map