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