From 88471e39a8166a899f54dfe31d552044c27760df Mon Sep 17 00:00:00 2001 From: Azure SDK for Python bot Date: Fri, 6 Jul 2018 18:22:15 +0000 Subject: [PATCH] Generated from e1fc2e1bdad54c396693d98c655354fc82f8f36b 1) Fix for linter error "Properties of a PATCH request body must not be default-valued. PATCH operation: 'EventSubscriptions_Update' Model Definition: 'EventSubscriptionUpdateParameters' Property: 'eventDeliverySchema'". 2) Updated the default value of EventDeliverySchema to the correct value used by the service. --- .../eventgridManagement/lib/models/eventSubscription.js | 4 ++-- .../lib/models/eventSubscriptionUpdateParameters.js | 4 +--- lib/services/eventgridManagement/lib/models/index.d.ts | 5 ++--- lib/services/eventgridManagement/package.json | 7 +++++-- 4 files changed, 10 insertions(+), 10 deletions(-) diff --git a/lib/services/eventgridManagement/lib/models/eventSubscription.js b/lib/services/eventgridManagement/lib/models/eventSubscription.js index 7a9699a003..1da68c6113 100644 --- a/lib/services/eventgridManagement/lib/models/eventSubscription.js +++ b/lib/services/eventgridManagement/lib/models/eventSubscription.js @@ -47,7 +47,7 @@ class EventSubscription extends models['Resource'] { * @member {string} [eventDeliverySchema] The event delivery schema for the * event subscription. Possible values include: 'EventGridSchema', * 'InputEventSchema', 'CloudEventV01Schema'. Default value: - * 'EventGridSchema' . + * 'InputEventSchema' . * @member {object} [retryPolicy] The retry policy for events. This can be * used to configure maximum number of delivery attempts and time to live for * events. @@ -156,7 +156,7 @@ class EventSubscription extends models['Resource'] { eventDeliverySchema: { required: false, serializedName: 'properties.eventDeliverySchema', - defaultValue: 'EventGridSchema', + defaultValue: 'InputEventSchema', type: { name: 'String' } diff --git a/lib/services/eventgridManagement/lib/models/eventSubscriptionUpdateParameters.js b/lib/services/eventgridManagement/lib/models/eventSubscriptionUpdateParameters.js index 4c98d16dfa..36a5bbd41a 100644 --- a/lib/services/eventgridManagement/lib/models/eventSubscriptionUpdateParameters.js +++ b/lib/services/eventgridManagement/lib/models/eventSubscriptionUpdateParameters.js @@ -41,8 +41,7 @@ class EventSubscriptionUpdateParameters { * @member {array} [labels] List of user defined labels. * @member {string} [eventDeliverySchema] The event delivery schema for the * event subscription. Possible values include: 'EventGridSchema', - * 'InputEventSchema', 'CloudEventV01Schema'. Default value: - * 'EventGridSchema' . + * 'InputEventSchema', 'CloudEventV01Schema' * @member {object} [retryPolicy] The retry policy for events. This can be * used to configure maximum number of delivery attempts and time to live for * events. @@ -110,7 +109,6 @@ class EventSubscriptionUpdateParameters { eventDeliverySchema: { required: false, serializedName: 'eventDeliverySchema', - defaultValue: 'EventGridSchema', type: { name: 'String' } diff --git a/lib/services/eventgridManagement/lib/models/index.d.ts b/lib/services/eventgridManagement/lib/models/index.d.ts index 3b1e85bd3a..5638897eaa 100644 --- a/lib/services/eventgridManagement/lib/models/index.d.ts +++ b/lib/services/eventgridManagement/lib/models/index.d.ts @@ -211,7 +211,7 @@ export interface HybridConnectionEventSubscriptionDestination extends EventSubsc * @member {array} [labels] List of user defined labels. * @member {string} [eventDeliverySchema] The event delivery schema for the * event subscription. Possible values include: 'EventGridSchema', - * 'InputEventSchema', 'CloudEventV01Schema'. Default value: 'EventGridSchema' + * 'InputEventSchema', 'CloudEventV01Schema'. Default value: 'InputEventSchema' * . * @member {object} [retryPolicy] The retry policy for events. This can be used * to configure maximum number of delivery attempts and time to live for @@ -264,8 +264,7 @@ export interface EventSubscription extends Resource { * @member {array} [labels] List of user defined labels. * @member {string} [eventDeliverySchema] The event delivery schema for the * event subscription. Possible values include: 'EventGridSchema', - * 'InputEventSchema', 'CloudEventV01Schema'. Default value: 'EventGridSchema' - * . + * 'InputEventSchema', 'CloudEventV01Schema' * @member {object} [retryPolicy] The retry policy for events. This can be used * to configure maximum number of delivery attempts and time to live for * events. diff --git a/lib/services/eventgridManagement/package.json b/lib/services/eventgridManagement/package.json index d1c20a6450..85a26fc7e8 100644 --- a/lib/services/eventgridManagement/package.json +++ b/lib/services/eventgridManagement/package.json @@ -4,10 +4,13 @@ "description": "EventGridManagementClient Library with typescript type definitions for node", "version": "1.1.0-preview", "dependencies": { - "ms-rest": "^2.3.2", + "ms-rest": "^2.3.3", "ms-rest-azure": "^2.5.5" }, - "keywords": [ "node", "azure" ], + "keywords": [ + "node", + "azure" + ], "license": "MIT", "main": "./lib/eventGridManagementClient.js", "types": "./lib/eventGridManagementClient.d.ts",