UNPKG

@azure/arm-dns

Version:
49 lines 1.86 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 DnsResourceReferenceOperations operations. */ export class DnsResourceReferenceOperationsImpl { /** * Initialize a new instance of the class DnsResourceReferenceOperations class. * @param client Reference to the service client */ constructor(client) { this.client = client; } /** * Returns the DNS records specified by the referencing targetResourceIds. * @param parameters Properties for dns resource reference request. * @param options The options parameters. */ getByTargetResources(parameters, options) { return this.client.sendOperationRequest({ parameters, options }, getByTargetResourcesOperationSpec); } } // Operation Specifications const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const getByTargetResourcesOperationSpec = { path: "/subscriptions/{subscriptionId}/providers/Microsoft.Network/getDnsResourceReference", httpMethod: "POST", responses: { 200: { bodyMapper: Mappers.DnsResourceReferenceResult }, default: { bodyMapper: Mappers.CloudError } }, requestBody: Parameters.parameters3, queryParameters: [Parameters.apiVersion], urlParameters: [Parameters.$host, Parameters.subscriptionId], headerParameters: [Parameters.contentType, Parameters.accept], mediaType: "json", serializer }; //# sourceMappingURL=dnsResourceReferenceOperations.js.map