UNPKG

@microsoft/msgraph-sdk-policies

Version:
59 lines 3.68 kB
import { type OwnerlessGroupPolicy } from '@microsoft/msgraph-sdk/models/index.js'; import { type BaseRequestBuilder, type RequestConfiguration, type RequestInformation, type RequestsMetadata } from '@microsoft/kiota-abstractions'; /** * Provides operations to manage the ownerlessGroupPolicy property of the microsoft.graph.policyRoot entity. */ export interface OwnerlessGroupPolicyRequestBuilder extends BaseRequestBuilder<OwnerlessGroupPolicyRequestBuilder> { /** * Read the properties of an ownerlessGroupPolicy object. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @returns {Promise<OwnerlessGroupPolicy>} * @throws {ODataError} error when the service returns a 4XX or 5XX status code * @see {@link https://learn.microsoft.com/graph/api/ownerlessgrouppolicy-get?view=graph-rest-1.0|Find more info here} */ get(requestConfiguration?: RequestConfiguration<OwnerlessGroupPolicyRequestBuilderGetQueryParameters> | undefined): Promise<OwnerlessGroupPolicy | undefined>; /** * Create or update the ownerlessGroupPolicy for the tenant. If the policy doesn't exist, it creates a new one; if the policy exists, it updates the existing policy. To disable the policy, set isEnabled to false. Setting isEnabled to false clears the values of all other policy parameters. * @param body The request body * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @returns {Promise<OwnerlessGroupPolicy>} * @throws {ODataError} error when the service returns a 4XX or 5XX status code * @see {@link https://learn.microsoft.com/graph/api/ownerlessgrouppolicy-upsert?view=graph-rest-1.0|Find more info here} */ patch(body: OwnerlessGroupPolicy, requestConfiguration?: RequestConfiguration<object> | undefined): Promise<OwnerlessGroupPolicy | undefined>; /** * Read the properties of an ownerlessGroupPolicy object. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @returns {RequestInformation} */ toGetRequestInformation(requestConfiguration?: RequestConfiguration<OwnerlessGroupPolicyRequestBuilderGetQueryParameters> | undefined): RequestInformation; /** * Create or update the ownerlessGroupPolicy for the tenant. If the policy doesn't exist, it creates a new one; if the policy exists, it updates the existing policy. To disable the policy, set isEnabled to false. Setting isEnabled to false clears the values of all other policy parameters. * @param body The request body * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @returns {RequestInformation} */ toPatchRequestInformation(body: OwnerlessGroupPolicy, requestConfiguration?: RequestConfiguration<object> | undefined): RequestInformation; } /** * Read the properties of an ownerlessGroupPolicy object. */ export interface OwnerlessGroupPolicyRequestBuilderGetQueryParameters { /** * Expand related entities */ expand?: string[]; /** * Select properties to be returned */ select?: string[]; } /** * Uri template for the request builder. */ export declare const OwnerlessGroupPolicyRequestBuilderUriTemplate = "{+baseurl}/policies/ownerlessGroupPolicy{?%24expand,%24select}"; /** * Metadata for all the requests in the request builder. */ export declare const OwnerlessGroupPolicyRequestBuilderRequestsMetadata: RequestsMetadata; //# sourceMappingURL=index.d.ts.map