diff --git a/sdk/eventgrid/arm-eventgrid/src/models/index.ts b/sdk/eventgrid/arm-eventgrid/src/models/index.ts index 9b1f8835ea86..cc7747b8a0de 100644 --- a/sdk/eventgrid/arm-eventgrid/src/models/index.ts +++ b/sdk/eventgrid/arm-eventgrid/src/models/index.ts @@ -171,8 +171,9 @@ export interface Domain extends TrackedResource { inputSchemaMapping?: InputSchemaMappingUnion; /** * Metric resource id for the domain. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - metricResourceId?: string; + readonly metricResourceId?: string; /** * This determines if IP filtering rules ought to be evaluated or not. By default it will not * evaluate and will allow traffic from all IPs. @@ -193,6 +194,16 @@ export interface DomainUpdateParameters { * Tags of the domains resource */ tags?: { [propertyName: string]: string }; + /** + * This determines if IP filtering rules ought to be evaluated or not. By default it will not + * evaluate and will allow traffic from all IPs. + */ + allowTrafficFromAllIPs?: boolean; + /** + * This determines the IP filtering rules that ought be applied when events are received on this + * domain. + */ + inboundIpRules?: InboundIpRule[]; } /** @@ -872,8 +883,9 @@ export interface Topic extends TrackedResource { inputSchemaMapping?: InputSchemaMappingUnion; /** * Metric resource id for the topic. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - metricResourceId?: string; + readonly metricResourceId?: string; /** * This determines if IP filtering rules ought to be evaluated or not. By default it will not * evaluate and will allow traffic from all IPs. @@ -894,6 +906,16 @@ export interface TopicUpdateParameters { * Tags of the resource. */ tags?: { [propertyName: string]: string }; + /** + * This determines if IP filtering rules ought to be evaluated or not. By default it will not + * evaluate and will allow traffic from all IPs. + */ + allowTrafficFromAllIPs?: boolean; + /** + * This determines the IP filtering rules that ought be applied when events are received on this + * domain. + */ + inboundIpRules?: InboundIpRule[]; } /** diff --git a/sdk/eventgrid/arm-eventgrid/src/models/mappers.ts b/sdk/eventgrid/arm-eventgrid/src/models/mappers.ts index 212e10a7d990..0c77f2b08a22 100644 --- a/sdk/eventgrid/arm-eventgrid/src/models/mappers.ts +++ b/sdk/eventgrid/arm-eventgrid/src/models/mappers.ts @@ -245,6 +245,7 @@ export const Domain: msRest.CompositeMapper = { } }, metricResourceId: { + readOnly: true, serializedName: "properties.metricResourceId", type: { name: "String" @@ -288,6 +289,24 @@ export const DomainUpdateParameters: msRest.CompositeMapper = { } } } + }, + allowTrafficFromAllIPs: { + serializedName: "allowTrafficFromAllIPs", + type: { + name: "Boolean" + } + }, + inboundIpRules: { + serializedName: "inboundIpRules", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "InboundIpRule" + } + } + } } } } @@ -1223,6 +1242,7 @@ export const Topic: msRest.CompositeMapper = { } }, metricResourceId: { + readOnly: true, serializedName: "properties.metricResourceId", type: { name: "String" @@ -1266,6 +1286,24 @@ export const TopicUpdateParameters: msRest.CompositeMapper = { } } } + }, + allowTrafficFromAllIPs: { + serializedName: "allowTrafficFromAllIPs", + type: { + name: "Boolean" + } + }, + inboundIpRules: { + serializedName: "inboundIpRules", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "InboundIpRule" + } + } + } } } } diff --git a/sdk/eventgrid/arm-eventgrid/src/operations/topicTypes.ts b/sdk/eventgrid/arm-eventgrid/src/operations/topicTypes.ts index 66a0f4eb9c6f..f39e25895e38 100644 --- a/sdk/eventgrid/arm-eventgrid/src/operations/topicTypes.ts +++ b/sdk/eventgrid/arm-eventgrid/src/operations/topicTypes.ts @@ -81,20 +81,20 @@ export class TopicTypes { } /** - * List event types for a topic type - * @summary List event types - * @param topicTypeName Name of the topic type + * List event types for a topic type. + * @summary List event types. + * @param topicTypeName Name of the topic type. * @param [options] The optional parameters * @returns Promise */ listEventTypes(topicTypeName: string, options?: msRest.RequestOptionsBase): Promise; /** - * @param topicTypeName Name of the topic type + * @param topicTypeName Name of the topic type. * @param callback The callback */ listEventTypes(topicTypeName: string, callback: msRest.ServiceCallback): void; /** - * @param topicTypeName Name of the topic type + * @param topicTypeName Name of the topic type. * @param options The optional parameters * @param callback The callback */