UNPKG

@microsoft/msgraph-beta-sdk-groups

Version:
30 lines 2.45 kB
import { type ProvisionChannelEmailResult } from '@microsoft/msgraph-beta-sdk/models/index.js'; import { type BaseRequestBuilder, type RequestConfiguration, type RequestInformation, type RequestsMetadata } from '@microsoft/kiota-abstractions'; /** * Provides operations to call the provisionEmail method. */ export interface ProvisionEmailRequestBuilder extends BaseRequestBuilder<ProvisionEmailRequestBuilder> { /** * Provision an email address for a channel. Microsoft Teams doesn't automatically provision an email address for a channel by default. To have Teams provision an email address, you can call provisionEmail, or through the Teams user interface, select Get email address, which triggers Teams to generate an email address if it didn't provisioned one. To remove the email address of a channel, use the removeEmail method. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @returns {Promise<ProvisionChannelEmailResult>} * @throws {ODataError} error when the service returns a 4XX or 5XX status code * @see {@link https://learn.microsoft.com/graph/api/channel-provisionemail?view=graph-rest-beta|Find more info here} */ post(requestConfiguration?: RequestConfiguration<object> | undefined): Promise<ProvisionChannelEmailResult | undefined>; /** * Provision an email address for a channel. Microsoft Teams doesn't automatically provision an email address for a channel by default. To have Teams provision an email address, you can call provisionEmail, or through the Teams user interface, select Get email address, which triggers Teams to generate an email address if it didn't provisioned one. To remove the email address of a channel, use the removeEmail method. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @returns {RequestInformation} */ toPostRequestInformation(requestConfiguration?: RequestConfiguration<object> | undefined): RequestInformation; } /** * Uri template for the request builder. */ export declare const ProvisionEmailRequestBuilderUriTemplate = "{+baseurl}/groups/{group%2Did}/team/primaryChannel/provisionEmail"; /** * Metadata for all the requests in the request builder. */ export declare const ProvisionEmailRequestBuilderRequestsMetadata: RequestsMetadata; //# sourceMappingURL=index.d.ts.map