@azure/arm-monitor
Version:
A generated SDK for MonitorClient.
50 lines • 1.95 kB
JavaScript
/*
* 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 PrivateLinkScopeOperationStatus operations. */
export class PrivateLinkScopeOperationStatusImpl {
/**
* Initialize a new instance of the class PrivateLinkScopeOperationStatus class.
* @param client Reference to the service client
*/
constructor(client) {
this.client = client;
}
/**
* Get the status of an azure asynchronous operation associated with a private link scope operation.
* @param asyncOperationId The operation Id.
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param options The options parameters.
*/
get(asyncOperationId, resourceGroupName, options) {
return this.client.sendOperationRequest({ asyncOperationId, resourceGroupName, options }, getOperationSpec);
}
}
// Operation Specifications
const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
const getOperationSpec = {
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/microsoft.insights/privateLinkScopeOperationStatuses/{asyncOperationId}",
httpMethod: "GET",
responses: {
200: {
bodyMapper: Mappers.OperationStatus
}
},
queryParameters: [Parameters.apiVersion10],
urlParameters: [
Parameters.$host,
Parameters.resourceGroupName,
Parameters.subscriptionId,
Parameters.asyncOperationId
],
headerParameters: [Parameters.accept],
serializer
};
//# sourceMappingURL=privateLinkScopeOperationStatus.js.map