Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[AutoPR @azure/arm-eventgrid] EventGrid: Update 2020-04-01-preview swagger to include new properties per customer's feedback #1207

Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion sdk/eventgrid/arm-eventgrid/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "@azure/arm-eventgrid",
"author": "Microsoft Corporation",
"description": "EventGridManagementClient Library with typescript type definitions for node.js and browser.",
"version": "6.0.0",
"version": "7.0.0",
"dependencies": {
"@azure/ms-rest-azure-js": "^2.0.1",
"@azure/ms-rest-js": "^2.0.4",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import * as msRest from "@azure/ms-rest-js";
import * as msRestAzure from "@azure/ms-rest-azure-js";

const packageName = "@azure/arm-eventgrid";
const packageVersion = "6.0.0";
const packageVersion = "7.0.0";

export class EventGridManagementClientContext extends msRestAzure.AzureServiceClient {
credentials: msRest.ServiceClientCredentials;
Expand Down
95 changes: 71 additions & 24 deletions sdk/eventgrid/arm-eventgrid/src/models/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -121,8 +121,8 @@ export interface InboundIpRule {
*/
export interface ResourceSku {
/**
* the Sku name of the resource.
* the possible values: Basic; Premium. Possible values include: 'Basic', 'Premium'
* The Sku name of the resource. The possible values are: Basic or Premium. Possible values
* include: 'Basic', 'Premium'
*/
name?: Sku;
}
Expand Down Expand Up @@ -427,27 +427,6 @@ export interface AdvancedFilter {
* Filter for the Event Channel.
*/
export interface EventChannelFilter {
/**
* An optional string to filter events for an event channel based on a resource path prefix.
* The format of this depends on the publisher of the events. Wildcard characters are not
* supported in this path.
*/
subjectBeginsWith?: string;
/**
* An optional string to filter events for an event channel based on a resource path suffix.
* Wildcard characters are not supported in this path.
*/
subjectEndsWith?: string;
/**
* A list of applicable event types that need to be part of the event channel. If it is desired
* to subscribe to all default event types, set the IncludedEventTypes to null.
*/
includedEventTypes?: string[];
/**
* Specifies if the SubjectBeginsWith and SubjectEndsWith properties of the filter
* should be compared in a case sensitive manner.
*/
isSubjectCaseSensitive?: boolean;
/**
* An array of advanced filters that are used for filtering event channels.
*/
Expand Down Expand Up @@ -689,10 +668,29 @@ export interface EventChannel extends Resource {
* **NOTE: This property will not be serialized. It can only be populated by the server.**
*/
readonly provisioningState?: EventChannelProvisioningState;
/**
* The readiness state of the corresponding partner topic. Possible values include:
* 'NotActivatedByUserYet', 'ActivatedByUser', 'DeactivatedByUser', 'DeletedByUser'
* **NOTE: This property will not be serialized. It can only be populated by the server.**
*/
readonly partnerTopicReadinessState?: PartnerTopicReadinessState;
/**
* Expiration time of the event channel. If this timer expires while the corresponding partner
* topic is never activated,
* the event channel and corresponding partner topic are deleted.
*/
expirationTimeIfNotActivatedUtc?: Date;
/**
* Information about the filter for the event channel.
*/
filter?: EventChannelFilter;
/**
* Friendly description about the topic. This can be set by the publisher/partner to show custom
* description for the customer partner topic.
* This will be helpful to remove any ambiguity of the origin of creation of the partner topic
* for the customer.
*/
partnerTopicFriendlyDescription?: string;
}

/**
Expand Down Expand Up @@ -1238,9 +1236,36 @@ export interface PartnerRegistration extends TrackedResource {
*/
partnerResourceTypeDisplayName?: string;
/**
* Description of the partner resource type.
* Short description of the partner resource type. The length of this description should not
* exceed 256 characters.
*/
partnerResourceTypeDescription?: string;
/**
* Long description for the custom scenarios and integration to be displayed in the portal if
* needed.
* Length of this description should not exceed 2048 characters.
*/
longDescription?: string;
/**
* The customer service number of the publisher. The expected phone format should start with a
* '+' sign
* followed by the country code. The remaining digits are then followed. Only digits and spaces
* are allowed and its
* length cannot exceed 16 digits including country code. Examples of valid phone numbers are: +1
* 515 123 4567 and
* +966 7 5115 2471. Examples of invalid phone numbers are: +1 (515) 123-4567, 1 515 123 4567 and
* +966 121 5115 24 7 551 1234 43
*/
partnerCustomerServiceNumber?: string;
/**
* The extension of the customer service number of the publisher. Only digits are allowed and
* number of digits should not exceed 10.
*/
partnerCustomerServiceExtension?: string;
/**
* The extension of the customer service URI of the publisher.
*/
customerServiceUri?: string;
/**
* URI of the partner website that can be used by Azure customers to setup Event Grid
* integration on an event source.
Expand Down Expand Up @@ -1356,6 +1381,12 @@ export interface PartnerTopic extends TrackedResource {
* Source associated with this partner topic. This represents a unique partner resource.
*/
source?: string;
/**
* Expiration time of the partner topic. If this timer expires while the partner topic is still
* never activated,
* the partner topic and corresponding event channel are deleted.
*/
expirationTimeIfNotActivatedUtc?: Date;
/**
* Provisioning state of the partner topic. Possible values include: 'Creating', 'Updating',
* 'Deleting', 'Succeeded', 'Canceled', 'Failed'
Expand All @@ -1367,6 +1398,13 @@ export interface PartnerTopic extends TrackedResource {
* 'Deactivated'
*/
activationState?: PartnerTopicActivationState;
/**
* Friendly description about the topic. This can be set by the publisher/partner to show custom
* description for the customer partner topic.
* This will be helpful to remove any ambiguity of the origin of creation of the partner topic
* for the customer.
*/
partnerTopicFriendlyDescription?: string;
}

/**
Expand Down Expand Up @@ -2461,6 +2499,15 @@ export type DomainTopicProvisioningState = 'Creating' | 'Updating' | 'Deleting'
*/
export type EventChannelProvisioningState = 'Creating' | 'Updating' | 'Deleting' | 'Succeeded' | 'Canceled' | 'Failed';

/**
* Defines values for PartnerTopicReadinessState.
* Possible values include: 'NotActivatedByUserYet', 'ActivatedByUser', 'DeactivatedByUser',
* 'DeletedByUser'
* @readonly
* @enum {string}
*/
export type PartnerTopicReadinessState = 'NotActivatedByUserYet' | 'ActivatedByUser' | 'DeactivatedByUser' | 'DeletedByUser';

/**
* Defines values for EventSubscriptionProvisioningState.
* Possible values include: 'Creating', 'Updating', 'Deleting', 'Succeeded', 'Canceled', 'Failed',
Expand Down
84 changes: 55 additions & 29 deletions sdk/eventgrid/arm-eventgrid/src/models/mappers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -650,35 +650,6 @@ export const EventChannelFilter: msRest.CompositeMapper = {
name: "Composite",
className: "EventChannelFilter",
modelProperties: {
subjectBeginsWith: {
serializedName: "subjectBeginsWith",
type: {
name: "String"
}
},
subjectEndsWith: {
serializedName: "subjectEndsWith",
type: {
name: "String"
}
},
includedEventTypes: {
serializedName: "includedEventTypes",
type: {
name: "Sequence",
element: {
type: {
name: "String"
}
}
}
},
isSubjectCaseSensitive: {
serializedName: "isSubjectCaseSensitive",
type: {
name: "Boolean"
}
},
advancedFilters: {
serializedName: "advancedFilters",
type: {
Expand Down Expand Up @@ -986,12 +957,31 @@ export const EventChannel: msRest.CompositeMapper = {
name: "String"
}
},
partnerTopicReadinessState: {
readOnly: true,
serializedName: "properties.partnerTopicReadinessState",
type: {
name: "String"
}
},
expirationTimeIfNotActivatedUtc: {
serializedName: "properties.expirationTimeIfNotActivatedUtc",
type: {
name: "DateTime"
}
},
filter: {
serializedName: "properties.filter",
type: {
name: "Composite",
className: "EventChannelFilter"
}
},
partnerTopicFriendlyDescription: {
serializedName: "properties.partnerTopicFriendlyDescription",
type: {
name: "String"
}
}
}
}
Expand Down Expand Up @@ -1771,6 +1761,30 @@ export const PartnerRegistration: msRest.CompositeMapper = {
name: "String"
}
},
longDescription: {
serializedName: "properties.longDescription",
type: {
name: "String"
}
},
partnerCustomerServiceNumber: {
serializedName: "properties.partnerCustomerServiceNumber",
type: {
name: "String"
}
},
partnerCustomerServiceExtension: {
serializedName: "properties.partnerCustomerServiceExtension",
type: {
name: "String"
}
},
customerServiceUri: {
serializedName: "properties.customerServiceUri",
type: {
name: "String"
}
},
setupUri: {
serializedName: "properties.setupUri",
type: {
Expand Down Expand Up @@ -1963,6 +1977,12 @@ export const PartnerTopic: msRest.CompositeMapper = {
name: "String"
}
},
expirationTimeIfNotActivatedUtc: {
serializedName: "properties.expirationTimeIfNotActivatedUtc",
type: {
name: "DateTime"
}
},
provisioningState: {
readOnly: true,
serializedName: "properties.provisioningState",
Expand All @@ -1975,6 +1995,12 @@ export const PartnerTopic: msRest.CompositeMapper = {
type: {
name: "String"
}
},
partnerTopicFriendlyDescription: {
serializedName: "properties.partnerTopicFriendlyDescription",
type: {
name: "String"
}
}
}
}
Expand Down