UNPKG

@azure/arm-resources

Version:
56 lines 2.09 kB
"use strict"; /* * 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. */ Object.defineProperty(exports, "__esModule", { value: true }); exports.ProviderResourceTypesImpl = void 0; const tslib_1 = require("tslib"); const coreClient = tslib_1.__importStar(require("@azure/core-client")); const Mappers = tslib_1.__importStar(require("../models/mappers.js")); const Parameters = tslib_1.__importStar(require("../models/parameters.js")); /** Class containing ProviderResourceTypes operations. */ class ProviderResourceTypesImpl { /** * Initialize a new instance of the class ProviderResourceTypes class. * @param client Reference to the service client */ constructor(client) { this.client = client; } /** * List the resource types for a specified resource provider. * @param resourceProviderNamespace The namespace of the resource provider. * @param options The options parameters. */ list(resourceProviderNamespace, options) { return this.client.sendOperationRequest({ resourceProviderNamespace, options }, listOperationSpec); } } exports.ProviderResourceTypesImpl = ProviderResourceTypesImpl; // Operation Specifications const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const listOperationSpec = { path: "/subscriptions/{subscriptionId}/providers/{resourceProviderNamespace}/resourceTypes", httpMethod: "GET", responses: { 200: { bodyMapper: Mappers.ProviderResourceTypeListResult, }, default: { bodyMapper: Mappers.CloudError, }, }, queryParameters: [Parameters.apiVersion, Parameters.expand], urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.resourceProviderNamespace, ], headerParameters: [Parameters.accept], serializer, }; //# sourceMappingURL=providerResourceTypes.js.map