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

[ReleasePR sdk/eventgrid/mgmt-v2020_04_01_preview] Update EventGrid 2020-04-01-preview swagger to fix couple of bug fixes. #9742

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
4 changes: 2 additions & 2 deletions sdk/eventgrid/mgmt-v2020_04_01_preview/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,11 @@
<parent>
<groupId>com.microsoft.azure</groupId>
<artifactId>azure-arm-parent</artifactId>
<version>1.3.0</version>
<version>1.1.0</version>
<relativePath>../../../pom.management.xml</relativePath>
</parent>
<artifactId>azure-mgmt-eventgrid</artifactId>
<version>1.0.0-beta-2</version>
<version>1.0.0-beta</version>
<packaging>jar</packaging>
<name>Microsoft Azure SDK for EventGrid Management</name>
<description>This package contains Microsoft EventGrid Management SDK.</description>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
import com.fasterxml.jackson.annotation.JsonProperty;

/**
* ConnectionState Information.
* ConnectionState information.
*/
public class ConnectionState {
/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,11 @@ public interface EventChannel extends HasInner<EventChannelInner>, Indexable, Re
*/
EventChannelDestination destination();

/**
* @return the filter value.
*/
EventChannelFilter filter();

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

/**
* The stage of the eventchannel definition allowing to specify Filter.
*/
interface WithFilter {
/**
* Specifies filter.
* @param filter Information about the filter for the event channel
* @return the next definition stage
*/
WithCreate withFilter(EventChannelFilter filter);
}

/**
* The stage of the eventchannel definition allowing to specify Source.
*/
Expand All @@ -110,13 +127,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.WithSource {
interface WithCreate extends Creatable<EventChannel>, DefinitionStages.WithDestination, DefinitionStages.WithFilter, 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.WithSource {
interface Update extends Appliable<EventChannel>, UpdateStages.WithDestination, UpdateStages.WithFilter, UpdateStages.WithSource {
}

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

/**
* The stage of the eventchannel update allowing to specify Filter.
*/
interface WithFilter {
/**
* Specifies filter.
* @param filter Information about the filter for the event channel
* @return the next update stage
*/
Update withFilter(EventChannelFilter filter);
}

/**
* The stage of the eventchannel update allowing to specify Source.
*/
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,163 @@
/**
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for
* license information.
*
* Code generated by Microsoft (R) AutoRest Code Generator.
*/

package com.microsoft.azure.management.eventgrid.v2020_04_01_preview;

import java.util.List;
import com.fasterxml.jackson.annotation.JsonProperty;

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

/**
* Set an array of advanced filters that are used for filtering event channels.
*
* @param advancedFilters the advancedFilters value to set
* @return the EventChannelFilter object itself.
*/
public EventChannelFilter withAdvancedFilters(List<AdvancedFilter> advancedFilters) {
this.advancedFilters = advancedFilters;
return this;
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,20 @@

package com.microsoft.azure.management.eventgrid.v2020_04_01_preview;

import java.util.Map;
import java.util.List;
import com.fasterxml.jackson.annotation.JsonProperty;

/**
* Properties of the Partner Registration update.
*/
public class PartnerRegistrationUpdateParameters {
/**
* Tags of the partner registration resource.
*/
@JsonProperty(value = "tags")
private Map<String, String> tags;

/**
* Name of the partner topic type.
*/
Expand Down Expand Up @@ -59,6 +66,26 @@ public class PartnerRegistrationUpdateParameters {
@JsonProperty(value = "authorizedAzureSubscriptionIds")
private List<String> authorizedAzureSubscriptionIds;

/**
* Get tags of the partner registration resource.
*
* @return the tags value
*/
public Map<String, String> tags() {
return this.tags;
}

/**
* Set tags of the partner registration resource.
*
* @param tags the tags value to set
* @return the PartnerRegistrationUpdateParameters object itself.
*/
public PartnerRegistrationUpdateParameters withTags(Map<String, String> tags) {
this.tags = tags;
return this;
}

/**
* Get name of the partner topic type.
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ public interface PartnerTopicEventSubscriptions extends SupportsCreating<Partner
* @throws IllegalArgumentException thrown if parameters fail the validation
* @return the observable for the request
*/
Observable<PartnerTopicEventSubscription> listByPartnerTopicAsync(String resourceGroupName, String partnerTopicName);
Observable<PartnerTopicEventSubscription> listByPartnerTopicAsync(final String resourceGroupName, final String partnerTopicName);

/**
* Delete an event subscription of a partner topic.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -59,12 +59,60 @@ public interface PrivateEndpointConnection extends HasInner<PrivateEndpointConne
/**
* The template for a PrivateEndpointConnection update operation, containing all the settings that can be modified.
*/
interface Update extends Appliable<PrivateEndpointConnection> {
interface Update extends Appliable<PrivateEndpointConnection>, UpdateStages.WithGroupIds, UpdateStages.WithPrivateEndpoint, UpdateStages.WithPrivateLinkServiceConnectionState, UpdateStages.WithProvisioningState {
}

/**
* Grouping of PrivateEndpointConnection update stages.
*/
interface UpdateStages {
/**
* The stage of the privateendpointconnection update allowing to specify GroupIds.
*/
interface WithGroupIds {
/**
* Specifies groupIds.
* @param groupIds GroupIds from the private link service resource
* @return the next update stage
*/
Update withGroupIds(List<String> groupIds);
}

/**
* The stage of the privateendpointconnection update allowing to specify PrivateEndpoint.
*/
interface WithPrivateEndpoint {
/**
* Specifies privateEndpoint.
* @param privateEndpoint The Private Endpoint resource for this Connection
* @return the next update stage
*/
Update withPrivateEndpoint(PrivateEndpoint privateEndpoint);
}

/**
* The stage of the privateendpointconnection update allowing to specify PrivateLinkServiceConnectionState.
*/
interface WithPrivateLinkServiceConnectionState {
/**
* Specifies privateLinkServiceConnectionState.
* @param privateLinkServiceConnectionState Details about the state of the connection
* @return the next update stage
*/
Update withPrivateLinkServiceConnectionState(ConnectionState privateLinkServiceConnectionState);
}

/**
* The stage of the privateendpointconnection update allowing to specify ProvisioningState.
*/
interface WithProvisioningState {
/**
* Specifies provisioningState.
* @param provisioningState Provisioning state of the Private Endpoint Connection. Possible values include: 'Creating', 'Updating', 'Deleting', 'Succeeded', 'Canceled', 'Failed'
* @return the next update stage
*/
Update withProvisioningState(ResourceProvisioningState provisioningState);
}

}
}
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ public interface SystemTopicEventSubscriptions extends SupportsCreating<SystemTo
* @throws IllegalArgumentException thrown if parameters fail the validation
* @return the observable for the request
*/
Observable<SystemTopicEventSubscription> listBySystemTopicAsync(String resourceGroupName, String systemTopicName);
Observable<SystemTopicEventSubscription> listBySystemTopicAsync(final String resourceGroupName, final String systemTopicName);

/**
* Delete an event subscription of a system topic.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ interface WithInputSchemaMapping {
interface WithPrivateEndpointConnections {
/**
* Specifies privateEndpointConnections.
* @param privateEndpointConnections List of private endpoint connections
* @param privateEndpointConnections the privateEndpointConnections parameter value
* @return the next definition stage
*/
WithCreate withPrivateEndpointConnections(List<PrivateEndpointConnectionInner> privateEndpointConnections);
Expand Down
Loading