From 4218b21f31b41f9aedbd514ce3e36b88f743f4ba Mon Sep 17 00:00:00 2001 From: colawwj <70128817+colawwj@users.noreply.github.com> Date: Sat, 8 May 2021 17:11:53 +0800 Subject: [PATCH] arm-operationalinsights-release (#14741) --- .../arm-operationalinsights/package.json | 2 +- .../src/models/clustersMappers.ts | 2 +- .../src/models/dataExportsMappers.ts | 2 +- .../src/models/deletedWorkspacesMappers.ts | 4 +- .../src/models/index.ts | 189 ++++++----- .../src/models/mappers.ts | 300 ++++++++++-------- .../src/models/operationStatusesMappers.ts | 1 + .../src/models/tablesMappers.ts | 2 +- .../src/models/workspacesMappers.ts | 4 +- ...rationalInsightsManagementClientContext.ts | 8 +- .../src/operations/clusters.ts | 16 +- .../src/operations/dataExports.ts | 8 +- .../src/operations/deletedWorkspaces.ts | 4 +- .../src/operations/tables.ts | 6 +- .../src/operations/workspaces.ts | 12 +- 15 files changed, 301 insertions(+), 259 deletions(-) diff --git a/sdk/operationalinsights/arm-operationalinsights/package.json b/sdk/operationalinsights/arm-operationalinsights/package.json index a493119509ce..066b3cd6ee8c 100644 --- a/sdk/operationalinsights/arm-operationalinsights/package.json +++ b/sdk/operationalinsights/arm-operationalinsights/package.json @@ -2,7 +2,7 @@ "name": "@azure/arm-operationalinsights", "author": "Microsoft Corporation", "description": "OperationalInsightsManagementClient Library with typescript type definitions for node.js and browser.", - "version": "6.0.0", + "version": "7.0.0", "dependencies": { "@azure/ms-rest-azure-js": "^2.0.1", "@azure/ms-rest-js": "^2.0.4", diff --git a/sdk/operationalinsights/arm-operationalinsights/src/models/clustersMappers.ts b/sdk/operationalinsights/arm-operationalinsights/src/models/clustersMappers.ts index 8c57a4c89ea0..526d3ac0394d 100644 --- a/sdk/operationalinsights/arm-operationalinsights/src/models/clustersMappers.ts +++ b/sdk/operationalinsights/arm-operationalinsights/src/models/clustersMappers.ts @@ -10,13 +10,13 @@ export { AzureEntityResource, BaseResource, Cluster, - ClusterErrorResponse, ClusterListResult, ClusterPatch, ClusterSku, DataExport, DataSource, ErrorAdditionalInfo, + ErrorDetail, ErrorResponse, Identity, KeyVaultProperties, diff --git a/sdk/operationalinsights/arm-operationalinsights/src/models/dataExportsMappers.ts b/sdk/operationalinsights/arm-operationalinsights/src/models/dataExportsMappers.ts index 4190b479deee..7ae4780713a6 100644 --- a/sdk/operationalinsights/arm-operationalinsights/src/models/dataExportsMappers.ts +++ b/sdk/operationalinsights/arm-operationalinsights/src/models/dataExportsMappers.ts @@ -13,10 +13,10 @@ export { ClusterPatch, ClusterSku, DataExport, - DataExportErrorResponse, DataExportListResult, DataSource, ErrorAdditionalInfo, + ErrorDetail, ErrorResponse, Identity, KeyVaultProperties, diff --git a/sdk/operationalinsights/arm-operationalinsights/src/models/deletedWorkspacesMappers.ts b/sdk/operationalinsights/arm-operationalinsights/src/models/deletedWorkspacesMappers.ts index 8929502dace2..6bfe44aaf661 100644 --- a/sdk/operationalinsights/arm-operationalinsights/src/models/deletedWorkspacesMappers.ts +++ b/sdk/operationalinsights/arm-operationalinsights/src/models/deletedWorkspacesMappers.ts @@ -9,12 +9,14 @@ export { AzureEntityResource, BaseResource, - CloudError, Cluster, ClusterPatch, ClusterSku, DataExport, DataSource, + ErrorAdditionalInfo, + ErrorDetail, + ErrorResponse, Identity, KeyVaultProperties, LinkedService, diff --git a/sdk/operationalinsights/arm-operationalinsights/src/models/index.ts b/sdk/operationalinsights/arm-operationalinsights/src/models/index.ts index f87a8b138191..bfaff881e198 100644 --- a/sdk/operationalinsights/arm-operationalinsights/src/models/index.ts +++ b/sdk/operationalinsights/arm-operationalinsights/src/models/index.ts @@ -52,66 +52,6 @@ export interface DataExport extends BaseResource { lastModifiedDate?: string; } -/** - * The resource management error additional info. - */ -export interface ErrorAdditionalInfo { - /** - * The additional info type. - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly type?: string; - /** - * The additional info. - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly info?: any; -} - -/** - * Common error response for all Azure Resource Manager APIs to return error details for failed - * operations. (This also follows the OData error response format.) - * @summary Error Response - */ -export interface ErrorResponse { - /** - * The error code. - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly code?: string; - /** - * The error message. - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly message?: string; - /** - * The error target. - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly target?: string; - /** - * The error details. - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly details?: ErrorResponse[]; - /** - * The error additional info. - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly additionalInfo?: ErrorAdditionalInfo[]; -} - -/** - * Error response indicates that the service is not able to process the incoming request. The - * reason is provided in the error message. - */ -export interface DataExportErrorResponse { - /** - * The details of the error. - */ - error?: ErrorResponse; -} - /** * Common fields that are returned in the response for all Azure Resource Manager resources * @summary Resource @@ -172,6 +112,65 @@ export interface AzureEntityResource extends Resource { export interface ProxyResource extends Resource { } +/** + * The resource management error additional info. + */ +export interface ErrorAdditionalInfo { + /** + * The additional info type. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly type?: string; + /** + * The additional info. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly info?: any; +} + +/** + * The error detail. + */ +export interface ErrorDetail { + /** + * The error code. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly code?: string; + /** + * The error message. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly message?: string; + /** + * The error target. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly target?: string; + /** + * The error details. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly details?: ErrorDetail[]; + /** + * The error additional info. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly additionalInfo?: ErrorAdditionalInfo[]; +} + +/** + * Common error response for all Azure Resource Manager APIs to return error details for failed + * operations. (This also follows the OData error response format.). + * @summary Error response + */ +export interface ErrorResponse { + /** + * The error object. + */ + error?: ErrorDetail; +} + /** * Datasources under OMS Workspace. */ @@ -451,7 +450,7 @@ export interface UsageMetric { export interface WorkspaceSku { /** * The name of the SKU. Possible values include: 'Free', 'Standard', 'Premium', 'PerNode', - * 'PerGB2018', 'Standalone', 'CapacityReservation' + * 'PerGB2018', 'Standalone', 'CapacityReservation', 'LACluster' */ name: WorkspaceSkuNameEnum; /** @@ -525,13 +524,24 @@ export interface Workspace extends TrackedResource { */ sku?: WorkspaceSku; /** - * The workspace data retention in days, between 30 and 730. + * The workspace data retention in days. Allowed values are per pricing plan. See pricing tiers + * documentation for details. */ retentionInDays?: number; /** * The daily volume cap for ingestion. */ workspaceCapping?: WorkspaceCapping; + /** + * Workspace creation date. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly createdDate?: string; + /** + * Workspace modification date. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly modifiedDate?: string; /** * The network access type for accessing Log Analytics ingestion. Possible values include: * 'Enabled', 'Disabled'. Default value: 'Enabled'. @@ -542,11 +552,19 @@ export interface Workspace extends TrackedResource { * 'Disabled'. Default value: 'Enabled'. */ publicNetworkAccessForQuery?: PublicNetworkAccessType; + /** + * Indicates whether customer managed storage is mandatory for query management. + */ + forceCmkForQuery?: boolean; /** * List of linked private link scope resources. * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly privateLinkScopedResources?: PrivateLinkScopedResource[]; + /** + * Workspace features. + */ + features?: { [propertyName: string]: any }; /** * The ETag of the workspace. */ @@ -572,13 +590,24 @@ export interface WorkspacePatch extends AzureEntityResource { */ sku?: WorkspaceSku; /** - * The workspace data retention in days, between 30 and 730. + * The workspace data retention in days. Allowed values are per pricing plan. See pricing tiers + * documentation for details. */ retentionInDays?: number; /** * The daily volume cap for ingestion. */ workspaceCapping?: WorkspaceCapping; + /** + * Workspace creation date. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly createdDate?: string; + /** + * Workspace modification date. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly modifiedDate?: string; /** * The network access type for accessing Log Analytics ingestion. Possible values include: * 'Enabled', 'Disabled'. Default value: 'Enabled'. @@ -589,11 +618,19 @@ export interface WorkspacePatch extends AzureEntityResource { * 'Disabled'. Default value: 'Enabled'. */ publicNetworkAccessForQuery?: PublicNetworkAccessType; + /** + * Indicates whether customer managed storage is mandatory for query management. + */ + forceCmkForQuery?: boolean; /** * List of linked private link scope resources. * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly privateLinkScopedResources?: PrivateLinkScopedResource[]; + /** + * Workspace features. + */ + features?: { [propertyName: string]: any }; /** * Resource tags. Optional. */ @@ -618,17 +655,6 @@ export interface KeyVaultProperties { keyVersion?: string; } -/** - * Error response indicates that the service is not able to process the incoming request. The - * reason is provided in the error message. - */ -export interface ClusterErrorResponse { - /** - * The details of the error. - */ - error?: ErrorResponse; -} - /** * The cluster sku definition. */ @@ -1119,17 +1145,6 @@ export interface Table extends ProxyResource { retentionInDays?: number; } -/** - * Contains details when the response code indicates an error. - * @summary Error details. - */ -export interface ErrorContract { - /** - * The details of the error. - */ - error?: ErrorResponse; -} - /** * Optional Parameters. */ @@ -1339,11 +1354,11 @@ export type DataSourceType = 'CustomLogs' | 'AzureWatson' | 'Query' | 'Alerts'; /** * Defines values for WorkspaceSkuNameEnum. * Possible values include: 'Free', 'Standard', 'Premium', 'PerNode', 'PerGB2018', 'Standalone', - * 'CapacityReservation' + * 'CapacityReservation', 'LACluster' * @readonly * @enum {string} */ -export type WorkspaceSkuNameEnum = 'Free' | 'Standard' | 'Premium' | 'PerNode' | 'PerGB2018' | 'Standalone' | 'CapacityReservation'; +export type WorkspaceSkuNameEnum = 'Free' | 'Standard' | 'Premium' | 'PerNode' | 'PerGB2018' | 'Standalone' | 'CapacityReservation' | 'LACluster'; /** * Defines values for DataIngestionStatus. diff --git a/sdk/operationalinsights/arm-operationalinsights/src/models/mappers.ts b/sdk/operationalinsights/arm-operationalinsights/src/models/mappers.ts index a8a87a35f6a0..47f06ef342df 100644 --- a/sdk/operationalinsights/arm-operationalinsights/src/models/mappers.ts +++ b/sdk/operationalinsights/arm-operationalinsights/src/models/mappers.ts @@ -78,6 +78,95 @@ export const DataExport: msRest.CompositeMapper = { } }; +export const Resource: msRest.CompositeMapper = { + serializedName: "Resource", + type: { + name: "Composite", + className: "Resource", + modelProperties: { + id: { + readOnly: true, + serializedName: "id", + type: { + name: "String" + } + }, + name: { + readOnly: true, + serializedName: "name", + type: { + name: "String" + } + }, + type: { + readOnly: true, + serializedName: "type", + type: { + name: "String" + } + } + } + } +}; + +export const TrackedResource: msRest.CompositeMapper = { + serializedName: "TrackedResource", + type: { + name: "Composite", + className: "TrackedResource", + modelProperties: { + ...Resource.type.modelProperties, + tags: { + serializedName: "tags", + type: { + name: "Dictionary", + value: { + type: { + name: "String" + } + } + } + }, + location: { + required: true, + serializedName: "location", + type: { + name: "String" + } + } + } + } +}; + +export const AzureEntityResource: msRest.CompositeMapper = { + serializedName: "AzureEntityResource", + type: { + name: "Composite", + className: "AzureEntityResource", + modelProperties: { + ...Resource.type.modelProperties, + etag: { + readOnly: true, + serializedName: "etag", + type: { + name: "String" + } + } + } + } +}; + +export const ProxyResource: msRest.CompositeMapper = { + serializedName: "ProxyResource", + type: { + name: "Composite", + className: "ProxyResource", + modelProperties: { + ...Resource.type.modelProperties + } + } +}; + export const ErrorAdditionalInfo: msRest.CompositeMapper = { serializedName: "ErrorAdditionalInfo", type: { @@ -102,11 +191,11 @@ export const ErrorAdditionalInfo: msRest.CompositeMapper = { } }; -export const ErrorResponse: msRest.CompositeMapper = { - serializedName: "ErrorResponse", +export const ErrorDetail: msRest.CompositeMapper = { + serializedName: "ErrorDetail", type: { name: "Composite", - className: "ErrorResponse", + className: "ErrorDetail", modelProperties: { code: { readOnly: true, @@ -137,7 +226,7 @@ export const ErrorResponse: msRest.CompositeMapper = { element: { type: { name: "Composite", - className: "ErrorResponse" + className: "ErrorDetail" } } } @@ -159,112 +248,23 @@ export const ErrorResponse: msRest.CompositeMapper = { } }; -export const DataExportErrorResponse: msRest.CompositeMapper = { - serializedName: "DataExportErrorResponse", +export const ErrorResponse: msRest.CompositeMapper = { + serializedName: "ErrorResponse", type: { name: "Composite", - className: "DataExportErrorResponse", + className: "ErrorResponse", modelProperties: { error: { serializedName: "error", type: { name: "Composite", - className: "ErrorResponse" + className: "ErrorDetail" } } } } }; -export const Resource: msRest.CompositeMapper = { - serializedName: "Resource", - type: { - name: "Composite", - className: "Resource", - modelProperties: { - id: { - readOnly: true, - serializedName: "id", - type: { - name: "String" - } - }, - name: { - readOnly: true, - serializedName: "name", - type: { - name: "String" - } - }, - type: { - readOnly: true, - serializedName: "type", - type: { - name: "String" - } - } - } - } -}; - -export const TrackedResource: msRest.CompositeMapper = { - serializedName: "TrackedResource", - type: { - name: "Composite", - className: "TrackedResource", - modelProperties: { - ...Resource.type.modelProperties, - tags: { - serializedName: "tags", - type: { - name: "Dictionary", - value: { - type: { - name: "String" - } - } - } - }, - location: { - required: true, - serializedName: "location", - type: { - name: "String" - } - } - } - } -}; - -export const AzureEntityResource: msRest.CompositeMapper = { - serializedName: "AzureEntityResource", - type: { - name: "Composite", - className: "AzureEntityResource", - modelProperties: { - ...Resource.type.modelProperties, - etag: { - readOnly: true, - serializedName: "etag", - type: { - name: "String" - } - } - } - } -}; - -export const ProxyResource: msRest.CompositeMapper = { - serializedName: "ProxyResource", - type: { - name: "Composite", - className: "ProxyResource", - modelProperties: { - ...Resource.type.modelProperties - } - } -}; - export const DataSource: msRest.CompositeMapper = { serializedName: "DataSource", type: { @@ -796,11 +796,8 @@ export const Workspace: msRest.CompositeMapper = { } }, retentionInDays: { + nullable: true, serializedName: "properties.retentionInDays", - constraints: { - InclusiveMaximum: 730, - InclusiveMinimum: 30 - }, type: { name: "Number" } @@ -812,6 +809,20 @@ export const Workspace: msRest.CompositeMapper = { className: "WorkspaceCapping" } }, + createdDate: { + readOnly: true, + serializedName: "properties.createdDate", + type: { + name: "String" + } + }, + modifiedDate: { + readOnly: true, + serializedName: "properties.modifiedDate", + type: { + name: "String" + } + }, publicNetworkAccessForIngestion: { serializedName: "properties.publicNetworkAccessForIngestion", defaultValue: 'Enabled', @@ -826,6 +837,12 @@ export const Workspace: msRest.CompositeMapper = { name: "String" } }, + forceCmkForQuery: { + serializedName: "properties.forceCmkForQuery", + type: { + name: "Boolean" + } + }, privateLinkScopedResources: { readOnly: true, serializedName: "properties.privateLinkScopedResources", @@ -839,6 +856,17 @@ export const Workspace: msRest.CompositeMapper = { } } }, + features: { + serializedName: "properties\\.properties\\.features", + type: { + name: "Dictionary", + value: { + type: { + name: "Object" + } + } + } + }, eTag: { serializedName: "eTag", type: { @@ -877,11 +905,8 @@ export const WorkspacePatch: msRest.CompositeMapper = { } }, retentionInDays: { + nullable: true, serializedName: "properties.retentionInDays", - constraints: { - InclusiveMaximum: 730, - InclusiveMinimum: 30 - }, type: { name: "Number" } @@ -893,6 +918,20 @@ export const WorkspacePatch: msRest.CompositeMapper = { className: "WorkspaceCapping" } }, + createdDate: { + readOnly: true, + serializedName: "properties.createdDate", + type: { + name: "String" + } + }, + modifiedDate: { + readOnly: true, + serializedName: "properties.modifiedDate", + type: { + name: "String" + } + }, publicNetworkAccessForIngestion: { serializedName: "properties.publicNetworkAccessForIngestion", defaultValue: 'Enabled', @@ -907,6 +946,12 @@ export const WorkspacePatch: msRest.CompositeMapper = { name: "String" } }, + forceCmkForQuery: { + serializedName: "properties.forceCmkForQuery", + type: { + name: "Boolean" + } + }, privateLinkScopedResources: { readOnly: true, serializedName: "properties.privateLinkScopedResources", @@ -920,6 +965,17 @@ export const WorkspacePatch: msRest.CompositeMapper = { } } }, + features: { + serializedName: "properties\\.properties\\.features", + type: { + name: "Dictionary", + value: { + type: { + name: "Object" + } + } + } + }, tags: { serializedName: "tags", type: { @@ -963,23 +1019,6 @@ export const KeyVaultProperties: msRest.CompositeMapper = { } }; -export const ClusterErrorResponse: msRest.CompositeMapper = { - serializedName: "ClusterErrorResponse", - type: { - name: "Composite", - className: "ClusterErrorResponse", - modelProperties: { - error: { - serializedName: "error", - type: { - name: "Composite", - className: "ErrorResponse" - } - } - } - } -}; - export const ClusterSku: msRest.CompositeMapper = { serializedName: "ClusterSku", type: { @@ -1810,23 +1849,6 @@ export const Table: msRest.CompositeMapper = { } }; -export const ErrorContract: msRest.CompositeMapper = { - serializedName: "ErrorContract", - type: { - name: "Composite", - className: "ErrorContract", - modelProperties: { - error: { - serializedName: "error", - type: { - name: "Composite", - className: "ErrorResponse" - } - } - } - } -}; - export const WorkspacePurgePurgeHeaders: msRest.CompositeMapper = { serializedName: "workspacepurge-purge-headers", type: { diff --git a/sdk/operationalinsights/arm-operationalinsights/src/models/operationStatusesMappers.ts b/sdk/operationalinsights/arm-operationalinsights/src/models/operationStatusesMappers.ts index f3e4dbabfea5..4d71afc09945 100644 --- a/sdk/operationalinsights/arm-operationalinsights/src/models/operationStatusesMappers.ts +++ b/sdk/operationalinsights/arm-operationalinsights/src/models/operationStatusesMappers.ts @@ -9,6 +9,7 @@ export { CloudError, ErrorAdditionalInfo, + ErrorDetail, ErrorResponse, OperationStatus } from "../models/mappers"; diff --git a/sdk/operationalinsights/arm-operationalinsights/src/models/tablesMappers.ts b/sdk/operationalinsights/arm-operationalinsights/src/models/tablesMappers.ts index a1fbc7eb86fa..c6f176f47a9c 100644 --- a/sdk/operationalinsights/arm-operationalinsights/src/models/tablesMappers.ts +++ b/sdk/operationalinsights/arm-operationalinsights/src/models/tablesMappers.ts @@ -15,7 +15,7 @@ export { DataExport, DataSource, ErrorAdditionalInfo, - ErrorContract, + ErrorDetail, ErrorResponse, Identity, KeyVaultProperties, diff --git a/sdk/operationalinsights/arm-operationalinsights/src/models/workspacesMappers.ts b/sdk/operationalinsights/arm-operationalinsights/src/models/workspacesMappers.ts index 8929502dace2..6bfe44aaf661 100644 --- a/sdk/operationalinsights/arm-operationalinsights/src/models/workspacesMappers.ts +++ b/sdk/operationalinsights/arm-operationalinsights/src/models/workspacesMappers.ts @@ -9,12 +9,14 @@ export { AzureEntityResource, BaseResource, - CloudError, Cluster, ClusterPatch, ClusterSku, DataExport, DataSource, + ErrorAdditionalInfo, + ErrorDetail, + ErrorResponse, Identity, KeyVaultProperties, LinkedService, diff --git a/sdk/operationalinsights/arm-operationalinsights/src/operationalInsightsManagementClientContext.ts b/sdk/operationalinsights/arm-operationalinsights/src/operationalInsightsManagementClientContext.ts index 6ea8e208f8f1..fda0af09728d 100644 --- a/sdk/operationalinsights/arm-operationalinsights/src/operationalInsightsManagementClientContext.ts +++ b/sdk/operationalinsights/arm-operationalinsights/src/operationalInsightsManagementClientContext.ts @@ -12,7 +12,7 @@ import * as msRest from "@azure/ms-rest-js"; import * as msRestAzure from "@azure/ms-rest-azure-js"; const packageName = "@azure/arm-operationalinsights"; -const packageVersion = "6.0.0"; +const packageVersion = "7.0.0"; export class OperationalInsightsManagementClientContext extends msRestAzure.AzureServiceClient { credentials: msRest.ServiceClientCredentials; @@ -36,7 +36,7 @@ export class OperationalInsightsManagementClientContext extends msRestAzure.Azur if (!options) { options = {}; } - if(!options.userAgent) { + if (!options.userAgent) { const defaultUserAgent = msRestAzure.getDefaultUserAgentValue(); options.userAgent = `${packageName}/${packageVersion} ${defaultUserAgent}`; } @@ -51,10 +51,10 @@ export class OperationalInsightsManagementClientContext extends msRestAzure.Azur this.credentials = credentials; this.subscriptionId = subscriptionId; - if(options.acceptLanguage !== null && options.acceptLanguage !== undefined) { + if (options.acceptLanguage !== null && options.acceptLanguage !== undefined) { this.acceptLanguage = options.acceptLanguage; } - if(options.longRunningOperationRetryTimeout !== null && options.longRunningOperationRetryTimeout !== undefined) { + if (options.longRunningOperationRetryTimeout !== null && options.longRunningOperationRetryTimeout !== undefined) { this.longRunningOperationRetryTimeout = options.longRunningOperationRetryTimeout; } } diff --git a/sdk/operationalinsights/arm-operationalinsights/src/operations/clusters.ts b/sdk/operationalinsights/arm-operationalinsights/src/operations/clusters.ts index 67254e79bac7..b381815609eb 100644 --- a/sdk/operationalinsights/arm-operationalinsights/src/operations/clusters.ts +++ b/sdk/operationalinsights/arm-operationalinsights/src/operations/clusters.ts @@ -286,7 +286,7 @@ const listByResourceGroupOperationSpec: msRest.OperationSpec = { bodyMapper: Mappers.ClusterListResult }, default: { - bodyMapper: Mappers.ClusterErrorResponse + bodyMapper: Mappers.ErrorResponse } }, serializer @@ -309,7 +309,7 @@ const listOperationSpec: msRest.OperationSpec = { bodyMapper: Mappers.ClusterListResult }, default: { - bodyMapper: Mappers.ClusterErrorResponse + bodyMapper: Mappers.ErrorResponse } }, serializer @@ -334,7 +334,7 @@ const getOperationSpec: msRest.OperationSpec = { bodyMapper: Mappers.Cluster }, default: { - bodyMapper: Mappers.ClusterErrorResponse + bodyMapper: Mappers.ErrorResponse } }, serializer @@ -366,7 +366,7 @@ const updateOperationSpec: msRest.OperationSpec = { bodyMapper: Mappers.Cluster }, default: { - bodyMapper: Mappers.ClusterErrorResponse + bodyMapper: Mappers.ErrorResponse } }, serializer @@ -402,7 +402,7 @@ const beginCreateOrUpdateOperationSpec: msRest.OperationSpec = { }, 202: {}, default: { - bodyMapper: Mappers.ClusterErrorResponse + bodyMapper: Mappers.ErrorResponse } }, serializer @@ -426,7 +426,7 @@ const beginDeleteMethodOperationSpec: msRest.OperationSpec = { 200: {}, 204: {}, default: { - bodyMapper: Mappers.ClusterErrorResponse + bodyMapper: Mappers.ErrorResponse } }, serializer @@ -450,7 +450,7 @@ const listByResourceGroupNextOperationSpec: msRest.OperationSpec = { bodyMapper: Mappers.ClusterListResult }, default: { - bodyMapper: Mappers.ClusterErrorResponse + bodyMapper: Mappers.ErrorResponse } }, serializer @@ -474,7 +474,7 @@ const listNextOperationSpec: msRest.OperationSpec = { bodyMapper: Mappers.ClusterListResult }, default: { - bodyMapper: Mappers.ClusterErrorResponse + bodyMapper: Mappers.ErrorResponse } }, serializer diff --git a/sdk/operationalinsights/arm-operationalinsights/src/operations/dataExports.ts b/sdk/operationalinsights/arm-operationalinsights/src/operations/dataExports.ts index a70ef7b19761..1e035cdd10fd 100644 --- a/sdk/operationalinsights/arm-operationalinsights/src/operations/dataExports.ts +++ b/sdk/operationalinsights/arm-operationalinsights/src/operations/dataExports.ts @@ -191,7 +191,7 @@ const listByWorkspaceOperationSpec: msRest.OperationSpec = { bodyMapper: Mappers.DataExportListResult }, default: { - bodyMapper: Mappers.DataExportErrorResponse + bodyMapper: Mappers.ErrorResponse } }, serializer @@ -227,7 +227,7 @@ const createOrUpdateOperationSpec: msRest.OperationSpec = { bodyMapper: Mappers.DataExport }, default: { - bodyMapper: Mappers.DataExportErrorResponse + bodyMapper: Mappers.ErrorResponse } }, serializer @@ -253,7 +253,7 @@ const getOperationSpec: msRest.OperationSpec = { bodyMapper: Mappers.DataExport }, default: { - bodyMapper: Mappers.DataExportErrorResponse + bodyMapper: Mappers.ErrorResponse } }, serializer @@ -278,7 +278,7 @@ const deleteMethodOperationSpec: msRest.OperationSpec = { 200: {}, 404: {}, default: { - bodyMapper: Mappers.DataExportErrorResponse + bodyMapper: Mappers.ErrorResponse } }, serializer diff --git a/sdk/operationalinsights/arm-operationalinsights/src/operations/deletedWorkspaces.ts b/sdk/operationalinsights/arm-operationalinsights/src/operations/deletedWorkspaces.ts index 1f89f7dba6b2..d0f4a2e84d69 100644 --- a/sdk/operationalinsights/arm-operationalinsights/src/operations/deletedWorkspaces.ts +++ b/sdk/operationalinsights/arm-operationalinsights/src/operations/deletedWorkspaces.ts @@ -97,7 +97,7 @@ const listOperationSpec: msRest.OperationSpec = { bodyMapper: Mappers.WorkspaceListResult }, default: { - bodyMapper: Mappers.CloudError + bodyMapper: Mappers.ErrorResponse } }, serializer @@ -121,7 +121,7 @@ const listByResourceGroupOperationSpec: msRest.OperationSpec = { bodyMapper: Mappers.WorkspaceListResult }, default: { - bodyMapper: Mappers.CloudError + bodyMapper: Mappers.ErrorResponse } }, serializer diff --git a/sdk/operationalinsights/arm-operationalinsights/src/operations/tables.ts b/sdk/operationalinsights/arm-operationalinsights/src/operations/tables.ts index fd2b02b8e56a..b370aecc078c 100644 --- a/sdk/operationalinsights/arm-operationalinsights/src/operations/tables.ts +++ b/sdk/operationalinsights/arm-operationalinsights/src/operations/tables.ts @@ -155,7 +155,7 @@ const listByWorkspaceOperationSpec: msRest.OperationSpec = { bodyMapper: Mappers.TablesListResult }, default: { - bodyMapper: Mappers.ErrorContract + bodyMapper: Mappers.ErrorResponse } }, serializer @@ -188,7 +188,7 @@ const updateOperationSpec: msRest.OperationSpec = { bodyMapper: Mappers.Table }, default: { - bodyMapper: Mappers.ErrorContract + bodyMapper: Mappers.ErrorResponse } }, serializer @@ -214,7 +214,7 @@ const getOperationSpec: msRest.OperationSpec = { bodyMapper: Mappers.Table }, default: { - bodyMapper: Mappers.ErrorContract + bodyMapper: Mappers.ErrorResponse } }, serializer diff --git a/sdk/operationalinsights/arm-operationalinsights/src/operations/workspaces.ts b/sdk/operationalinsights/arm-operationalinsights/src/operations/workspaces.ts index 689765d86158..6a9a9e72a112 100644 --- a/sdk/operationalinsights/arm-operationalinsights/src/operations/workspaces.ts +++ b/sdk/operationalinsights/arm-operationalinsights/src/operations/workspaces.ts @@ -235,7 +235,7 @@ const listOperationSpec: msRest.OperationSpec = { bodyMapper: Mappers.WorkspaceListResult }, default: { - bodyMapper: Mappers.CloudError + bodyMapper: Mappers.ErrorResponse } }, serializer @@ -259,7 +259,7 @@ const listByResourceGroupOperationSpec: msRest.OperationSpec = { bodyMapper: Mappers.WorkspaceListResult }, default: { - bodyMapper: Mappers.CloudError + bodyMapper: Mappers.ErrorResponse } }, serializer @@ -284,7 +284,7 @@ const getOperationSpec: msRest.OperationSpec = { bodyMapper: Mappers.Workspace }, default: { - bodyMapper: Mappers.CloudError + bodyMapper: Mappers.ErrorResponse } }, serializer @@ -316,7 +316,7 @@ const updateOperationSpec: msRest.OperationSpec = { bodyMapper: Mappers.Workspace }, default: { - bodyMapper: Mappers.CloudError + bodyMapper: Mappers.ErrorResponse } }, serializer @@ -352,7 +352,7 @@ const beginCreateOrUpdateOperationSpec: msRest.OperationSpec = { }, 202: {}, default: { - bodyMapper: Mappers.CloudError + bodyMapper: Mappers.ErrorResponse } }, serializer @@ -378,7 +378,7 @@ const beginDeleteMethodOperationSpec: msRest.OperationSpec = { 202: {}, 204: {}, default: { - bodyMapper: Mappers.CloudError + bodyMapper: Mappers.ErrorResponse } }, serializer