From 7ba03a05213298c19d77b162e893640a819acbe6 Mon Sep 17 00:00:00 2001 From: Azure SDK for Python bot Date: Mon, 12 Nov 2018 10:36:20 -0800 Subject: [PATCH] [AutoPR security/resource-manager] Remove security contact phone field mandatory fields (#427) * Generated from 3f99e72342d5d4f194ff74c8c553657530955783 Remove security contact phone field mandatory fields * Generated from e94d9f5b16a429a3f1d2270a981be7218f06fd36 Update security contact examples - refactored - second iteration --- packages/@azure/arm-security/lib/models/index.ts | 4 ++-- packages/@azure/arm-security/lib/models/mappers.ts | 1 - 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/packages/@azure/arm-security/lib/models/index.ts b/packages/@azure/arm-security/lib/models/index.ts index 78a3b7ecb605..491aee7cc5ab 100644 --- a/packages/@azure/arm-security/lib/models/index.ts +++ b/packages/@azure/arm-security/lib/models/index.ts @@ -68,9 +68,9 @@ export interface SecurityContact extends Resource { */ email: string; /** - * @member {string} phone The phone number of this security contact + * @member {string} [phone] The phone number of this security contact */ - phone: string; + phone?: string; /** * @member {AlertNotifications} alertNotifications Whether to send security * alerts notifications to the security contact. Possible values include: diff --git a/packages/@azure/arm-security/lib/models/mappers.ts b/packages/@azure/arm-security/lib/models/mappers.ts index 40229399b748..898a47ac8882 100644 --- a/packages/@azure/arm-security/lib/models/mappers.ts +++ b/packages/@azure/arm-security/lib/models/mappers.ts @@ -76,7 +76,6 @@ export const SecurityContact: msRest.CompositeMapper = { } }, phone: { - required: true, serializedName: "properties.phone", type: { name: "String"