@azure/arm-timeseriesinsights 2.1.0-alpha.20250718.1 → 2.1.0-alpha.20250721.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/browser/lroImpl.js +11 -3
- package/dist/browser/lroImpl.js.map +1 -1
- package/dist/browser/models/mappers.js +366 -164
- package/dist/browser/models/mappers.js.map +1 -1
- package/dist/browser/operations/accessPolicies.js +1 -0
- package/dist/browser/operations/accessPolicies.js.map +1 -1
- package/dist/browser/operations/environments.js +23 -12
- package/dist/browser/operations/environments.js.map +1 -1
- package/dist/browser/operations/eventSources.js +1 -0
- package/dist/browser/operations/eventSources.js.map +1 -1
- package/dist/browser/operations/operations.js +23 -40
- package/dist/browser/operations/operations.js.map +1 -1
- package/dist/browser/operations/privateEndpointConnections.js +1 -0
- package/dist/browser/operations/privateEndpointConnections.js.map +1 -1
- package/dist/browser/operations/privateLinkResources.js +10 -27
- package/dist/browser/operations/privateLinkResources.js.map +1 -1
- package/dist/browser/operations/referenceDataSets.js +1 -0
- package/dist/browser/operations/referenceDataSets.js.map +1 -1
- package/dist/browser/pagingHelper.js +2 -4
- package/dist/browser/pagingHelper.js.map +1 -1
- package/dist/browser/timeSeriesInsightsClient.js +20 -5
- package/dist/browser/timeSeriesInsightsClient.js.map +1 -1
- package/dist/commonjs/lroImpl.js +11 -3
- package/dist/commonjs/lroImpl.js.map +1 -1
- package/dist/commonjs/models/mappers.js +366 -164
- package/dist/commonjs/models/mappers.js.map +1 -1
- package/dist/commonjs/operations/accessPolicies.js +1 -0
- package/dist/commonjs/operations/accessPolicies.js.map +1 -1
- package/dist/commonjs/operations/environments.js +23 -12
- package/dist/commonjs/operations/environments.js.map +1 -1
- package/dist/commonjs/operations/eventSources.js +1 -0
- package/dist/commonjs/operations/eventSources.js.map +1 -1
- package/dist/commonjs/operations/operations.js +23 -39
- package/dist/commonjs/operations/operations.js.map +1 -1
- package/dist/commonjs/operations/privateEndpointConnections.js +1 -0
- package/dist/commonjs/operations/privateEndpointConnections.js.map +1 -1
- package/dist/commonjs/operations/privateLinkResources.js +10 -26
- package/dist/commonjs/operations/privateLinkResources.js.map +1 -1
- package/dist/commonjs/operations/referenceDataSets.js +1 -0
- package/dist/commonjs/operations/referenceDataSets.js.map +1 -1
- package/dist/commonjs/pagingHelper.js +2 -4
- package/dist/commonjs/pagingHelper.js.map +1 -1
- package/dist/commonjs/timeSeriesInsightsClient.js +20 -5
- package/dist/commonjs/timeSeriesInsightsClient.js.map +1 -1
- package/dist/esm/lroImpl.js +11 -3
- package/dist/esm/lroImpl.js.map +1 -1
- package/dist/esm/models/mappers.js +366 -164
- package/dist/esm/models/mappers.js.map +1 -1
- package/dist/esm/operations/accessPolicies.js +1 -0
- package/dist/esm/operations/accessPolicies.js.map +1 -1
- package/dist/esm/operations/environments.js +23 -12
- package/dist/esm/operations/environments.js.map +1 -1
- package/dist/esm/operations/eventSources.js +1 -0
- package/dist/esm/operations/eventSources.js.map +1 -1
- package/dist/esm/operations/operations.js +23 -40
- package/dist/esm/operations/operations.js.map +1 -1
- package/dist/esm/operations/privateEndpointConnections.js +1 -0
- package/dist/esm/operations/privateEndpointConnections.js.map +1 -1
- package/dist/esm/operations/privateLinkResources.js +10 -27
- package/dist/esm/operations/privateLinkResources.js.map +1 -1
- package/dist/esm/operations/referenceDataSets.js +1 -0
- package/dist/esm/operations/referenceDataSets.js.map +1 -1
- package/dist/esm/pagingHelper.js +2 -4
- package/dist/esm/pagingHelper.js.map +1 -1
- package/dist/esm/timeSeriesInsightsClient.js +20 -5
- package/dist/esm/timeSeriesInsightsClient.js.map +1 -1
- package/dist/react-native/lroImpl.js +11 -3
- package/dist/react-native/lroImpl.js.map +1 -1
- package/dist/react-native/models/mappers.js +366 -164
- package/dist/react-native/models/mappers.js.map +1 -1
- package/dist/react-native/operations/accessPolicies.js +1 -0
- package/dist/react-native/operations/accessPolicies.js.map +1 -1
- package/dist/react-native/operations/environments.js +23 -12
- package/dist/react-native/operations/environments.js.map +1 -1
- package/dist/react-native/operations/eventSources.js +1 -0
- package/dist/react-native/operations/eventSources.js.map +1 -1
- package/dist/react-native/operations/operations.js +23 -40
- package/dist/react-native/operations/operations.js.map +1 -1
- package/dist/react-native/operations/privateEndpointConnections.js +1 -0
- package/dist/react-native/operations/privateEndpointConnections.js.map +1 -1
- package/dist/react-native/operations/privateLinkResources.js +10 -27
- package/dist/react-native/operations/privateLinkResources.js.map +1 -1
- package/dist/react-native/operations/referenceDataSets.js +1 -0
- package/dist/react-native/operations/referenceDataSets.js.map +1 -1
- package/dist/react-native/pagingHelper.js +2 -4
- package/dist/react-native/pagingHelper.js.map +1 -1
- package/dist/react-native/timeSeriesInsightsClient.js +20 -5
- package/dist/react-native/timeSeriesInsightsClient.js.map +1 -1
- package/package.json +2 -2
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"referenceDataSets.js","sourceRoot":"","sources":["../../../src/operations/referenceDataSets.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAGH,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,OAAO,MAAM,sBAAsB,CAAC;AAChD,OAAO,KAAK,UAAU,MAAM,yBAAyB,CAAC;AAgBtD,qDAAqD;AACrD,MAAM,OAAO,qBAAqB;IAGhC;;;OAGG;IACH,YAAY,MAAgC;QAC1C,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;;;;;;OAQG;IACH,cAAc,CACZ,iBAAyB,EACzB,eAAuB,EACvB,oBAA4B,EAC5B,UAAoD,EACpD,OAAuD;QAEvD,OAAO,IAAI,CAAC,MAAM,CAAC,oBAAoB,CACrC;YACE,iBAAiB;YACjB,eAAe;YACf,oBAAoB;YACpB,UAAU;YACV,OAAO;SACR,EACD,2BAA2B,CAC5B,CAAC;IACJ,CAAC;IAED;;;;;;;;OAQG;IACH,GAAG,CACD,iBAAyB,EACzB,eAAuB,EACvB,oBAA4B,EAC5B,OAA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AC,cAAc;QACzB,UAAU,CAAC,iBAAiB;QAC5B,UAAU,CAAC,gBAAgB;QAC3B,UAAU,CAAC,qBAAqB;KACjC;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,EAAE,UAAU,CAAC,WAAW,CAAC;IAC7D,SAAS,EAAE,MAAM;IACjB,UAAU;CACX,CAAC;AACF,MAAM,mBAAmB,GAA6B;IACpD,IAAI,EACF,mLAAmL;IACrL,UAAU,EAAE,QAAQ;IACpB,SAAS,EAAE;QACT,GAAG,EAAE,EAAE;QACP,GAAG,EAAE,EAAE;QACP,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,UAAU;SAC/B;KACF;IACD,eAAe,EAAE,CAAC,UAAU,CAAC,UAAU,CAAC;IACxC,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,iBAAiB;QAC5B,UAAU,CAAC,gBAAgB;QAC3B,UAAU,CAAC,qBAAqB;KACjC;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC;AACF,MAAM,8BAA8B,GAA6B;IAC/D,IAAI,EACF,4JAA4J;IAC9J,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,4BAA4B;SACjD;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,UAAU;SAC/B;KACF;IACD,eAAe,EAAE,CAAC,UAAU,CAAC,UAAU,CAAC;IACxC,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,iBAAiB;QAC5B,UAAU,CAAC,gBAAgB;KAC5B;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport { ReferenceDataSets } from \"../operationsInterfaces/index.js\";\nimport * as coreClient from \"@azure/core-client\";\nimport * as Mappers from \"../models/mappers.js\";\nimport * as Parameters from \"../models/parameters.js\";\nimport { TimeSeriesInsightsClient } from \"../timeSeriesInsightsClient.js\";\nimport {\n ReferenceDataSetCreateOrUpdateParameters,\n ReferenceDataSetsCreateOrUpdateOptionalParams,\n ReferenceDataSetsCreateOrUpdateResponse,\n ReferenceDataSetsGetOptionalParams,\n ReferenceDataSetsGetResponse,\n ReferenceDataSetUpdateParameters,\n ReferenceDataSetsUpdateOptionalParams,\n ReferenceDataSetsUpdateResponse,\n ReferenceDataSetsDeleteOptionalParams,\n ReferenceDataSetsListByEnvironmentOptionalParams,\n ReferenceDataSetsListByEnvironmentResponse\n} from \"../models/index.js\";\n\n/** Class containing ReferenceDataSets operations. */\nexport class ReferenceDataSetsImpl implements ReferenceDataSets {\n private readonly client: TimeSeriesInsightsClient;\n\n /**\n * Initialize a new instance of the class ReferenceDataSets class.\n * @param client Reference to the service client\n */\n constructor(client: TimeSeriesInsightsClient) {\n this.client = client;\n }\n\n /**\n * Create or update a reference data set in the specified environment.\n * @param resourceGroupName Name of an Azure Resource group.\n * @param environmentName The name of the Time Series Insights environment associated with the\n * specified resource group.\n * @param referenceDataSetName Name of the reference data set.\n * @param parameters Parameters for creating a reference data set.\n * @param options The options parameters.\n */\n createOrUpdate(\n resourceGroupName: string,\n environmentName: string,\n referenceDataSetName: string,\n parameters: ReferenceDataSetCreateOrUpdateParameters,\n options?: ReferenceDataSetsCreateOrUpdateOptionalParams\n ): Promise<ReferenceDataSetsCreateOrUpdateResponse> {\n return this.client.sendOperationRequest(\n {\n resourceGroupName,\n environmentName,\n referenceDataSetName,\n parameters,\n options\n },\n createOrUpdateOperationSpec\n );\n }\n\n /**\n * Gets the reference data set with the specified name in the specified environment.\n * @param resourceGroupName Name of an Azure Resource group.\n * @param environmentName The name of the Time Series Insights environment associated with the\n * specified resource group.\n * @param referenceDataSetName The name of the Time Series Insights reference data set associated with\n * the specified environment.\n * @param options The options parameters.\n */\n get(\n resourceGroupName: string,\n environmentName: string,\n referenceDataSetName: string,\n options?: ReferenceDataSetsGetOptionalParams\n ): Promise<ReferenceDataSetsGetResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, environmentName, referenceDataSetName, options },\n getOperationSpec\n );\n }\n\n /**\n * Updates the reference data set with the specified name in the specified subscription, resource\n * group, and environment.\n * @param resourceGroupName Name of an Azure Resource group.\n * @param environmentName The name of the Time Series Insights environment associated with the\n * specified resource group.\n * @param referenceDataSetName The name of the Time Series Insights reference data set associated with\n * the specified environment.\n * @param referenceDataSetUpdateParameters Request object that contains the updated information for the\n * reference data set.\n * @param options The options parameters.\n */\n update(\n resourceGroupName: string,\n environmentName: string,\n referenceDataSetName: string,\n referenceDataSetUpdateParameters: ReferenceDataSetUpdateParameters,\n options?: ReferenceDataSetsUpdateOptionalParams\n ): Promise<ReferenceDataSetsUpdateResponse> {\n return this.client.sendOperationRequest(\n {\n resourceGroupName,\n environmentName,\n referenceDataSetName,\n referenceDataSetUpdateParameters,\n options\n },\n updateOperationSpec\n );\n }\n\n /**\n * Deletes the reference data set with the specified name in the specified subscription, resource\n * group, and environment\n * @param resourceGroupName Name of an Azure Resource group.\n * @param environmentName The name of the Time Series Insights environment associated with the\n * specified resource group.\n * @param referenceDataSetName The name of the Time Series Insights reference data set associated with\n * the specified environment.\n * @param options The options parameters.\n */\n delete(\n resourceGroupName: string,\n environmentName: string,\n referenceDataSetName: string,\n options?: ReferenceDataSetsDeleteOptionalParams\n ): Promise<void> {\n return this.client.sendOperationRequest(\n { resourceGroupName, environmentName, referenceDataSetName, options },\n deleteOperationSpec\n );\n }\n\n /**\n * Lists all the available reference data sets associated with the subscription and within the\n * specified resource group and environment.\n * @param resourceGroupName Name of an Azure Resource group.\n * @param environmentName The name of the Time Series Insights environment associated with the\n * specified resource group.\n * @param options The options parameters.\n */\n listByEnvironment(\n resourceGroupName: string,\n environmentName: string,\n options?: ReferenceDataSetsListByEnvironmentOptionalParams\n ): Promise<ReferenceDataSetsListByEnvironmentResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, environmentName, options },\n listByEnvironmentOperationSpec\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst createOrUpdateOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.TimeSeriesInsights/environments/{environmentName}/referenceDataSets/{referenceDataSetName}\",\n httpMethod: \"PUT\",\n responses: {\n 200: {\n bodyMapper: Mappers.ReferenceDataSetResource\n },\n 201: {\n bodyMapper: Mappers.ReferenceDataSetResource\n },\n default: {\n bodyMapper: Mappers.CloudError\n }\n },\n requestBody: Parameters.parameters2,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.environmentName1,\n Parameters.referenceDataSetName\n ],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer\n};\nconst getOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.TimeSeriesInsights/environments/{environmentName}/referenceDataSets/{referenceDataSetName}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.ReferenceDataSetResource\n },\n default: {\n bodyMapper: Mappers.CloudError\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.environmentName1,\n Parameters.referenceDataSetName1\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst updateOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.TimeSeriesInsights/environments/{environmentName}/referenceDataSets/{referenceDataSetName}\",\n httpMethod: \"PATCH\",\n responses: {\n 200: {\n bodyMapper: Mappers.ReferenceDataSetResource\n },\n default: {\n bodyMapper: Mappers.CloudError\n }\n },\n requestBody: Parameters.referenceDataSetUpdateParameters,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.environmentName1,\n Parameters.referenceDataSetName1\n ],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer\n};\nconst deleteOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.TimeSeriesInsights/environments/{environmentName}/referenceDataSets/{referenceDataSetName}\",\n httpMethod: \"DELETE\",\n responses: {\n 200: {},\n 204: {},\n default: {\n bodyMapper: Mappers.CloudError\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.environmentName1,\n Parameters.referenceDataSetName1\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst listByEnvironmentOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.TimeSeriesInsights/environments/{environmentName}/referenceDataSets\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.ReferenceDataSetListResponse\n },\n default: {\n bodyMapper: Mappers.CloudError\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.environmentName1\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\n"]}
|
1
|
+
{"version":3,"file":"referenceDataSets.js","sourceRoot":"","sources":["../../../src/operations/referenceDataSets.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAGH,OAAO,KAAK,UAAU,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,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC;AACF,MAAM,8BAA8B,GAA6B;IAC/D,IAAI,EACF,4JAA4J;IAC9J,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,4BAA4B;SACjD;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,UAAU;SAC/B;KACF;IACD,eAAe,EAAE,CAAC,UAAU,CAAC,UAAU,CAAC;IACxC,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,iBAAiB;QAC5B,UAAU,CAAC,gBAAgB;KAC5B;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport { ReferenceDataSets } from \"../operationsInterfaces/index.js\";\nimport * as coreClient from \"@azure/core-client\";\nimport * as Mappers from \"../models/mappers.js\";\nimport * as Parameters from \"../models/parameters.js\";\nimport { TimeSeriesInsightsClient } from \"../timeSeriesInsightsClient.js\";\nimport {\n ReferenceDataSetCreateOrUpdateParameters,\n ReferenceDataSetsCreateOrUpdateOptionalParams,\n ReferenceDataSetsCreateOrUpdateResponse,\n ReferenceDataSetsGetOptionalParams,\n ReferenceDataSetsGetResponse,\n ReferenceDataSetUpdateParameters,\n ReferenceDataSetsUpdateOptionalParams,\n ReferenceDataSetsUpdateResponse,\n ReferenceDataSetsDeleteOptionalParams,\n ReferenceDataSetsListByEnvironmentOptionalParams,\n ReferenceDataSetsListByEnvironmentResponse\n} from \"../models/index.js\";\n\n/** Class containing ReferenceDataSets operations. */\nexport class ReferenceDataSetsImpl implements ReferenceDataSets {\n private readonly client: TimeSeriesInsightsClient;\n\n /**\n * Initialize a new instance of the class ReferenceDataSets class.\n * @param client Reference to the service client\n */\n constructor(client: TimeSeriesInsightsClient) {\n this.client = client;\n }\n\n /**\n * Create or update a reference data set in the specified environment.\n * @param resourceGroupName Name of an Azure Resource group.\n * @param environmentName The name of the Time Series Insights environment associated with the\n * specified resource group.\n * @param referenceDataSetName Name of the reference data set.\n * @param parameters Parameters for creating a reference data set.\n * @param options The options parameters.\n */\n createOrUpdate(\n resourceGroupName: string,\n environmentName: string,\n referenceDataSetName: string,\n parameters: ReferenceDataSetCreateOrUpdateParameters,\n options?: ReferenceDataSetsCreateOrUpdateOptionalParams\n ): Promise<ReferenceDataSetsCreateOrUpdateResponse> {\n return this.client.sendOperationRequest(\n {\n resourceGroupName,\n environmentName,\n referenceDataSetName,\n parameters,\n options\n },\n createOrUpdateOperationSpec\n );\n }\n\n /**\n * Gets the reference data set with the specified name in the specified environment.\n * @param resourceGroupName Name of an Azure Resource group.\n * @param environmentName The name of the Time Series Insights environment associated with the\n * specified resource group.\n * @param referenceDataSetName The name of the Time Series Insights reference data set associated with\n * the specified environment.\n * @param options The options parameters.\n */\n get(\n resourceGroupName: string,\n environmentName: string,\n referenceDataSetName: string,\n options?: ReferenceDataSetsGetOptionalParams\n ): Promise<ReferenceDataSetsGetResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, environmentName, referenceDataSetName, options },\n getOperationSpec\n );\n }\n\n /**\n * Updates the reference data set with the specified name in the specified subscription, resource\n * group, and environment.\n * @param resourceGroupName Name of an Azure Resource group.\n * @param environmentName The name of the Time Series Insights environment associated with the\n * specified resource group.\n * @param referenceDataSetName The name of the Time Series Insights reference data set associated with\n * the specified environment.\n * @param referenceDataSetUpdateParameters Request object that contains the updated information for the\n * reference data set.\n * @param options The options parameters.\n */\n update(\n resourceGroupName: string,\n environmentName: string,\n referenceDataSetName: string,\n referenceDataSetUpdateParameters: ReferenceDataSetUpdateParameters,\n options?: ReferenceDataSetsUpdateOptionalParams\n ): Promise<ReferenceDataSetsUpdateResponse> {\n return this.client.sendOperationRequest(\n {\n resourceGroupName,\n environmentName,\n referenceDataSetName,\n referenceDataSetUpdateParameters,\n options\n },\n updateOperationSpec\n );\n }\n\n /**\n * Deletes the reference data set with the specified name in the specified subscription, resource\n * group, and environment\n * @param resourceGroupName Name of an Azure Resource group.\n * @param environmentName The name of the Time Series Insights environment associated with the\n * specified resource group.\n * @param referenceDataSetName The name of the Time Series Insights reference data set associated with\n * the specified environment.\n * @param options The options parameters.\n */\n delete(\n resourceGroupName: string,\n environmentName: string,\n referenceDataSetName: string,\n options?: ReferenceDataSetsDeleteOptionalParams\n ): Promise<void> {\n return this.client.sendOperationRequest(\n { resourceGroupName, environmentName, referenceDataSetName, options },\n deleteOperationSpec\n );\n }\n\n /**\n * Lists all the available reference data sets associated with the subscription and within the\n * specified resource group and environment.\n * @param resourceGroupName Name of an Azure Resource group.\n * @param environmentName The name of the Time Series Insights environment associated with the\n * specified resource group.\n * @param options The options parameters.\n */\n listByEnvironment(\n resourceGroupName: string,\n environmentName: string,\n options?: ReferenceDataSetsListByEnvironmentOptionalParams\n ): Promise<ReferenceDataSetsListByEnvironmentResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, environmentName, options },\n listByEnvironmentOperationSpec\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst createOrUpdateOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.TimeSeriesInsights/environments/{environmentName}/referenceDataSets/{referenceDataSetName}\",\n httpMethod: \"PUT\",\n responses: {\n 200: {\n bodyMapper: Mappers.ReferenceDataSetResource\n },\n 201: {\n bodyMapper: Mappers.ReferenceDataSetResource\n },\n default: {\n bodyMapper: Mappers.CloudError\n }\n },\n requestBody: Parameters.parameters2,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.environmentName1,\n Parameters.referenceDataSetName\n ],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer\n};\nconst getOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.TimeSeriesInsights/environments/{environmentName}/referenceDataSets/{referenceDataSetName}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.ReferenceDataSetResource\n },\n default: {\n bodyMapper: Mappers.CloudError\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.environmentName1,\n Parameters.referenceDataSetName1\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst updateOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.TimeSeriesInsights/environments/{environmentName}/referenceDataSets/{referenceDataSetName}\",\n httpMethod: \"PATCH\",\n responses: {\n 200: {\n bodyMapper: Mappers.ReferenceDataSetResource\n },\n default: {\n bodyMapper: Mappers.CloudError\n }\n },\n requestBody: Parameters.referenceDataSetUpdateParameters,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.environmentName1,\n Parameters.referenceDataSetName1\n ],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer\n};\nconst deleteOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.TimeSeriesInsights/environments/{environmentName}/referenceDataSets/{referenceDataSetName}\",\n httpMethod: \"DELETE\",\n responses: {\n 200: {},\n 204: {},\n default: {\n bodyMapper: Mappers.CloudError\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.environmentName1,\n Parameters.referenceDataSetName1\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst listByEnvironmentOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.TimeSeriesInsights/environments/{environmentName}/referenceDataSets\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.ReferenceDataSetListResponse\n },\n default: {\n bodyMapper: Mappers.CloudError\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.environmentName1\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\n"]}
|
@@ -14,18 +14,16 @@ const pageMap = new WeakMap();
|
|
14
14
|
* @returns The continuation token that can be passed into byPage() during future calls.
|
15
15
|
*/
|
16
16
|
export function getContinuationToken(page) {
|
17
|
-
var _a;
|
18
17
|
if (typeof page !== "object" || page === null) {
|
19
18
|
return undefined;
|
20
19
|
}
|
21
|
-
return
|
20
|
+
return pageMap.get(page)?.continuationToken;
|
22
21
|
}
|
23
22
|
export function setContinuationToken(page, continuationToken) {
|
24
|
-
var _a;
|
25
23
|
if (typeof page !== "object" || page === null || !continuationToken) {
|
26
24
|
return;
|
27
25
|
}
|
28
|
-
const pageInfo =
|
26
|
+
const pageInfo = pageMap.get(page) ?? {};
|
29
27
|
pageInfo.continuationToken = continuationToken;
|
30
28
|
pageMap.set(page, pageInfo);
|
31
29
|
}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"pagingHelper.js","sourceRoot":"","sources":["../../src/pagingHelper.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAMH,MAAM,OAAO,GAAG,IAAI,OAAO,EAAoB,CAAC;AAEhD;;;;;;GAMG;AACH,MAAM,UAAU,oBAAoB,CAAC,IAAa
|
1
|
+
{"version":3,"file":"pagingHelper.js","sourceRoot":"","sources":["../../src/pagingHelper.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAMH,MAAM,OAAO,GAAG,IAAI,OAAO,EAAoB,CAAC;AAEhD;;;;;;GAMG;AACH,MAAM,UAAU,oBAAoB,CAAC,IAAa;IAChD,IAAI,OAAO,IAAI,KAAK,QAAQ,IAAI,IAAI,KAAK,IAAI,EAAE,CAAC;QAC9C,OAAO,SAAS,CAAC;IACnB,CAAC;IACD,OAAO,OAAO,CAAC,GAAG,CAAC,IAAI,CAAC,EAAE,iBAAiB,CAAC;AAC9C,CAAC;AAED,MAAM,UAAU,oBAAoB,CAClC,IAAa,EACb,iBAAqC;IAErC,IAAI,OAAO,IAAI,KAAK,QAAQ,IAAI,IAAI,KAAK,IAAI,IAAI,CAAC,iBAAiB,EAAE,CAAC;QACpE,OAAO;IACT,CAAC;IACD,MAAM,QAAQ,GAAG,OAAO,CAAC,GAAG,CAAC,IAAI,CAAC,IAAI,EAAE,CAAC;IACzC,QAAQ,CAAC,iBAAiB,GAAG,iBAAiB,CAAC;IAC/C,OAAO,CAAC,GAAG,CAAC,IAAI,EAAE,QAAQ,CAAC,CAAC;AAC9B,CAAC","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nexport interface PageInfo {\n continuationToken?: string;\n}\n\nconst pageMap = new WeakMap<object, PageInfo>();\n\n/**\n * Given the last `.value` produced by the `byPage` iterator,\n * returns a continuation token that can be used to begin paging from\n * that point later.\n * @param page An object from accessing `value` on the IteratorResult from a `byPage` iterator.\n * @returns The continuation token that can be passed into byPage() during future calls.\n */\nexport function getContinuationToken(page: unknown): string | undefined {\n if (typeof page !== \"object\" || page === null) {\n return undefined;\n }\n return pageMap.get(page)?.continuationToken;\n}\n\nexport function setContinuationToken(\n page: unknown,\n continuationToken: string | undefined\n): void {\n if (typeof page !== \"object\" || page === null || !continuationToken) {\n return;\n }\n const pageInfo = pageMap.get(page) ?? {};\n pageInfo.continuationToken = continuationToken;\n pageMap.set(page, pageInfo);\n}\n"]}
|
@@ -9,6 +9,9 @@ import * as coreClient from "@azure/core-client";
|
|
9
9
|
import * as coreRestPipeline from "@azure/core-rest-pipeline";
|
10
10
|
import { OperationsImpl, EnvironmentsImpl, EventSourcesImpl, ReferenceDataSetsImpl, AccessPoliciesImpl, PrivateEndpointConnectionsImpl, PrivateLinkResourcesImpl } from "./operations/index.js";
|
11
11
|
export class TimeSeriesInsightsClient extends coreClient.ServiceClient {
|
12
|
+
$host;
|
13
|
+
apiVersion;
|
14
|
+
subscriptionId;
|
12
15
|
/**
|
13
16
|
* Initializes a new instance of the TimeSeriesInsightsClient class.
|
14
17
|
* @param credentials Subscription credentials which uniquely identify client subscription.
|
@@ -16,7 +19,6 @@ export class TimeSeriesInsightsClient extends coreClient.ServiceClient {
|
|
16
19
|
* @param options The parameter options
|
17
20
|
*/
|
18
21
|
constructor(credentials, subscriptionId, options) {
|
19
|
-
var _a, _b, _c;
|
20
22
|
if (credentials === undefined) {
|
21
23
|
throw new Error("'credentials' cannot be null");
|
22
24
|
}
|
@@ -35,12 +37,17 @@ export class TimeSeriesInsightsClient extends coreClient.ServiceClient {
|
|
35
37
|
const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix
|
36
38
|
? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`
|
37
39
|
: `${packageDetails}`;
|
38
|
-
const optionsWithDefaults =
|
40
|
+
const optionsWithDefaults = {
|
41
|
+
...defaults,
|
42
|
+
...options,
|
43
|
+
userAgentOptions: {
|
39
44
|
userAgentPrefix
|
40
|
-
},
|
45
|
+
},
|
46
|
+
endpoint: options.endpoint ?? options.baseUri ?? "https://management.azure.com"
|
47
|
+
};
|
41
48
|
super(optionsWithDefaults);
|
42
49
|
let bearerTokenAuthenticationPolicyFound = false;
|
43
|
-
if (
|
50
|
+
if (options?.pipeline && options.pipeline.getOrderedPolicies().length > 0) {
|
44
51
|
const pipelinePolicies = options.pipeline.getOrderedPolicies();
|
45
52
|
bearerTokenAuthenticationPolicyFound = pipelinePolicies.some((pipelinePolicy) => pipelinePolicy.name ===
|
46
53
|
coreRestPipeline.bearerTokenAuthenticationPolicyName);
|
@@ -54,7 +61,8 @@ export class TimeSeriesInsightsClient extends coreClient.ServiceClient {
|
|
54
61
|
});
|
55
62
|
this.pipeline.addPolicy(coreRestPipeline.bearerTokenAuthenticationPolicy({
|
56
63
|
credential: credentials,
|
57
|
-
scopes:
|
64
|
+
scopes: optionsWithDefaults.credentialScopes ??
|
65
|
+
`${optionsWithDefaults.endpoint}/.default`,
|
58
66
|
challengeCallbacks: {
|
59
67
|
authorizeRequestOnChallenge: coreClient.authorizeRequestOnClaimChallenge
|
60
68
|
}
|
@@ -99,5 +107,12 @@ export class TimeSeriesInsightsClient extends coreClient.ServiceClient {
|
|
99
107
|
};
|
100
108
|
this.pipeline.addPolicy(apiVersionPolicy);
|
101
109
|
}
|
110
|
+
operations;
|
111
|
+
environments;
|
112
|
+
eventSources;
|
113
|
+
referenceDataSets;
|
114
|
+
accessPolicies;
|
115
|
+
privateEndpointConnections;
|
116
|
+
privateLinkResources;
|
102
117
|
}
|
103
118
|
//# sourceMappingURL=timeSeriesInsightsClient.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"timeSeriesInsightsClient.js","sourceRoot":"","sources":["../../src/timeSeriesInsightsClient.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,gBAAgB,MAAM,2BAA2B,CAAC;AAO9D,OAAO,EACL,cAAc,EACd,gBAAgB,EAChB,gBAAgB,EAChB,qBAAqB,EACrB,kBAAkB,EAClB,8BAA8B,EAC9B,wBAAwB,EACzB,MAAM,uBAAuB,CAAC;AAY/B,MAAM,OAAO,wBAAyB,SAAQ,UAAU,CAAC,aAAa;
|
1
|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;oBACH,CAAC,CAAC,CAAC;oBACH,OAAO,CAAC,GAAG,GAAG,KAAK,CAAC,CAAC,CAAC,GAAG,GAAG,GAAG,SAAS,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;gBACrD,CAAC;gBACD,OAAO,IAAI,CAAC,OAAO,CAAC,CAAC;YACvB,CAAC;SACF,CAAC;QACF,IAAI,CAAC,QAAQ,CAAC,SAAS,CAAC,gBAAgB,CAAC,CAAC;IAC5C,CAAC;IAED,UAAU,CAAa;IACvB,YAAY,CAAe;IAC3B,YAAY,CAAe;IAC3B,iBAAiB,CAAoB;IACrC,cAAc,CAAiB;IAC/B,0BAA0B,CAA6B;IACvD,oBAAoB,CAAuB;CAC5C","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport * as coreClient from \"@azure/core-client\";\nimport * as coreRestPipeline from \"@azure/core-rest-pipeline\";\nimport {\n PipelineRequest,\n PipelineResponse,\n SendRequest\n} from \"@azure/core-rest-pipeline\";\nimport * as coreAuth from \"@azure/core-auth\";\nimport {\n OperationsImpl,\n EnvironmentsImpl,\n EventSourcesImpl,\n ReferenceDataSetsImpl,\n AccessPoliciesImpl,\n PrivateEndpointConnectionsImpl,\n PrivateLinkResourcesImpl\n} from \"./operations/index.js\";\nimport {\n Operations,\n Environments,\n EventSources,\n ReferenceDataSets,\n AccessPolicies,\n PrivateEndpointConnections,\n PrivateLinkResources\n} from \"./operationsInterfaces/index.js\";\nimport { TimeSeriesInsightsClientOptionalParams } from \"./models/index.js\";\n\nexport class TimeSeriesInsightsClient extends coreClient.ServiceClient {\n $host: string;\n apiVersion: string;\n subscriptionId: string;\n\n /**\n * Initializes a new instance of the TimeSeriesInsightsClient class.\n * @param credentials Subscription credentials which uniquely identify client subscription.\n * @param subscriptionId Azure Subscription ID.\n * @param options The parameter options\n */\n constructor(\n credentials: coreAuth.TokenCredential,\n subscriptionId: string,\n options?: TimeSeriesInsightsClientOptionalParams\n ) {\n if (credentials === undefined) {\n throw new Error(\"'credentials' cannot be null\");\n }\n if (subscriptionId === undefined) {\n throw new Error(\"'subscriptionId' cannot be null\");\n }\n\n // Initializing default values for options\n if (!options) {\n options = {};\n }\n const defaults: TimeSeriesInsightsClientOptionalParams = {\n requestContentType: \"application/json; charset=utf-8\",\n credential: credentials\n };\n\n const packageDetails = `azsdk-js-arm-timeseriesinsights/2.1.0-beta.3`;\n const userAgentPrefix =\n options.userAgentOptions && options.userAgentOptions.userAgentPrefix\n ? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`\n : `${packageDetails}`;\n\n const optionsWithDefaults = {\n ...defaults,\n ...options,\n userAgentOptions: {\n userAgentPrefix\n },\n endpoint:\n options.endpoint ?? options.baseUri ?? \"https://management.azure.com\"\n };\n super(optionsWithDefaults);\n\n let bearerTokenAuthenticationPolicyFound: boolean = false;\n if (options?.pipeline && options.pipeline.getOrderedPolicies().length > 0) {\n const pipelinePolicies: coreRestPipeline.PipelinePolicy[] = options.pipeline.getOrderedPolicies();\n bearerTokenAuthenticationPolicyFound = pipelinePolicies.some(\n (pipelinePolicy) =>\n pipelinePolicy.name ===\n coreRestPipeline.bearerTokenAuthenticationPolicyName\n );\n }\n if (\n !options ||\n !options.pipeline ||\n options.pipeline.getOrderedPolicies().length == 0 ||\n !bearerTokenAuthenticationPolicyFound\n ) {\n this.pipeline.removePolicy({\n name: coreRestPipeline.bearerTokenAuthenticationPolicyName\n });\n this.pipeline.addPolicy(\n coreRestPipeline.bearerTokenAuthenticationPolicy({\n credential: credentials,\n scopes:\n optionsWithDefaults.credentialScopes ??\n `${optionsWithDefaults.endpoint}/.default`,\n challengeCallbacks: {\n authorizeRequestOnChallenge:\n coreClient.authorizeRequestOnClaimChallenge\n }\n })\n );\n }\n // Parameter assignments\n this.subscriptionId = subscriptionId;\n\n // Assigning values to Constant parameters\n this.$host = options.$host || \"https://management.azure.com\";\n this.apiVersion = options.apiVersion || \"2021-03-31-preview\";\n this.operations = new OperationsImpl(this);\n this.environments = new EnvironmentsImpl(this);\n this.eventSources = new EventSourcesImpl(this);\n this.referenceDataSets = new ReferenceDataSetsImpl(this);\n this.accessPolicies = new AccessPoliciesImpl(this);\n this.privateEndpointConnections = new PrivateEndpointConnectionsImpl(this);\n this.privateLinkResources = new PrivateLinkResourcesImpl(this);\n this.addCustomApiVersionPolicy(options.apiVersion);\n }\n\n /** A function that adds a policy that sets the api-version (or equivalent) to reflect the library version. */\n private addCustomApiVersionPolicy(apiVersion?: string) {\n if (!apiVersion) {\n return;\n }\n const apiVersionPolicy = {\n name: \"CustomApiVersionPolicy\",\n async sendRequest(\n request: PipelineRequest,\n next: SendRequest\n ): Promise<PipelineResponse> {\n const param = request.url.split(\"?\");\n if (param.length > 1) {\n const newParams = param[1].split(\"&\").map((item) => {\n if (item.indexOf(\"api-version\") > -1) {\n return \"api-version=\" + apiVersion;\n } else {\n return item;\n }\n });\n request.url = param[0] + \"?\" + newParams.join(\"&\");\n }\n return next(request);\n }\n };\n this.pipeline.addPolicy(apiVersionPolicy);\n }\n\n operations: Operations;\n environments: Environments;\n eventSources: EventSources;\n referenceDataSets: ReferenceDataSets;\n accessPolicies: AccessPolicies;\n privateEndpointConnections: PrivateEndpointConnections;\n privateLinkResources: PrivateLinkResources;\n}\n"]}
|
package/dist/commonjs/lroImpl.js
CHANGED
@@ -8,8 +8,12 @@
|
|
8
8
|
*/
|
9
9
|
Object.defineProperty(exports, "__esModule", { value: true });
|
10
10
|
exports.LroImpl = void 0;
|
11
|
-
const tslib_1 = require("tslib");
|
12
11
|
class LroImpl {
|
12
|
+
sendOperationFn;
|
13
|
+
args;
|
14
|
+
spec;
|
15
|
+
requestPath;
|
16
|
+
requestMethod;
|
13
17
|
constructor(sendOperationFn, args, spec, requestPath = spec.path, requestMethod = spec.httpMethod) {
|
14
18
|
this.sendOperationFn = sendOperationFn;
|
15
19
|
this.args = args;
|
@@ -21,8 +25,12 @@ class LroImpl {
|
|
21
25
|
return this.sendOperationFn(this.args, this.spec);
|
22
26
|
}
|
23
27
|
async sendPollRequest(path) {
|
24
|
-
const
|
25
|
-
return this.sendOperationFn(this.args,
|
28
|
+
const { requestBody, ...restSpec } = this.spec;
|
29
|
+
return this.sendOperationFn(this.args, {
|
30
|
+
...restSpec,
|
31
|
+
path,
|
32
|
+
httpMethod: "GET"
|
33
|
+
});
|
26
34
|
}
|
27
35
|
}
|
28
36
|
exports.LroImpl = LroImpl;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"lroImpl.js","sourceRoot":"","sources":["../../src/lroImpl.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG
|
1
|
+
{"version":3,"file":"lroImpl.js","sourceRoot":"","sources":["../../src/lroImpl.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;AAIH,MAAa,OAAO;IAER;IACA;IACA;IAKD;IACA;IATT,YACU,eAAkE,EAClE,IAA6B,EAC7B,IAIe,EAChB,cAAsB,IAAI,CAAC,IAAK,EAChC,gBAAwB,IAAI,CAAC,UAAU;QARtC,oBAAe,GAAf,eAAe,CAAmD;QAClE,SAAI,GAAJ,IAAI,CAAyB;QAC7B,SAAI,GAAJ,IAAI,CAIW;QAChB,gBAAW,GAAX,WAAW,CAAqB;QAChC,kBAAa,GAAb,aAAa,CAA0B;IAC7C,CAAC;IACG,KAAK,CAAC,kBAAkB;QAC7B,OAAO,IAAI,CAAC,eAAe,CAAC,IAAI,CAAC,IAAI,EAAE,IAAI,CAAC,IAAI,CAAC,CAAC;IACpD,CAAC;IACM,KAAK,CAAC,eAAe,CAAC,IAAY;QACvC,MAAM,EAAE,WAAW,EAAE,GAAG,QAAQ,EAAE,GAAG,IAAI,CAAC,IAAI,CAAC;QAC/C,OAAO,IAAI,CAAC,eAAe,CAAC,IAAI,CAAC,IAAI,EAAE;YACrC,GAAG,QAAQ;YACX,IAAI;YACJ,UAAU,EAAE,KAAK;SAClB,CAAC,CAAC;IACL,CAAC;CACF;AAvBD,0BAuBC","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport { LongRunningOperation, LroResponse } from \"@azure/core-lro\";\n\nexport class LroImpl<T> implements LongRunningOperation<T> {\n constructor(\n private sendOperationFn: (args: any, spec: any) => Promise<LroResponse<T>>,\n private args: Record<string, unknown>,\n private spec: {\n readonly requestBody?: unknown;\n readonly path?: string;\n readonly httpMethod: string;\n } & Record<string, any>,\n public requestPath: string = spec.path!,\n public requestMethod: string = spec.httpMethod\n ) {}\n public async sendInitialRequest(): Promise<LroResponse<T>> {\n return this.sendOperationFn(this.args, this.spec);\n }\n public async sendPollRequest(path: string): Promise<LroResponse<T>> {\n const { requestBody, ...restSpec } = this.spec;\n return this.sendOperationFn(this.args, {\n ...restSpec,\n path,\n httpMethod: \"GET\"\n });\n }\n}\n"]}
|