import { type StorageZone, type StorageZoneCreate } from '../models/storageZone/index.js'; import { type CheckavailabilityRequestBuilder } from './checkavailability/index.js'; import { type StoragezoneItemRequestBuilder } from './item/index.js'; import { type ResetReadOnlyPasswordRequestBuilder } from './resetReadOnlyPassword/index.js'; import { type AdditionalDataHolder, 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 {StoragezoneGetResponse} */ export declare function createStoragezoneGetResponseFromDiscriminatorValue(parseNode: ParseNode | undefined): ((instance?: Parsable) => Record void>); /** * The deserialization information for the current model * @returns {Record void>} */ export declare function deserializeIntoStoragezoneGetResponse(storagezoneGetResponse?: Partial | undefined): Record void>; /** * Serializes information the current object * @param writer Serialization writer to use to serialize this model */ export declare function serializeStoragezoneGetResponse(writer: SerializationWriter, storagezoneGetResponse?: Partial | undefined | null): void; export interface StoragezoneGetResponse extends AdditionalDataHolder, Parsable { /** * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. */ additionalData?: Record; /** * The CurrentPage property */ currentPage?: number | null; /** * The HasMoreItems property */ hasMoreItems?: boolean | null; /** * The Items property */ items?: StorageZone[] | null; /** * The TotalItems property */ totalItems?: number | null; } /** * Builds and executes requests for operations under /storagezone */ export interface StoragezoneRequestBuilder extends BaseRequestBuilder { /** * The checkavailability property */ get checkavailability(): CheckavailabilityRequestBuilder; /** * The resetReadOnlyPassword property */ get resetReadOnlyPassword(): ResetReadOnlyPasswordRequestBuilder; /** * Gets an item from the BunnyApiClient.storagezone.item collection * @param id The ID of the Storage Zone that should be returned * @returns {StoragezoneItemRequestBuilder} */ byId(id: number): StoragezoneItemRequestBuilder; /** * [ListStorageZones API Docs](https://docs.bunny.net/reference/storagezonepublic_index) * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @returns {Promise} */ get(requestConfiguration?: RequestConfiguration | undefined): Promise; /** * [AddStorageZone API Docs](https://docs.bunny.net/reference/storagezonepublic_add) * @param body The request body * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @returns {Promise} */ post(body: StorageZoneCreate, requestConfiguration?: RequestConfiguration | undefined): Promise; /** * [ListStorageZones API Docs](https://docs.bunny.net/reference/storagezonepublic_index) * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @returns {RequestInformation} */ toGetRequestInformation(requestConfiguration?: RequestConfiguration | undefined): RequestInformation; /** * [AddStorageZone API Docs](https://docs.bunny.net/reference/storagezonepublic_add) * @param body The request body * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @returns {RequestInformation} */ toPostRequestInformation(body: StorageZoneCreate, requestConfiguration?: RequestConfiguration | undefined): RequestInformation; } /** * [ListStorageZones API Docs](https://docs.bunny.net/reference/storagezonepublic_index) */ export interface StoragezoneRequestBuilderGetQueryParameters { includeDeleted?: boolean; page?: number; perPage?: number; search?: string; } /** * Uri template for the request builder. */ export declare const StoragezoneRequestBuilderUriTemplate = "{+baseurl}/storagezone?includeDeleted={includeDeleted}&page={page}&perPage={perPage}{&search}"; /** * Metadata for all the navigation properties in the request builder. */ export declare const StoragezoneRequestBuilderNavigationMetadata: Record, NavigationMetadata>; /** * Metadata for all the requests in the request builder. */ export declare const StoragezoneRequestBuilderRequestsMetadata: RequestsMetadata;