From 945b8dc56b8077d0184229a7b514693f76a9e96a Mon Sep 17 00:00:00 2001 From: Azure SDK for Python bot Date: Sun, 2 Dec 2018 22:27:23 -0800 Subject: [PATCH 1/4] Generated from c60547377173fddd5f1b31f6b4d9af2a5776ba97 (#4265) typo: Microsoft.EventGrid - Double word "key" - eventtime -> eventTime - upto -> up to --- .../eventgridManagement/lib/models/advancedFilter.js | 2 +- lib/services/eventgridManagement/lib/models/index.d.ts | 8 ++++---- lib/services/eventgridManagement/lib/models/jsonField.js | 2 +- .../lib/models/jsonFieldWithDefault.js | 2 +- 4 files changed, 7 insertions(+), 7 deletions(-) diff --git a/lib/services/eventgridManagement/lib/models/advancedFilter.js b/lib/services/eventgridManagement/lib/models/advancedFilter.js index 26b3959da0..6114ec0050 100644 --- a/lib/services/eventgridManagement/lib/models/advancedFilter.js +++ b/lib/services/eventgridManagement/lib/models/advancedFilter.js @@ -19,7 +19,7 @@ class AdvancedFilter { /** * Create a AdvancedFilter. * @member {string} [key] The filter key. Represents an event property with - * upto two levels of nesting. + * up to two levels of nesting. * @member {string} operatorType Polymorphic Discriminator */ constructor() { diff --git a/lib/services/eventgridManagement/lib/models/index.d.ts b/lib/services/eventgridManagement/lib/models/index.d.ts index dc3904772d..e0016dbe7d 100644 --- a/lib/services/eventgridManagement/lib/models/index.d.ts +++ b/lib/services/eventgridManagement/lib/models/index.d.ts @@ -153,8 +153,8 @@ export interface EventSubscriptionDestination { * Represents an advanced filter that can be used to filter events based on * various event envelope/data fields. * - * @member {string} [key] The filter key. Represents an event property with - * upto two levels of nesting. + * @member {string} [key] The filter key. Represents an event property with up + * to two levels of nesting. * @member {string} operatorType Polymorphic Discriminator */ export interface AdvancedFilter { @@ -616,7 +616,7 @@ export interface Operation { * @constructor * This is used to express the source of an input schema mapping for a single * target field in the Event Grid Event schema. This is currently used in the - * mappings for the 'id','topic' and 'eventtime' properties. This represents a + * mappings for the 'id','topic' and 'eventTime' properties. This represents a * field in the input event schema. * * @member {string} [sourceField] Name of a field in the input event schema @@ -632,7 +632,7 @@ export interface JsonField { * @constructor * This is used to express the source of an input schema mapping for a single * target field in the Event Grid Event schema. This is currently used in the - * mappings for the 'subject','eventtype' and 'dataversion' properties. This + * mappings for the 'subject','eventType' and 'dataVersion' properties. This * represents a field in the input event schema along with a default value to * be used, and at least one of these two properties should be provided. * diff --git a/lib/services/eventgridManagement/lib/models/jsonField.js b/lib/services/eventgridManagement/lib/models/jsonField.js index 54bf0a1a5b..b3385d1bb6 100644 --- a/lib/services/eventgridManagement/lib/models/jsonField.js +++ b/lib/services/eventgridManagement/lib/models/jsonField.js @@ -13,7 +13,7 @@ /** * This is used to express the source of an input schema mapping for a single * target field in the Event Grid Event schema. This is currently used in the - * mappings for the 'id','topic' and 'eventtime' properties. This represents a + * mappings for the 'id','topic' and 'eventTime' properties. This represents a * field in the input event schema. * */ diff --git a/lib/services/eventgridManagement/lib/models/jsonFieldWithDefault.js b/lib/services/eventgridManagement/lib/models/jsonFieldWithDefault.js index 7b04c208ac..8a8467ece3 100644 --- a/lib/services/eventgridManagement/lib/models/jsonFieldWithDefault.js +++ b/lib/services/eventgridManagement/lib/models/jsonFieldWithDefault.js @@ -13,7 +13,7 @@ /** * This is used to express the source of an input schema mapping for a single * target field in the Event Grid Event schema. This is currently used in the - * mappings for the 'subject','eventtype' and 'dataversion' properties. This + * mappings for the 'subject','eventType' and 'dataVersion' properties. This * represents a field in the input event schema along with a default value to * be used, and at least one of these two properties should be provided. * From 03ea5c4c74766714e5c7f17def0bb1857eb9c0c2 Mon Sep 17 00:00:00 2001 From: Azure SDK for Python bot Date: Mon, 17 Dec 2018 14:07:29 -0800 Subject: [PATCH 2/4] [AutoPR eventgrid/resource-manager] Event Grid 2019-01-01 API Version: Swagger and related test examples (#4445) * Generated from aef05ab1bf75b3331eaeecbba38705866d5c1e2c fix readme files to reflect correct location to eventgrid json file for stable version * Generated from c8169048866420898f9778405cd1d435b33828b1 fix text --- lib/services/eventgridManagement/README.md | 8 +- .../lib/eventGridManagementClient.d.ts | 2 - .../lib/eventGridManagementClient.js | 4 +- .../lib/models/eventSubscription.js | 20 - .../lib/models/eventSubscriptionFilter.js | 21 - .../eventSubscriptionUpdateParameters.js | 20 - .../eventgridManagement/lib/models/index.d.ts | 421 +----- .../eventgridManagement/lib/models/index.js | 45 +- .../storageBlobDeadLetterDestination.js | 3 +- .../eventgridManagement/lib/models/topic.js | 31 - .../lib/operations/eventSubscriptions.js | 376 ------ .../lib/operations/index.d.ts | 1152 ----------------- .../lib/operations/index.js | 2 - .../lib/operations/topics.js | 78 -- 14 files changed, 28 insertions(+), 2155 deletions(-) diff --git a/lib/services/eventgridManagement/README.md b/lib/services/eventgridManagement/README.md index 73fe7ec966..634dae5877 100644 --- a/lib/services/eventgridManagement/README.md +++ b/lib/services/eventgridManagement/README.md @@ -18,7 +18,7 @@ npm install azure-arm-eventgrid ## How to use -### Authentication, client creation and get domains as an example. +### Authentication, client creation and get eventSubscriptions as an example. ```javascript const msRestAzure = require("ms-rest-azure"); @@ -26,9 +26,9 @@ const EventGridManagementClient = require("azure-arm-eventgrid"); msRestAzure.interactiveLogin().then((creds) => { const subscriptionId = ""; const client = new EventGridManagementClient(creds, subscriptionId); - const resourceGroupName = "testresourceGroupName"; - const domainName = "testdomainName"; - return client.domains.get(resourceGroupName, domainName).then((result) => { + const scope = "testscope"; + const eventSubscriptionName = "testeventSubscriptionName"; + return client.eventSubscriptions.get(scope, eventSubscriptionName).then((result) => { console.log("The result is:"); console.log(result); }); diff --git a/lib/services/eventgridManagement/lib/eventGridManagementClient.d.ts b/lib/services/eventgridManagement/lib/eventGridManagementClient.d.ts index 49705230e9..03519d10f0 100644 --- a/lib/services/eventgridManagement/lib/eventGridManagementClient.d.ts +++ b/lib/services/eventgridManagement/lib/eventGridManagementClient.d.ts @@ -56,8 +56,6 @@ export default class EventGridManagementClient extends AzureServiceClient { generateClientRequestId: boolean; // Operation groups - domains: operations.Domains; - domainTopics: operations.DomainTopics; eventSubscriptions: operations.EventSubscriptions; operations: operations.Operations; topics: operations.Topics; diff --git a/lib/services/eventgridManagement/lib/eventGridManagementClient.js b/lib/services/eventgridManagement/lib/eventGridManagementClient.js index 6e01befdac..b7a0b0380b 100644 --- a/lib/services/eventgridManagement/lib/eventGridManagementClient.js +++ b/lib/services/eventgridManagement/lib/eventGridManagementClient.js @@ -50,7 +50,7 @@ class EventGridManagementClient extends ServiceClient { super(credentials, options); - this.apiVersion = '2018-09-15-preview'; + this.apiVersion = '2019-01-01'; this.acceptLanguage = 'en-US'; this.longRunningOperationRetryTimeout = 30; this.generateClientRequestId = true; @@ -72,8 +72,6 @@ class EventGridManagementClient extends ServiceClient { if(options.generateClientRequestId !== null && options.generateClientRequestId !== undefined) { this.generateClientRequestId = options.generateClientRequestId; } - this.domains = new operations.Domains(this); - this.domainTopics = new operations.DomainTopics(this); this.eventSubscriptions = new operations.EventSubscriptions(this); this.operations = new operations.Operations(this); this.topics = new operations.Topics(this); diff --git a/lib/services/eventgridManagement/lib/models/eventSubscription.js b/lib/services/eventgridManagement/lib/models/eventSubscription.js index b7dacf48f5..5f2ea91220 100644 --- a/lib/services/eventgridManagement/lib/models/eventSubscription.js +++ b/lib/services/eventgridManagement/lib/models/eventSubscription.js @@ -43,13 +43,7 @@ class EventSubscription extends models['Resource'] { * @member {boolean} [filter.isSubjectCaseSensitive] Specifies if the * SubjectBeginsWith and SubjectEndsWith properties of the filter * should be compared in a case sensitive manner. - * @member {array} [filter.advancedFilters] A list of advanced filters. * @member {array} [labels] List of user defined labels. - * @member {date} [expirationTimeUtc] Expiration time of the event - * subscription. - * @member {string} [eventDeliverySchema] The event delivery schema for the - * event subscription. Possible values include: 'EventGridSchema', - * 'CloudEventV01Schema', 'CustomInputSchema' * @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. @@ -155,20 +149,6 @@ class EventSubscription extends models['Resource'] { } } }, - expirationTimeUtc: { - required: false, - serializedName: 'properties.expirationTimeUtc', - type: { - name: 'DateTime' - } - }, - eventDeliverySchema: { - required: false, - serializedName: 'properties.eventDeliverySchema', - type: { - name: 'String' - } - }, retryPolicy: { required: false, serializedName: 'properties.retryPolicy', diff --git a/lib/services/eventgridManagement/lib/models/eventSubscriptionFilter.js b/lib/services/eventgridManagement/lib/models/eventSubscriptionFilter.js index 831e72dd7b..338d0e2ba1 100644 --- a/lib/services/eventgridManagement/lib/models/eventSubscriptionFilter.js +++ b/lib/services/eventgridManagement/lib/models/eventSubscriptionFilter.js @@ -31,7 +31,6 @@ class EventSubscriptionFilter { * @member {boolean} [isSubjectCaseSensitive] Specifies if the * SubjectBeginsWith and SubjectEndsWith properties of the filter * should be compared in a case sensitive manner. Default value: false . - * @member {array} [advancedFilters] A list of advanced filters. */ constructor() { } @@ -85,26 +84,6 @@ class EventSubscriptionFilter { type: { name: 'Boolean' } - }, - advancedFilters: { - required: false, - serializedName: 'advancedFilters', - type: { - name: 'Sequence', - element: { - required: false, - serializedName: 'AdvancedFilterElementType', - type: { - name: 'Composite', - polymorphicDiscriminator: { - serializedName: 'operatorType', - clientName: 'operatorType' - }, - uberParent: 'AdvancedFilter', - className: 'AdvancedFilter' - } - } - } } } } diff --git a/lib/services/eventgridManagement/lib/models/eventSubscriptionUpdateParameters.js b/lib/services/eventgridManagement/lib/models/eventSubscriptionUpdateParameters.js index 8aacf20691..5d4ff24f4e 100644 --- a/lib/services/eventgridManagement/lib/models/eventSubscriptionUpdateParameters.js +++ b/lib/services/eventgridManagement/lib/models/eventSubscriptionUpdateParameters.js @@ -36,13 +36,7 @@ class EventSubscriptionUpdateParameters { * @member {boolean} [filter.isSubjectCaseSensitive] Specifies if the * SubjectBeginsWith and SubjectEndsWith properties of the filter * should be compared in a case sensitive manner. - * @member {array} [filter.advancedFilters] A list of advanced filters. * @member {array} [labels] List of user defined labels. - * @member {date} [expirationTimeUtc] Information about the expiration time - * for the event subscription. - * @member {string} [eventDeliverySchema] The event delivery schema for the - * event subscription. Possible values include: 'EventGridSchema', - * 'CloudEventV01Schema', 'CustomInputSchema' * @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. @@ -107,20 +101,6 @@ class EventSubscriptionUpdateParameters { } } }, - expirationTimeUtc: { - required: false, - serializedName: 'expirationTimeUtc', - type: { - name: 'DateTime' - } - }, - eventDeliverySchema: { - required: false, - serializedName: 'eventDeliverySchema', - type: { - name: 'String' - } - }, retryPolicy: { required: false, serializedName: 'retryPolicy', diff --git a/lib/services/eventgridManagement/lib/models/index.d.ts b/lib/services/eventgridManagement/lib/models/index.d.ts index e0016dbe7d..71dff248b0 100644 --- a/lib/services/eventgridManagement/lib/models/index.d.ts +++ b/lib/services/eventgridManagement/lib/models/index.d.ts @@ -16,124 +16,6 @@ export { BaseResource } from 'ms-rest-azure'; export { CloudError } from 'ms-rest-azure'; -/** - * @class - * Initializes a new instance of the InputSchemaMapping class. - * @constructor - * By default, Event Grid expects events to be in the Event Grid event schema. - * Specifying an input schema mapping enables publishing to Event Grid using a - * custom input schema. Currently, the only supported type of - * InputSchemaMapping is 'JsonInputSchemaMapping'. - * - * @member {string} inputSchemaMappingType Polymorphic Discriminator - */ -export interface InputSchemaMapping { - inputSchemaMappingType: string; -} - -/** - * @class - * Initializes a new instance of the Resource class. - * @constructor - * Definition of a Resource - * - * @member {string} [id] Fully qualified identifier of the resource - * @member {string} [name] Name of the resource - * @member {string} [type] Type of the resource - */ -export interface Resource extends BaseResource { - readonly id?: string; - readonly name?: string; - readonly type?: string; -} - -/** - * @class - * Initializes a new instance of the TrackedResource class. - * @constructor - * Definition of a Tracked Resource - * - * @member {string} location Location of the resource - * @member {object} [tags] Tags of the resource - */ -export interface TrackedResource extends Resource { - location: string; - tags?: { [propertyName: string]: string }; -} - -/** - * @class - * Initializes a new instance of the Domain class. - * @constructor - * EventGrid Domain - * - * @member {string} [provisioningState] Provisioning state of the domain. - * Possible values include: 'Creating', 'Updating', 'Deleting', 'Succeeded', - * 'Canceled', 'Failed' - * @member {string} [endpoint] Endpoint for the domain. - * @member {string} [inputSchema] This determines the format that Event Grid - * should expect for incoming events published to the domain. Possible values - * include: 'EventGridSchema', 'CustomEventSchema', 'CloudEventV01Schema' - * @member {object} [inputSchemaMapping] Information about the - * InputSchemaMapping which specified the info about mapping event payload. - * @member {string} [inputSchemaMapping.inputSchemaMappingType] Polymorphic - * Discriminator - */ -export interface Domain extends TrackedResource { - readonly provisioningState?: string; - readonly endpoint?: string; - inputSchema?: string; - inputSchemaMapping?: InputSchemaMapping; -} - -/** - * @class - * Initializes a new instance of the DomainUpdateParameters class. - * @constructor - * Properties of the Domain update - * - * @member {object} [tags] Tags of the domains resource - */ -export interface DomainUpdateParameters { - tags?: { [propertyName: string]: string }; -} - -/** - * @class - * Initializes a new instance of the DomainSharedAccessKeys class. - * @constructor - * Shared access keys of the Domain - * - * @member {string} [key1] Shared access key1 for the domain. - * @member {string} [key2] Shared access key2 for the domain. - */ -export interface DomainSharedAccessKeys { - key1?: string; - key2?: string; -} - -/** - * @class - * Initializes a new instance of the DomainRegenerateKeyRequest class. - * @constructor - * Domain regenerate share access key request - * - * @member {string} keyName Key name to regenerate key1 or key2 - */ -export interface DomainRegenerateKeyRequest { - keyName: string; -} - -/** - * @class - * Initializes a new instance of the DomainTopic class. - * @constructor - * Domain Topic - * - */ -export interface DomainTopic extends Resource { -} - /** * @class * Initializes a new instance of the EventSubscriptionDestination class. @@ -146,22 +28,6 @@ export interface EventSubscriptionDestination { endpointType: string; } -/** - * @class - * Initializes a new instance of the AdvancedFilter class. - * @constructor - * Represents an advanced filter that can be used to filter events based on - * various event envelope/data fields. - * - * @member {string} [key] The filter key. Represents an event property with up - * to two levels of nesting. - * @member {string} operatorType Polymorphic Discriminator - */ -export interface AdvancedFilter { - key?: string; - operatorType: string; -} - /** * @class * Initializes a new instance of the EventSubscriptionFilter class. @@ -182,14 +48,12 @@ export interface AdvancedFilter { * @member {boolean} [isSubjectCaseSensitive] Specifies if the * SubjectBeginsWith and SubjectEndsWith properties of the filter * should be compared in a case sensitive manner. Default value: false . - * @member {array} [advancedFilters] A list of advanced filters. */ export interface EventSubscriptionFilter { subjectBeginsWith?: string; subjectEndsWith?: string; includedEventTypes?: string[]; isSubjectCaseSensitive?: boolean; - advancedFilters?: AdvancedFilter[]; } /** @@ -226,14 +90,18 @@ export interface DeadLetterDestination { /** * @class - * Initializes a new instance of the NumberInAdvancedFilter class. + * Initializes a new instance of the Resource class. * @constructor - * NumberIn filter + * Definition of a Resource * - * @member {array} [values] The set of filter values + * @member {string} [id] Fully qualified identifier of the resource + * @member {string} [name] Name of the resource + * @member {string} [type] Type of the resource */ -export interface NumberInAdvancedFilter extends AdvancedFilter { - values?: number[]; +export interface Resource extends BaseResource { + readonly id?: string; + readonly name?: string; + readonly type?: string; } /** @@ -243,7 +111,8 @@ export interface NumberInAdvancedFilter extends AdvancedFilter { * Information about the storage blob based dead letter destination. * * @member {string} [resourceId] The Azure Resource ID of the storage account - * that is the destination of the deadletter events + * that is the destination of the deadletter events. For example: + * /subscriptions/{AzureSubscriptionId}/resourceGroups/{ResourceGroupName}/providers/microsoft.Storage/storageAccounts/{StorageAccountName} * @member {string} [blobContainerName] The name of the Storage blob container * that is the destination of the deadletter events */ @@ -252,138 +121,6 @@ export interface StorageBlobDeadLetterDestination extends DeadLetterDestination blobContainerName?: string; } -/** - * @class - * Initializes a new instance of the NumberNotInAdvancedFilter class. - * @constructor - * NumberNotIn Filter - * - * @member {array} [values] The set of filter values - */ -export interface NumberNotInAdvancedFilter extends AdvancedFilter { - values?: number[]; -} - -/** - * @class - * Initializes a new instance of the NumberLessThanAdvancedFilter class. - * @constructor - * NumberLessThan Filter - * - * @member {number} [value] The filter value - */ -export interface NumberLessThanAdvancedFilter extends AdvancedFilter { - value?: number; -} - -/** - * @class - * Initializes a new instance of the NumberGreaterThanAdvancedFilter class. - * @constructor - * NumberGreaterThan Filter - * - * @member {number} [value] The filter value - */ -export interface NumberGreaterThanAdvancedFilter extends AdvancedFilter { - value?: number; -} - -/** - * @class - * Initializes a new instance of the NumberLessThanOrEqualsAdvancedFilter class. - * @constructor - * NumberLessThanOrEquals Filter - * - * @member {number} [value] The filter value - */ -export interface NumberLessThanOrEqualsAdvancedFilter extends AdvancedFilter { - value?: number; -} - -/** - * @class - * Initializes a new instance of the NumberGreaterThanOrEqualsAdvancedFilter class. - * @constructor - * NumberGreaterThanOrEquals Filter - * - * @member {number} [value] The filter value - */ -export interface NumberGreaterThanOrEqualsAdvancedFilter extends AdvancedFilter { - value?: number; -} - -/** - * @class - * Initializes a new instance of the BoolEqualsAdvancedFilter class. - * @constructor - * BoolEquals Filter - * - * @member {boolean} [value] The filter value - */ -export interface BoolEqualsAdvancedFilter extends AdvancedFilter { - value?: boolean; -} - -/** - * @class - * Initializes a new instance of the StringInAdvancedFilter class. - * @constructor - * StringIn Filter - * - * @member {array} [values] The set of filter values - */ -export interface StringInAdvancedFilter extends AdvancedFilter { - values?: string[]; -} - -/** - * @class - * Initializes a new instance of the StringNotInAdvancedFilter class. - * @constructor - * StringNotIn Filter - * - * @member {array} [values] The set of filter values - */ -export interface StringNotInAdvancedFilter extends AdvancedFilter { - values?: string[]; -} - -/** - * @class - * Initializes a new instance of the StringBeginsWithAdvancedFilter class. - * @constructor - * StringBeginsWith Filter - * - * @member {array} [values] The set of filter values - */ -export interface StringBeginsWithAdvancedFilter extends AdvancedFilter { - values?: string[]; -} - -/** - * @class - * Initializes a new instance of the StringEndsWithAdvancedFilter class. - * @constructor - * StringEndsWith Filter - * - * @member {array} [values] The set of filter values - */ -export interface StringEndsWithAdvancedFilter extends AdvancedFilter { - values?: string[]; -} - -/** - * @class - * Initializes a new instance of the StringContainsAdvancedFilter class. - * @constructor - * StringContains Filter - * - * @member {array} [values] The set of filter values - */ -export interface StringContainsAdvancedFilter extends AdvancedFilter { - values?: string[]; -} - /** * @class * Initializes a new instance of the WebHookEventSubscriptionDestination class. @@ -472,13 +209,7 @@ export interface HybridConnectionEventSubscriptionDestination extends EventSubsc * @member {boolean} [filter.isSubjectCaseSensitive] Specifies if the * SubjectBeginsWith and SubjectEndsWith properties of the filter * should be compared in a case sensitive manner. - * @member {array} [filter.advancedFilters] A list of advanced filters. * @member {array} [labels] List of user defined labels. - * @member {date} [expirationTimeUtc] Expiration time of the event - * subscription. - * @member {string} [eventDeliverySchema] The event delivery schema for the - * event subscription. Possible values include: 'EventGridSchema', - * 'CloudEventV01Schema', 'CustomInputSchema' * @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. @@ -497,8 +228,6 @@ export interface EventSubscription extends Resource { destination?: EventSubscriptionDestination; filter?: EventSubscriptionFilter; labels?: string[]; - expirationTimeUtc?: Date; - eventDeliverySchema?: string; retryPolicy?: RetryPolicy; deadLetterDestination?: DeadLetterDestination; } @@ -528,13 +257,7 @@ export interface EventSubscription extends Resource { * @member {boolean} [filter.isSubjectCaseSensitive] Specifies if the * SubjectBeginsWith and SubjectEndsWith properties of the filter * should be compared in a case sensitive manner. - * @member {array} [filter.advancedFilters] A list of advanced filters. * @member {array} [labels] List of user defined labels. - * @member {date} [expirationTimeUtc] Information about the expiration time for - * the event subscription. - * @member {string} [eventDeliverySchema] The event delivery schema for the - * event subscription. Possible values include: 'EventGridSchema', - * 'CloudEventV01Schema', 'CustomInputSchema' * @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. @@ -551,8 +274,6 @@ export interface EventSubscriptionUpdateParameters { destination?: EventSubscriptionDestination; filter?: EventSubscriptionFilter; labels?: string[]; - expirationTimeUtc?: Date; - eventDeliverySchema?: string; retryPolicy?: RetryPolicy; deadLetterDestination?: DeadLetterDestination; } @@ -612,90 +333,16 @@ export interface Operation { /** * @class - * Initializes a new instance of the JsonField class. - * @constructor - * This is used to express the source of an input schema mapping for a single - * target field in the Event Grid Event schema. This is currently used in the - * mappings for the 'id','topic' and 'eventTime' properties. This represents a - * field in the input event schema. - * - * @member {string} [sourceField] Name of a field in the input event schema - * that's to be used as the source of a mapping. - */ -export interface JsonField { - sourceField?: string; -} - -/** - * @class - * Initializes a new instance of the JsonFieldWithDefault class. - * @constructor - * This is used to express the source of an input schema mapping for a single - * target field in the Event Grid Event schema. This is currently used in the - * mappings for the 'subject','eventType' and 'dataVersion' properties. This - * represents a field in the input event schema along with a default value to - * be used, and at least one of these two properties should be provided. - * - * @member {string} [sourceField] Name of a field in the input event schema - * that's to be used as the source of a mapping. - * @member {string} [defaultValue] The default value to be used for mapping - * when a SourceField is not provided or if there's no property with the - * specified name in the published JSON event payload. - */ -export interface JsonFieldWithDefault { - sourceField?: string; - defaultValue?: string; -} - -/** - * @class - * Initializes a new instance of the JsonInputSchemaMapping class. + * Initializes a new instance of the TrackedResource class. * @constructor - * This enables publishing to Event Grid using a custom input schema. This can - * be used to map properties from a custom input JSON schema to the Event Grid - * event schema. + * Definition of a Tracked Resource * - * @member {object} [id] The mapping information for the Id property of the - * Event Grid Event. - * @member {string} [id.sourceField] Name of a field in the input event schema - * that's to be used as the source of a mapping. - * @member {object} [topic] The mapping information for the Topic property of - * the Event Grid Event. - * @member {string} [topic.sourceField] Name of a field in the input event - * schema that's to be used as the source of a mapping. - * @member {object} [eventTime] The mapping information for the EventTime - * property of the Event Grid Event. - * @member {string} [eventTime.sourceField] Name of a field in the input event - * schema that's to be used as the source of a mapping. - * @member {object} [eventType] The mapping information for the EventType - * property of the Event Grid Event. - * @member {string} [eventType.sourceField] Name of a field in the input event - * schema that's to be used as the source of a mapping. - * @member {string} [eventType.defaultValue] The default value to be used for - * mapping when a SourceField is not provided or if there's no property with - * the specified name in the published JSON event payload. - * @member {object} [subject] The mapping information for the Subject property - * of the Event Grid Event. - * @member {string} [subject.sourceField] Name of a field in the input event - * schema that's to be used as the source of a mapping. - * @member {string} [subject.defaultValue] The default value to be used for - * mapping when a SourceField is not provided or if there's no property with - * the specified name in the published JSON event payload. - * @member {object} [dataVersion] The mapping information for the DataVersion - * property of the Event Grid Event. - * @member {string} [dataVersion.sourceField] Name of a field in the input - * event schema that's to be used as the source of a mapping. - * @member {string} [dataVersion.defaultValue] The default value to be used for - * mapping when a SourceField is not provided or if there's no property with - * the specified name in the published JSON event payload. + * @member {string} location Location of the resource + * @member {object} [tags] Tags of the resource */ -export interface JsonInputSchemaMapping extends InputSchemaMapping { - id?: JsonField; - topic?: JsonField; - eventTime?: JsonField; - eventType?: JsonFieldWithDefault; - subject?: JsonFieldWithDefault; - dataVersion?: JsonFieldWithDefault; +export interface TrackedResource extends Resource { + location: string; + tags?: { [propertyName: string]: string }; } /** @@ -708,22 +355,10 @@ export interface JsonInputSchemaMapping extends InputSchemaMapping { * Possible values include: 'Creating', 'Updating', 'Deleting', 'Succeeded', * 'Canceled', 'Failed' * @member {string} [endpoint] Endpoint for the topic. - * @member {string} [inputSchema] This determines the format that Event Grid - * should expect for incoming events published to the topic. Possible values - * include: 'EventGridSchema', 'CustomEventSchema', 'CloudEventV01Schema'. - * Default value: 'EventGridSchema' . - * @member {object} [inputSchemaMapping] This enables publishing using custom - * event schemas. An InputSchemaMapping can be specified to map various - * properties of a source schema to various required properties of the - * EventGridEvent schema. - * @member {string} [inputSchemaMapping.inputSchemaMappingType] Polymorphic - * Discriminator */ export interface Topic extends TrackedResource { readonly provisioningState?: string; readonly endpoint?: string; - inputSchema?: string; - inputSchemaMapping?: InputSchemaMapping; } /** @@ -807,26 +442,6 @@ export interface TopicTypeInfo extends Resource { } -/** - * @class - * Initializes a new instance of the DomainsListResult class. - * @constructor - * Result of the List Domains operation - * - */ -export interface DomainsListResult extends Array { -} - -/** - * @class - * Initializes a new instance of the DomainTopicsListResult class. - * @constructor - * Result of the List Domain Topics operation - * - */ -export interface DomainTopicsListResult extends Array { -} - /** * @class * Initializes a new instance of the EventSubscriptionsListResult class. diff --git a/lib/services/eventgridManagement/lib/models/index.js b/lib/services/eventgridManagement/lib/models/index.js index d8e161899b..4a796676a4 100644 --- a/lib/services/eventgridManagement/lib/models/index.js +++ b/lib/services/eventgridManagement/lib/models/index.js @@ -18,32 +18,12 @@ var msRestAzure = require('ms-rest-azure'); exports.BaseResource = msRestAzure.BaseResource; exports.CloudError = msRestAzure.CloudError; -exports.InputSchemaMapping = require('./inputSchemaMapping'); -exports.Resource = require('./resource'); -exports.TrackedResource = require('./trackedResource'); -exports.Domain = require('./domain'); -exports.DomainUpdateParameters = require('./domainUpdateParameters'); -exports.DomainSharedAccessKeys = require('./domainSharedAccessKeys'); -exports.DomainRegenerateKeyRequest = require('./domainRegenerateKeyRequest'); -exports.DomainTopic = require('./domainTopic'); exports.EventSubscriptionDestination = require('./eventSubscriptionDestination'); -exports.AdvancedFilter = require('./advancedFilter'); exports.EventSubscriptionFilter = require('./eventSubscriptionFilter'); exports.RetryPolicy = require('./retryPolicy'); exports.DeadLetterDestination = require('./deadLetterDestination'); -exports.NumberInAdvancedFilter = require('./numberInAdvancedFilter'); +exports.Resource = require('./resource'); exports.StorageBlobDeadLetterDestination = require('./storageBlobDeadLetterDestination'); -exports.NumberNotInAdvancedFilter = require('./numberNotInAdvancedFilter'); -exports.NumberLessThanAdvancedFilter = require('./numberLessThanAdvancedFilter'); -exports.NumberGreaterThanAdvancedFilter = require('./numberGreaterThanAdvancedFilter'); -exports.NumberLessThanOrEqualsAdvancedFilter = require('./numberLessThanOrEqualsAdvancedFilter'); -exports.NumberGreaterThanOrEqualsAdvancedFilter = require('./numberGreaterThanOrEqualsAdvancedFilter'); -exports.BoolEqualsAdvancedFilter = require('./boolEqualsAdvancedFilter'); -exports.StringInAdvancedFilter = require('./stringInAdvancedFilter'); -exports.StringNotInAdvancedFilter = require('./stringNotInAdvancedFilter'); -exports.StringBeginsWithAdvancedFilter = require('./stringBeginsWithAdvancedFilter'); -exports.StringEndsWithAdvancedFilter = require('./stringEndsWithAdvancedFilter'); -exports.StringContainsAdvancedFilter = require('./stringContainsAdvancedFilter'); exports.WebHookEventSubscriptionDestination = require('./webHookEventSubscriptionDestination'); exports.EventHubEventSubscriptionDestination = require('./eventHubEventSubscriptionDestination'); exports.StorageQueueEventSubscriptionDestination = require('./storageQueueEventSubscriptionDestination'); @@ -53,43 +33,24 @@ exports.EventSubscriptionUpdateParameters = require('./eventSubscriptionUpdatePa exports.EventSubscriptionFullUrl = require('./eventSubscriptionFullUrl'); exports.OperationInfo = require('./operationInfo'); exports.Operation = require('./operation'); -exports.JsonField = require('./jsonField'); -exports.JsonFieldWithDefault = require('./jsonFieldWithDefault'); -exports.JsonInputSchemaMapping = require('./jsonInputSchemaMapping'); +exports.TrackedResource = require('./trackedResource'); exports.Topic = require('./topic'); exports.TopicUpdateParameters = require('./topicUpdateParameters'); exports.TopicSharedAccessKeys = require('./topicSharedAccessKeys'); exports.TopicRegenerateKeyRequest = require('./topicRegenerateKeyRequest'); exports.EventType = require('./eventType'); exports.TopicTypeInfo = require('./topicTypeInfo'); -exports.DomainsListResult = require('./domainsListResult'); -exports.DomainTopicsListResult = require('./domainTopicsListResult'); exports.EventSubscriptionsListResult = require('./eventSubscriptionsListResult'); exports.OperationsListResult = require('./operationsListResult'); exports.TopicsListResult = require('./topicsListResult'); exports.EventTypesListResult = require('./eventTypesListResult'); exports.TopicTypesListResult = require('./topicTypesListResult'); exports.discriminators = { - 'InputSchemaMapping' : exports.InputSchemaMapping, 'EventSubscriptionDestination' : exports.EventSubscriptionDestination, - 'AdvancedFilter' : exports.AdvancedFilter, 'DeadLetterDestination' : exports.DeadLetterDestination, - 'AdvancedFilter.NumberIn' : exports.NumberInAdvancedFilter, 'DeadLetterDestination.StorageBlob' : exports.StorageBlobDeadLetterDestination, - 'AdvancedFilter.NumberNotIn' : exports.NumberNotInAdvancedFilter, - 'AdvancedFilter.NumberLessThan' : exports.NumberLessThanAdvancedFilter, - 'AdvancedFilter.NumberGreaterThan' : exports.NumberGreaterThanAdvancedFilter, - 'AdvancedFilter.NumberLessThanOrEquals' : exports.NumberLessThanOrEqualsAdvancedFilter, - 'AdvancedFilter.NumberGreaterThanOrEquals' : exports.NumberGreaterThanOrEqualsAdvancedFilter, - 'AdvancedFilter.BoolEquals' : exports.BoolEqualsAdvancedFilter, - 'AdvancedFilter.StringIn' : exports.StringInAdvancedFilter, - 'AdvancedFilter.StringNotIn' : exports.StringNotInAdvancedFilter, - 'AdvancedFilter.StringBeginsWith' : exports.StringBeginsWithAdvancedFilter, - 'AdvancedFilter.StringEndsWith' : exports.StringEndsWithAdvancedFilter, - 'AdvancedFilter.StringContains' : exports.StringContainsAdvancedFilter, 'EventSubscriptionDestination.WebHook' : exports.WebHookEventSubscriptionDestination, 'EventSubscriptionDestination.EventHub' : exports.EventHubEventSubscriptionDestination, 'EventSubscriptionDestination.StorageQueue' : exports.StorageQueueEventSubscriptionDestination, - 'EventSubscriptionDestination.HybridConnection' : exports.HybridConnectionEventSubscriptionDestination, - 'InputSchemaMapping.Json' : exports.JsonInputSchemaMapping + 'EventSubscriptionDestination.HybridConnection' : exports.HybridConnectionEventSubscriptionDestination }; diff --git a/lib/services/eventgridManagement/lib/models/storageBlobDeadLetterDestination.js b/lib/services/eventgridManagement/lib/models/storageBlobDeadLetterDestination.js index b7d8b8013b..6f21124d1f 100644 --- a/lib/services/eventgridManagement/lib/models/storageBlobDeadLetterDestination.js +++ b/lib/services/eventgridManagement/lib/models/storageBlobDeadLetterDestination.js @@ -21,7 +21,8 @@ class StorageBlobDeadLetterDestination extends models['DeadLetterDestination'] { /** * Create a StorageBlobDeadLetterDestination. * @member {string} [resourceId] The Azure Resource ID of the storage account - * that is the destination of the deadletter events + * that is the destination of the deadletter events. For example: + * /subscriptions/{AzureSubscriptionId}/resourceGroups/{ResourceGroupName}/providers/microsoft.Storage/storageAccounts/{StorageAccountName} * @member {string} [blobContainerName] The name of the Storage blob * container that is the destination of the deadletter events */ diff --git a/lib/services/eventgridManagement/lib/models/topic.js b/lib/services/eventgridManagement/lib/models/topic.js index 5a96b2a159..3ef90b3250 100644 --- a/lib/services/eventgridManagement/lib/models/topic.js +++ b/lib/services/eventgridManagement/lib/models/topic.js @@ -24,16 +24,6 @@ class Topic extends models['TrackedResource'] { * Possible values include: 'Creating', 'Updating', 'Deleting', 'Succeeded', * 'Canceled', 'Failed' * @member {string} [endpoint] Endpoint for the topic. - * @member {string} [inputSchema] This determines the format that Event Grid - * should expect for incoming events published to the topic. Possible values - * include: 'EventGridSchema', 'CustomEventSchema', 'CloudEventV01Schema'. - * Default value: 'EventGridSchema' . - * @member {object} [inputSchemaMapping] This enables publishing using custom - * event schemas. An InputSchemaMapping can be specified to map various - * properties of a source schema to various required properties of the - * EventGridEvent schema. - * @member {string} [inputSchemaMapping.inputSchemaMappingType] Polymorphic - * Discriminator */ constructor() { super(); @@ -113,27 +103,6 @@ class Topic extends models['TrackedResource'] { type: { name: 'String' } - }, - inputSchema: { - required: false, - serializedName: 'properties.inputSchema', - defaultValue: 'EventGridSchema', - type: { - name: 'String' - } - }, - inputSchemaMapping: { - required: false, - serializedName: 'properties.inputSchemaMapping', - type: { - name: 'Composite', - polymorphicDiscriminator: { - serializedName: 'inputSchemaMappingType', - clientName: 'inputSchemaMappingType' - }, - uberParent: 'InputSchemaMapping', - className: 'InputSchemaMapping' - } } } } diff --git a/lib/services/eventgridManagement/lib/operations/eventSubscriptions.js b/lib/services/eventgridManagement/lib/operations/eventSubscriptions.js index dd8e35341a..b1da019e90 100644 --- a/lib/services/eventgridManagement/lib/operations/eventSubscriptions.js +++ b/lib/services/eventgridManagement/lib/operations/eventSubscriptions.js @@ -222,18 +222,8 @@ function _get(scope, eventSubscriptionName, options, callback) { * filter * should be compared in a case sensitive manner. * - * @param {array} [eventSubscriptionInfo.filter.advancedFilters] A list of - * advanced filters. - * * @param {array} [eventSubscriptionInfo.labels] List of user defined labels. * - * @param {date} [eventSubscriptionInfo.expirationTimeUtc] Expiration time of - * the event subscription. - * - * @param {string} [eventSubscriptionInfo.eventDeliverySchema] The event - * delivery schema for the event subscription. Possible values include: - * 'EventGridSchema', 'CloudEventV01Schema', 'CustomInputSchema' - * * @param {object} [eventSubscriptionInfo.retryPolicy] The retry policy for * events. This can be used to configure maximum number of delivery attempts * and time to live for events. @@ -449,19 +439,9 @@ function _deleteMethod(scope, eventSubscriptionName, options, callback) { * if the SubjectBeginsWith and SubjectEndsWith properties of the filter * should be compared in a case sensitive manner. * - * @param {array} [eventSubscriptionUpdateParameters.filter.advancedFilters] A - * list of advanced filters. - * * @param {array} [eventSubscriptionUpdateParameters.labels] List of user * defined labels. * - * @param {date} [eventSubscriptionUpdateParameters.expirationTimeUtc] - * Information about the expiration time for the event subscription. - * - * @param {string} [eventSubscriptionUpdateParameters.eventDeliverySchema] The - * event delivery schema for the event subscription. Possible values include: - * 'EventGridSchema', 'CloudEventV01Schema', 'CustomInputSchema' - * * @param {object} [eventSubscriptionUpdateParameters.retryPolicy] The retry * policy for events. This can be used to configure maximum number of delivery * attempts and time to live for events. @@ -2043,162 +2023,6 @@ function _listByResource(resourceGroupName, providerNamespace, resourceTypeName, }); } -/** - * @summary List all event subscriptions for a specific domain topic - * - * List all event subscriptions that have been created for a specific domain - * topic - * - * @param {string} resourceGroupName The name of the resource group within the - * user's subscription. - * - * @param {string} domainName Name of the top level domain - * - * @param {string} topicName Name of the domain topic - * - * @param {object} [options] Optional Parameters. - * - * @param {object} [options.customHeaders] Headers that will be added to the - * request - * - * @param {function} callback - The callback. - * - * @returns {function} callback(err, result, request, response) - * - * {Error} err - The Error object if an error occurred, null otherwise. - * - * {object} [result] - The deserialized result object if an error did not occur. - * See {@link EventSubscriptionsListResult} for more - * information. - * - * {object} [request] - The HTTP Request object if an error did not occur. - * - * {stream} [response] - The HTTP Response stream if an error did not occur. - */ -function _listByDomainTopic(resourceGroupName, domainName, topicName, options, callback) { - /* jshint validthis: true */ - let client = this.client; - if(!callback && typeof options === 'function') { - callback = options; - options = null; - } - if (!callback) { - throw new Error('callback cannot be null.'); - } - // Validate - try { - if (this.client.subscriptionId === null || this.client.subscriptionId === undefined || typeof this.client.subscriptionId.valueOf() !== 'string') { - throw new Error('this.client.subscriptionId cannot be null or undefined and it must be of type string.'); - } - if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') { - throw new Error('resourceGroupName cannot be null or undefined and it must be of type string.'); - } - if (domainName === null || domainName === undefined || typeof domainName.valueOf() !== 'string') { - throw new Error('domainName cannot be null or undefined and it must be of type string.'); - } - if (topicName === null || topicName === undefined || typeof topicName.valueOf() !== 'string') { - throw new Error('topicName cannot be null or undefined and it must be of type string.'); - } - if (this.client.apiVersion === null || this.client.apiVersion === undefined || typeof this.client.apiVersion.valueOf() !== 'string') { - throw new Error('this.client.apiVersion cannot be null or undefined and it must be of type string.'); - } - if (this.client.acceptLanguage !== null && this.client.acceptLanguage !== undefined && typeof this.client.acceptLanguage.valueOf() !== 'string') { - throw new Error('this.client.acceptLanguage must be of type string.'); - } - } catch (error) { - return callback(error); - } - - // Construct URL - let baseUrl = this.client.baseUri; - let requestUrl = baseUrl + (baseUrl.endsWith('/') ? '' : '/') + 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid/domains/{domainName}/topics/{topicName}/providers/Microsoft.EventGrid/eventSubscriptions'; - requestUrl = requestUrl.replace('{subscriptionId}', encodeURIComponent(this.client.subscriptionId)); - requestUrl = requestUrl.replace('{resourceGroupName}', encodeURIComponent(resourceGroupName)); - requestUrl = requestUrl.replace('{domainName}', encodeURIComponent(domainName)); - requestUrl = requestUrl.replace('{topicName}', encodeURIComponent(topicName)); - let queryParameters = []; - queryParameters.push('api-version=' + encodeURIComponent(this.client.apiVersion)); - if (queryParameters.length > 0) { - requestUrl += '?' + queryParameters.join('&'); - } - - // Create HTTP transport objects - let httpRequest = new WebResource(); - httpRequest.method = 'GET'; - httpRequest.url = requestUrl; - httpRequest.headers = {}; - // Set Headers - httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8'; - if (this.client.generateClientRequestId) { - httpRequest.headers['x-ms-client-request-id'] = msRestAzure.generateUuid(); - } - if (this.client.acceptLanguage !== undefined && this.client.acceptLanguage !== null) { - httpRequest.headers['accept-language'] = this.client.acceptLanguage; - } - if(options) { - for(let headerName in options['customHeaders']) { - if (options['customHeaders'].hasOwnProperty(headerName)) { - httpRequest.headers[headerName] = options['customHeaders'][headerName]; - } - } - } - httpRequest.body = null; - // Send Request - return client.pipeline(httpRequest, (err, response, responseBody) => { - if (err) { - return callback(err); - } - let statusCode = response.statusCode; - if (statusCode !== 200) { - let error = new Error(responseBody); - error.statusCode = response.statusCode; - error.request = msRest.stripRequest(httpRequest); - error.response = msRest.stripResponse(response); - if (responseBody === '') responseBody = null; - let parsedErrorResponse; - try { - parsedErrorResponse = JSON.parse(responseBody); - if (parsedErrorResponse) { - if (parsedErrorResponse.error) parsedErrorResponse = parsedErrorResponse.error; - if (parsedErrorResponse.code) error.code = parsedErrorResponse.code; - if (parsedErrorResponse.message) error.message = parsedErrorResponse.message; - } - if (parsedErrorResponse !== null && parsedErrorResponse !== undefined) { - let resultMapper = new client.models['CloudError']().mapper(); - error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); - } - } catch (defaultError) { - error.message = `Error "${defaultError.message}" occurred in deserializing the responseBody ` + - `- "${responseBody}" for the default response.`; - return callback(error); - } - return callback(error); - } - // Create Result - let result = null; - if (responseBody === '') responseBody = null; - // Deserialize Response - if (statusCode === 200) { - let parsedResponse = null; - try { - parsedResponse = JSON.parse(responseBody); - result = JSON.parse(responseBody); - if (parsedResponse !== null && parsedResponse !== undefined) { - let resultMapper = new client.models['EventSubscriptionsListResult']().mapper(); - result = client.deserialize(resultMapper, parsedResponse, 'result'); - } - } catch (error) { - let deserializationError = new Error(`Error ${error} occurred in deserializing the responseBody - ${responseBody}`); - deserializationError.request = msRest.stripRequest(httpRequest); - deserializationError.response = msRest.stripResponse(response); - return callback(deserializationError); - } - } - - return callback(null, result, httpRequest, response); - }); -} - /** * @summary Create or update an event subscription * @@ -2254,18 +2078,8 @@ function _listByDomainTopic(resourceGroupName, domainName, topicName, options, c * filter * should be compared in a case sensitive manner. * - * @param {array} [eventSubscriptionInfo.filter.advancedFilters] A list of - * advanced filters. - * * @param {array} [eventSubscriptionInfo.labels] List of user defined labels. * - * @param {date} [eventSubscriptionInfo.expirationTimeUtc] Expiration time of - * the event subscription. - * - * @param {string} [eventSubscriptionInfo.eventDeliverySchema] The event - * delivery schema for the event subscription. Possible values include: - * 'EventGridSchema', 'CloudEventV01Schema', 'CustomInputSchema' - * * @param {object} [eventSubscriptionInfo.retryPolicy] The retry policy for * events. This can be used to configure maximum number of delivery attempts * and time to live for events. @@ -2621,19 +2435,9 @@ function _beginDeleteMethod(scope, eventSubscriptionName, options, callback) { * if the SubjectBeginsWith and SubjectEndsWith properties of the filter * should be compared in a case sensitive manner. * - * @param {array} [eventSubscriptionUpdateParameters.filter.advancedFilters] A - * list of advanced filters. - * * @param {array} [eventSubscriptionUpdateParameters.labels] List of user * defined labels. * - * @param {date} [eventSubscriptionUpdateParameters.expirationTimeUtc] - * Information about the expiration time for the event subscription. - * - * @param {string} [eventSubscriptionUpdateParameters.eventDeliverySchema] The - * event delivery schema for the event subscription. Possible values include: - * 'EventGridSchema', 'CloudEventV01Schema', 'CustomInputSchema' - * * @param {object} [eventSubscriptionUpdateParameters.retryPolicy] The retry * policy for events. This can be used to configure maximum number of delivery * attempts and time to live for events. @@ -2826,7 +2630,6 @@ class EventSubscriptions { this._listRegionalBySubscriptionForTopicType = _listRegionalBySubscriptionForTopicType; this._listRegionalByResourceGroupForTopicType = _listRegionalByResourceGroupForTopicType; this._listByResource = _listByResource; - this._listByDomainTopic = _listByDomainTopic; this._beginCreateOrUpdate = _beginCreateOrUpdate; this._beginDeleteMethod = _beginDeleteMethod; this._beginUpdate = _beginUpdate; @@ -2995,18 +2798,8 @@ class EventSubscriptions { * filter * should be compared in a case sensitive manner. * - * @param {array} [eventSubscriptionInfo.filter.advancedFilters] A list of - * advanced filters. - * * @param {array} [eventSubscriptionInfo.labels] List of user defined labels. * - * @param {date} [eventSubscriptionInfo.expirationTimeUtc] Expiration time of - * the event subscription. - * - * @param {string} [eventSubscriptionInfo.eventDeliverySchema] The event - * delivery schema for the event subscription. Possible values include: - * 'EventGridSchema', 'CloudEventV01Schema', 'CustomInputSchema' - * * @param {object} [eventSubscriptionInfo.retryPolicy] The retry policy for * events. This can be used to configure maximum number of delivery attempts * and time to live for events. @@ -3103,18 +2896,8 @@ class EventSubscriptions { * filter * should be compared in a case sensitive manner. * - * @param {array} [eventSubscriptionInfo.filter.advancedFilters] A list of - * advanced filters. - * * @param {array} [eventSubscriptionInfo.labels] List of user defined labels. * - * @param {date} [eventSubscriptionInfo.expirationTimeUtc] Expiration time of - * the event subscription. - * - * @param {string} [eventSubscriptionInfo.eventDeliverySchema] The event - * delivery schema for the event subscription. Possible values include: - * 'EventGridSchema', 'CloudEventV01Schema', 'CustomInputSchema' - * * @param {object} [eventSubscriptionInfo.retryPolicy] The retry policy for * events. This can be used to configure maximum number of delivery attempts * and time to live for events. @@ -3339,19 +3122,9 @@ class EventSubscriptions { * if the SubjectBeginsWith and SubjectEndsWith properties of the filter * should be compared in a case sensitive manner. * - * @param {array} [eventSubscriptionUpdateParameters.filter.advancedFilters] A - * list of advanced filters. - * * @param {array} [eventSubscriptionUpdateParameters.labels] List of user * defined labels. * - * @param {date} [eventSubscriptionUpdateParameters.expirationTimeUtc] - * Information about the expiration time for the event subscription. - * - * @param {string} [eventSubscriptionUpdateParameters.eventDeliverySchema] The - * event delivery schema for the event subscription. Possible values include: - * 'EventGridSchema', 'CloudEventV01Schema', 'CustomInputSchema' - * * @param {object} [eventSubscriptionUpdateParameters.retryPolicy] The retry * policy for events. This can be used to configure maximum number of delivery * attempts and time to live for events. @@ -3450,19 +3223,9 @@ class EventSubscriptions { * if the SubjectBeginsWith and SubjectEndsWith properties of the filter * should be compared in a case sensitive manner. * - * @param {array} [eventSubscriptionUpdateParameters.filter.advancedFilters] A - * list of advanced filters. - * * @param {array} [eventSubscriptionUpdateParameters.labels] List of user * defined labels. * - * @param {date} [eventSubscriptionUpdateParameters.expirationTimeUtc] - * Information about the expiration time for the event subscription. - * - * @param {string} [eventSubscriptionUpdateParameters.eventDeliverySchema] The - * event delivery schema for the event subscription. Possible values include: - * 'EventGridSchema', 'CloudEventV01Schema', 'CustomInputSchema' - * * @param {object} [eventSubscriptionUpdateParameters.retryPolicy] The retry * policy for events. This can be used to configure maximum number of delivery * attempts and time to live for events. @@ -4487,105 +4250,6 @@ class EventSubscriptions { } } - /** - * @summary List all event subscriptions for a specific domain topic - * - * List all event subscriptions that have been created for a specific domain - * topic - * - * @param {string} resourceGroupName The name of the resource group within the - * user's subscription. - * - * @param {string} domainName Name of the top level domain - * - * @param {string} topicName Name of the domain topic - * - * @param {object} [options] Optional Parameters. - * - * @param {object} [options.customHeaders] Headers that will be added to the - * request - * - * @returns {Promise} A promise is returned - * - * @resolve {HttpOperationResponse} - The deserialized result object. - * - * @reject {Error} - The error object. - */ - listByDomainTopicWithHttpOperationResponse(resourceGroupName, domainName, topicName, options) { - let client = this.client; - let self = this; - return new Promise((resolve, reject) => { - self._listByDomainTopic(resourceGroupName, domainName, topicName, options, (err, result, request, response) => { - let httpOperationResponse = new msRest.HttpOperationResponse(request, response); - httpOperationResponse.body = result; - if (err) { reject(err); } - else { resolve(httpOperationResponse); } - return; - }); - }); - } - - /** - * @summary List all event subscriptions for a specific domain topic - * - * List all event subscriptions that have been created for a specific domain - * topic - * - * @param {string} resourceGroupName The name of the resource group within the - * user's subscription. - * - * @param {string} domainName Name of the top level domain - * - * @param {string} topicName Name of the domain topic - * - * @param {object} [options] Optional Parameters. - * - * @param {object} [options.customHeaders] Headers that will be added to the - * request - * - * @param {function} [optionalCallback] - The optional callback. - * - * @returns {function|Promise} If a callback was passed as the last parameter - * then it returns the callback else returns a Promise. - * - * {Promise} A promise is returned - * - * @resolve {EventSubscriptionsListResult} - The deserialized result object. - * - * @reject {Error} - The error object. - * - * {function} optionalCallback(err, result, request, response) - * - * {Error} err - The Error object if an error occurred, null otherwise. - * - * {object} [result] - The deserialized result object if an error did not occur. - * See {@link EventSubscriptionsListResult} for more - * information. - * - * {object} [request] - The HTTP Request object if an error did not occur. - * - * {stream} [response] - The HTTP Response stream if an error did not occur. - */ - listByDomainTopic(resourceGroupName, domainName, topicName, options, optionalCallback) { - let client = this.client; - let self = this; - if (!optionalCallback && typeof options === 'function') { - optionalCallback = options; - options = null; - } - if (!optionalCallback) { - return new Promise((resolve, reject) => { - self._listByDomainTopic(resourceGroupName, domainName, topicName, options, (err, result, request, response) => { - if (err) { reject(err); } - else { resolve(result); } - return; - }); - }); - } else { - return self._listByDomainTopic(resourceGroupName, domainName, topicName, options, optionalCallback); - } - } - /** * @summary Create or update an event subscription * @@ -4641,18 +4305,8 @@ class EventSubscriptions { * filter * should be compared in a case sensitive manner. * - * @param {array} [eventSubscriptionInfo.filter.advancedFilters] A list of - * advanced filters. - * * @param {array} [eventSubscriptionInfo.labels] List of user defined labels. * - * @param {date} [eventSubscriptionInfo.expirationTimeUtc] Expiration time of - * the event subscription. - * - * @param {string} [eventSubscriptionInfo.eventDeliverySchema] The event - * delivery schema for the event subscription. Possible values include: - * 'EventGridSchema', 'CloudEventV01Schema', 'CustomInputSchema' - * * @param {object} [eventSubscriptionInfo.retryPolicy] The retry policy for * events. This can be used to configure maximum number of delivery attempts * and time to live for events. @@ -4749,18 +4403,8 @@ class EventSubscriptions { * filter * should be compared in a case sensitive manner. * - * @param {array} [eventSubscriptionInfo.filter.advancedFilters] A list of - * advanced filters. - * * @param {array} [eventSubscriptionInfo.labels] List of user defined labels. * - * @param {date} [eventSubscriptionInfo.expirationTimeUtc] Expiration time of - * the event subscription. - * - * @param {string} [eventSubscriptionInfo.eventDeliverySchema] The event - * delivery schema for the event subscription. Possible values include: - * 'EventGridSchema', 'CloudEventV01Schema', 'CustomInputSchema' - * * @param {object} [eventSubscriptionInfo.retryPolicy] The retry policy for * events. This can be used to configure maximum number of delivery attempts * and time to live for events. @@ -4985,19 +4629,9 @@ class EventSubscriptions { * if the SubjectBeginsWith and SubjectEndsWith properties of the filter * should be compared in a case sensitive manner. * - * @param {array} [eventSubscriptionUpdateParameters.filter.advancedFilters] A - * list of advanced filters. - * * @param {array} [eventSubscriptionUpdateParameters.labels] List of user * defined labels. * - * @param {date} [eventSubscriptionUpdateParameters.expirationTimeUtc] - * Information about the expiration time for the event subscription. - * - * @param {string} [eventSubscriptionUpdateParameters.eventDeliverySchema] The - * event delivery schema for the event subscription. Possible values include: - * 'EventGridSchema', 'CloudEventV01Schema', 'CustomInputSchema' - * * @param {object} [eventSubscriptionUpdateParameters.retryPolicy] The retry * policy for events. This can be used to configure maximum number of delivery * attempts and time to live for events. @@ -5096,19 +4730,9 @@ class EventSubscriptions { * if the SubjectBeginsWith and SubjectEndsWith properties of the filter * should be compared in a case sensitive manner. * - * @param {array} [eventSubscriptionUpdateParameters.filter.advancedFilters] A - * list of advanced filters. - * * @param {array} [eventSubscriptionUpdateParameters.labels] List of user * defined labels. * - * @param {date} [eventSubscriptionUpdateParameters.expirationTimeUtc] - * Information about the expiration time for the event subscription. - * - * @param {string} [eventSubscriptionUpdateParameters.eventDeliverySchema] The - * event delivery schema for the event subscription. Possible values include: - * 'EventGridSchema', 'CloudEventV01Schema', 'CustomInputSchema' - * * @param {object} [eventSubscriptionUpdateParameters.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/lib/operations/index.d.ts b/lib/services/eventgridManagement/lib/operations/index.d.ts index fa186ffc72..782b9282c3 100644 --- a/lib/services/eventgridManagement/lib/operations/index.d.ts +++ b/lib/services/eventgridManagement/lib/operations/index.d.ts @@ -12,954 +12,6 @@ import { ServiceClientOptions, RequestOptions, ServiceCallback, HttpOperationRes import * as models from '../models'; -/** - * @class - * Domains - * __NOTE__: An instance of this class is automatically created for an - * instance of the EventGridManagementClient. - */ -export interface Domains { - - - /** - * @summary Get a domain - * - * Get properties of a domain - * - * @param {string} resourceGroupName The name of the resource group within the - * user's subscription. - * - * @param {string} domainName Name of the domain - * - * @param {object} [options] Optional Parameters. - * - * @param {object} [options.customHeaders] Headers that will be added to the - * request - * - * @returns {Promise} A promise is returned - * - * @resolve {HttpOperationResponse} - The deserialized result object. - * - * @reject {Error|ServiceError} - The error object. - */ - getWithHttpOperationResponse(resourceGroupName: string, domainName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; - - /** - * @summary Get a domain - * - * Get properties of a domain - * - * @param {string} resourceGroupName The name of the resource group within the - * user's subscription. - * - * @param {string} domainName Name of the domain - * - * @param {object} [options] Optional Parameters. - * - * @param {object} [options.customHeaders] Headers that will be added to the - * request - * - * @param {ServiceCallback} [optionalCallback] - The optional callback. - * - * @returns {ServiceCallback|Promise} If a callback was passed as the last - * parameter then it returns the callback else returns a Promise. - * - * {Promise} A promise is returned. - * - * @resolve {Domain} - The deserialized result object. - * - * @reject {Error|ServiceError} - The error object. - * - * {ServiceCallback} optionalCallback(err, result, request, response) - * - * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. - * - * {Domain} [result] - The deserialized result object if an error did not occur. - * See {@link Domain} for more information. - * - * {WebResource} [request] - The HTTP Request object if an error did not occur. - * - * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. - */ - get(resourceGroupName: string, domainName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; - get(resourceGroupName: string, domainName: string, callback: ServiceCallback): void; - get(resourceGroupName: string, domainName: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; - - - /** - * @summary Create a domain - * - * Asynchronously creates a new domain with the specified parameters. - * - * @param {string} resourceGroupName The name of the resource group within the - * user's subscription. - * - * @param {string} domainName Name of the domain - * - * @param {object} domainInfo Domain information - * - * @param {string} [domainInfo.inputSchema] This determines the format that - * Event Grid should expect for incoming events published to the domain. - * Possible values include: 'EventGridSchema', 'CustomEventSchema', - * 'CloudEventV01Schema' - * - * @param {object} [domainInfo.inputSchemaMapping] Information about the - * InputSchemaMapping which specified the info about mapping event payload. - * - * @param {string} domainInfo.inputSchemaMapping.inputSchemaMappingType - * Polymorphic Discriminator - * - * @param {string} domainInfo.location Location of the resource - * - * @param {object} [domainInfo.tags] Tags of the resource - * - * @param {object} [options] Optional Parameters. - * - * @param {object} [options.customHeaders] Headers that will be added to the - * request - * - * @returns {Promise} A promise is returned - * - * @resolve {HttpOperationResponse} - The deserialized result object. - * - * @reject {Error|ServiceError} - The error object. - */ - createOrUpdateWithHttpOperationResponse(resourceGroupName: string, domainName: string, domainInfo: models.Domain, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; - - /** - * @summary Create a domain - * - * Asynchronously creates a new domain with the specified parameters. - * - * @param {string} resourceGroupName The name of the resource group within the - * user's subscription. - * - * @param {string} domainName Name of the domain - * - * @param {object} domainInfo Domain information - * - * @param {string} [domainInfo.inputSchema] This determines the format that - * Event Grid should expect for incoming events published to the domain. - * Possible values include: 'EventGridSchema', 'CustomEventSchema', - * 'CloudEventV01Schema' - * - * @param {object} [domainInfo.inputSchemaMapping] Information about the - * InputSchemaMapping which specified the info about mapping event payload. - * - * @param {string} domainInfo.inputSchemaMapping.inputSchemaMappingType - * Polymorphic Discriminator - * - * @param {string} domainInfo.location Location of the resource - * - * @param {object} [domainInfo.tags] Tags of the resource - * - * @param {object} [options] Optional Parameters. - * - * @param {object} [options.customHeaders] Headers that will be added to the - * request - * - * @param {ServiceCallback} [optionalCallback] - The optional callback. - * - * @returns {ServiceCallback|Promise} If a callback was passed as the last - * parameter then it returns the callback else returns a Promise. - * - * {Promise} A promise is returned. - * - * @resolve {Domain} - The deserialized result object. - * - * @reject {Error|ServiceError} - The error object. - * - * {ServiceCallback} optionalCallback(err, result, request, response) - * - * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. - * - * {Domain} [result] - The deserialized result object if an error did not occur. - * See {@link Domain} for more information. - * - * {WebResource} [request] - The HTTP Request object if an error did not occur. - * - * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. - */ - createOrUpdate(resourceGroupName: string, domainName: string, domainInfo: models.Domain, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; - createOrUpdate(resourceGroupName: string, domainName: string, domainInfo: models.Domain, callback: ServiceCallback): void; - createOrUpdate(resourceGroupName: string, domainName: string, domainInfo: models.Domain, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; - - - /** - * @summary Delete a domain - * - * Delete existing domain - * - * @param {string} resourceGroupName The name of the resource group within the - * user's subscription. - * - * @param {string} domainName Name of the domain - * - * @param {object} [options] Optional Parameters. - * - * @param {object} [options.customHeaders] Headers that will be added to the - * request - * - * @returns {Promise} A promise is returned - * - * @resolve {HttpOperationResponse} - The deserialized result object. - * - * @reject {Error|ServiceError} - The error object. - */ - deleteMethodWithHttpOperationResponse(resourceGroupName: string, domainName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; - - /** - * @summary Delete a domain - * - * Delete existing domain - * - * @param {string} resourceGroupName The name of the resource group within the - * user's subscription. - * - * @param {string} domainName Name of the domain - * - * @param {object} [options] Optional Parameters. - * - * @param {object} [options.customHeaders] Headers that will be added to the - * request - * - * @param {ServiceCallback} [optionalCallback] - The optional callback. - * - * @returns {ServiceCallback|Promise} If a callback was passed as the last - * parameter then it returns the callback else returns a Promise. - * - * {Promise} A promise is returned. - * - * @resolve {null} - The deserialized result object. - * - * @reject {Error|ServiceError} - The error object. - * - * {ServiceCallback} optionalCallback(err, result, request, response) - * - * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. - * - * {null} [result] - The deserialized result object if an error did not occur. - * - * {WebResource} [request] - The HTTP Request object if an error did not occur. - * - * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. - */ - deleteMethod(resourceGroupName: string, domainName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; - deleteMethod(resourceGroupName: string, domainName: string, callback: ServiceCallback): void; - deleteMethod(resourceGroupName: string, domainName: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; - - - /** - * @summary Update a domain - * - * Asynchronously updates a domain with the specified parameters. - * - * @param {string} resourceGroupName The name of the resource group within the - * user's subscription. - * - * @param {string} domainName Name of the domain - * - * @param {object} domainUpdateParameters Domain update information - * - * @param {object} [domainUpdateParameters.tags] Tags of the domains resource - * - * @param {object} [options] Optional Parameters. - * - * @param {object} [options.customHeaders] Headers that will be added to the - * request - * - * @returns {Promise} A promise is returned - * - * @resolve {HttpOperationResponse} - The deserialized result object. - * - * @reject {Error|ServiceError} - The error object. - */ - updateWithHttpOperationResponse(resourceGroupName: string, domainName: string, domainUpdateParameters: models.DomainUpdateParameters, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; - - /** - * @summary Update a domain - * - * Asynchronously updates a domain with the specified parameters. - * - * @param {string} resourceGroupName The name of the resource group within the - * user's subscription. - * - * @param {string} domainName Name of the domain - * - * @param {object} domainUpdateParameters Domain update information - * - * @param {object} [domainUpdateParameters.tags] Tags of the domains resource - * - * @param {object} [options] Optional Parameters. - * - * @param {object} [options.customHeaders] Headers that will be added to the - * request - * - * @param {ServiceCallback} [optionalCallback] - The optional callback. - * - * @returns {ServiceCallback|Promise} If a callback was passed as the last - * parameter then it returns the callback else returns a Promise. - * - * {Promise} A promise is returned. - * - * @resolve {Domain} - The deserialized result object. - * - * @reject {Error|ServiceError} - The error object. - * - * {ServiceCallback} optionalCallback(err, result, request, response) - * - * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. - * - * {Domain} [result] - The deserialized result object if an error did not occur. - * See {@link Domain} for more information. - * - * {WebResource} [request] - The HTTP Request object if an error did not occur. - * - * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. - */ - update(resourceGroupName: string, domainName: string, domainUpdateParameters: models.DomainUpdateParameters, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; - update(resourceGroupName: string, domainName: string, domainUpdateParameters: models.DomainUpdateParameters, callback: ServiceCallback): void; - update(resourceGroupName: string, domainName: string, domainUpdateParameters: models.DomainUpdateParameters, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; - - - /** - * @summary List domains under an Azure subscription - * - * List all the domains under an Azure subscription - * - * @param {object} [options] Optional Parameters. - * - * @param {object} [options.customHeaders] Headers that will be added to the - * request - * - * @returns {Promise} A promise is returned - * - * @resolve {HttpOperationResponse} - The deserialized result object. - * - * @reject {Error|ServiceError} - The error object. - */ - listBySubscriptionWithHttpOperationResponse(options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; - - /** - * @summary List domains under an Azure subscription - * - * List all the domains under an Azure subscription - * - * @param {object} [options] Optional Parameters. - * - * @param {object} [options.customHeaders] Headers that will be added to the - * request - * - * @param {ServiceCallback} [optionalCallback] - The optional callback. - * - * @returns {ServiceCallback|Promise} If a callback was passed as the last - * parameter then it returns the callback else returns a Promise. - * - * {Promise} A promise is returned. - * - * @resolve {DomainsListResult} - The deserialized result object. - * - * @reject {Error|ServiceError} - The error object. - * - * {ServiceCallback} optionalCallback(err, result, request, response) - * - * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. - * - * {DomainsListResult} [result] - The deserialized result object if an error did not occur. - * See {@link DomainsListResult} for more information. - * - * {WebResource} [request] - The HTTP Request object if an error did not occur. - * - * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. - */ - listBySubscription(options?: { customHeaders? : { [headerName: string]: string; } }): Promise; - listBySubscription(callback: ServiceCallback): void; - listBySubscription(options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; - - - /** - * @summary List domains under a resource group - * - * List all the domains under a resource group - * - * @param {string} resourceGroupName The name of the resource group within the - * user's subscription. - * - * @param {object} [options] Optional Parameters. - * - * @param {object} [options.customHeaders] Headers that will be added to the - * request - * - * @returns {Promise} A promise is returned - * - * @resolve {HttpOperationResponse} - The deserialized result object. - * - * @reject {Error|ServiceError} - The error object. - */ - listByResourceGroupWithHttpOperationResponse(resourceGroupName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; - - /** - * @summary List domains under a resource group - * - * List all the domains under a resource group - * - * @param {string} resourceGroupName The name of the resource group within the - * user's subscription. - * - * @param {object} [options] Optional Parameters. - * - * @param {object} [options.customHeaders] Headers that will be added to the - * request - * - * @param {ServiceCallback} [optionalCallback] - The optional callback. - * - * @returns {ServiceCallback|Promise} If a callback was passed as the last - * parameter then it returns the callback else returns a Promise. - * - * {Promise} A promise is returned. - * - * @resolve {DomainsListResult} - The deserialized result object. - * - * @reject {Error|ServiceError} - The error object. - * - * {ServiceCallback} optionalCallback(err, result, request, response) - * - * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. - * - * {DomainsListResult} [result] - The deserialized result object if an error did not occur. - * See {@link DomainsListResult} for more information. - * - * {WebResource} [request] - The HTTP Request object if an error did not occur. - * - * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. - */ - listByResourceGroup(resourceGroupName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; - listByResourceGroup(resourceGroupName: string, callback: ServiceCallback): void; - listByResourceGroup(resourceGroupName: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; - - - /** - * @summary List keys for a domain - * - * List the two keys used to publish to a domain - * - * @param {string} resourceGroupName The name of the resource group within the - * user's subscription. - * - * @param {string} domainName Name of the domain - * - * @param {object} [options] Optional Parameters. - * - * @param {object} [options.customHeaders] Headers that will be added to the - * request - * - * @returns {Promise} A promise is returned - * - * @resolve {HttpOperationResponse} - The deserialized result object. - * - * @reject {Error|ServiceError} - The error object. - */ - listSharedAccessKeysWithHttpOperationResponse(resourceGroupName: string, domainName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; - - /** - * @summary List keys for a domain - * - * List the two keys used to publish to a domain - * - * @param {string} resourceGroupName The name of the resource group within the - * user's subscription. - * - * @param {string} domainName Name of the domain - * - * @param {object} [options] Optional Parameters. - * - * @param {object} [options.customHeaders] Headers that will be added to the - * request - * - * @param {ServiceCallback} [optionalCallback] - The optional callback. - * - * @returns {ServiceCallback|Promise} If a callback was passed as the last - * parameter then it returns the callback else returns a Promise. - * - * {Promise} A promise is returned. - * - * @resolve {DomainSharedAccessKeys} - The deserialized result object. - * - * @reject {Error|ServiceError} - The error object. - * - * {ServiceCallback} optionalCallback(err, result, request, response) - * - * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. - * - * {DomainSharedAccessKeys} [result] - The deserialized result object if an error did not occur. - * See {@link DomainSharedAccessKeys} for more - * information. - * - * {WebResource} [request] - The HTTP Request object if an error did not occur. - * - * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. - */ - listSharedAccessKeys(resourceGroupName: string, domainName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; - listSharedAccessKeys(resourceGroupName: string, domainName: string, callback: ServiceCallback): void; - listSharedAccessKeys(resourceGroupName: string, domainName: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; - - - /** - * @summary Regenerate key for a domain - * - * Regenerate a shared access key for a domain - * - * @param {string} resourceGroupName The name of the resource group within the - * user's subscription. - * - * @param {string} domainName Name of the domain - * - * @param {object} regenerateKeyRequest Request body to regenerate key - * - * @param {string} regenerateKeyRequest.keyName Key name to regenerate key1 or - * key2 - * - * @param {object} [options] Optional Parameters. - * - * @param {object} [options.customHeaders] Headers that will be added to the - * request - * - * @returns {Promise} A promise is returned - * - * @resolve {HttpOperationResponse} - The deserialized result object. - * - * @reject {Error|ServiceError} - The error object. - */ - regenerateKeyWithHttpOperationResponse(resourceGroupName: string, domainName: string, regenerateKeyRequest: models.DomainRegenerateKeyRequest, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; - - /** - * @summary Regenerate key for a domain - * - * Regenerate a shared access key for a domain - * - * @param {string} resourceGroupName The name of the resource group within the - * user's subscription. - * - * @param {string} domainName Name of the domain - * - * @param {object} regenerateKeyRequest Request body to regenerate key - * - * @param {string} regenerateKeyRequest.keyName Key name to regenerate key1 or - * key2 - * - * @param {object} [options] Optional Parameters. - * - * @param {object} [options.customHeaders] Headers that will be added to the - * request - * - * @param {ServiceCallback} [optionalCallback] - The optional callback. - * - * @returns {ServiceCallback|Promise} If a callback was passed as the last - * parameter then it returns the callback else returns a Promise. - * - * {Promise} A promise is returned. - * - * @resolve {DomainSharedAccessKeys} - The deserialized result object. - * - * @reject {Error|ServiceError} - The error object. - * - * {ServiceCallback} optionalCallback(err, result, request, response) - * - * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. - * - * {DomainSharedAccessKeys} [result] - The deserialized result object if an error did not occur. - * See {@link DomainSharedAccessKeys} for more - * information. - * - * {WebResource} [request] - The HTTP Request object if an error did not occur. - * - * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. - */ - regenerateKey(resourceGroupName: string, domainName: string, regenerateKeyRequest: models.DomainRegenerateKeyRequest, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; - regenerateKey(resourceGroupName: string, domainName: string, regenerateKeyRequest: models.DomainRegenerateKeyRequest, callback: ServiceCallback): void; - regenerateKey(resourceGroupName: string, domainName: string, regenerateKeyRequest: models.DomainRegenerateKeyRequest, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; - - - /** - * @summary Create a domain - * - * Asynchronously creates a new domain with the specified parameters. - * - * @param {string} resourceGroupName The name of the resource group within the - * user's subscription. - * - * @param {string} domainName Name of the domain - * - * @param {object} domainInfo Domain information - * - * @param {string} [domainInfo.inputSchema] This determines the format that - * Event Grid should expect for incoming events published to the domain. - * Possible values include: 'EventGridSchema', 'CustomEventSchema', - * 'CloudEventV01Schema' - * - * @param {object} [domainInfo.inputSchemaMapping] Information about the - * InputSchemaMapping which specified the info about mapping event payload. - * - * @param {string} domainInfo.inputSchemaMapping.inputSchemaMappingType - * Polymorphic Discriminator - * - * @param {string} domainInfo.location Location of the resource - * - * @param {object} [domainInfo.tags] Tags of the resource - * - * @param {object} [options] Optional Parameters. - * - * @param {object} [options.customHeaders] Headers that will be added to the - * request - * - * @returns {Promise} A promise is returned - * - * @resolve {HttpOperationResponse} - The deserialized result object. - * - * @reject {Error|ServiceError} - The error object. - */ - beginCreateOrUpdateWithHttpOperationResponse(resourceGroupName: string, domainName: string, domainInfo: models.Domain, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; - - /** - * @summary Create a domain - * - * Asynchronously creates a new domain with the specified parameters. - * - * @param {string} resourceGroupName The name of the resource group within the - * user's subscription. - * - * @param {string} domainName Name of the domain - * - * @param {object} domainInfo Domain information - * - * @param {string} [domainInfo.inputSchema] This determines the format that - * Event Grid should expect for incoming events published to the domain. - * Possible values include: 'EventGridSchema', 'CustomEventSchema', - * 'CloudEventV01Schema' - * - * @param {object} [domainInfo.inputSchemaMapping] Information about the - * InputSchemaMapping which specified the info about mapping event payload. - * - * @param {string} domainInfo.inputSchemaMapping.inputSchemaMappingType - * Polymorphic Discriminator - * - * @param {string} domainInfo.location Location of the resource - * - * @param {object} [domainInfo.tags] Tags of the resource - * - * @param {object} [options] Optional Parameters. - * - * @param {object} [options.customHeaders] Headers that will be added to the - * request - * - * @param {ServiceCallback} [optionalCallback] - The optional callback. - * - * @returns {ServiceCallback|Promise} If a callback was passed as the last - * parameter then it returns the callback else returns a Promise. - * - * {Promise} A promise is returned. - * - * @resolve {Domain} - The deserialized result object. - * - * @reject {Error|ServiceError} - The error object. - * - * {ServiceCallback} optionalCallback(err, result, request, response) - * - * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. - * - * {Domain} [result] - The deserialized result object if an error did not occur. - * See {@link Domain} for more information. - * - * {WebResource} [request] - The HTTP Request object if an error did not occur. - * - * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. - */ - beginCreateOrUpdate(resourceGroupName: string, domainName: string, domainInfo: models.Domain, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; - beginCreateOrUpdate(resourceGroupName: string, domainName: string, domainInfo: models.Domain, callback: ServiceCallback): void; - beginCreateOrUpdate(resourceGroupName: string, domainName: string, domainInfo: models.Domain, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; - - - /** - * @summary Delete a domain - * - * Delete existing domain - * - * @param {string} resourceGroupName The name of the resource group within the - * user's subscription. - * - * @param {string} domainName Name of the domain - * - * @param {object} [options] Optional Parameters. - * - * @param {object} [options.customHeaders] Headers that will be added to the - * request - * - * @returns {Promise} A promise is returned - * - * @resolve {HttpOperationResponse} - The deserialized result object. - * - * @reject {Error|ServiceError} - The error object. - */ - beginDeleteMethodWithHttpOperationResponse(resourceGroupName: string, domainName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; - - /** - * @summary Delete a domain - * - * Delete existing domain - * - * @param {string} resourceGroupName The name of the resource group within the - * user's subscription. - * - * @param {string} domainName Name of the domain - * - * @param {object} [options] Optional Parameters. - * - * @param {object} [options.customHeaders] Headers that will be added to the - * request - * - * @param {ServiceCallback} [optionalCallback] - The optional callback. - * - * @returns {ServiceCallback|Promise} If a callback was passed as the last - * parameter then it returns the callback else returns a Promise. - * - * {Promise} A promise is returned. - * - * @resolve {null} - The deserialized result object. - * - * @reject {Error|ServiceError} - The error object. - * - * {ServiceCallback} optionalCallback(err, result, request, response) - * - * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. - * - * {null} [result] - The deserialized result object if an error did not occur. - * - * {WebResource} [request] - The HTTP Request object if an error did not occur. - * - * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. - */ - beginDeleteMethod(resourceGroupName: string, domainName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; - beginDeleteMethod(resourceGroupName: string, domainName: string, callback: ServiceCallback): void; - beginDeleteMethod(resourceGroupName: string, domainName: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; - - - /** - * @summary Update a domain - * - * Asynchronously updates a domain with the specified parameters. - * - * @param {string} resourceGroupName The name of the resource group within the - * user's subscription. - * - * @param {string} domainName Name of the domain - * - * @param {object} domainUpdateParameters Domain update information - * - * @param {object} [domainUpdateParameters.tags] Tags of the domains resource - * - * @param {object} [options] Optional Parameters. - * - * @param {object} [options.customHeaders] Headers that will be added to the - * request - * - * @returns {Promise} A promise is returned - * - * @resolve {HttpOperationResponse} - The deserialized result object. - * - * @reject {Error|ServiceError} - The error object. - */ - beginUpdateWithHttpOperationResponse(resourceGroupName: string, domainName: string, domainUpdateParameters: models.DomainUpdateParameters, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; - - /** - * @summary Update a domain - * - * Asynchronously updates a domain with the specified parameters. - * - * @param {string} resourceGroupName The name of the resource group within the - * user's subscription. - * - * @param {string} domainName Name of the domain - * - * @param {object} domainUpdateParameters Domain update information - * - * @param {object} [domainUpdateParameters.tags] Tags of the domains resource - * - * @param {object} [options] Optional Parameters. - * - * @param {object} [options.customHeaders] Headers that will be added to the - * request - * - * @param {ServiceCallback} [optionalCallback] - The optional callback. - * - * @returns {ServiceCallback|Promise} If a callback was passed as the last - * parameter then it returns the callback else returns a Promise. - * - * {Promise} A promise is returned. - * - * @resolve {Domain} - The deserialized result object. - * - * @reject {Error|ServiceError} - The error object. - * - * {ServiceCallback} optionalCallback(err, result, request, response) - * - * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. - * - * {Domain} [result] - The deserialized result object if an error did not occur. - * See {@link Domain} for more information. - * - * {WebResource} [request] - The HTTP Request object if an error did not occur. - * - * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. - */ - beginUpdate(resourceGroupName: string, domainName: string, domainUpdateParameters: models.DomainUpdateParameters, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; - beginUpdate(resourceGroupName: string, domainName: string, domainUpdateParameters: models.DomainUpdateParameters, callback: ServiceCallback): void; - beginUpdate(resourceGroupName: string, domainName: string, domainUpdateParameters: models.DomainUpdateParameters, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; -} - -/** - * @class - * DomainTopics - * __NOTE__: An instance of this class is automatically created for an - * instance of the EventGridManagementClient. - */ -export interface DomainTopics { - - - /** - * @summary Get a domain topic - * - * Get properties of a domain topic - * - * @param {string} resourceGroupName The name of the resource group within the - * user's subscription. - * - * @param {string} domainName Name of the domain - * - * @param {string} topicName Name of the topic - * - * @param {object} [options] Optional Parameters. - * - * @param {object} [options.customHeaders] Headers that will be added to the - * request - * - * @returns {Promise} A promise is returned - * - * @resolve {HttpOperationResponse} - The deserialized result object. - * - * @reject {Error|ServiceError} - The error object. - */ - getWithHttpOperationResponse(resourceGroupName: string, domainName: string, topicName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; - - /** - * @summary Get a domain topic - * - * Get properties of a domain topic - * - * @param {string} resourceGroupName The name of the resource group within the - * user's subscription. - * - * @param {string} domainName Name of the domain - * - * @param {string} topicName Name of the topic - * - * @param {object} [options] Optional Parameters. - * - * @param {object} [options.customHeaders] Headers that will be added to the - * request - * - * @param {ServiceCallback} [optionalCallback] - The optional callback. - * - * @returns {ServiceCallback|Promise} If a callback was passed as the last - * parameter then it returns the callback else returns a Promise. - * - * {Promise} A promise is returned. - * - * @resolve {DomainTopic} - The deserialized result object. - * - * @reject {Error|ServiceError} - The error object. - * - * {ServiceCallback} optionalCallback(err, result, request, response) - * - * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. - * - * {DomainTopic} [result] - The deserialized result object if an error did not occur. - * See {@link DomainTopic} for more information. - * - * {WebResource} [request] - The HTTP Request object if an error did not occur. - * - * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. - */ - get(resourceGroupName: string, domainName: string, topicName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; - get(resourceGroupName: string, domainName: string, topicName: string, callback: ServiceCallback): void; - get(resourceGroupName: string, domainName: string, topicName: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; - - - /** - * @summary List domain topics. - * - * List all the topics in a domain. - * - * @param {string} resourceGroupName The name of the resource group within the - * user's subscription. - * - * @param {string} domainName Domain name. - * - * @param {object} [options] Optional Parameters. - * - * @param {object} [options.customHeaders] Headers that will be added to the - * request - * - * @returns {Promise} A promise is returned - * - * @resolve {HttpOperationResponse} - The deserialized result object. - * - * @reject {Error|ServiceError} - The error object. - */ - listByDomainWithHttpOperationResponse(resourceGroupName: string, domainName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; - - /** - * @summary List domain topics. - * - * List all the topics in a domain. - * - * @param {string} resourceGroupName The name of the resource group within the - * user's subscription. - * - * @param {string} domainName Domain name. - * - * @param {object} [options] Optional Parameters. - * - * @param {object} [options.customHeaders] Headers that will be added to the - * request - * - * @param {ServiceCallback} [optionalCallback] - The optional callback. - * - * @returns {ServiceCallback|Promise} If a callback was passed as the last - * parameter then it returns the callback else returns a Promise. - * - * {Promise} A promise is returned. - * - * @resolve {DomainTopicsListResult} - The deserialized result object. - * - * @reject {Error|ServiceError} - The error object. - * - * {ServiceCallback} optionalCallback(err, result, request, response) - * - * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. - * - * {DomainTopicsListResult} [result] - The deserialized result object if an error did not occur. - * See {@link DomainTopicsListResult} for more - * information. - * - * {WebResource} [request] - The HTTP Request object if an error did not occur. - * - * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. - */ - listByDomain(resourceGroupName: string, domainName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; - listByDomain(resourceGroupName: string, domainName: string, callback: ServiceCallback): void; - listByDomain(resourceGroupName: string, domainName: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; -} - /** * @class * EventSubscriptions @@ -1105,18 +157,8 @@ export interface EventSubscriptions { * filter * should be compared in a case sensitive manner. * - * @param {array} [eventSubscriptionInfo.filter.advancedFilters] A list of - * advanced filters. - * * @param {array} [eventSubscriptionInfo.labels] List of user defined labels. * - * @param {date} [eventSubscriptionInfo.expirationTimeUtc] Expiration time of - * the event subscription. - * - * @param {string} [eventSubscriptionInfo.eventDeliverySchema] The event - * delivery schema for the event subscription. Possible values include: - * 'EventGridSchema', 'CloudEventV01Schema', 'CustomInputSchema' - * * @param {object} [eventSubscriptionInfo.retryPolicy] The retry policy for * events. This can be used to configure maximum number of delivery attempts * and time to live for events. @@ -1201,18 +243,8 @@ export interface EventSubscriptions { * filter * should be compared in a case sensitive manner. * - * @param {array} [eventSubscriptionInfo.filter.advancedFilters] A list of - * advanced filters. - * * @param {array} [eventSubscriptionInfo.labels] List of user defined labels. * - * @param {date} [eventSubscriptionInfo.expirationTimeUtc] Expiration time of - * the event subscription. - * - * @param {string} [eventSubscriptionInfo.eventDeliverySchema] The event - * delivery schema for the event subscription. Possible values include: - * 'EventGridSchema', 'CloudEventV01Schema', 'CustomInputSchema' - * * @param {object} [eventSubscriptionInfo.retryPolicy] The retry policy for * events. This can be used to configure maximum number of delivery attempts * and time to live for events. @@ -1395,19 +427,9 @@ export interface EventSubscriptions { * if the SubjectBeginsWith and SubjectEndsWith properties of the filter * should be compared in a case sensitive manner. * - * @param {array} [eventSubscriptionUpdateParameters.filter.advancedFilters] A - * list of advanced filters. - * * @param {array} [eventSubscriptionUpdateParameters.labels] List of user * defined labels. * - * @param {date} [eventSubscriptionUpdateParameters.expirationTimeUtc] - * Information about the expiration time for the event subscription. - * - * @param {string} [eventSubscriptionUpdateParameters.eventDeliverySchema] The - * event delivery schema for the event subscription. Possible values include: - * 'EventGridSchema', 'CloudEventV01Schema', 'CustomInputSchema' - * * @param {object} [eventSubscriptionUpdateParameters.retryPolicy] The retry * policy for events. This can be used to configure maximum number of delivery * attempts and time to live for events. @@ -1494,19 +516,9 @@ export interface EventSubscriptions { * if the SubjectBeginsWith and SubjectEndsWith properties of the filter * should be compared in a case sensitive manner. * - * @param {array} [eventSubscriptionUpdateParameters.filter.advancedFilters] A - * list of advanced filters. - * * @param {array} [eventSubscriptionUpdateParameters.labels] List of user * defined labels. * - * @param {date} [eventSubscriptionUpdateParameters.expirationTimeUtc] - * Information about the expiration time for the event subscription. - * - * @param {string} [eventSubscriptionUpdateParameters.eventDeliverySchema] The - * event delivery schema for the event subscription. Possible values include: - * 'EventGridSchema', 'CloudEventV01Schema', 'CustomInputSchema' - * * @param {object} [eventSubscriptionUpdateParameters.retryPolicy] The retry * policy for events. This can be used to configure maximum number of delivery * attempts and time to live for events. @@ -2246,78 +1258,6 @@ export interface EventSubscriptions { listByResource(resourceGroupName: string, providerNamespace: string, resourceTypeName: string, resourceName: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; - /** - * @summary List all event subscriptions for a specific domain topic - * - * List all event subscriptions that have been created for a specific domain - * topic - * - * @param {string} resourceGroupName The name of the resource group within the - * user's subscription. - * - * @param {string} domainName Name of the top level domain - * - * @param {string} topicName Name of the domain topic - * - * @param {object} [options] Optional Parameters. - * - * @param {object} [options.customHeaders] Headers that will be added to the - * request - * - * @returns {Promise} A promise is returned - * - * @resolve {HttpOperationResponse} - The deserialized result object. - * - * @reject {Error|ServiceError} - The error object. - */ - listByDomainTopicWithHttpOperationResponse(resourceGroupName: string, domainName: string, topicName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; - - /** - * @summary List all event subscriptions for a specific domain topic - * - * List all event subscriptions that have been created for a specific domain - * topic - * - * @param {string} resourceGroupName The name of the resource group within the - * user's subscription. - * - * @param {string} domainName Name of the top level domain - * - * @param {string} topicName Name of the domain topic - * - * @param {object} [options] Optional Parameters. - * - * @param {object} [options.customHeaders] Headers that will be added to the - * request - * - * @param {ServiceCallback} [optionalCallback] - The optional callback. - * - * @returns {ServiceCallback|Promise} If a callback was passed as the last - * parameter then it returns the callback else returns a Promise. - * - * {Promise} A promise is returned. - * - * @resolve {EventSubscriptionsListResult} - The deserialized result object. - * - * @reject {Error|ServiceError} - The error object. - * - * {ServiceCallback} optionalCallback(err, result, request, response) - * - * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. - * - * {EventSubscriptionsListResult} [result] - The deserialized result object if an error did not occur. - * See {@link EventSubscriptionsListResult} for more - * information. - * - * {WebResource} [request] - The HTTP Request object if an error did not occur. - * - * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. - */ - listByDomainTopic(resourceGroupName: string, domainName: string, topicName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; - listByDomainTopic(resourceGroupName: string, domainName: string, topicName: string, callback: ServiceCallback): void; - listByDomainTopic(resourceGroupName: string, domainName: string, topicName: string, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; - - /** * @summary Create or update an event subscription * @@ -2373,18 +1313,8 @@ export interface EventSubscriptions { * filter * should be compared in a case sensitive manner. * - * @param {array} [eventSubscriptionInfo.filter.advancedFilters] A list of - * advanced filters. - * * @param {array} [eventSubscriptionInfo.labels] List of user defined labels. * - * @param {date} [eventSubscriptionInfo.expirationTimeUtc] Expiration time of - * the event subscription. - * - * @param {string} [eventSubscriptionInfo.eventDeliverySchema] The event - * delivery schema for the event subscription. Possible values include: - * 'EventGridSchema', 'CloudEventV01Schema', 'CustomInputSchema' - * * @param {object} [eventSubscriptionInfo.retryPolicy] The retry policy for * events. This can be used to configure maximum number of delivery attempts * and time to live for events. @@ -2469,18 +1399,8 @@ export interface EventSubscriptions { * filter * should be compared in a case sensitive manner. * - * @param {array} [eventSubscriptionInfo.filter.advancedFilters] A list of - * advanced filters. - * * @param {array} [eventSubscriptionInfo.labels] List of user defined labels. * - * @param {date} [eventSubscriptionInfo.expirationTimeUtc] Expiration time of - * the event subscription. - * - * @param {string} [eventSubscriptionInfo.eventDeliverySchema] The event - * delivery schema for the event subscription. Possible values include: - * 'EventGridSchema', 'CloudEventV01Schema', 'CustomInputSchema' - * * @param {object} [eventSubscriptionInfo.retryPolicy] The retry policy for * events. This can be used to configure maximum number of delivery attempts * and time to live for events. @@ -2663,19 +1583,9 @@ export interface EventSubscriptions { * if the SubjectBeginsWith and SubjectEndsWith properties of the filter * should be compared in a case sensitive manner. * - * @param {array} [eventSubscriptionUpdateParameters.filter.advancedFilters] A - * list of advanced filters. - * * @param {array} [eventSubscriptionUpdateParameters.labels] List of user * defined labels. * - * @param {date} [eventSubscriptionUpdateParameters.expirationTimeUtc] - * Information about the expiration time for the event subscription. - * - * @param {string} [eventSubscriptionUpdateParameters.eventDeliverySchema] The - * event delivery schema for the event subscription. Possible values include: - * 'EventGridSchema', 'CloudEventV01Schema', 'CustomInputSchema' - * * @param {object} [eventSubscriptionUpdateParameters.retryPolicy] The retry * policy for events. This can be used to configure maximum number of delivery * attempts and time to live for events. @@ -2762,19 +1672,9 @@ export interface EventSubscriptions { * if the SubjectBeginsWith and SubjectEndsWith properties of the filter * should be compared in a case sensitive manner. * - * @param {array} [eventSubscriptionUpdateParameters.filter.advancedFilters] A - * list of advanced filters. - * * @param {array} [eventSubscriptionUpdateParameters.labels] List of user * defined labels. * - * @param {date} [eventSubscriptionUpdateParameters.expirationTimeUtc] - * Information about the expiration time for the event subscription. - * - * @param {string} [eventSubscriptionUpdateParameters.eventDeliverySchema] The - * event delivery schema for the event subscription. Possible values include: - * 'EventGridSchema', 'CloudEventV01Schema', 'CustomInputSchema' - * * @param {object} [eventSubscriptionUpdateParameters.retryPolicy] The retry * policy for events. This can be used to configure maximum number of delivery * attempts and time to live for events. @@ -2978,19 +1878,6 @@ export interface Topics { * * @param {object} topicInfo Topic information * - * @param {string} [topicInfo.inputSchema] This determines the format that - * Event Grid should expect for incoming events published to the topic. - * Possible values include: 'EventGridSchema', 'CustomEventSchema', - * 'CloudEventV01Schema' - * - * @param {object} [topicInfo.inputSchemaMapping] This enables publishing using - * custom event schemas. An InputSchemaMapping can be specified to map various - * properties of a source schema to various required properties of the - * EventGridEvent schema. - * - * @param {string} topicInfo.inputSchemaMapping.inputSchemaMappingType - * Polymorphic Discriminator - * * @param {string} topicInfo.location Location of the resource * * @param {object} [topicInfo.tags] Tags of the resource @@ -3020,19 +1907,6 @@ export interface Topics { * * @param {object} topicInfo Topic information * - * @param {string} [topicInfo.inputSchema] This determines the format that - * Event Grid should expect for incoming events published to the topic. - * Possible values include: 'EventGridSchema', 'CustomEventSchema', - * 'CloudEventV01Schema' - * - * @param {object} [topicInfo.inputSchemaMapping] This enables publishing using - * custom event schemas. An InputSchemaMapping can be specified to map various - * properties of a source schema to various required properties of the - * EventGridEvent schema. - * - * @param {string} topicInfo.inputSchemaMapping.inputSchemaMappingType - * Polymorphic Discriminator - * * @param {string} topicInfo.location Location of the resource * * @param {object} [topicInfo.tags] Tags of the resource @@ -3547,19 +2421,6 @@ export interface Topics { * * @param {object} topicInfo Topic information * - * @param {string} [topicInfo.inputSchema] This determines the format that - * Event Grid should expect for incoming events published to the topic. - * Possible values include: 'EventGridSchema', 'CustomEventSchema', - * 'CloudEventV01Schema' - * - * @param {object} [topicInfo.inputSchemaMapping] This enables publishing using - * custom event schemas. An InputSchemaMapping can be specified to map various - * properties of a source schema to various required properties of the - * EventGridEvent schema. - * - * @param {string} topicInfo.inputSchemaMapping.inputSchemaMappingType - * Polymorphic Discriminator - * * @param {string} topicInfo.location Location of the resource * * @param {object} [topicInfo.tags] Tags of the resource @@ -3589,19 +2450,6 @@ export interface Topics { * * @param {object} topicInfo Topic information * - * @param {string} [topicInfo.inputSchema] This determines the format that - * Event Grid should expect for incoming events published to the topic. - * Possible values include: 'EventGridSchema', 'CustomEventSchema', - * 'CloudEventV01Schema' - * - * @param {object} [topicInfo.inputSchemaMapping] This enables publishing using - * custom event schemas. An InputSchemaMapping can be specified to map various - * properties of a source schema to various required properties of the - * EventGridEvent schema. - * - * @param {string} topicInfo.inputSchemaMapping.inputSchemaMappingType - * Polymorphic Discriminator - * * @param {string} topicInfo.location Location of the resource * * @param {object} [topicInfo.tags] Tags of the resource diff --git a/lib/services/eventgridManagement/lib/operations/index.js b/lib/services/eventgridManagement/lib/operations/index.js index 6ca7250658..4b3d0fac59 100644 --- a/lib/services/eventgridManagement/lib/operations/index.js +++ b/lib/services/eventgridManagement/lib/operations/index.js @@ -14,8 +14,6 @@ 'use strict'; -exports.Domains = require('./domains'); -exports.DomainTopics = require('./domainTopics'); exports.EventSubscriptions = require('./eventSubscriptions'); exports.Operations = require('./operations'); exports.Topics = require('./topics'); diff --git a/lib/services/eventgridManagement/lib/operations/topics.js b/lib/services/eventgridManagement/lib/operations/topics.js index b34937d61d..bec5bc953b 100644 --- a/lib/services/eventgridManagement/lib/operations/topics.js +++ b/lib/services/eventgridManagement/lib/operations/topics.js @@ -175,19 +175,6 @@ function _get(resourceGroupName, topicName, options, callback) { * * @param {object} topicInfo Topic information * - * @param {string} [topicInfo.inputSchema] This determines the format that - * Event Grid should expect for incoming events published to the topic. - * Possible values include: 'EventGridSchema', 'CustomEventSchema', - * 'CloudEventV01Schema' - * - * @param {object} [topicInfo.inputSchemaMapping] This enables publishing using - * custom event schemas. An InputSchemaMapping can be specified to map various - * properties of a source schema to various required properties of the - * EventGridEvent schema. - * - * @param {string} topicInfo.inputSchemaMapping.inputSchemaMappingType - * Polymorphic Discriminator - * * @param {string} topicInfo.location Location of the resource * * @param {object} [topicInfo.tags] Tags of the resource @@ -1180,19 +1167,6 @@ function _listEventTypes(resourceGroupName, providerNamespace, resourceTypeName, * * @param {object} topicInfo Topic information * - * @param {string} [topicInfo.inputSchema] This determines the format that - * Event Grid should expect for incoming events published to the topic. - * Possible values include: 'EventGridSchema', 'CustomEventSchema', - * 'CloudEventV01Schema' - * - * @param {object} [topicInfo.inputSchemaMapping] This enables publishing using - * custom event schemas. An InputSchemaMapping can be specified to map various - * properties of a source schema to various required properties of the - * EventGridEvent schema. - * - * @param {string} topicInfo.inputSchemaMapping.inputSchemaMappingType - * Polymorphic Discriminator - * * @param {string} topicInfo.location Location of the resource * * @param {object} [topicInfo.tags] Tags of the resource @@ -1777,19 +1751,6 @@ class Topics { * * @param {object} topicInfo Topic information * - * @param {string} [topicInfo.inputSchema] This determines the format that - * Event Grid should expect for incoming events published to the topic. - * Possible values include: 'EventGridSchema', 'CustomEventSchema', - * 'CloudEventV01Schema' - * - * @param {object} [topicInfo.inputSchemaMapping] This enables publishing using - * custom event schemas. An InputSchemaMapping can be specified to map various - * properties of a source schema to various required properties of the - * EventGridEvent schema. - * - * @param {string} topicInfo.inputSchemaMapping.inputSchemaMappingType - * Polymorphic Discriminator - * * @param {string} topicInfo.location Location of the resource * * @param {object} [topicInfo.tags] Tags of the resource @@ -1831,19 +1792,6 @@ class Topics { * * @param {object} topicInfo Topic information * - * @param {string} [topicInfo.inputSchema] This determines the format that - * Event Grid should expect for incoming events published to the topic. - * Possible values include: 'EventGridSchema', 'CustomEventSchema', - * 'CloudEventV01Schema' - * - * @param {object} [topicInfo.inputSchemaMapping] This enables publishing using - * custom event schemas. An InputSchemaMapping can be specified to map various - * properties of a source schema to various required properties of the - * EventGridEvent schema. - * - * @param {string} topicInfo.inputSchemaMapping.inputSchemaMappingType - * Polymorphic Discriminator - * * @param {string} topicInfo.location Location of the resource * * @param {object} [topicInfo.tags] Tags of the resource @@ -2562,19 +2510,6 @@ class Topics { * * @param {object} topicInfo Topic information * - * @param {string} [topicInfo.inputSchema] This determines the format that - * Event Grid should expect for incoming events published to the topic. - * Possible values include: 'EventGridSchema', 'CustomEventSchema', - * 'CloudEventV01Schema' - * - * @param {object} [topicInfo.inputSchemaMapping] This enables publishing using - * custom event schemas. An InputSchemaMapping can be specified to map various - * properties of a source schema to various required properties of the - * EventGridEvent schema. - * - * @param {string} topicInfo.inputSchemaMapping.inputSchemaMappingType - * Polymorphic Discriminator - * * @param {string} topicInfo.location Location of the resource * * @param {object} [topicInfo.tags] Tags of the resource @@ -2616,19 +2551,6 @@ class Topics { * * @param {object} topicInfo Topic information * - * @param {string} [topicInfo.inputSchema] This determines the format that - * Event Grid should expect for incoming events published to the topic. - * Possible values include: 'EventGridSchema', 'CustomEventSchema', - * 'CloudEventV01Schema' - * - * @param {object} [topicInfo.inputSchemaMapping] This enables publishing using - * custom event schemas. An InputSchemaMapping can be specified to map various - * properties of a source schema to various required properties of the - * EventGridEvent schema. - * - * @param {string} topicInfo.inputSchemaMapping.inputSchemaMappingType - * Polymorphic Discriminator - * * @param {string} topicInfo.location Location of the resource * * @param {object} [topicInfo.tags] Tags of the resource From 4a2832bab86b5ccf928882e81770a9cc2ce76be5 Mon Sep 17 00:00:00 2001 From: Kamil Pajdzik Date: Wed, 9 Jan 2019 13:49:10 -0800 Subject: [PATCH 3/4] Regenerate azure-arm-eventgrid --- lib/services/eventgridManagement/LICENSE.txt | 2 +- lib/services/eventgridManagement/README.md | 33 +- .../lib/models/deadLetterDestination.js | 2 +- .../eventHubEventSubscriptionDestination.js | 2 +- .../lib/models/eventSubscription.js | 32 +- .../models/eventSubscriptionDestination.js | 2 +- .../lib/models/eventSubscriptionFilter.js | 12 +- .../lib/models/eventSubscriptionFullUrl.js | 4 +- .../eventSubscriptionUpdateParameters.js | 28 +- .../lib/models/eventType.js | 6 +- ...dConnectionEventSubscriptionDestination.js | 2 +- .../eventgridManagement/lib/models/index.d.ts | 471 ++++++++---------- .../lib/models/operation.js | 16 +- .../lib/models/operationInfo.js | 8 +- .../lib/models/resource.js | 6 +- .../lib/models/retryPolicy.js | 6 +- .../storageBlobDeadLetterDestination.js | 6 +- ...torageQueueEventSubscriptionDestination.js | 9 +- .../eventgridManagement/lib/models/topic.js | 4 +- .../lib/models/topicRegenerateKeyRequest.js | 2 +- .../lib/models/topicSharedAccessKeys.js | 4 +- .../lib/models/topicTypeInfo.js | 16 +- .../lib/models/topicUpdateParameters.js | 2 +- .../lib/models/trackedResource.js | 4 +- .../webHookEventSubscriptionDestination.js | 6 +- lib/services/eventgridManagement/package.json | 2 +- 26 files changed, 313 insertions(+), 374 deletions(-) diff --git a/lib/services/eventgridManagement/LICENSE.txt b/lib/services/eventgridManagement/LICENSE.txt index 5431ba98b9..8f3d856145 100644 --- a/lib/services/eventgridManagement/LICENSE.txt +++ b/lib/services/eventgridManagement/LICENSE.txt @@ -1,6 +1,6 @@ The MIT License (MIT) -Copyright (c) 2018 Microsoft +Copyright (c) 2019 Microsoft Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal diff --git a/lib/services/eventgridManagement/README.md b/lib/services/eventgridManagement/README.md index 634dae5877..680b32541e 100644 --- a/lib/services/eventgridManagement/README.md +++ b/lib/services/eventgridManagement/README.md @@ -3,40 +3,43 @@ uid: azure-arm-eventgrid summary: *content --- -# Microsoft Azure SDK for Node.js - EventGridManagementClient +**This SDK will be deprecated next year and will be replaced by a new TypeScript-based isomorphic SDK (found at https://github.com/Azure/azure-sdk-for-js) which works on Node.js and browsers.** +## Microsoft Azure SDK for Node.js - EventGridManagementClient + This project provides a Node.js package for accessing Azure. Right now it supports: - **Node.js version 6.x.x or higher** -## Features +### Features -## How to Install +### How to Install ```bash npm install azure-arm-eventgrid ``` -## How to use +### How to use -### Authentication, client creation and get eventSubscriptions as an example. +#### Authentication, client creation, and get eventSubscriptions as an example. ```javascript const msRestAzure = require("ms-rest-azure"); const EventGridManagementClient = require("azure-arm-eventgrid"); msRestAzure.interactiveLogin().then((creds) => { - const subscriptionId = ""; - const client = new EventGridManagementClient(creds, subscriptionId); - const scope = "testscope"; - const eventSubscriptionName = "testeventSubscriptionName"; - return client.eventSubscriptions.get(scope, eventSubscriptionName).then((result) => { - console.log("The result is:"); - console.log(result); - }); + const subscriptionId = ""; + const client = new EventGridManagementClient(creds, subscriptionId); + const scope = "testscope"; + const eventSubscriptionName = "testeventSubscriptionName"; + + return client.eventSubscriptions.get(scope, eventSubscriptionName).then((result) => { + console.log("The result is:"); + console.log(result); + }); }).catch((err) => { console.log('An error occurred:'); console.dir(err, {depth: null, colors: true}); }); - -## Related projects +``` +### Related projects - [Microsoft Azure SDK for Node.js](https://github.com/Azure/azure-sdk-for-node) diff --git a/lib/services/eventgridManagement/lib/models/deadLetterDestination.js b/lib/services/eventgridManagement/lib/models/deadLetterDestination.js index 131955a735..73b86f1cd8 100644 --- a/lib/services/eventgridManagement/lib/models/deadLetterDestination.js +++ b/lib/services/eventgridManagement/lib/models/deadLetterDestination.js @@ -21,7 +21,7 @@ class DeadLetterDestination { /** * Create a DeadLetterDestination. - * @member {string} endpointType Polymorphic Discriminator + * @property {string} endpointType Polymorphic Discriminator */ constructor() { } diff --git a/lib/services/eventgridManagement/lib/models/eventHubEventSubscriptionDestination.js b/lib/services/eventgridManagement/lib/models/eventHubEventSubscriptionDestination.js index 4e7b3c4f94..60b3a2c8f4 100644 --- a/lib/services/eventgridManagement/lib/models/eventHubEventSubscriptionDestination.js +++ b/lib/services/eventgridManagement/lib/models/eventHubEventSubscriptionDestination.js @@ -20,7 +20,7 @@ const models = require('./index'); class EventHubEventSubscriptionDestination extends models['EventSubscriptionDestination'] { /** * Create a EventHubEventSubscriptionDestination. - * @member {string} [resourceId] The Azure Resource Id that represents the + * @property {string} [resourceId] The Azure Resource Id that represents the * endpoint of an Event Hub destination of an event subscription. */ constructor() { diff --git a/lib/services/eventgridManagement/lib/models/eventSubscription.js b/lib/services/eventgridManagement/lib/models/eventSubscription.js index 5f2ea91220..17331a648d 100644 --- a/lib/services/eventgridManagement/lib/models/eventSubscription.js +++ b/lib/services/eventgridManagement/lib/models/eventSubscription.js @@ -20,40 +20,40 @@ const models = require('./index'); class EventSubscription extends models['Resource'] { /** * Create a EventSubscription. - * @member {string} [topic] Name of the topic of the event subscription. - * @member {string} [provisioningState] Provisioning state of the event + * @property {string} [topic] Name of the topic of the event subscription. + * @property {string} [provisioningState] Provisioning state of the event * subscription. Possible values include: 'Creating', 'Updating', 'Deleting', * 'Succeeded', 'Canceled', 'Failed', 'AwaitingManualAction' - * @member {object} [destination] Information about the destination where + * @property {object} [destination] Information about the destination where * events have to be delivered for the event subscription. - * @member {string} [destination.endpointType] Polymorphic Discriminator - * @member {object} [filter] Information about the filter for the event + * @property {string} [destination.endpointType] Polymorphic Discriminator + * @property {object} [filter] Information about the filter for the event * subscription. - * @member {string} [filter.subjectBeginsWith] An optional string to filter + * @property {string} [filter.subjectBeginsWith] An optional string to filter * events for an event subscription based on a resource path prefix. * The format of this depends on the publisher of the events. * Wildcard characters are not supported in this path. - * @member {string} [filter.subjectEndsWith] An optional string to filter + * @property {string} [filter.subjectEndsWith] An optional string to filter * events for an event subscription based on a resource path suffix. * Wildcard characters are not supported in this path. - * @member {array} [filter.includedEventTypes] A list of applicable event + * @property {array} [filter.includedEventTypes] A list of applicable event * types that need to be part of the event subscription. * If it is desired to subscribe to all event types, the string "all" needs * to be specified as an element in this list. - * @member {boolean} [filter.isSubjectCaseSensitive] Specifies if the + * @property {boolean} [filter.isSubjectCaseSensitive] Specifies if the * SubjectBeginsWith and SubjectEndsWith properties of the filter * should be compared in a case sensitive manner. - * @member {array} [labels] List of user defined labels. - * @member {object} [retryPolicy] The retry policy for events. This can be + * @property {array} [labels] List of user defined labels. + * @property {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 + * @property {number} [retryPolicy.maxDeliveryAttempts] Maximum number of * delivery retry attempts for events. - * @member {number} [retryPolicy.eventTimeToLiveInMinutes] Time To Live (in + * @property {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 + * @property {object} [deadLetterDestination] The DeadLetter destination of + * the event subscription. + * @property {string} [deadLetterDestination.endpointType] Polymorphic * Discriminator */ constructor() { diff --git a/lib/services/eventgridManagement/lib/models/eventSubscriptionDestination.js b/lib/services/eventgridManagement/lib/models/eventSubscriptionDestination.js index e12b54b380..7be3c4ea7b 100644 --- a/lib/services/eventgridManagement/lib/models/eventSubscriptionDestination.js +++ b/lib/services/eventgridManagement/lib/models/eventSubscriptionDestination.js @@ -17,7 +17,7 @@ class EventSubscriptionDestination { /** * Create a EventSubscriptionDestination. - * @member {string} endpointType Polymorphic Discriminator + * @property {string} endpointType Polymorphic Discriminator */ constructor() { } diff --git a/lib/services/eventgridManagement/lib/models/eventSubscriptionFilter.js b/lib/services/eventgridManagement/lib/models/eventSubscriptionFilter.js index 338d0e2ba1..98f50cd738 100644 --- a/lib/services/eventgridManagement/lib/models/eventSubscriptionFilter.js +++ b/lib/services/eventgridManagement/lib/models/eventSubscriptionFilter.js @@ -17,18 +17,18 @@ class EventSubscriptionFilter { /** * Create a EventSubscriptionFilter. - * @member {string} [subjectBeginsWith] An optional string to filter events + * @property {string} [subjectBeginsWith] An optional string to filter events * for an event subscription based on a resource path prefix. * The format of this depends on the publisher of the events. * Wildcard characters are not supported in this path. - * @member {string} [subjectEndsWith] An optional string to filter events for - * an event subscription based on a resource path suffix. + * @property {string} [subjectEndsWith] An optional string to filter events + * for an event subscription based on a resource path suffix. * Wildcard characters are not supported in this path. - * @member {array} [includedEventTypes] A list of applicable event types that - * need to be part of the event subscription. + * @property {array} [includedEventTypes] A list of applicable event types + * that need to be part of the event subscription. * If it is desired to subscribe to all event types, the string "all" needs * to be specified as an element in this list. - * @member {boolean} [isSubjectCaseSensitive] Specifies if the + * @property {boolean} [isSubjectCaseSensitive] Specifies if the * SubjectBeginsWith and SubjectEndsWith properties of the filter * should be compared in a case sensitive manner. Default value: false . */ diff --git a/lib/services/eventgridManagement/lib/models/eventSubscriptionFullUrl.js b/lib/services/eventgridManagement/lib/models/eventSubscriptionFullUrl.js index 3c11bab004..2e82fb547d 100644 --- a/lib/services/eventgridManagement/lib/models/eventSubscriptionFullUrl.js +++ b/lib/services/eventgridManagement/lib/models/eventSubscriptionFullUrl.js @@ -17,8 +17,8 @@ class EventSubscriptionFullUrl { /** * Create a EventSubscriptionFullUrl. - * @member {string} [endpointUrl] The URL that represents the endpoint of the - * destination of an event subscription. + * @property {string} [endpointUrl] The URL that represents the endpoint of + * the destination of an event subscription. */ constructor() { } diff --git a/lib/services/eventgridManagement/lib/models/eventSubscriptionUpdateParameters.js b/lib/services/eventgridManagement/lib/models/eventSubscriptionUpdateParameters.js index 5d4ff24f4e..de96c627ef 100644 --- a/lib/services/eventgridManagement/lib/models/eventSubscriptionUpdateParameters.js +++ b/lib/services/eventgridManagement/lib/models/eventSubscriptionUpdateParameters.js @@ -17,36 +17,36 @@ class EventSubscriptionUpdateParameters { /** * Create a EventSubscriptionUpdateParameters. - * @member {object} [destination] Information about the destination where + * @property {object} [destination] Information about the destination where * events have to be delivered for the event subscription. - * @member {string} [destination.endpointType] Polymorphic Discriminator - * @member {object} [filter] Information about the filter for the event + * @property {string} [destination.endpointType] Polymorphic Discriminator + * @property {object} [filter] Information about the filter for the event * subscription. - * @member {string} [filter.subjectBeginsWith] An optional string to filter + * @property {string} [filter.subjectBeginsWith] An optional string to filter * events for an event subscription based on a resource path prefix. * The format of this depends on the publisher of the events. * Wildcard characters are not supported in this path. - * @member {string} [filter.subjectEndsWith] An optional string to filter + * @property {string} [filter.subjectEndsWith] An optional string to filter * events for an event subscription based on a resource path suffix. * Wildcard characters are not supported in this path. - * @member {array} [filter.includedEventTypes] A list of applicable event + * @property {array} [filter.includedEventTypes] A list of applicable event * types that need to be part of the event subscription. * If it is desired to subscribe to all event types, the string "all" needs * to be specified as an element in this list. - * @member {boolean} [filter.isSubjectCaseSensitive] Specifies if the + * @property {boolean} [filter.isSubjectCaseSensitive] Specifies if the * SubjectBeginsWith and SubjectEndsWith properties of the filter * should be compared in a case sensitive manner. - * @member {array} [labels] List of user defined labels. - * @member {object} [retryPolicy] The retry policy for events. This can be + * @property {array} [labels] List of user defined labels. + * @property {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 + * @property {number} [retryPolicy.maxDeliveryAttempts] Maximum number of * delivery retry attempts for events. - * @member {number} [retryPolicy.eventTimeToLiveInMinutes] Time To Live (in + * @property {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 + * @property {object} [deadLetterDestination] The DeadLetter destination of + * the event subscription. + * @property {string} [deadLetterDestination.endpointType] Polymorphic * Discriminator */ constructor() { diff --git a/lib/services/eventgridManagement/lib/models/eventType.js b/lib/services/eventgridManagement/lib/models/eventType.js index 3285efc702..b8079ce432 100644 --- a/lib/services/eventgridManagement/lib/models/eventType.js +++ b/lib/services/eventgridManagement/lib/models/eventType.js @@ -20,9 +20,9 @@ const models = require('./index'); class EventType extends models['Resource'] { /** * Create a EventType. - * @member {string} [displayName] Display name of the event type. - * @member {string} [description] Description of the event type. - * @member {string} [schemaUrl] Url of the schema for this event type. + * @property {string} [displayName] Display name of the event type. + * @property {string} [description] Description of the event type. + * @property {string} [schemaUrl] Url of the schema for this event type. */ constructor() { super(); diff --git a/lib/services/eventgridManagement/lib/models/hybridConnectionEventSubscriptionDestination.js b/lib/services/eventgridManagement/lib/models/hybridConnectionEventSubscriptionDestination.js index c9536e3ec3..a95f2032d3 100644 --- a/lib/services/eventgridManagement/lib/models/hybridConnectionEventSubscriptionDestination.js +++ b/lib/services/eventgridManagement/lib/models/hybridConnectionEventSubscriptionDestination.js @@ -21,7 +21,7 @@ const models = require('./index'); class HybridConnectionEventSubscriptionDestination extends models['EventSubscriptionDestination'] { /** * Create a HybridConnectionEventSubscriptionDestination. - * @member {string} [resourceId] The Azure Resource ID of an hybrid + * @property {string} [resourceId] The Azure Resource ID of an hybrid * connection that is the destination of an event subscription. */ constructor() { diff --git a/lib/services/eventgridManagement/lib/models/index.d.ts b/lib/services/eventgridManagement/lib/models/index.d.ts index 71dff248b0..d19c1574a7 100644 --- a/lib/services/eventgridManagement/lib/models/index.d.ts +++ b/lib/services/eventgridManagement/lib/models/index.d.ts @@ -1,493 +1,428 @@ /* * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * 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. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -import { BaseResource } from 'ms-rest-azure'; -import { CloudError } from 'ms-rest-azure'; -import * as moment from 'moment'; +import { BaseResource, CloudError } from "ms-rest-azure"; +import * as moment from "moment"; -export { BaseResource } from 'ms-rest-azure'; -export { CloudError } from 'ms-rest-azure'; +export { + BaseResource, + CloudError +}; /** - * @class - * Initializes a new instance of the EventSubscriptionDestination class. - * @constructor * Information about the destination for an event subscription - * - * @member {string} endpointType Polymorphic Discriminator */ export interface EventSubscriptionDestination { + /** + * Polymorphic Discriminator + */ endpointType: string; } /** - * @class - * Initializes a new instance of the EventSubscriptionFilter class. - * @constructor * Filter for the Event Subscription - * - * @member {string} [subjectBeginsWith] An optional string to filter events for - * an event subscription based on a resource path prefix. - * The format of this depends on the publisher of the events. - * Wildcard characters are not supported in this path. - * @member {string} [subjectEndsWith] An optional string to filter events for - * an event subscription based on a resource path suffix. - * Wildcard characters are not supported in this path. - * @member {array} [includedEventTypes] A list of applicable event types that - * need to be part of the event subscription. - * If it is desired to subscribe to all event types, the string "all" needs to - * be specified as an element in this list. - * @member {boolean} [isSubjectCaseSensitive] Specifies if the - * SubjectBeginsWith and SubjectEndsWith properties of the filter - * should be compared in a case sensitive manner. Default value: false . */ export interface EventSubscriptionFilter { + /** + * An optional string to filter events for an event subscription based on a resource path prefix. + * The format of this depends on the publisher of the events. + * Wildcard characters are not supported in this path. + */ subjectBeginsWith?: string; + /** + * An optional string to filter events for an event subscription based on a resource path suffix. + * Wildcard characters are not supported in this path. + */ subjectEndsWith?: string; + /** + * A list of applicable event types that need to be part of the event subscription. + * If it is desired to subscribe to all event types, the string "all" needs to be specified as an + * element in this list. + */ includedEventTypes?: string[]; + /** + * Specifies if the SubjectBeginsWith and SubjectEndsWith properties of the filter + * should be compared in a case sensitive manner. + */ isSubjectCaseSensitive?: boolean; } /** - * @class - * Initializes a new instance of the RetryPolicy class. - * @constructor * Information about the retry policy for an event subscription - * - * @member {number} [maxDeliveryAttempts] Maximum number of delivery retry - * attempts for events. - * @member {number} [eventTimeToLiveInMinutes] Time To Live (in minutes) for - * events. */ export interface RetryPolicy { + /** + * Maximum number of delivery retry attempts for events. + */ maxDeliveryAttempts?: number; + /** + * Time To Live (in minutes) for events. + */ eventTimeToLiveInMinutes?: number; } /** - * @class - * Initializes a new instance of the DeadLetterDestination class. - * @constructor - * 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. - * - * @member {string} endpointType Polymorphic Discriminator + * 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. */ export interface DeadLetterDestination { + /** + * Polymorphic Discriminator + */ endpointType: string; } /** - * @class - * Initializes a new instance of the Resource class. - * @constructor * Definition of a Resource - * - * @member {string} [id] Fully qualified identifier of the resource - * @member {string} [name] Name of the resource - * @member {string} [type] Type of the resource */ export interface Resource extends BaseResource { + /** + * Fully qualified identifier of the resource + */ readonly id?: string; + /** + * Name of the resource + */ readonly name?: string; + /** + * Type of the resource + */ readonly type?: string; } /** - * @class - * Initializes a new instance of the StorageBlobDeadLetterDestination class. - * @constructor * Information about the storage blob based dead letter destination. - * - * @member {string} [resourceId] The Azure Resource ID of the storage account - * that is the destination of the deadletter events. For example: - * /subscriptions/{AzureSubscriptionId}/resourceGroups/{ResourceGroupName}/providers/microsoft.Storage/storageAccounts/{StorageAccountName} - * @member {string} [blobContainerName] The name of the Storage blob container - * that is the destination of the deadletter events */ export interface StorageBlobDeadLetterDestination extends DeadLetterDestination { + /** + * The Azure Resource ID of the storage account that is the destination of the deadletter events. + * For example: + * /subscriptions/{AzureSubscriptionId}/resourceGroups/{ResourceGroupName}/providers/microsoft.Storage/storageAccounts/{StorageAccountName} + */ resourceId?: string; + /** + * The name of the Storage blob container that is the destination of the deadletter events + */ blobContainerName?: string; } /** - * @class - * Initializes a new instance of the WebHookEventSubscriptionDestination class. - * @constructor * Information about the webhook destination for an event subscription - * - * @member {string} [endpointUrl] The URL that represents the endpoint of the - * destination of an event subscription. - * @member {string} [endpointBaseUrl] The base URL that represents the endpoint - * of the destination of an event subscription. */ export interface WebHookEventSubscriptionDestination extends EventSubscriptionDestination { + /** + * The URL that represents the endpoint of the destination of an event subscription. + */ endpointUrl?: string; + /** + * The base URL that represents the endpoint of the destination of an event subscription. + */ readonly endpointBaseUrl?: string; } /** - * @class - * Initializes a new instance of the EventHubEventSubscriptionDestination class. - * @constructor * Information about the event hub destination for an event subscription - * - * @member {string} [resourceId] The Azure Resource Id that represents the - * endpoint of an Event Hub destination of an event subscription. */ export interface EventHubEventSubscriptionDestination extends EventSubscriptionDestination { + /** + * The Azure Resource Id that represents the endpoint of an Event Hub destination of an event + * subscription. + */ resourceId?: string; } /** - * @class - * Initializes a new instance of the StorageQueueEventSubscriptionDestination class. - * @constructor * Information about the storage queue destination for an event subscription. - * - * @member {string} [resourceId] The Azure Resource ID of the storage account - * that contains the queue that is the destination of an event subscription. - * @member {string} [queueName] The name of the Storage queue under a storage - * account that is the destination of an event subscription. */ export interface StorageQueueEventSubscriptionDestination extends EventSubscriptionDestination { + /** + * The Azure Resource ID of the storage account that contains the queue that is the destination + * of an event subscription. + */ resourceId?: string; + /** + * The name of the Storage queue under a storage account that is the destination of an event + * subscription. + */ queueName?: string; } /** - * @class - * Initializes a new instance of the HybridConnectionEventSubscriptionDestination class. - * @constructor - * Information about the HybridConnection destination for an event - * subscription. - * - * @member {string} [resourceId] The Azure Resource ID of an hybrid connection - * that is the destination of an event subscription. + * Information about the HybridConnection destination for an event subscription. */ export interface HybridConnectionEventSubscriptionDestination extends EventSubscriptionDestination { + /** + * The Azure Resource ID of an hybrid connection that is the destination of an event + * subscription. + */ resourceId?: string; } /** - * @class - * Initializes a new instance of the EventSubscription class. - * @constructor * Event Subscription - * - * @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', 'AwaitingManualAction' - * @member {object} [destination] Information about the destination where - * events have to be delivered for the event subscription. - * @member {string} [destination.endpointType] Polymorphic Discriminator - * @member {object} [filter] Information about the filter for the event - * subscription. - * @member {string} [filter.subjectBeginsWith] An optional string to filter - * events for an event subscription based on a resource path prefix. - * The format of this depends on the publisher of the events. - * Wildcard characters are not supported in this path. - * @member {string} [filter.subjectEndsWith] An optional string to filter - * events for an event subscription based on a resource path suffix. - * Wildcard characters are not supported in this path. - * @member {array} [filter.includedEventTypes] A list of applicable event types - * that need to be part of the event subscription. - * If it is desired to subscribe to all event types, the string "all" needs to - * be specified as an element in this list. - * @member {boolean} [filter.isSubjectCaseSensitive] Specifies if the - * SubjectBeginsWith and SubjectEndsWith properties of the filter - * should be compared in a case sensitive manner. - * @member {array} [labels] List of user defined labels. - * @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 */ export interface EventSubscription extends Resource { + /** + * Name of the topic of the event subscription. + */ readonly topic?: string; + /** + * Provisioning state of the event subscription. Possible values include: 'Creating', 'Updating', + * 'Deleting', 'Succeeded', 'Canceled', 'Failed', 'AwaitingManualAction' + */ readonly provisioningState?: string; + /** + * Information about the destination where events have to be delivered for the event + * subscription. + */ destination?: EventSubscriptionDestination; + /** + * Information about the filter for the event subscription. + */ filter?: EventSubscriptionFilter; + /** + * List of user defined labels. + */ labels?: string[]; + /** + * The retry policy for events. This can be used to configure maximum number of delivery attempts + * and time to live for events. + */ retryPolicy?: RetryPolicy; + /** + * The DeadLetter destination of the event subscription. + */ deadLetterDestination?: DeadLetterDestination; } /** - * @class - * Initializes a new instance of the EventSubscriptionUpdateParameters class. - * @constructor * Properties of the Event Subscription update - * - * @member {object} [destination] Information about the destination where - * events have to be delivered for the event subscription. - * @member {string} [destination.endpointType] Polymorphic Discriminator - * @member {object} [filter] Information about the filter for the event - * subscription. - * @member {string} [filter.subjectBeginsWith] An optional string to filter - * events for an event subscription based on a resource path prefix. - * The format of this depends on the publisher of the events. - * Wildcard characters are not supported in this path. - * @member {string} [filter.subjectEndsWith] An optional string to filter - * events for an event subscription based on a resource path suffix. - * Wildcard characters are not supported in this path. - * @member {array} [filter.includedEventTypes] A list of applicable event types - * that need to be part of the event subscription. - * If it is desired to subscribe to all event types, the string "all" needs to - * be specified as an element in this list. - * @member {boolean} [filter.isSubjectCaseSensitive] Specifies if the - * SubjectBeginsWith and SubjectEndsWith properties of the filter - * should be compared in a case sensitive manner. - * @member {array} [labels] List of user defined labels. - * @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 */ export interface EventSubscriptionUpdateParameters { + /** + * Information about the destination where events have to be delivered for the event + * subscription. + */ destination?: EventSubscriptionDestination; + /** + * Information about the filter for the event subscription. + */ filter?: EventSubscriptionFilter; + /** + * List of user defined labels. + */ labels?: string[]; + /** + * The retry policy for events. This can be used to configure maximum number of delivery attempts + * and time to live for events. + */ retryPolicy?: RetryPolicy; + /** + * The DeadLetter destination of the event subscription. + */ deadLetterDestination?: DeadLetterDestination; } /** - * @class - * Initializes a new instance of the EventSubscriptionFullUrl class. - * @constructor * Full endpoint url of an event subscription - * - * @member {string} [endpointUrl] The URL that represents the endpoint of the - * destination of an event subscription. */ export interface EventSubscriptionFullUrl { + /** + * The URL that represents the endpoint of the destination of an event subscription. + */ endpointUrl?: string; } /** - * @class - * Initializes a new instance of the OperationInfo class. - * @constructor * Information about an operation - * - * @member {string} [provider] Name of the provider - * @member {string} [resource] Name of the resource type - * @member {string} [operation] Name of the operation - * @member {string} [description] Description of the operation */ export interface OperationInfo { + /** + * Name of the provider + */ provider?: string; + /** + * Name of the resource type + */ resource?: string; + /** + * Name of the operation + */ operation?: string; + /** + * Description of the operation + */ description?: string; } /** - * @class - * Initializes a new instance of the Operation class. - * @constructor * Represents an operation returned by the GetOperations request - * - * @member {string} [name] Name of the operation - * @member {object} [display] Display name of the operation - * @member {string} [display.provider] Name of the provider - * @member {string} [display.resource] Name of the resource type - * @member {string} [display.operation] Name of the operation - * @member {string} [display.description] Description of the operation - * @member {string} [origin] Origin of the operation - * @member {object} [properties] Properties of the operation */ export interface Operation { + /** + * Name of the operation + */ name?: string; + /** + * Display name of the operation + */ display?: OperationInfo; + /** + * Origin of the operation + */ origin?: string; + /** + * Properties of the operation + */ properties?: any; } /** - * @class - * Initializes a new instance of the TrackedResource class. - * @constructor * Definition of a Tracked Resource - * - * @member {string} location Location of the resource - * @member {object} [tags] Tags of the resource */ export interface TrackedResource extends Resource { + /** + * Location of the resource + */ location: string; + /** + * Tags of the resource + */ tags?: { [propertyName: string]: string }; } /** - * @class - * Initializes a new instance of the Topic class. - * @constructor * EventGrid Topic - * - * @member {string} [provisioningState] Provisioning state of the topic. - * Possible values include: 'Creating', 'Updating', 'Deleting', 'Succeeded', - * 'Canceled', 'Failed' - * @member {string} [endpoint] Endpoint for the topic. */ export interface Topic extends TrackedResource { + /** + * Provisioning state of the topic. Possible values include: 'Creating', 'Updating', 'Deleting', + * 'Succeeded', 'Canceled', 'Failed' + */ readonly provisioningState?: string; + /** + * Endpoint for the topic. + */ readonly endpoint?: string; } /** - * @class - * Initializes a new instance of the TopicUpdateParameters class. - * @constructor * Properties of the Topic update - * - * @member {object} [tags] Tags of the resource */ export interface TopicUpdateParameters { + /** + * Tags of the resource + */ tags?: { [propertyName: string]: string }; } /** - * @class - * Initializes a new instance of the TopicSharedAccessKeys class. - * @constructor * Shared access keys of the Topic - * - * @member {string} [key1] Shared access key1 for the topic. - * @member {string} [key2] Shared access key2 for the topic. */ export interface TopicSharedAccessKeys { + /** + * Shared access key1 for the topic. + */ key1?: string; + /** + * Shared access key2 for the topic. + */ key2?: string; } /** - * @class - * Initializes a new instance of the TopicRegenerateKeyRequest class. - * @constructor * Topic regenerate share access key request - * - * @member {string} keyName Key name to regenerate key1 or key2 */ export interface TopicRegenerateKeyRequest { + /** + * Key name to regenerate key1 or key2 + */ keyName: string; } /** - * @class - * Initializes a new instance of the EventType class. - * @constructor * Event Type for a subject under a topic - * - * @member {string} [displayName] Display name of the event type. - * @member {string} [description] Description of the event type. - * @member {string} [schemaUrl] Url of the schema for this event type. */ export interface EventType extends Resource { + /** + * Display name of the event type. + */ displayName?: string; + /** + * Description of the event type. + */ description?: string; + /** + * Url of the schema for this event type. + */ schemaUrl?: string; } /** - * @class - * Initializes a new instance of the TopicTypeInfo class. - * @constructor * Properties of a topic type info. - * - * @member {string} [provider] Namespace of the provider of the topic type. - * @member {string} [displayName] Display Name for the topic type. - * @member {string} [description] Description of the topic type. - * @member {string} [resourceRegionType] Region type of the resource. Possible - * values include: 'RegionalResource', 'GlobalResource' - * @member {string} [provisioningState] Provisioning state of the topic type. - * Possible values include: 'Creating', 'Updating', 'Deleting', 'Succeeded', - * 'Canceled', 'Failed' - * @member {array} [supportedLocations] List of locations supported by this - * topic type. */ export interface TopicTypeInfo extends Resource { + /** + * Namespace of the provider of the topic type. + */ provider?: string; + /** + * Display Name for the topic type. + */ displayName?: string; + /** + * Description of the topic type. + */ description?: string; + /** + * Region type of the resource. Possible values include: 'RegionalResource', 'GlobalResource' + */ resourceRegionType?: string; + /** + * Provisioning state of the topic type. Possible values include: 'Creating', 'Updating', + * 'Deleting', 'Succeeded', 'Canceled', 'Failed' + */ provisioningState?: string; + /** + * List of locations supported by this topic type. + */ supportedLocations?: string[]; } - /** - * @class - * Initializes a new instance of the EventSubscriptionsListResult class. - * @constructor * Result of the List EventSubscriptions operation - * */ export interface EventSubscriptionsListResult extends Array { } /** - * @class - * Initializes a new instance of the OperationsListResult class. - * @constructor * Result of the List Operations operation - * */ export interface OperationsListResult extends Array { } /** - * @class - * Initializes a new instance of the TopicsListResult class. - * @constructor * Result of the List Topics operation - * */ export interface TopicsListResult extends Array { } /** - * @class - * Initializes a new instance of the EventTypesListResult class. - * @constructor * Result of the List Event Types operation - * */ export interface EventTypesListResult extends Array { } /** - * @class - * Initializes a new instance of the TopicTypesListResult class. - * @constructor * Result of the List Topic Types operation - * */ export interface TopicTypesListResult extends Array { } diff --git a/lib/services/eventgridManagement/lib/models/operation.js b/lib/services/eventgridManagement/lib/models/operation.js index bacf613cc9..1024a62602 100644 --- a/lib/services/eventgridManagement/lib/models/operation.js +++ b/lib/services/eventgridManagement/lib/models/operation.js @@ -17,14 +17,14 @@ class Operation { /** * Create a Operation. - * @member {string} [name] Name of the operation - * @member {object} [display] Display name of the operation - * @member {string} [display.provider] Name of the provider - * @member {string} [display.resource] Name of the resource type - * @member {string} [display.operation] Name of the operation - * @member {string} [display.description] Description of the operation - * @member {string} [origin] Origin of the operation - * @member {object} [properties] Properties of the operation + * @property {string} [name] Name of the operation + * @property {object} [display] Display name of the operation + * @property {string} [display.provider] Name of the provider + * @property {string} [display.resource] Name of the resource type + * @property {string} [display.operation] Name of the operation + * @property {string} [display.description] Description of the operation + * @property {string} [origin] Origin of the operation + * @property {object} [properties] Properties of the operation */ constructor() { } diff --git a/lib/services/eventgridManagement/lib/models/operationInfo.js b/lib/services/eventgridManagement/lib/models/operationInfo.js index e2c0b4bedb..61e24c036c 100644 --- a/lib/services/eventgridManagement/lib/models/operationInfo.js +++ b/lib/services/eventgridManagement/lib/models/operationInfo.js @@ -17,10 +17,10 @@ class OperationInfo { /** * Create a OperationInfo. - * @member {string} [provider] Name of the provider - * @member {string} [resource] Name of the resource type - * @member {string} [operation] Name of the operation - * @member {string} [description] Description of the operation + * @property {string} [provider] Name of the provider + * @property {string} [resource] Name of the resource type + * @property {string} [operation] Name of the operation + * @property {string} [description] Description of the operation */ constructor() { } diff --git a/lib/services/eventgridManagement/lib/models/resource.js b/lib/services/eventgridManagement/lib/models/resource.js index 63b5d88c49..972ed7d30a 100644 --- a/lib/services/eventgridManagement/lib/models/resource.js +++ b/lib/services/eventgridManagement/lib/models/resource.js @@ -20,9 +20,9 @@ const models = require('./index'); class Resource extends models['BaseResource'] { /** * Create a Resource. - * @member {string} [id] Fully qualified identifier of the resource - * @member {string} [name] Name of the resource - * @member {string} [type] Type of the resource + * @property {string} [id] Fully qualified identifier of the resource + * @property {string} [name] Name of the resource + * @property {string} [type] Type of the resource */ constructor() { super(); diff --git a/lib/services/eventgridManagement/lib/models/retryPolicy.js b/lib/services/eventgridManagement/lib/models/retryPolicy.js index 78ce1f0d6a..904d38aacc 100644 --- a/lib/services/eventgridManagement/lib/models/retryPolicy.js +++ b/lib/services/eventgridManagement/lib/models/retryPolicy.js @@ -17,10 +17,10 @@ class RetryPolicy { /** * Create a RetryPolicy. - * @member {number} [maxDeliveryAttempts] Maximum number of delivery retry + * @property {number} [maxDeliveryAttempts] Maximum number of delivery retry * attempts for events. - * @member {number} [eventTimeToLiveInMinutes] Time To Live (in minutes) for - * events. + * @property {number} [eventTimeToLiveInMinutes] Time To Live (in minutes) + * for events. */ constructor() { } diff --git a/lib/services/eventgridManagement/lib/models/storageBlobDeadLetterDestination.js b/lib/services/eventgridManagement/lib/models/storageBlobDeadLetterDestination.js index 6f21124d1f..f422c0e049 100644 --- a/lib/services/eventgridManagement/lib/models/storageBlobDeadLetterDestination.js +++ b/lib/services/eventgridManagement/lib/models/storageBlobDeadLetterDestination.js @@ -20,10 +20,10 @@ const models = require('./index'); class StorageBlobDeadLetterDestination extends models['DeadLetterDestination'] { /** * Create a StorageBlobDeadLetterDestination. - * @member {string} [resourceId] The Azure Resource ID of the storage account - * that is the destination of the deadletter events. For example: + * @property {string} [resourceId] The Azure Resource ID of the storage + * account that is the destination of the deadletter events. For example: * /subscriptions/{AzureSubscriptionId}/resourceGroups/{ResourceGroupName}/providers/microsoft.Storage/storageAccounts/{StorageAccountName} - * @member {string} [blobContainerName] The name of the Storage blob + * @property {string} [blobContainerName] The name of the Storage blob * container that is the destination of the deadletter events */ constructor() { diff --git a/lib/services/eventgridManagement/lib/models/storageQueueEventSubscriptionDestination.js b/lib/services/eventgridManagement/lib/models/storageQueueEventSubscriptionDestination.js index f802d4ffe1..0a7a3afa29 100644 --- a/lib/services/eventgridManagement/lib/models/storageQueueEventSubscriptionDestination.js +++ b/lib/services/eventgridManagement/lib/models/storageQueueEventSubscriptionDestination.js @@ -20,10 +20,11 @@ const models = require('./index'); class StorageQueueEventSubscriptionDestination extends models['EventSubscriptionDestination'] { /** * Create a StorageQueueEventSubscriptionDestination. - * @member {string} [resourceId] The Azure Resource ID of the storage account - * that contains the queue that is the destination of an event subscription. - * @member {string} [queueName] The name of the Storage queue under a storage - * account that is the destination of an event subscription. + * @property {string} [resourceId] The Azure Resource ID of the storage + * account that contains the queue that is the destination of an event + * subscription. + * @property {string} [queueName] The name of the Storage queue under a + * storage account that is the destination of an event subscription. */ constructor() { super(); diff --git a/lib/services/eventgridManagement/lib/models/topic.js b/lib/services/eventgridManagement/lib/models/topic.js index 3ef90b3250..70d34f8117 100644 --- a/lib/services/eventgridManagement/lib/models/topic.js +++ b/lib/services/eventgridManagement/lib/models/topic.js @@ -20,10 +20,10 @@ const models = require('./index'); class Topic extends models['TrackedResource'] { /** * Create a Topic. - * @member {string} [provisioningState] Provisioning state of the topic. + * @property {string} [provisioningState] Provisioning state of the topic. * Possible values include: 'Creating', 'Updating', 'Deleting', 'Succeeded', * 'Canceled', 'Failed' - * @member {string} [endpoint] Endpoint for the topic. + * @property {string} [endpoint] Endpoint for the topic. */ constructor() { super(); diff --git a/lib/services/eventgridManagement/lib/models/topicRegenerateKeyRequest.js b/lib/services/eventgridManagement/lib/models/topicRegenerateKeyRequest.js index ad78ce81d0..298d951a4c 100644 --- a/lib/services/eventgridManagement/lib/models/topicRegenerateKeyRequest.js +++ b/lib/services/eventgridManagement/lib/models/topicRegenerateKeyRequest.js @@ -17,7 +17,7 @@ class TopicRegenerateKeyRequest { /** * Create a TopicRegenerateKeyRequest. - * @member {string} keyName Key name to regenerate key1 or key2 + * @property {string} keyName Key name to regenerate key1 or key2 */ constructor() { } diff --git a/lib/services/eventgridManagement/lib/models/topicSharedAccessKeys.js b/lib/services/eventgridManagement/lib/models/topicSharedAccessKeys.js index ed27fb3c2e..ab9b4a5816 100644 --- a/lib/services/eventgridManagement/lib/models/topicSharedAccessKeys.js +++ b/lib/services/eventgridManagement/lib/models/topicSharedAccessKeys.js @@ -17,8 +17,8 @@ class TopicSharedAccessKeys { /** * Create a TopicSharedAccessKeys. - * @member {string} [key1] Shared access key1 for the topic. - * @member {string} [key2] Shared access key2 for the topic. + * @property {string} [key1] Shared access key1 for the topic. + * @property {string} [key2] Shared access key2 for the topic. */ constructor() { } diff --git a/lib/services/eventgridManagement/lib/models/topicTypeInfo.js b/lib/services/eventgridManagement/lib/models/topicTypeInfo.js index 8d4a47b881..8589cc5266 100644 --- a/lib/services/eventgridManagement/lib/models/topicTypeInfo.js +++ b/lib/services/eventgridManagement/lib/models/topicTypeInfo.js @@ -20,15 +20,15 @@ const models = require('./index'); class TopicTypeInfo extends models['Resource'] { /** * Create a TopicTypeInfo. - * @member {string} [provider] Namespace of the provider of the topic type. - * @member {string} [displayName] Display Name for the topic type. - * @member {string} [description] Description of the topic type. - * @member {string} [resourceRegionType] Region type of the resource. + * @property {string} [provider] Namespace of the provider of the topic type. + * @property {string} [displayName] Display Name for the topic type. + * @property {string} [description] Description of the topic type. + * @property {string} [resourceRegionType] Region type of the resource. * Possible values include: 'RegionalResource', 'GlobalResource' - * @member {string} [provisioningState] Provisioning state of the topic type. - * Possible values include: 'Creating', 'Updating', 'Deleting', 'Succeeded', - * 'Canceled', 'Failed' - * @member {array} [supportedLocations] List of locations supported by this + * @property {string} [provisioningState] Provisioning state of the topic + * type. Possible values include: 'Creating', 'Updating', 'Deleting', + * 'Succeeded', 'Canceled', 'Failed' + * @property {array} [supportedLocations] List of locations supported by this * topic type. */ constructor() { diff --git a/lib/services/eventgridManagement/lib/models/topicUpdateParameters.js b/lib/services/eventgridManagement/lib/models/topicUpdateParameters.js index 4168e1a097..56147da604 100644 --- a/lib/services/eventgridManagement/lib/models/topicUpdateParameters.js +++ b/lib/services/eventgridManagement/lib/models/topicUpdateParameters.js @@ -17,7 +17,7 @@ class TopicUpdateParameters { /** * Create a TopicUpdateParameters. - * @member {object} [tags] Tags of the resource + * @property {object} [tags] Tags of the resource */ constructor() { } diff --git a/lib/services/eventgridManagement/lib/models/trackedResource.js b/lib/services/eventgridManagement/lib/models/trackedResource.js index 4dd61ff851..e72d0029e2 100644 --- a/lib/services/eventgridManagement/lib/models/trackedResource.js +++ b/lib/services/eventgridManagement/lib/models/trackedResource.js @@ -20,8 +20,8 @@ const models = require('./index'); class TrackedResource extends models['Resource'] { /** * Create a TrackedResource. - * @member {string} location Location of the resource - * @member {object} [tags] Tags of the resource + * @property {string} location Location of the resource + * @property {object} [tags] Tags of the resource */ constructor() { super(); diff --git a/lib/services/eventgridManagement/lib/models/webHookEventSubscriptionDestination.js b/lib/services/eventgridManagement/lib/models/webHookEventSubscriptionDestination.js index fb7f872b2b..da63c1db8e 100644 --- a/lib/services/eventgridManagement/lib/models/webHookEventSubscriptionDestination.js +++ b/lib/services/eventgridManagement/lib/models/webHookEventSubscriptionDestination.js @@ -20,9 +20,9 @@ const models = require('./index'); class WebHookEventSubscriptionDestination extends models['EventSubscriptionDestination'] { /** * Create a WebHookEventSubscriptionDestination. - * @member {string} [endpointUrl] The URL that represents the endpoint of the - * destination of an event subscription. - * @member {string} [endpointBaseUrl] The base URL that represents the + * @property {string} [endpointUrl] The URL that represents the endpoint of + * the destination of an event subscription. + * @property {string} [endpointBaseUrl] The base URL that represents the * endpoint of the destination of an event subscription. */ constructor() { diff --git a/lib/services/eventgridManagement/package.json b/lib/services/eventgridManagement/package.json index 1cc547d8e3..ee2c08e21d 100644 --- a/lib/services/eventgridManagement/package.json +++ b/lib/services/eventgridManagement/package.json @@ -22,4 +22,4 @@ "bugs": { "url": "https://github.com/azure/azure-sdk-for-node/issues" } -} \ No newline at end of file +} From 549668ec7497cd9037118afe8ef1e1c341bc8612 Mon Sep 17 00:00:00 2001 From: Kamil Pajdzik Date: Wed, 9 Jan 2019 13:52:09 -0800 Subject: [PATCH 4/4] Regenerate azure-arm-eventgrid --- lib/services/eventgridManagement/package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/services/eventgridManagement/package.json b/lib/services/eventgridManagement/package.json index ee2c08e21d..8a2ceca7d7 100644 --- a/lib/services/eventgridManagement/package.json +++ b/lib/services/eventgridManagement/package.json @@ -2,7 +2,7 @@ "name": "azure-arm-eventgrid", "author": "Microsoft Corporation", "description": "EventGridManagementClient Library with typescript type definitions for node", - "version": "2.2.0", + "version": "3.0.0", "dependencies": { "ms-rest": "^2.3.3", "ms-rest-azure": "^2.5.5"