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 sdk/eventgrid/mgmt-v2020_04_01_preview] EventGrid: Update 2020-04-01-preview swagger to include new properties per customer's feedback #3077

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
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
import com.microsoft.azure.arm.model.Creatable;
import com.microsoft.azure.arm.resources.models.HasManager;
import com.microsoft.azure.management.eventgrid.v2020_04_01_preview.implementation.EventGridManager;
import org.joda.time.DateTime;

/**
* Type representing EventChannel.
Expand All @@ -27,6 +28,11 @@ public interface EventChannel extends HasInner<EventChannelInner>, Indexable, Re
*/
EventChannelDestination destination();

/**
* @return the expirationTimeIfNotActivatedUtc value.
*/
DateTime expirationTimeIfNotActivatedUtc();

/**
* @return the filter value.
*/
Expand All @@ -42,6 +48,16 @@ public interface EventChannel extends HasInner<EventChannelInner>, Indexable, Re
*/
String name();

/**
* @return the partnerTopicFriendlyDescription value.
*/
String partnerTopicFriendlyDescription();

/**
* @return the partnerTopicReadinessState value.
*/
PartnerTopicReadinessState partnerTopicReadinessState();

/**
* @return the provisioningState value.
*/
Expand Down Expand Up @@ -98,6 +114,19 @@ interface WithDestination {
WithCreate withDestination(EventChannelDestination destination);
}

/**
* The stage of the eventchannel definition allowing to specify ExpirationTimeIfNotActivatedUtc.
*/
interface WithExpirationTimeIfNotActivatedUtc {
/**
* Specifies expirationTimeIfNotActivatedUtc.
* @param expirationTimeIfNotActivatedUtc 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
* @return the next definition stage
*/
WithCreate withExpirationTimeIfNotActivatedUtc(DateTime expirationTimeIfNotActivatedUtc);
}

/**
* The stage of the eventchannel definition allowing to specify Filter.
*/
Expand All @@ -110,6 +139,19 @@ interface WithFilter {
WithCreate withFilter(EventChannelFilter filter);
}

/**
* The stage of the eventchannel definition allowing to specify PartnerTopicFriendlyDescription.
*/
interface WithPartnerTopicFriendlyDescription {
/**
* Specifies partnerTopicFriendlyDescription.
* @param partnerTopicFriendlyDescription 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
* @return the next definition stage
*/
WithCreate withPartnerTopicFriendlyDescription(String partnerTopicFriendlyDescription);
}

/**
* The stage of the eventchannel definition allowing to specify Source.
*/
Expand All @@ -127,13 +169,13 @@ interface WithSource {
* the resource to be created (via {@link WithCreate#create()}), but also allows
* for any other optional settings to be specified.
*/
interface WithCreate extends Creatable<EventChannel>, DefinitionStages.WithDestination, DefinitionStages.WithFilter, DefinitionStages.WithSource {
interface WithCreate extends Creatable<EventChannel>, DefinitionStages.WithDestination, DefinitionStages.WithExpirationTimeIfNotActivatedUtc, DefinitionStages.WithFilter, DefinitionStages.WithPartnerTopicFriendlyDescription, DefinitionStages.WithSource {
}
}
/**
* The template for a EventChannel update operation, containing all the settings that can be modified.
*/
interface Update extends Appliable<EventChannel>, UpdateStages.WithDestination, UpdateStages.WithFilter, UpdateStages.WithSource {
interface Update extends Appliable<EventChannel>, UpdateStages.WithDestination, UpdateStages.WithExpirationTimeIfNotActivatedUtc, UpdateStages.WithFilter, UpdateStages.WithPartnerTopicFriendlyDescription, UpdateStages.WithSource {
}

/**
Expand All @@ -152,6 +194,19 @@ interface WithDestination {
Update withDestination(EventChannelDestination destination);
}

/**
* The stage of the eventchannel update allowing to specify ExpirationTimeIfNotActivatedUtc.
*/
interface WithExpirationTimeIfNotActivatedUtc {
/**
* Specifies expirationTimeIfNotActivatedUtc.
* @param expirationTimeIfNotActivatedUtc 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
* @return the next update stage
*/
Update withExpirationTimeIfNotActivatedUtc(DateTime expirationTimeIfNotActivatedUtc);
}

/**
* The stage of the eventchannel update allowing to specify Filter.
*/
Expand All @@ -164,6 +219,19 @@ interface WithFilter {
Update withFilter(EventChannelFilter filter);
}

/**
* The stage of the eventchannel update allowing to specify PartnerTopicFriendlyDescription.
*/
interface WithPartnerTopicFriendlyDescription {
/**
* Specifies partnerTopicFriendlyDescription.
* @param partnerTopicFriendlyDescription 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
* @return the next update stage
*/
Update withPartnerTopicFriendlyDescription(String partnerTopicFriendlyDescription);
}

/**
* The stage of the eventchannel update allowing to specify Source.
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,131 +15,12 @@
* Filter for the Event Channel.
*/
public class 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.
*/
@JsonProperty(value = "subjectBeginsWith")
private String subjectBeginsWith;

/**
* An optional string to filter events for an event channel based on a
* resource path suffix.
* Wildcard characters are not supported in this path.
*/
@JsonProperty(value = "subjectEndsWith")
private String subjectEndsWith;

/**
* 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.
*/
@JsonProperty(value = "includedEventTypes")
private List<String> includedEventTypes;

/**
* Specifies if the SubjectBeginsWith and SubjectEndsWith properties of the
* filter
* should be compared in a case sensitive manner.
*/
@JsonProperty(value = "isSubjectCaseSensitive")
private Boolean isSubjectCaseSensitive;

/**
* An array of advanced filters that are used for filtering event channels.
*/
@JsonProperty(value = "advancedFilters")
private List<AdvancedFilter> advancedFilters;

/**
* Get 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.
*
* @return the subjectBeginsWith value
*/
public String subjectBeginsWith() {
return this.subjectBeginsWith;
}

/**
* Set 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.
*
* @param subjectBeginsWith the subjectBeginsWith value to set
* @return the EventChannelFilter object itself.
*/
public EventChannelFilter withSubjectBeginsWith(String subjectBeginsWith) {
this.subjectBeginsWith = subjectBeginsWith;
return this;
}

/**
* Get an optional string to filter events for an event channel based on a resource path suffix.
Wildcard characters are not supported in this path.
*
* @return the subjectEndsWith value
*/
public String subjectEndsWith() {
return this.subjectEndsWith;
}

/**
* Set an optional string to filter events for an event channel based on a resource path suffix.
Wildcard characters are not supported in this path.
*
* @param subjectEndsWith the subjectEndsWith value to set
* @return the EventChannelFilter object itself.
*/
public EventChannelFilter withSubjectEndsWith(String subjectEndsWith) {
this.subjectEndsWith = subjectEndsWith;
return this;
}

/**
* Get 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.
*
* @return the includedEventTypes value
*/
public List<String> includedEventTypes() {
return this.includedEventTypes;
}

/**
* Set 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.
*
* @param includedEventTypes the includedEventTypes value to set
* @return the EventChannelFilter object itself.
*/
public EventChannelFilter withIncludedEventTypes(List<String> includedEventTypes) {
this.includedEventTypes = includedEventTypes;
return this;
}

/**
* Get specifies if the SubjectBeginsWith and SubjectEndsWith properties of the filter
should be compared in a case sensitive manner.
*
* @return the isSubjectCaseSensitive value
*/
public Boolean isSubjectCaseSensitive() {
return this.isSubjectCaseSensitive;
}

/**
* Set specifies if the SubjectBeginsWith and SubjectEndsWith properties of the filter
should be compared in a case sensitive manner.
*
* @param isSubjectCaseSensitive the isSubjectCaseSensitive value to set
* @return the EventChannelFilter object itself.
*/
public EventChannelFilter withIsSubjectCaseSensitive(Boolean isSubjectCaseSensitive) {
this.isSubjectCaseSensitive = isSubjectCaseSensitive;
return this;
}

/**
* Get an array of advanced filters that are used for filtering event channels.
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,11 +30,31 @@ public interface PartnerRegistration extends HasInner<PartnerRegistrationInner>,
*/
List<String> authorizedAzureSubscriptionIds();

/**
* @return the customerServiceUri value.
*/
String customerServiceUri();

/**
* @return the logoUri value.
*/
String logoUri();

/**
* @return the longDescription value.
*/
String longDescription();

/**
* @return the partnerCustomerServiceExtension value.
*/
String partnerCustomerServiceExtension();

/**
* @return the partnerCustomerServiceNumber value.
*/
String partnerCustomerServiceNumber();

/**
* @return the partnerName value.
*/
Expand Down Expand Up @@ -107,6 +127,18 @@ interface WithAuthorizedAzureSubscriptionIds {
WithCreate withAuthorizedAzureSubscriptionIds(List<String> authorizedAzureSubscriptionIds);
}

/**
* The stage of the partnerregistration definition allowing to specify CustomerServiceUri.
*/
interface WithCustomerServiceUri {
/**
* Specifies customerServiceUri.
* @param customerServiceUri The extension of the customer service URI of the publisher
* @return the next definition stage
*/
WithCreate withCustomerServiceUri(String customerServiceUri);
}

/**
* The stage of the partnerregistration definition allowing to specify LogoUri.
*/
Expand All @@ -119,6 +151,46 @@ interface WithLogoUri {
WithCreate withLogoUri(String logoUri);
}

/**
* The stage of the partnerregistration definition allowing to specify LongDescription.
*/
interface WithLongDescription {
/**
* Specifies longDescription.
* @param longDescription 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
* @return the next definition stage
*/
WithCreate withLongDescription(String longDescription);
}

/**
* The stage of the partnerregistration definition allowing to specify PartnerCustomerServiceExtension.
*/
interface WithPartnerCustomerServiceExtension {
/**
* Specifies partnerCustomerServiceExtension.
* @param partnerCustomerServiceExtension The extension of the customer service number of the publisher. Only digits are allowed and number of digits should not exceed 10
* @return the next definition stage
*/
WithCreate withPartnerCustomerServiceExtension(String partnerCustomerServiceExtension);
}

/**
* The stage of the partnerregistration definition allowing to specify PartnerCustomerServiceNumber.
*/
interface WithPartnerCustomerServiceNumber {
/**
* Specifies partnerCustomerServiceNumber.
* @param partnerCustomerServiceNumber 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
* @return the next definition stage
*/
WithCreate withPartnerCustomerServiceNumber(String partnerCustomerServiceNumber);
}

/**
* The stage of the partnerregistration definition allowing to specify PartnerName.
*/
Expand All @@ -137,7 +209,7 @@ interface WithPartnerName {
interface WithPartnerResourceTypeDescription {
/**
* Specifies partnerResourceTypeDescription.
* @param partnerResourceTypeDescription Description of the partner resource type
* @param partnerResourceTypeDescription Short description of the partner resource type. The length of this description should not exceed 256 characters
* @return the next definition stage
*/
WithCreate withPartnerResourceTypeDescription(String partnerResourceTypeDescription);
Expand Down Expand Up @@ -197,7 +269,7 @@ interface WithVisibilityState {
* the resource to be created (via {@link WithCreate#create()}), but also allows
* for any other optional settings to be specified.
*/
interface WithCreate extends Creatable<PartnerRegistration>, Resource.DefinitionWithTags<WithCreate>, DefinitionStages.WithAuthorizedAzureSubscriptionIds, DefinitionStages.WithLogoUri, DefinitionStages.WithPartnerName, DefinitionStages.WithPartnerResourceTypeDescription, DefinitionStages.WithPartnerResourceTypeDisplayName, DefinitionStages.WithPartnerResourceTypeName, DefinitionStages.WithSetupUri, DefinitionStages.WithVisibilityState {
interface WithCreate extends Creatable<PartnerRegistration>, Resource.DefinitionWithTags<WithCreate>, DefinitionStages.WithAuthorizedAzureSubscriptionIds, DefinitionStages.WithCustomerServiceUri, DefinitionStages.WithLogoUri, DefinitionStages.WithLongDescription, DefinitionStages.WithPartnerCustomerServiceExtension, DefinitionStages.WithPartnerCustomerServiceNumber, DefinitionStages.WithPartnerName, DefinitionStages.WithPartnerResourceTypeDescription, DefinitionStages.WithPartnerResourceTypeDisplayName, DefinitionStages.WithPartnerResourceTypeName, DefinitionStages.WithSetupUri, DefinitionStages.WithVisibilityState {
}
}
/**
Expand Down
Loading