@microsoft/msgraph-beta-sdk-users
Version:
Users fluent API for Microsoft Graph
90 lines • 5.48 kB
TypeScript
import { type BaseCollectionPaginationCountResponse, type CloudPcRemoteActionResult } 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 BulkResizePostRequestBody 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 cloudPcIds property
*/
cloudPcIds?: string[] | null;
/**
* The targetServicePlanId property
*/
targetServicePlanId?: string | null;
}
export interface BulkResizePostResponse extends BaseCollectionPaginationCountResponse, Parsable {
/**
* The value property
*/
value?: CloudPcRemoteActionResult[] | null;
}
/**
* Provides operations to call the bulkResize method.
*/
export interface BulkResizeRequestBuilder extends BaseRequestBuilder<BulkResizeRequestBuilder> {
/**
* Perform a bulk resize action to resize a group of cloudPCs that successfully pass validation. If any devices can't be resized, those devices indicate 'resize failed'. The remaining devices are provisioned for the resize process.
* @param body The request body
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
* @returns {Promise<BulkResizePostResponse>}
* @throws {ODataError} error when the service returns a 4XX or 5XX status code
* @deprecated The bulkResize action is deprecated and will stop supporting on September 24, 2023. Please use bulk action entity api. as of 2023-05/bulkResize on 2023-05-24 and will be removed 2023-09-24
* @see {@link https://learn.microsoft.com/graph/api/cloudpc-bulkresize?view=graph-rest-beta|Find more info here}
*/
post(body: BulkResizePostRequestBody, requestConfiguration?: RequestConfiguration<object> | undefined): Promise<BulkResizePostResponse | undefined>;
/**
* Perform a bulk resize action to resize a group of cloudPCs that successfully pass validation. If any devices can't be resized, those devices indicate 'resize failed'. The remaining devices are provisioned for the resize process.
* @param body The request body
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
* @returns {RequestInformation}
* @deprecated The bulkResize action is deprecated and will stop supporting on September 24, 2023. Please use bulk action entity api. as of 2023-05/bulkResize on 2023-05-24 and will be removed 2023-09-24
*/
toPostRequestInformation(body: BulkResizePostRequestBody, 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 {BulkResizePostRequestBody}
*/
export declare function createBulkResizePostRequestBodyFromDiscriminatorValue(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 {BulkResizePostResponse}
*/
export declare function createBulkResizePostResponseFromDiscriminatorValue(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 deserializeIntoBulkResizePostRequestBody(bulkResizePostRequestBody?: Partial<BulkResizePostRequestBody> | undefined): Record<string, (node: ParseNode) => void>;
/**
* The deserialization information for the current model
* @returns {Record<string, (node: ParseNode) => void>}
*/
export declare function deserializeIntoBulkResizePostResponse(bulkResizePostResponse?: Partial<BulkResizePostResponse> | undefined): Record<string, (node: ParseNode) => void>;
/**
* Serializes information the current object
* @param writer Serialization writer to use to serialize this model
*/
export declare function serializeBulkResizePostRequestBody(writer: SerializationWriter, bulkResizePostRequestBody?: Partial<BulkResizePostRequestBody> | undefined | null): void;
/**
* Serializes information the current object
* @param writer Serialization writer to use to serialize this model
*/
export declare function serializeBulkResizePostResponse(writer: SerializationWriter, bulkResizePostResponse?: Partial<BulkResizePostResponse> | undefined | null): void;
/**
* Uri template for the request builder.
*/
export declare const BulkResizeRequestBuilderUriTemplate = "{+baseurl}/users/{user%2Did}/cloudPCs/bulkResize";
/**
* Metadata for all the requests in the request builder.
*/
export declare const BulkResizeRequestBuilderRequestsMetadata: RequestsMetadata;
//# sourceMappingURL=index.d.ts.map