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

[AutoPR eventgrid/resource-manager] Added tag corresponding to new preview API version 2018-05-01-preview #2821

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
Generated from 931599a081804045ac71d6a6efd7216688d2c55d
Added tag corresponding to new preview API version 2018-05-01-preview
  • Loading branch information
AutorestCI committed May 1, 2018
commit 57838bc4e0d22a5741d6d89030a5dd0f82a80e39
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ class EventGridManagementClient extends ServiceClient {

super(credentials, options);

this.apiVersion = '2018-01-01';
this.apiVersion = '2018-05-01-preview';
this.acceptLanguage = 'en-US';
this.longRunningOperationRetryTimeout = 30;
this.generateClientRequestId = true;
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
/*
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for
* license information.
*
* Code generated by Microsoft (R) AutoRest Code Generator.
* Changes may cause incorrect behavior and will be lost if the code is
* regenerated.
*/

'use strict';

/**
* Information about the dead letter destination for an event subscription. To
* configure a deadletter destination, do not directly instantiate an object of
* this class. Instead, instantiate an object of a derived class. Currently,
* StorageBlobDeadLetterDestination is the only class that derives from this
* class.
*
*/
class DeadLetterDestination {
/**
* Create a DeadLetterDestination.
* @member {string} endpointType Polymorphic Discriminator
*/
constructor() {
}

/**
* Defines the metadata of DeadLetterDestination
*
* @returns {object} metadata of DeadLetterDestination
*
*/
mapper() {
return {
required: false,
serializedName: 'DeadLetterDestination',
type: {
name: 'Composite',
polymorphicDiscriminator: {
serializedName: 'endpointType',
clientName: 'endpointType'
},
uberParent: 'DeadLetterDestination',
className: 'DeadLetterDestination',
modelProperties: {
endpointType: {
required: true,
serializedName: 'endpointType',
isPolymorphicDiscriminator: true,
type: {
name: 'String'
}
}
}
}
};
}
}

module.exports = DeadLetterDestination;
46 changes: 45 additions & 1 deletion lib/services/eventgridManagement/lib/models/eventSubscription.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ class EventSubscription extends models['Resource'] {
* @member {string} [topic] Name of the topic of the event subscription.
* @member {string} [provisioningState] Provisioning state of the event
* subscription. Possible values include: 'Creating', 'Updating', 'Deleting',
* 'Succeeded', 'Canceled', 'Failed'
* 'Succeeded', 'Canceled', 'Failed', 'AwaitingManualAction'
* @member {object} [destination] Information about the destination where
* events have to be delivered for the event subscription.
* @member {string} [destination.endpointType] Polymorphic Discriminator
Expand All @@ -44,6 +44,21 @@ class EventSubscription extends models['Resource'] {
* SubjectBeginsWith and SubjectEndsWith properties of the filter
* should be compared in a case sensitive manner.
* @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' .
* @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.
* @member {number} [retryPolicy.maxDeliveryAttempts] Maximum number of
* delivery retry attempts for events.
* @member {number} [retryPolicy.eventTimeToLiveInMinutes] Time To Live (in
* minutes) for events.
* @member {object} [deadLetterDestination] The DeadLetter destination of the
* event subscription.
* @member {string} [deadLetterDestination.endpointType] Polymorphic
* Discriminator
*/
constructor() {
super();
Expand Down Expand Up @@ -137,6 +152,35 @@ class EventSubscription extends models['Resource'] {
}
}
}
},
eventDeliverySchema: {
required: false,
serializedName: 'properties.eventDeliverySchema',
defaultValue: 'EventGridSchema',
type: {
name: 'String'
}
},
retryPolicy: {
required: false,
serializedName: 'properties.retryPolicy',
type: {
name: 'Composite',
className: 'RetryPolicy'
}
},
deadLetterDestination: {
required: false,
serializedName: 'properties.deadLetterDestination',
type: {
name: 'Composite',
polymorphicDiscriminator: {
serializedName: 'endpointType',
clientName: 'endpointType'
},
uberParent: 'DeadLetterDestination',
className: 'DeadLetterDestination'
}
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,21 @@ class EventSubscriptionUpdateParameters {
* SubjectBeginsWith and SubjectEndsWith properties of the filter
* should be compared in a case sensitive manner.
* @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' .
* @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.
* @member {number} [retryPolicy.maxDeliveryAttempts] Maximum number of
* delivery retry attempts for events.
* @member {number} [retryPolicy.eventTimeToLiveInMinutes] Time To Live (in
* minutes) for events.
* @member {object} [deadLetterDestination] The DeadLetter destination of the
* event subscription.
* @member {string} [deadLetterDestination.endpointType] Polymorphic
* Discriminator
*/
constructor() {
}
Expand Down Expand Up @@ -91,6 +106,35 @@ class EventSubscriptionUpdateParameters {
}
}
}
},
eventDeliverySchema: {
required: false,
serializedName: 'eventDeliverySchema',
defaultValue: 'EventGridSchema',
type: {
name: 'String'
}
},
retryPolicy: {
required: false,
serializedName: 'retryPolicy',
type: {
name: 'Composite',
className: 'RetryPolicy'
}
},
deadLetterDestination: {
required: false,
serializedName: 'deadLetterDestination',
type: {
name: 'Composite',
polymorphicDiscriminator: {
serializedName: 'endpointType',
clientName: 'endpointType'
},
uberParent: 'DeadLetterDestination',
className: 'DeadLetterDestination'
}
}
}
}
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,71 @@
/*
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for
* license information.
*
* Code generated by Microsoft (R) AutoRest Code Generator.
* Changes may cause incorrect behavior and will be lost if the code is
* regenerated.
*/

'use strict';

const models = require('./index');

/**
* Information about the HybridConnection destination for an event
* subscription.
*
* @extends models['EventSubscriptionDestination']
*/
class HybridConnectionEventSubscriptionDestination extends models['EventSubscriptionDestination'] {
/**
* Create a HybridConnectionEventSubscriptionDestination.
* @member {string} [resourceId] The Azure Resource ID of an hybrid
* connection that is the destination of an event subscription.
*/
constructor() {
super();
}

/**
* Defines the metadata of HybridConnectionEventSubscriptionDestination
*
* @returns {object} metadata of HybridConnectionEventSubscriptionDestination
*
*/
mapper() {
return {
required: false,
serializedName: 'HybridConnection',
type: {
name: 'Composite',
polymorphicDiscriminator: {
serializedName: 'endpointType',
clientName: 'endpointType'
},
uberParent: 'EventSubscriptionDestination',
className: 'HybridConnectionEventSubscriptionDestination',
modelProperties: {
endpointType: {
required: true,
serializedName: 'endpointType',
isPolymorphicDiscriminator: true,
type: {
name: 'String'
}
},
resourceId: {
required: false,
serializedName: 'properties.resourceId',
type: {
name: 'String'
}
}
}
}
};
}
}

module.exports = HybridConnectionEventSubscriptionDestination;
Loading