Skip to content

Commit

Permalink
Generated from b12d3e7151459f605c762e5629f8b176a1788fe8
Browse files Browse the repository at this point in the history
Update 2020-04-01-preview swagger to include new properties per customer's feedback
  • Loading branch information
SDK Automation committed May 9, 2020
1 parent 42fa0b0 commit 2de9afa
Show file tree
Hide file tree
Showing 14 changed files with 601 additions and 273 deletions.
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 actived,
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,31 @@ 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 PartnerTopicReadinessState.
*/
interface WithPartnerTopicReadinessState {
/**
* Specifies partnerTopicReadinessState.
* @param partnerTopicReadinessState The readiness state of the corresponding partner topic. Possible values include: 'NotActivatedByUserYet', 'ActivatedByUser', 'DeactivatedByUser', 'DeletedByUser'
* @return the next definition stage
*/
WithCreate withPartnerTopicReadinessState(PartnerTopicReadinessState partnerTopicReadinessState);
}

/**
* The stage of the eventchannel definition allowing to specify Source.
*/
Expand All @@ -127,13 +181,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.WithPartnerTopicReadinessState, 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.WithPartnerTopicReadinessState, UpdateStages.WithSource {
}

/**
Expand All @@ -152,6 +206,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 actived,
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 +231,31 @@ 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 PartnerTopicReadinessState.
*/
interface WithPartnerTopicReadinessState {
/**
* Specifies partnerTopicReadinessState.
* @param partnerTopicReadinessState The readiness state of the corresponding partner topic. Possible values include: 'NotActivatedByUserYet', 'ActivatedByUser', 'DeactivatedByUser', 'DeletedByUser'
* @return the next update stage
*/
Update withPartnerTopicReadinessState(PartnerTopicReadinessState partnerTopicReadinessState);
}

/**
* 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
Loading

0 comments on commit 2de9afa

Please sign in to comment.