Skip to content

Commit

Permalink
EventGrid: regenerate package 2020-04-preview (Azure#7907)
Browse files Browse the repository at this point in the history
  • Loading branch information
xseeseesee authored and srnagar committed Feb 4, 2020
1 parent 9458c44 commit 9c2863f
Show file tree
Hide file tree
Showing 13 changed files with 265 additions and 547 deletions.
2 changes: 1 addition & 1 deletion sdk/eventgrid/mgmt-v2020_04_01_preview/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
<relativePath>../../../pom.management.xml</relativePath>
</parent>
<artifactId>azure-mgmt-eventgrid</artifactId>
<version>1.0.0-beta</version>
<version>1.0.0-beta-1</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 @@ -130,30 +130,18 @@ interface WithInputSchemaMapping {
WithCreate withInputSchemaMapping(InputSchemaMapping inputSchemaMapping);
}

/**
* The stage of the domain definition allowing to specify MetricResourceId.
*/
interface WithMetricResourceId {
/**
* Specifies metricResourceId.
* @param metricResourceId Metric resource id for the domain
* @return the next definition stage
*/
WithCreate withMetricResourceId(String metricResourceId);
}

/**
* The stage of the definition which contains all the minimum required inputs for
* the resource to be created (via {@link WithCreate#create()}), but also allows
* for any other optional settings to be specified.
*/
interface WithCreate extends Creatable<Domain>, Resource.DefinitionWithTags<WithCreate>, DefinitionStages.WithAllowTrafficFromAllIPs, DefinitionStages.WithInboundIpRules, DefinitionStages.WithInputSchema, DefinitionStages.WithInputSchemaMapping, DefinitionStages.WithMetricResourceId {
interface WithCreate extends Creatable<Domain>, Resource.DefinitionWithTags<WithCreate>, DefinitionStages.WithAllowTrafficFromAllIPs, DefinitionStages.WithInboundIpRules, DefinitionStages.WithInputSchema, DefinitionStages.WithInputSchemaMapping {
}
}
/**
* The template for a Domain update operation, containing all the settings that can be modified.
*/
interface Update extends Appliable<Domain>, Resource.UpdateWithTags<Update>, UpdateStages.WithAllowTrafficFromAllIPs, UpdateStages.WithInboundIpRules, UpdateStages.WithInputSchema, UpdateStages.WithInputSchemaMapping, UpdateStages.WithMetricResourceId {
interface Update extends Appliable<Domain>, Resource.UpdateWithTags<Update>, UpdateStages.WithAllowTrafficFromAllIPs, UpdateStages.WithInboundIpRules {
}

/**
Expand Down Expand Up @@ -184,41 +172,5 @@ interface WithInboundIpRules {
Update withInboundIpRules(List<InboundIpRule> inboundIpRules);
}

/**
* The stage of the domain update allowing to specify InputSchema.
*/
interface WithInputSchema {
/**
* Specifies inputSchema.
* @param inputSchema This determines the format that Event Grid should expect for incoming events published to the domain. Possible values include: 'EventGridSchema', 'CustomEventSchema', 'CloudEventSchemaV1_0'
* @return the next update stage
*/
Update withInputSchema(InputSchema inputSchema);
}

/**
* The stage of the domain update allowing to specify InputSchemaMapping.
*/
interface WithInputSchemaMapping {
/**
* Specifies inputSchemaMapping.
* @param inputSchemaMapping Information about the InputSchemaMapping which specified the info about mapping event payload
* @return the next update stage
*/
Update withInputSchemaMapping(InputSchemaMapping inputSchemaMapping);
}

/**
* The stage of the domain update allowing to specify MetricResourceId.
*/
interface WithMetricResourceId {
/**
* Specifies metricResourceId.
* @param metricResourceId Metric resource id for the domain
* @return the next update stage
*/
Update withMetricResourceId(String metricResourceId);
}

}
}
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
package com.microsoft.azure.management.eventgrid.v2020_04_01_preview;

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

/**
Expand All @@ -21,6 +22,20 @@ public class DomainUpdateParameters {
@JsonProperty(value = "tags")
private Map<String, String> tags;

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

/**
* This determines the IP filtering rules that ought be applied when events
* are received on this domain.
*/
@JsonProperty(value = "inboundIpRules")
private List<InboundIpRule> inboundIpRules;

/**
* Get tags of the domains resource.
*
Expand All @@ -41,4 +56,44 @@ public DomainUpdateParameters withTags(Map<String, String> tags) {
return this;
}

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

/**
* Set 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.
*
* @param allowTrafficFromAllIPs the allowTrafficFromAllIPs value to set
* @return the DomainUpdateParameters object itself.
*/
public DomainUpdateParameters withAllowTrafficFromAllIPs(Boolean allowTrafficFromAllIPs) {
this.allowTrafficFromAllIPs = allowTrafficFromAllIPs;
return this;
}

/**
* Get this determines the IP filtering rules that ought be applied when events are received on this domain.
*
* @return the inboundIpRules value
*/
public List<InboundIpRule> inboundIpRules() {
return this.inboundIpRules;
}

/**
* Set this determines the IP filtering rules that ought be applied when events are received on this domain.
*
* @param inboundIpRules the inboundIpRules value to set
* @return the DomainUpdateParameters object itself.
*/
public DomainUpdateParameters withInboundIpRules(List<InboundIpRule> inboundIpRules) {
this.inboundIpRules = inboundIpRules;
return this;
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -130,30 +130,18 @@ interface WithInputSchemaMapping {
WithCreate withInputSchemaMapping(InputSchemaMapping inputSchemaMapping);
}

/**
* The stage of the topic definition allowing to specify MetricResourceId.
*/
interface WithMetricResourceId {
/**
* Specifies metricResourceId.
* @param metricResourceId Metric resource id for the topic
* @return the next definition stage
*/
WithCreate withMetricResourceId(String metricResourceId);
}

/**
* The stage of the definition which contains all the minimum required inputs for
* the resource to be created (via {@link WithCreate#create()}), but also allows
* for any other optional settings to be specified.
*/
interface WithCreate extends Creatable<Topic>, Resource.DefinitionWithTags<WithCreate>, DefinitionStages.WithAllowTrafficFromAllIPs, DefinitionStages.WithInboundIpRules, DefinitionStages.WithInputSchema, DefinitionStages.WithInputSchemaMapping, DefinitionStages.WithMetricResourceId {
interface WithCreate extends Creatable<Topic>, Resource.DefinitionWithTags<WithCreate>, DefinitionStages.WithAllowTrafficFromAllIPs, DefinitionStages.WithInboundIpRules, DefinitionStages.WithInputSchema, DefinitionStages.WithInputSchemaMapping {
}
}
/**
* The template for a Topic update operation, containing all the settings that can be modified.
*/
interface Update extends Appliable<Topic>, Resource.UpdateWithTags<Update>, UpdateStages.WithAllowTrafficFromAllIPs, UpdateStages.WithInboundIpRules, UpdateStages.WithInputSchema, UpdateStages.WithInputSchemaMapping, UpdateStages.WithMetricResourceId {
interface Update extends Appliable<Topic>, Resource.UpdateWithTags<Update>, UpdateStages.WithAllowTrafficFromAllIPs, UpdateStages.WithInboundIpRules {
}

/**
Expand All @@ -178,47 +166,11 @@ interface WithAllowTrafficFromAllIPs {
interface WithInboundIpRules {
/**
* Specifies inboundIpRules.
* @param inboundIpRules This determines the IP filtering rules that ought to be applied when events are received on this topic
* @param inboundIpRules This determines the IP filtering rules that ought be applied when events are received on this domain
* @return the next update stage
*/
Update withInboundIpRules(List<InboundIpRule> inboundIpRules);
}

/**
* The stage of the topic update allowing to specify InputSchema.
*/
interface WithInputSchema {
/**
* Specifies inputSchema.
* @param inputSchema This determines the format that Event Grid should expect for incoming events published to the topic. Possible values include: 'EventGridSchema', 'CustomEventSchema', 'CloudEventSchemaV1_0'
* @return the next update stage
*/
Update withInputSchema(InputSchema inputSchema);
}

/**
* The stage of the topic update allowing to specify InputSchemaMapping.
*/
interface WithInputSchemaMapping {
/**
* Specifies inputSchemaMapping.
* @param inputSchemaMapping This enables publishing using custom event schemas. An InputSchemaMapping can be specified to map various properties of a source schema to various required properties of the EventGridEvent schema
* @return the next update stage
*/
Update withInputSchemaMapping(InputSchemaMapping inputSchemaMapping);
}

/**
* The stage of the topic update allowing to specify MetricResourceId.
*/
interface WithMetricResourceId {
/**
* Specifies metricResourceId.
* @param metricResourceId Metric resource id for the topic
* @return the next update stage
*/
Update withMetricResourceId(String metricResourceId);
}

}
}
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ public interface TopicTypes extends HasInner<TopicTypesInner> {
* List event types.
* List event types for a topic type.
*
* @param topicTypeName Name of the topic type
* @param topicTypeName Name of the topic type.
* @throws IllegalArgumentException thrown if parameters fail the validation
* @return the observable for the request
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
package com.microsoft.azure.management.eventgrid.v2020_04_01_preview;

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

/**
Expand All @@ -21,6 +22,20 @@ public class TopicUpdateParameters {
@JsonProperty(value = "tags")
private Map<String, String> tags;

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

/**
* This determines the IP filtering rules that ought be applied when events
* are received on this domain.
*/
@JsonProperty(value = "inboundIpRules")
private List<InboundIpRule> inboundIpRules;

/**
* Get tags of the resource.
*
Expand All @@ -41,4 +56,44 @@ public TopicUpdateParameters withTags(Map<String, String> tags) {
return this;
}

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

/**
* Set 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.
*
* @param allowTrafficFromAllIPs the allowTrafficFromAllIPs value to set
* @return the TopicUpdateParameters object itself.
*/
public TopicUpdateParameters withAllowTrafficFromAllIPs(Boolean allowTrafficFromAllIPs) {
this.allowTrafficFromAllIPs = allowTrafficFromAllIPs;
return this;
}

/**
* Get this determines the IP filtering rules that ought be applied when events are received on this domain.
*
* @return the inboundIpRules value
*/
public List<InboundIpRule> inboundIpRules() {
return this.inboundIpRules;
}

/**
* Set this determines the IP filtering rules that ought be applied when events are received on this domain.
*
* @param inboundIpRules the inboundIpRules value to set
* @return the TopicUpdateParameters object itself.
*/
public TopicUpdateParameters withInboundIpRules(List<InboundIpRule> inboundIpRules) {
this.inboundIpRules = inboundIpRules;
return this;
}

}
Loading

0 comments on commit 9c2863f

Please sign in to comment.