import { type DnsRecord } from '../../../models/dnsZone/index.js'; import { type RecordsItemRequestBuilder } 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 {RecordsPutRequestBody_EnviromentalVariables} */ export declare function createRecordsPutRequestBody_EnviromentalVariablesFromDiscriminatorValue(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 {RecordsPutRequestBody} */ export declare function createRecordsPutRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined): ((instance?: Parsable) => Record void>); /** * The deserialization information for the current model * @returns {Record void>} */ export declare function deserializeIntoRecordsPutRequestBody(recordsPutRequestBody?: Partial | undefined): Record void>; /** * The deserialization information for the current model * @returns {Record void>} */ export declare function deserializeIntoRecordsPutRequestBody_EnviromentalVariables(recordsPutRequestBody_EnviromentalVariables?: Partial | undefined): Record void>; export interface RecordsPutRequestBody extends AdditionalDataHolder, Parsable { /** * The Accelerated property */ accelerated?: boolean | null; /** * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. */ additionalData?: Record; /** * The Comment property */ comment?: string | null; /** * The Disabled property */ disabled?: boolean | null; /** * The EnviromentalVariables property */ enviromentalVariables?: RecordsPutRequestBody_EnviromentalVariables[] | null; /** * The Flags property */ flags?: number | null; /** * The GeolocationLatitude property */ geolocationLatitude?: number | null; /** * The GeolocationLongitude property */ geolocationLongitude?: number | null; /** * The LatencyZone property */ latencyZone?: string | null; /** * The MonitorType property */ monitorType?: number | null; /** * The Name property */ name?: string | null; /** * The Port property */ port?: number | null; /** * The Priority property */ priority?: number | null; /** * The PullZoneId property */ pullZoneId?: number | null; /** * The ScriptId property */ scriptId?: number | null; /** * The SmartRoutingType property */ smartRoutingType?: number | null; /** * The Tag property */ tag?: string | null; /** * The Ttl property */ ttl?: number | null; /** * The Type property */ type?: number | null; /** * The Value property */ value?: string | null; /** * The Weight property */ weight?: number | null; } export interface RecordsPutRequestBody_EnviromentalVariables 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 Name property */ name?: string | null; /** * The Value property */ value?: string | null; } /** * Builds and executes requests for operations under /dnszone/{-id}/records */ export interface RecordsRequestBuilder extends BaseRequestBuilder { /** * Gets an item from the BunnyApiClient.dnszone.item.records.item collection * @param id The ID of the DNS record that will be updated. * @returns {RecordsItemRequestBuilder} */ byId(id: number): RecordsItemRequestBuilder; /** * [AddDnsRecord API Docs](https://docs.bunny.net/reference/dnszonepublic_addrecord) * @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 */ put(body: RecordsPutRequestBody, requestConfiguration?: RequestConfiguration | undefined): Promise; /** * [AddDnsRecord API Docs](https://docs.bunny.net/reference/dnszonepublic_addrecord) * @param body The request body * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @returns {RequestInformation} */ toPutRequestInformation(body: RecordsPutRequestBody, requestConfiguration?: RequestConfiguration | undefined): RequestInformation; } /** * Serializes information the current object * @param writer Serialization writer to use to serialize this model */ export declare function serializeRecordsPutRequestBody(writer: SerializationWriter, recordsPutRequestBody?: Partial | undefined | null): void; /** * Serializes information the current object * @param writer Serialization writer to use to serialize this model */ export declare function serializeRecordsPutRequestBody_EnviromentalVariables(writer: SerializationWriter, recordsPutRequestBody_EnviromentalVariables?: Partial | undefined | null): void; /** * Uri template for the request builder. */ export declare const RecordsRequestBuilderUriTemplate = "{+baseurl}/dnszone/{%2Did}/records"; /** * Metadata for all the navigation properties in the request builder. */ export declare const RecordsRequestBuilderNavigationMetadata: Record, NavigationMetadata>; /** * Metadata for all the requests in the request builder. */ export declare const RecordsRequestBuilderRequestsMetadata: RequestsMetadata;