UNPKG

@microsoft/msgraph-beta-sdk-applications

Version:
100 lines 5.21 kB
import { type SynchronizationSecretKeyStringValuePair } from '@microsoft/msgraph-beta-sdk/models/index.js'; import { type CountRequestBuilder } from './count/index.js'; import { type AdditionalDataHolder, type BackedModel, type BaseRequestBuilder, type KeysToExcludeForNavigationMetadata, type NavigationMetadata, type Parsable, type ParseNode, type RequestConfiguration, type RequestInformation, type RequestsMetadata, type SerializationWriter } from '@microsoft/kiota-abstractions'; /** * 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 {SecretsPutRequestBody} */ export declare function createSecretsPutRequestBodyFromDiscriminatorValue(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 {SecretsPutResponse} */ export declare function createSecretsPutResponseFromDiscriminatorValue(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 deserializeIntoSecretsPutRequestBody(secretsPutRequestBody?: Partial<SecretsPutRequestBody> | undefined): Record<string, (node: ParseNode) => void>; /** * The deserialization information for the current model * @returns {Record<string, (node: ParseNode) => void>} */ export declare function deserializeIntoSecretsPutResponse(secretsPutResponse?: Partial<SecretsPutResponse> | undefined): Record<string, (node: ParseNode) => void>; export interface SecretsPutRequestBody 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 value property */ value?: SynchronizationSecretKeyStringValuePair[] | null; } export interface SecretsPutResponse 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 value property */ value?: SynchronizationSecretKeyStringValuePair[] | null; } /** * Builds and executes requests for operations under /applications/{application-id}/synchronization/secrets */ export interface SecretsRequestBuilder extends BaseRequestBuilder<SecretsRequestBuilder> { /** * Provides operations to count the resources in the collection. */ get count(): CountRequestBuilder; /** * Update property secrets value. * @param body The request body * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @returns {Promise<SecretsPutResponse>} * @throws {ODataError} error when the service returns a 4XX or 5XX status code */ put(body: SecretsPutRequestBody, requestConfiguration?: RequestConfiguration<object> | undefined): Promise<SecretsPutResponse | undefined>; /** * Update property secrets value. * @param body The request body * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @returns {RequestInformation} */ toPutRequestInformation(body: SecretsPutRequestBody, requestConfiguration?: RequestConfiguration<object> | undefined): RequestInformation; } /** * Serializes information the current object * @param writer Serialization writer to use to serialize this model */ export declare function serializeSecretsPutRequestBody(writer: SerializationWriter, secretsPutRequestBody?: Partial<SecretsPutRequestBody> | undefined | null): void; /** * Serializes information the current object * @param writer Serialization writer to use to serialize this model */ export declare function serializeSecretsPutResponse(writer: SerializationWriter, secretsPutResponse?: Partial<SecretsPutResponse> | undefined | null): void; /** * Uri template for the request builder. */ export declare const SecretsRequestBuilderUriTemplate = "{+baseurl}/applications/{application%2Did}/synchronization/secrets"; /** * Metadata for all the navigation properties in the request builder. */ export declare const SecretsRequestBuilderNavigationMetadata: Record<Exclude<keyof SecretsRequestBuilder, KeysToExcludeForNavigationMetadata>, NavigationMetadata>; /** * Metadata for all the requests in the request builder. */ export declare const SecretsRequestBuilderRequestsMetadata: RequestsMetadata; //# sourceMappingURL=index.d.ts.map