Skip to content
This repository has been archived by the owner on May 5, 2023. It is now read-only.

Commit

Permalink
Generated from e1fc2e1bdad54c396693d98c655354fc82f8f36b (#3129)
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
AutorestCI authored Jul 10, 2018
1 parent 15b2587 commit 91ffeaf
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down Expand Up @@ -156,7 +156,7 @@ class EventSubscription extends models['Resource'] {
eventDeliverySchema: {
required: false,
serializedName: 'properties.eventDeliverySchema',
defaultValue: 'EventGridSchema',
defaultValue: 'InputEventSchema',
type: {
name: 'String'
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down Expand Up @@ -110,7 +109,6 @@ class EventSubscriptionUpdateParameters {
eventDeliverySchema: {
required: false,
serializedName: 'eventDeliverySchema',
defaultValue: 'EventGridSchema',
type: {
name: 'String'
}
Expand Down
5 changes: 2 additions & 3 deletions lib/services/eventgridManagement/lib/models/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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.
Expand Down
7 changes: 5 additions & 2 deletions lib/services/eventgridManagement/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit 91ffeaf

Please sign in to comment.