@microsoft/msgraph-beta-sdk-devicemanagement
Version:
DeviceManagement fluent API for Microsoft Graph
85 lines • 4.78 kB
TypeScript
import { type BaseCollectionPaginationCountResponse, type EmbeddedSIMActivationCodePoolAssignment } 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 AssignPostRequestBody extends AdditionalDataHolder, BackedModel, Parsable {
/**
* The assignments property
*/
assignments?: EmbeddedSIMActivationCodePoolAssignment[] | null;
/**
* Stores model information.
*/
backingStoreEnabled?: boolean | null;
}
export interface AssignPostResponse extends BaseCollectionPaginationCountResponse, Parsable {
/**
* The value property
*/
value?: EmbeddedSIMActivationCodePoolAssignment[] | null;
}
/**
* Provides operations to call the assign method.
*/
export interface AssignRequestBuilder extends BaseRequestBuilder<AssignRequestBuilder> {
/**
* Invoke action assign
* @param body The request body
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
* @returns {Promise<AssignPostResponse>}
* @throws {ODataError} error when the service returns a 4XX or 5XX status code
*/
post(body: AssignPostRequestBody, requestConfiguration?: RequestConfiguration<object> | undefined): Promise<AssignPostResponse | undefined>;
/**
* Invoke action assign
* @param body The request body
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
* @returns {RequestInformation}
*/
toPostRequestInformation(body: AssignPostRequestBody, 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 {AssignPostRequestBody}
*/
export declare function createAssignPostRequestBodyFromDiscriminatorValue(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 {AssignPostResponse}
*/
export declare function createAssignPostResponseFromDiscriminatorValue(parseNode: ParseNode | undefined): ((instance?: Parsable) => Record<string, (node: ParseNode) => void>);
/**
* The deserialization information for the current model
* @param AssignPostRequestBody The instance to deserialize into.
* @returns {Record<string, (node: ParseNode) => void>}
*/
export declare function deserializeIntoAssignPostRequestBody(assignPostRequestBody?: Partial<AssignPostRequestBody> | undefined): Record<string, (node: ParseNode) => void>;
/**
* The deserialization information for the current model
* @param AssignPostResponse The instance to deserialize into.
* @returns {Record<string, (node: ParseNode) => void>}
*/
export declare function deserializeIntoAssignPostResponse(assignPostResponse?: Partial<AssignPostResponse> | undefined): Record<string, (node: ParseNode) => void>;
/**
* Serializes information the current object
* @param AssignPostRequestBody The instance to serialize from.
* @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
* @param writer Serialization writer to use to serialize this model
*/
export declare function serializeAssignPostRequestBody(writer: SerializationWriter, assignPostRequestBody?: Partial<AssignPostRequestBody> | undefined | null, isSerializingDerivedType?: boolean): void;
/**
* Serializes information the current object
* @param AssignPostResponse The instance to serialize from.
* @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
* @param writer Serialization writer to use to serialize this model
*/
export declare function serializeAssignPostResponse(writer: SerializationWriter, assignPostResponse?: Partial<AssignPostResponse> | undefined | null, isSerializingDerivedType?: boolean): void;
/**
* Uri template for the request builder.
*/
export declare const AssignRequestBuilderUriTemplate = "{+baseurl}/deviceManagement/embeddedSIMActivationCodePools/{embeddedSIMActivationCodePool%2Did}/assign";
/**
* Metadata for all the requests in the request builder.
*/
export declare const AssignRequestBuilderRequestsMetadata: RequestsMetadata;
//# sourceMappingURL=index.d.ts.map