UNPKG

@microsoft/msgraph-beta-sdk-applications

Version:
84 lines 5.58 kB
import { type BaseCollectionPaginationCountResponse } from '@microsoft/msgraph-beta-sdk/models/index.js'; import { type AdditionalDataHolder, type BackedModel, type BaseRequestBuilder, type Parsable, type ParseNode, type RequestConfiguration, type RequestInformation, type RequestsMetadata, type SerializationWriter } from '@microsoft/kiota-abstractions'; /** * Creates a new instance of the appropriate class based on discriminator value * @param parseNode The parse node to use to read the discriminator value and create the object * @returns {GetMemberGroupsPostRequestBody} */ export declare function createGetMemberGroupsPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined): ((instance?: Parsable) => Record<string, (node: ParseNode) => void>); /** * Creates a new instance of the appropriate class based on discriminator value * @param parseNode The parse node to use to read the discriminator value and create the object * @returns {GetMemberGroupsPostResponse} */ export declare function createGetMemberGroupsPostResponseFromDiscriminatorValue(parseNode: ParseNode | undefined): ((instance?: Parsable) => Record<string, (node: ParseNode) => void>); /** * The deserialization information for the current model * @returns {Record<string, (node: ParseNode) => void>} */ export declare function deserializeIntoGetMemberGroupsPostRequestBody(getMemberGroupsPostRequestBody?: Partial<GetMemberGroupsPostRequestBody> | undefined): Record<string, (node: ParseNode) => void>; /** * The deserialization information for the current model * @returns {Record<string, (node: ParseNode) => void>} */ export declare function deserializeIntoGetMemberGroupsPostResponse(getMemberGroupsPostResponse?: Partial<GetMemberGroupsPostResponse> | undefined): Record<string, (node: ParseNode) => void>; export interface GetMemberGroupsPostRequestBody extends AdditionalDataHolder, BackedModel, Parsable { /** * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. */ additionalData?: Record<string, unknown>; /** * Stores model information. */ backingStoreEnabled?: boolean | null; /** * The securityEnabledOnly property */ securityEnabledOnly?: boolean | null; } export interface GetMemberGroupsPostResponse extends BaseCollectionPaginationCountResponse, Parsable { /** * The value property */ value?: string[] | null; } /** * Provides operations to call the getMemberGroups method. */ export interface GetMemberGroupsRequestBuilder extends BaseRequestBuilder<GetMemberGroupsRequestBuilder> { /** * Return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. This API returns up to 11,000 group IDs. If more than 11,000 results are available, it returns a 400 Bad Request error with the DirectoryResultSizeLimitExceeded error code. If you get the DirectoryResultSizeLimitExceeded error code, use the List group transitive memberOf API instead. * @param body The request body * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @returns {Promise<GetMemberGroupsPostResponse>} * @throws {ODataError} error when the service returns a 4XX or 5XX status code * @see {@link https://learn.microsoft.com/graph/api/directoryobject-getmembergroups?view=graph-rest-beta|Find more info here} */ post(body: GetMemberGroupsPostRequestBody, requestConfiguration?: RequestConfiguration<object> | undefined): Promise<GetMemberGroupsPostResponse | undefined>; /** * Return all the group IDs for the groups that the specified user, group, service principal, organizational contact, device, or directory object is a member of. This function is transitive. This API returns up to 11,000 group IDs. If more than 11,000 results are available, it returns a 400 Bad Request error with the DirectoryResultSizeLimitExceeded error code. If you get the DirectoryResultSizeLimitExceeded error code, use the List group transitive memberOf API instead. * @param body The request body * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @returns {RequestInformation} */ toPostRequestInformation(body: GetMemberGroupsPostRequestBody, requestConfiguration?: RequestConfiguration<object> | undefined): RequestInformation; } /** * Serializes information the current object * @param writer Serialization writer to use to serialize this model */ export declare function serializeGetMemberGroupsPostRequestBody(writer: SerializationWriter, getMemberGroupsPostRequestBody?: Partial<GetMemberGroupsPostRequestBody> | undefined | null): void; /** * Serializes information the current object * @param writer Serialization writer to use to serialize this model */ export declare function serializeGetMemberGroupsPostResponse(writer: SerializationWriter, getMemberGroupsPostResponse?: Partial<GetMemberGroupsPostResponse> | undefined | null): void; /** * Uri template for the request builder. */ export declare const GetMemberGroupsRequestBuilderUriTemplate = "{+baseurl}/applications/{application%2Did}/getMemberGroups"; /** * Metadata for all the requests in the request builder. */ export declare const GetMemberGroupsRequestBuilderRequestsMetadata: RequestsMetadata; //# sourceMappingURL=index.d.ts.map