From 7632285a17f75913f7aa9866c10d66fd8f99b0ff Mon Sep 17 00:00:00 2001 From: Azure SDK for Python bot Date: Tue, 18 Sep 2018 04:23:54 +0000 Subject: [PATCH] Generated from 731d3b6b72a89918dcd03171a26854c8e55b4147 README.md changes: Updated default tag for global settings and updates to multi-api settings. --- lib/services/eventgridManagement/README.md | 8 +- .../lib/eventGridManagementClient.d.ts | 2 - .../lib/eventGridManagementClient.js | 4 +- .../lib/models/eventSubscription.js | 14 +- .../lib/models/eventSubscriptionFilter.js | 21 - .../eventSubscriptionUpdateParameters.js | 12 +- .../eventgridManagement/lib/models/index.d.ts | 344 +----- .../eventgridManagement/lib/models/index.js | 41 +- .../lib/operations/eventSubscriptions.js | 352 +----- .../lib/operations/index.d.ts | 1084 +---------------- .../lib/operations/index.js | 2 - lib/services/eventgridManagement/package.json | 2 +- 12 files changed, 75 insertions(+), 1811 deletions(-) diff --git a/lib/services/eventgridManagement/README.md b/lib/services/eventgridManagement/README.md index 73fe7ec966..634dae5877 100644 --- a/lib/services/eventgridManagement/README.md +++ b/lib/services/eventgridManagement/README.md @@ -18,7 +18,7 @@ npm install azure-arm-eventgrid ## How to use -### Authentication, client creation and get domains as an example. +### Authentication, client creation and get eventSubscriptions as an example. ```javascript const msRestAzure = require("ms-rest-azure"); @@ -26,9 +26,9 @@ const EventGridManagementClient = require("azure-arm-eventgrid"); msRestAzure.interactiveLogin().then((creds) => { const subscriptionId = ""; const client = new EventGridManagementClient(creds, subscriptionId); - const resourceGroupName = "testresourceGroupName"; - const domainName = "testdomainName"; - return client.domains.get(resourceGroupName, domainName).then((result) => { + const scope = "testscope"; + const eventSubscriptionName = "testeventSubscriptionName"; + return client.eventSubscriptions.get(scope, eventSubscriptionName).then((result) => { console.log("The result is:"); console.log(result); }); diff --git a/lib/services/eventgridManagement/lib/eventGridManagementClient.d.ts b/lib/services/eventgridManagement/lib/eventGridManagementClient.d.ts index 49705230e9..03519d10f0 100644 --- a/lib/services/eventgridManagement/lib/eventGridManagementClient.d.ts +++ b/lib/services/eventgridManagement/lib/eventGridManagementClient.d.ts @@ -56,8 +56,6 @@ export default class EventGridManagementClient extends AzureServiceClient { generateClientRequestId: boolean; // Operation groups - domains: operations.Domains; - domainTopics: operations.DomainTopics; eventSubscriptions: operations.EventSubscriptions; operations: operations.Operations; topics: operations.Topics; diff --git a/lib/services/eventgridManagement/lib/eventGridManagementClient.js b/lib/services/eventgridManagement/lib/eventGridManagementClient.js index 6e01befdac..0b4ca2dd9a 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 = '2018-05-01-preview'; 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..1da68c6113 100644 --- a/lib/services/eventgridManagement/lib/models/eventSubscription.js +++ b/lib/services/eventgridManagement/lib/models/eventSubscription.js @@ -43,13 +43,11 @@ 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' + * 'InputEventSchema', 'CloudEventV01Schema'. Default value: + * 'InputEventSchema' . * @member {object} [retryPolicy] The retry policy for events. This can be * used to configure maximum number of delivery attempts and time to live for * events. @@ -155,16 +153,10 @@ class EventSubscription extends models['Resource'] { } } }, - expirationTimeUtc: { - required: false, - serializedName: 'properties.expirationTimeUtc', - type: { - name: 'DateTime' - } - }, eventDeliverySchema: { required: false, serializedName: 'properties.eventDeliverySchema', + defaultValue: 'InputEventSchema', type: { name: 'String' } 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..d70cc1d5f0 100644 --- a/lib/services/eventgridManagement/lib/models/eventSubscriptionUpdateParameters.js +++ b/lib/services/eventgridManagement/lib/models/eventSubscriptionUpdateParameters.js @@ -36,13 +36,10 @@ 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' + * 'InputEventSchema', 'CloudEventV01Schema' * @member {object} [retryPolicy] The retry policy for events. This can be * used to configure maximum number of delivery attempts and time to live for * events. @@ -107,13 +104,6 @@ class EventSubscriptionUpdateParameters { } } }, - expirationTimeUtc: { - required: false, - serializedName: 'expirationTimeUtc', - type: { - name: 'DateTime' - } - }, eventDeliverySchema: { required: false, serializedName: 'eventDeliverySchema', diff --git a/lib/services/eventgridManagement/lib/models/index.d.ts b/lib/services/eventgridManagement/lib/models/index.d.ts index dc3904772d..5638897eaa 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 - * upto 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; } /** @@ -252,138 +120,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 +208,11 @@ 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' + * 'InputEventSchema', 'CloudEventV01Schema'. Default value: 'InputEventSchema' + * . * @member {object} [retryPolicy] The retry policy for events. This can be used * to configure maximum number of delivery attempts and time to live for * events. @@ -497,7 +231,6 @@ export interface EventSubscription extends Resource { destination?: EventSubscriptionDestination; filter?: EventSubscriptionFilter; labels?: string[]; - expirationTimeUtc?: Date; eventDeliverySchema?: string; retryPolicy?: RetryPolicy; deadLetterDestination?: DeadLetterDestination; @@ -528,13 +261,10 @@ 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' + * 'InputEventSchema', 'CloudEventV01Schema' * @member {object} [retryPolicy] The retry policy for events. This can be used * to configure maximum number of delivery attempts and time to live for * events. @@ -551,7 +281,6 @@ export interface EventSubscriptionUpdateParameters { destination?: EventSubscriptionDestination; filter?: EventSubscriptionFilter; labels?: string[]; - expirationTimeUtc?: Date; eventDeliverySchema?: string; retryPolicy?: RetryPolicy; deadLetterDestination?: DeadLetterDestination; @@ -610,6 +339,21 @@ export interface Operation { properties?: any; } +/** + * @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 JsonField class. @@ -698,6 +442,20 @@ export interface JsonInputSchemaMapping extends InputSchemaMapping { dataVersion?: JsonFieldWithDefault; } +/** + * @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 Topic class. @@ -807,26 +565,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..6861313f86 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,30 @@ exports.EventSubscriptionUpdateParameters = require('./eventSubscriptionUpdatePa exports.EventSubscriptionFullUrl = require('./eventSubscriptionFullUrl'); exports.OperationInfo = require('./operationInfo'); exports.Operation = require('./operation'); +exports.InputSchemaMapping = require('./inputSchemaMapping'); 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' : exports.InputSchemaMapping, 'InputSchemaMapping.Json' : exports.JsonInputSchemaMapping }; diff --git a/lib/services/eventgridManagement/lib/operations/eventSubscriptions.js b/lib/services/eventgridManagement/lib/operations/eventSubscriptions.js index dd8e35341a..d96562e777 100644 --- a/lib/services/eventgridManagement/lib/operations/eventSubscriptions.js +++ b/lib/services/eventgridManagement/lib/operations/eventSubscriptions.js @@ -222,17 +222,11 @@ 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' + * 'EventGridSchema', 'InputEventSchema', 'CloudEventV01Schema' * * @param {object} [eventSubscriptionInfo.retryPolicy] The retry policy for * events. This can be used to configure maximum number of delivery attempts @@ -449,18 +443,12 @@ 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' + * 'EventGridSchema', 'InputEventSchema', 'CloudEventV01Schema' * * @param {object} [eventSubscriptionUpdateParameters.retryPolicy] The retry * policy for events. This can be used to configure maximum number of delivery @@ -2043,162 +2031,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,17 +2086,11 @@ 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' + * 'EventGridSchema', 'InputEventSchema', 'CloudEventV01Schema' * * @param {object} [eventSubscriptionInfo.retryPolicy] The retry policy for * events. This can be used to configure maximum number of delivery attempts @@ -2621,18 +2447,12 @@ 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' + * 'EventGridSchema', 'InputEventSchema', 'CloudEventV01Schema' * * @param {object} [eventSubscriptionUpdateParameters.retryPolicy] The retry * policy for events. This can be used to configure maximum number of delivery @@ -2826,7 +2646,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,17 +2814,11 @@ 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' + * 'EventGridSchema', 'InputEventSchema', 'CloudEventV01Schema' * * @param {object} [eventSubscriptionInfo.retryPolicy] The retry policy for * events. This can be used to configure maximum number of delivery attempts @@ -3103,17 +2916,11 @@ 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' + * 'EventGridSchema', 'InputEventSchema', 'CloudEventV01Schema' * * @param {object} [eventSubscriptionInfo.retryPolicy] The retry policy for * events. This can be used to configure maximum number of delivery attempts @@ -3339,18 +3146,12 @@ 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' + * 'EventGridSchema', 'InputEventSchema', 'CloudEventV01Schema' * * @param {object} [eventSubscriptionUpdateParameters.retryPolicy] The retry * policy for events. This can be used to configure maximum number of delivery @@ -3450,18 +3251,12 @@ 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' + * 'EventGridSchema', 'InputEventSchema', 'CloudEventV01Schema' * * @param {object} [eventSubscriptionUpdateParameters.retryPolicy] The retry * policy for events. This can be used to configure maximum number of delivery @@ -4487,105 +4282,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,17 +4337,11 @@ 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' + * 'EventGridSchema', 'InputEventSchema', 'CloudEventV01Schema' * * @param {object} [eventSubscriptionInfo.retryPolicy] The retry policy for * events. This can be used to configure maximum number of delivery attempts @@ -4749,17 +4439,11 @@ 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' + * 'EventGridSchema', 'InputEventSchema', 'CloudEventV01Schema' * * @param {object} [eventSubscriptionInfo.retryPolicy] The retry policy for * events. This can be used to configure maximum number of delivery attempts @@ -4985,18 +4669,12 @@ 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' + * 'EventGridSchema', 'InputEventSchema', 'CloudEventV01Schema' * * @param {object} [eventSubscriptionUpdateParameters.retryPolicy] The retry * policy for events. This can be used to configure maximum number of delivery @@ -5096,18 +4774,12 @@ 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' + * 'EventGridSchema', 'InputEventSchema', 'CloudEventV01Schema' * * @param {object} [eventSubscriptionUpdateParameters.retryPolicy] The retry * policy for events. This can be used to configure maximum number of delivery diff --git a/lib/services/eventgridManagement/lib/operations/index.d.ts b/lib/services/eventgridManagement/lib/operations/index.d.ts index fa186ffc72..1e46bdfe3e 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,17 +157,11 @@ 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' + * 'EventGridSchema', 'InputEventSchema', 'CloudEventV01Schema' * * @param {object} [eventSubscriptionInfo.retryPolicy] The retry policy for * events. This can be used to configure maximum number of delivery attempts @@ -1201,17 +247,11 @@ 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' + * 'EventGridSchema', 'InputEventSchema', 'CloudEventV01Schema' * * @param {object} [eventSubscriptionInfo.retryPolicy] The retry policy for * events. This can be used to configure maximum number of delivery attempts @@ -1395,18 +435,12 @@ 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' + * 'EventGridSchema', 'InputEventSchema', 'CloudEventV01Schema' * * @param {object} [eventSubscriptionUpdateParameters.retryPolicy] The retry * policy for events. This can be used to configure maximum number of delivery @@ -1494,18 +528,12 @@ 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' + * 'EventGridSchema', 'InputEventSchema', 'CloudEventV01Schema' * * @param {object} [eventSubscriptionUpdateParameters.retryPolicy] The retry * policy for events. This can be used to configure maximum number of delivery @@ -2246,78 +1274,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,17 +1329,11 @@ 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' + * 'EventGridSchema', 'InputEventSchema', 'CloudEventV01Schema' * * @param {object} [eventSubscriptionInfo.retryPolicy] The retry policy for * events. This can be used to configure maximum number of delivery attempts @@ -2469,17 +1419,11 @@ 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' + * 'EventGridSchema', 'InputEventSchema', 'CloudEventV01Schema' * * @param {object} [eventSubscriptionInfo.retryPolicy] The retry policy for * events. This can be used to configure maximum number of delivery attempts @@ -2663,18 +1607,12 @@ 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' + * 'EventGridSchema', 'InputEventSchema', 'CloudEventV01Schema' * * @param {object} [eventSubscriptionUpdateParameters.retryPolicy] The retry * policy for events. This can be used to configure maximum number of delivery @@ -2762,18 +1700,12 @@ 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' + * 'EventGridSchema', 'InputEventSchema', 'CloudEventV01Schema' * * @param {object} [eventSubscriptionUpdateParameters.retryPolicy] The retry * policy for events. This can be used to configure maximum number of delivery 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/package.json b/lib/services/eventgridManagement/package.json index 95ee9067e4..496a899882 100644 --- a/lib/services/eventgridManagement/package.json +++ b/lib/services/eventgridManagement/package.json @@ -14,7 +14,7 @@ "license": "MIT", "main": "./lib/eventGridManagementClient.js", "types": "./lib/eventGridManagementClient.d.ts", - "homepage": "https://github.com/azure/azure-sdk-for-node/tree/master/lib/services/eventgridManagement", + "homepage": "https://github.com/azure/azure-sdk-for-node", "repository": { "type": "git", "url": "https://github.com/azure/azure-sdk-for-node.git"