From 8b09e0909b4aca900491837ff149706cccdc2dea Mon Sep 17 00:00:00 2001 From: SDKAuto Date: Fri, 22 Jan 2021 02:48:30 +0000 Subject: [PATCH] CodeGen from PR 12385 in Azure/azure-rest-api-specs Operational insights data exports make tables name as required (#12385) * microsoft.operationalinsights_add_data_export * fix * fix * make tablesname property as required * use required property as expected * fix Co-authored-by: Hodaya Hershkovich --- sdk/operationalinsights/arm-operationalinsights/LICENSE.txt | 2 +- .../arm-operationalinsights/src/models/index.ts | 2 +- .../arm-operationalinsights/src/models/mappers.ts | 1 + 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/sdk/operationalinsights/arm-operationalinsights/LICENSE.txt b/sdk/operationalinsights/arm-operationalinsights/LICENSE.txt index ea8fb1516028..2d3163745319 100644 --- a/sdk/operationalinsights/arm-operationalinsights/LICENSE.txt +++ b/sdk/operationalinsights/arm-operationalinsights/LICENSE.txt @@ -1,6 +1,6 @@ The MIT License (MIT) -Copyright (c) 2020 Microsoft +Copyright (c) 2021 Microsoft Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal diff --git a/sdk/operationalinsights/arm-operationalinsights/src/models/index.ts b/sdk/operationalinsights/arm-operationalinsights/src/models/index.ts index 7ad0bf333eac..f87a8b138191 100644 --- a/sdk/operationalinsights/arm-operationalinsights/src/models/index.ts +++ b/sdk/operationalinsights/arm-operationalinsights/src/models/index.ts @@ -22,7 +22,7 @@ export interface DataExport extends BaseResource { /** * An array of tables to export, for example: [“Heartbeat, SecurityEvent”]. */ - tableNames?: string[]; + tableNames: string[]; /** * The destination resource ID. This can be copied from the Properties entry of the destination * resource in Azure. diff --git a/sdk/operationalinsights/arm-operationalinsights/src/models/mappers.ts b/sdk/operationalinsights/arm-operationalinsights/src/models/mappers.ts index f39fbab6dcaa..a8a87a35f6a0 100644 --- a/sdk/operationalinsights/arm-operationalinsights/src/models/mappers.ts +++ b/sdk/operationalinsights/arm-operationalinsights/src/models/mappers.ts @@ -25,6 +25,7 @@ export const DataExport: msRest.CompositeMapper = { } }, tableNames: { + required: true, serializedName: "properties.tableNames", type: { name: "Sequence",