import { type DnsZone } from '../models/dnsZone/index.js'; import { type CheckavailabilityRequestBuilder } from './checkavailability/index.js'; import { type ItemRequestBuilder } from './item/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 {DnszoneGetResponse} */ export declare function createDnszoneGetResponseFromDiscriminatorValue(parseNode: ParseNode | undefined): ((instance?: Parsable) => Record 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 {DnszonePostRequestBody} */ export declare function createDnszonePostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined): ((instance?: Parsable) => Record void>); /** * The deserialization information for the current model * @returns {Record void>} */ export declare function deserializeIntoDnszoneGetResponse(dnszoneGetResponse?: Partial | undefined): Record void>; /** * The deserialization information for the current model * @returns {Record void>} */ export declare function deserializeIntoDnszonePostRequestBody(dnszonePostRequestBody?: Partial | undefined): Record void>; export interface DnszoneGetResponse 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?: DnsZone[] | null; /** * The TotalItems property */ totalItems?: number | null; } export interface DnszonePostRequestBody 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 domain that will be added. */ domain?: string | null; } /** * Builds and executes requests for operations under /dnszone */ export interface DnszoneRequestBuilder extends BaseRequestBuilder { /** * The checkavailability property */ get checkavailability(): CheckavailabilityRequestBuilder; /** * Gets an item from the BunnyApiClient.dnszone.item collection * @param id The ID of the DNS Zone that will be returned * @returns {ItemRequestBuilder} */ byId(id: number): ItemRequestBuilder; /** * [ListDnsZones API Docs](https://docs.bunny.net/reference/dnszonepublic_index) * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @returns {Promise} */ get(requestConfiguration?: RequestConfiguration | undefined): Promise; /** * [AddDnsZone API Docs](https://docs.bunny.net/reference/dnszonepublic_add) * @param body The request body * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @returns {Promise} * @throws {StructuredBadRequestResponse} error when the service returns a 400 status code */ post(body: DnszonePostRequestBody, requestConfiguration?: RequestConfiguration | undefined): Promise; /** * [ListDnsZones API Docs](https://docs.bunny.net/reference/dnszonepublic_index) * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @returns {RequestInformation} */ toGetRequestInformation(requestConfiguration?: RequestConfiguration | undefined): RequestInformation; /** * [AddDnsZone API Docs](https://docs.bunny.net/reference/dnszonepublic_add) * @param body The request body * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @returns {RequestInformation} */ toPostRequestInformation(body: DnszonePostRequestBody, requestConfiguration?: RequestConfiguration | undefined): RequestInformation; } /** * [ListDnsZones API Docs](https://docs.bunny.net/reference/dnszonepublic_index) */ export interface DnszoneRequestBuilderGetQueryParameters { page?: number; perPage?: number; /** * The search term that will be used to filter the results */ search?: string; } /** * Serializes information the current object * @param writer Serialization writer to use to serialize this model */ export declare function serializeDnszoneGetResponse(writer: SerializationWriter, dnszoneGetResponse?: Partial | undefined | null): void; /** * Serializes information the current object * @param writer Serialization writer to use to serialize this model */ export declare function serializeDnszonePostRequestBody(writer: SerializationWriter, dnszonePostRequestBody?: Partial | undefined | null): void; /** * Uri template for the request builder. */ export declare const DnszoneRequestBuilderUriTemplate = "{+baseurl}/dnszone?page={page}&perPage={perPage}&search={search}"; /** * Metadata for all the navigation properties in the request builder. */ export declare const DnszoneRequestBuilderNavigationMetadata: Record, NavigationMetadata>; /** * Metadata for all the requests in the request builder. */ export declare const DnszoneRequestBuilderRequestsMetadata: RequestsMetadata;