UNPKG

@microsoft/msgraph-beta-sdk-groups

Version:
42 lines 2.77 kB
import { type User } 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 owners property of the microsoft.graph.team entity. */ export interface OwnersWithUserPrincipalNameRequestBuilder extends BaseRequestBuilder<OwnersWithUserPrincipalNameRequestBuilder> { /** * The list of this team's owners. Currently, when creating a team using application permissions, exactly one owner must be specified. When using user-delegated permissions, no owner can be specified (the current user is the owner). The owner must be specified as an object ID (GUID), not a UPN. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @returns {Promise<User>} * @throws {ODataError} error when the service returns a 4XX or 5XX status code */ get(requestConfiguration?: RequestConfiguration<OwnersWithUserPrincipalNameRequestBuilderGetQueryParameters> | undefined): Promise<User | undefined>; /** * The list of this team's owners. Currently, when creating a team using application permissions, exactly one owner must be specified. When using user-delegated permissions, no owner can be specified (the current user is the owner). The owner must be specified as an object ID (GUID), not a UPN. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @returns {RequestInformation} */ toGetRequestInformation(requestConfiguration?: RequestConfiguration<OwnersWithUserPrincipalNameRequestBuilderGetQueryParameters> | undefined): RequestInformation; } /** * The list of this team's owners. Currently, when creating a team using application permissions, exactly one owner must be specified. When using user-delegated permissions, no owner can be specified (the current user is the owner). The owner must be specified as an object ID (GUID), not a UPN. */ export interface OwnersWithUserPrincipalNameRequestBuilderGetQueryParameters { /** * Expand related entities */ expand?: string[]; /** * Select properties to be returned */ select?: string[]; } /** * Uri template for the request builder. */ export declare const OwnersWithUserPrincipalNameRequestBuilderUriTemplate = "{+baseurl}/groups/{group%2Did}/team/owners(userPrincipalName='{userPrincipalName}'){?%24expand,%24select}"; /** * Metadata for all the requests in the request builder. */ export declare const OwnersWithUserPrincipalNameRequestBuilderRequestsMetadata: RequestsMetadata; //# sourceMappingURL=index.d.ts.map