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

[AutoPR eventgrid/resource-manager] Fix for a linter error related to default value in PATCH request body + use the correct default value in PUT #3129

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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