@microsoft/msgraph-beta-sdk-admin
Version:
Admin fluent API for Microsoft Graph
91 lines • 5.54 kB
TypeScript
import { type Policy } from '@microsoft/msgraph-beta-sdk/models/windowsUpdates/index.js';
import { type ApplicableContentRequestBuilder } from './applicableContent/index.js';
import { type ApprovalsRequestBuilder } from './approvals/index.js';
import { type RingsRequestBuilder } from './rings/index.js';
import { type BaseRequestBuilder, type KeysToExcludeForNavigationMetadata, type NavigationMetadata, type RequestConfiguration, type RequestInformation, type RequestsMetadata } from '@microsoft/kiota-abstractions';
/**
* Provides operations to manage the policies property of the microsoft.graph.adminWindowsUpdates entity.
*/
export interface PolicyItemRequestBuilder extends BaseRequestBuilder<PolicyItemRequestBuilder> {
/**
* Provides operations to manage the applicableContent property of the microsoft.graph.windowsUpdates.policy entity.
*/
get applicableContent(): ApplicableContentRequestBuilder;
/**
* Provides operations to manage the approvals property of the microsoft.graph.windowsUpdates.policy entity.
*/
get approvals(): ApprovalsRequestBuilder;
/**
* Provides operations to manage the rings property of the microsoft.graph.windowsUpdates.policy entity.
*/
get rings(): RingsRequestBuilder;
/**
* Delete a Windows update policy object. You can use this method with the following child object type: qualityUpdatePolicy.
* @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/windowsupdates-policy-delete?view=graph-rest-beta|Find more info here}
*/
delete(requestConfiguration?: RequestConfiguration<object> | undefined): Promise<void>;
/**
* Read the properties and relationships of a policy object. You can use this method with the following child object type: qualityUpdatePolicy.
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
* @returns {Promise<Policy>}
* @throws {ODataError} error when the service returns a 4XX or 5XX status code
* @see {@link https://learn.microsoft.com/graph/api/windowsupdates-policy-get?view=graph-rest-beta|Find more info here}
*/
get(requestConfiguration?: RequestConfiguration<PolicyItemRequestBuilderGetQueryParameters> | undefined): Promise<Policy | undefined>;
/**
* Update the properties of a policy object. You can use this method with the following child object type: qualityUpdatePolicy.
* @param body The request body
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
* @returns {Promise<Policy>}
* @throws {ODataError} error when the service returns a 4XX or 5XX status code
* @see {@link https://learn.microsoft.com/graph/api/windowsupdates-policy-update?view=graph-rest-beta|Find more info here}
*/
patch(body: Policy, requestConfiguration?: RequestConfiguration<object> | undefined): Promise<Policy | undefined>;
/**
* Delete a Windows update policy object. You can use this method with the following child object type: qualityUpdatePolicy.
* @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 a policy object. You can use this method with the following child object type: qualityUpdatePolicy.
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
* @returns {RequestInformation}
*/
toGetRequestInformation(requestConfiguration?: RequestConfiguration<PolicyItemRequestBuilderGetQueryParameters> | undefined): RequestInformation;
/**
* Update the properties of a policy object. You can use this method with the following child object type: qualityUpdatePolicy.
* @param body The request body
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
* @returns {RequestInformation}
*/
toPatchRequestInformation(body: Policy, requestConfiguration?: RequestConfiguration<object> | undefined): RequestInformation;
}
/**
* Read the properties and relationships of a policy object. You can use this method with the following child object type: qualityUpdatePolicy.
*/
export interface PolicyItemRequestBuilderGetQueryParameters {
/**
* Expand related entities
*/
expand?: string[];
/**
* Select properties to be returned
*/
select?: string[];
}
/**
* Uri template for the request builder.
*/
export declare const PolicyItemRequestBuilderUriTemplate = "{+baseurl}/admin/windows/updates/policies/{policy%2Did}{?%24expand,%24select}";
/**
* Metadata for all the navigation properties in the request builder.
*/
export declare const PolicyItemRequestBuilderNavigationMetadata: Record<Exclude<keyof PolicyItemRequestBuilder, KeysToExcludeForNavigationMetadata>, NavigationMetadata>;
/**
* Metadata for all the requests in the request builder.
*/
export declare const PolicyItemRequestBuilderRequestsMetadata: RequestsMetadata;
//# sourceMappingURL=index.d.ts.map