UNPKG

@azure/arm-mysql-flexible

Version:
46 lines 1.53 kB
/* * Copyright (c) Microsoft Corporation. * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ import * as coreClient from "@azure/core-client"; import * as Mappers from "../models/mappers"; import * as Parameters from "../models/parameters"; /** Class containing GetPrivateDnsZoneSuffix operations. */ export class GetPrivateDnsZoneSuffixImpl { /** * Initialize a new instance of the class GetPrivateDnsZoneSuffix class. * @param client Reference to the service client */ constructor(client) { this.client = client; } /** * Get private DNS zone suffix in the cloud. * @param options The options parameters. */ execute(options) { return this.client.sendOperationRequest({ options }, executeOperationSpec); } } // Operation Specifications const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const executeOperationSpec = { path: "/providers/Microsoft.DBforMySQL/getPrivateDnsZoneSuffix", httpMethod: "POST", responses: { 200: { bodyMapper: Mappers.GetPrivateDnsZoneSuffixResponse }, default: { bodyMapper: Mappers.CloudError } }, queryParameters: [Parameters.apiVersion], urlParameters: [Parameters.$host], headerParameters: [Parameters.accept], serializer }; //# sourceMappingURL=getPrivateDnsZoneSuffix.js.map