UNPKG

@microsoft/msgraph-beta-sdk-teams

Version:
56 lines 3.32 kB
import { type BaseRequestBuilder, type RequestConfiguration, type RequestInformation, type RequestsMetadata } from '@microsoft/kiota-abstractions'; /** * Provides operations to manage the media for the team entity. */ export interface ContentRequestBuilder extends BaseRequestBuilder<ContentRequestBuilder> { /** * The team photo. * @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>; /** * The team photo. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @returns {Promise<ArrayBuffer>} * @throws {ODataError} error when the service returns a 4XX or 5XX status code */ get(requestConfiguration?: RequestConfiguration<object> | undefined): Promise<ArrayBuffer | undefined>; /** * Update the photo for the specified contact, group, team, or user in a tenant. The size of the photo you can update to is limited to 4 MB. You can use either PATCH or PUT for this operation. * @param body Binary request body * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @returns {Promise<ArrayBuffer>} * @throws {ODataError} error when the service returns a 4XX or 5XX status code * @see {@link https://learn.microsoft.com/graph/api/profilephoto-update?view=graph-rest-beta|Find more info here} */ put(body: ArrayBuffer | undefined, requestConfiguration?: RequestConfiguration<object> | undefined): Promise<ArrayBuffer | undefined>; /** * The team photo. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @returns {RequestInformation} */ toDeleteRequestInformation(requestConfiguration?: RequestConfiguration<object> | undefined): RequestInformation; /** * The team photo. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @returns {RequestInformation} */ toGetRequestInformation(requestConfiguration?: RequestConfiguration<object> | undefined): RequestInformation; /** * Update the photo for the specified contact, group, team, or user in a tenant. The size of the photo you can update to is limited to 4 MB. You can use either PATCH or PUT for this operation. * @param body Binary request body * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @returns {RequestInformation} */ toPutRequestInformation(body: ArrayBuffer | undefined, requestConfiguration?: RequestConfiguration<object> | undefined): RequestInformation; } /** * Uri template for the request builder. */ export declare const ContentRequestBuilderUriTemplate = "{+baseurl}/teams/{team%2Did}/photo/$value"; /** * Metadata for all the requests in the request builder. */ export declare const ContentRequestBuilderRequestsMetadata: RequestsMetadata; //# sourceMappingURL=index.d.ts.map