@microsoft/msgraph-beta-sdk-groups
Version:
Groups fluent API for Microsoft Graph
81 lines • 5.04 kB
TypeScript
import { ClonableTeamParts, TeamVisibilityType } 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';
export interface ClonePostRequestBody 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 classification property
*/
classification?: string | null;
/**
* The description property
*/
description?: string | null;
/**
* The displayName property
*/
displayName?: string | null;
/**
* The mailNickname property
*/
mailNickname?: string | null;
/**
* The partsToClone property
*/
partsToClone?: ClonableTeamParts[] | null;
/**
* The visibility property
*/
visibility?: TeamVisibilityType | null;
}
/**
* Provides operations to call the clone method.
*/
export interface CloneRequestBuilder extends BaseRequestBuilder<CloneRequestBuilder> {
/**
* Create a copy of a team. This operation also creates a copy of the corresponding group.You can specify which parts of the team to clone: When tabs are cloned, they aren't configured. The tabs are displayed on the tab bar in Microsoft Teams, and the first time a user opens them, they must go through the configuration screen. If the user who opens the tab doesn't have permission to configure apps, they see a message that says that the tab isn't configured. Cloning is a long-running operation. After the POST clone returns, you need to GET the operation returned by the Location: header to see if it's running, succeeded, or failed. You should continue to GET until the status isn't running. The recommended delay between GETs is 5 seconds.
* @param body The request body
* @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
* @see {@link https://learn.microsoft.com/graph/api/team-clone?view=graph-rest-beta|Find more info here}
*/
post(body: ClonePostRequestBody, requestConfiguration?: RequestConfiguration<object> | undefined): Promise<void>;
/**
* Create a copy of a team. This operation also creates a copy of the corresponding group.You can specify which parts of the team to clone: When tabs are cloned, they aren't configured. The tabs are displayed on the tab bar in Microsoft Teams, and the first time a user opens them, they must go through the configuration screen. If the user who opens the tab doesn't have permission to configure apps, they see a message that says that the tab isn't configured. Cloning is a long-running operation. After the POST clone returns, you need to GET the operation returned by the Location: header to see if it's running, succeeded, or failed. You should continue to GET until the status isn't running. The recommended delay between GETs is 5 seconds.
* @param body The request body
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
* @returns {RequestInformation}
*/
toPostRequestInformation(body: ClonePostRequestBody, requestConfiguration?: RequestConfiguration<object> | undefined): RequestInformation;
}
/**
* 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 {ClonePostRequestBody}
*/
export declare function createClonePostRequestBodyFromDiscriminatorValue(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 deserializeIntoClonePostRequestBody(clonePostRequestBody?: Partial<ClonePostRequestBody> | undefined): Record<string, (node: ParseNode) => void>;
/**
* Serializes information the current object
* @param writer Serialization writer to use to serialize this model
*/
export declare function serializeClonePostRequestBody(writer: SerializationWriter, clonePostRequestBody?: Partial<ClonePostRequestBody> | undefined | null): void;
/**
* Uri template for the request builder.
*/
export declare const CloneRequestBuilderUriTemplate = "{+baseurl}/groups/{group%2Did}/team/clone";
/**
* Metadata for all the requests in the request builder.
*/
export declare const CloneRequestBuilderRequestsMetadata: RequestsMetadata;
//# sourceMappingURL=index.d.ts.map