Skip to content

Commit e0e5c9f

Browse files
SDKAutoAshraf Hamad
andcommitted
CodeGen from PR 11631 in Azure/azure-rest-api-specs
fix example (#11631) Co-authored-by: Ashraf Hamad <[email protected]>
1 parent a097f96 commit e0e5c9f

File tree

97 files changed

+17109
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

97 files changed

+17109
-0
lines changed
Lines changed: 135 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,135 @@
1+
<!--
2+
* Copyright (c) Microsoft Corporation. All rights reserved.
3+
* Licensed under the MIT License. See License.txt in the project root for
4+
* license information.
5+
*
6+
* Code generated by Microsoft (R) AutoRest Code Generator.
7+
-->
8+
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
9+
<modelVersion>4.0.0</modelVersion>
10+
<groupId>com.microsoft.azure.eventgrid.v2019_02_01_preview</groupId>
11+
<parent>
12+
<groupId>com.microsoft.azure</groupId>
13+
<artifactId>azure-arm-parent</artifactId>
14+
<version>1.1.0</version>
15+
<relativePath>../../../pom.management.xml</relativePath>
16+
</parent>
17+
<artifactId>azure-mgmt-eventgrid</artifactId>
18+
<version>1.0.0-beta</version>
19+
<packaging>jar</packaging>
20+
<name>Microsoft Azure SDK for EventGrid Management</name>
21+
<description>This package contains Microsoft EventGrid Management SDK.</description>
22+
<url>https://github.com/Azure/azure-sdk-for-java</url>
23+
<licenses>
24+
<license>
25+
<name>The MIT License (MIT)</name>
26+
<url>http://opensource.org/licenses/MIT</url>
27+
<distribution>repo</distribution>
28+
</license>
29+
</licenses>
30+
<scm>
31+
<url>scm:git:https://github.com/Azure/azure-sdk-for-java</url>
32+
<connection>scm:git:[email protected]:Azure/azure-sdk-for-java.git</connection>
33+
<tag>HEAD</tag>
34+
</scm>
35+
<properties>
36+
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
37+
<legal><![CDATA[[INFO] Any downloads listed may be third party software. Microsoft grants you no rights for third party software.]]></legal>
38+
</properties>
39+
<developers>
40+
<developer>
41+
<id>microsoft</id>
42+
<name>Microsoft</name>
43+
</developer>
44+
</developers>
45+
<dependencies>
46+
<dependency>
47+
<groupId>com.microsoft.azure</groupId>
48+
<artifactId>azure-client-runtime</artifactId>
49+
</dependency>
50+
<dependency>
51+
<groupId>com.microsoft.azure</groupId>
52+
<artifactId>azure-arm-client-runtime</artifactId>
53+
</dependency>
54+
<dependency>
55+
<groupId>junit</groupId>
56+
<artifactId>junit</artifactId>
57+
<scope>test</scope>
58+
</dependency>
59+
<dependency>
60+
<groupId>com.microsoft.azure</groupId>
61+
<artifactId>azure-client-authentication</artifactId>
62+
<scope>test</scope>
63+
</dependency>
64+
<dependency>
65+
<groupId>com.microsoft.azure</groupId>
66+
<artifactId>azure-mgmt-resources</artifactId>
67+
<scope>test</scope>
68+
</dependency>
69+
<dependency>
70+
<groupId>com.microsoft.azure</groupId>
71+
<artifactId>azure-arm-client-runtime</artifactId>
72+
<type>test-jar</type>
73+
<scope>test</scope>
74+
<!--Below version for test jar needs to be removed, this will be done as part of v1-runtime 1.6.7-->
75+
<version>1.6.5</version>
76+
</dependency>
77+
</dependencies>
78+
<build>
79+
<plugins>
80+
<plugin>
81+
<groupId>org.apache.maven.plugins</groupId>
82+
<artifactId>maven-jar-plugin</artifactId>
83+
<configuration>
84+
<archive>
85+
<manifest>
86+
<addDefaultImplementationEntries>true</addDefaultImplementationEntries>
87+
<addDefaultSpecificationEntries>true</addDefaultSpecificationEntries>
88+
</manifest>
89+
</archive>
90+
</configuration>
91+
</plugin>
92+
<plugin>
93+
<groupId>org.codehaus.mojo</groupId>
94+
<artifactId>build-helper-maven-plugin</artifactId>
95+
</plugin>
96+
<plugin>
97+
<groupId>org.apache.maven.plugins</groupId>
98+
<artifactId>maven-compiler-plugin</artifactId>
99+
<version>3.1</version>
100+
<configuration>
101+
<source>1.7</source>
102+
<target>1.7</target>
103+
<annotationProcessors>
104+
<annotationProcessor>
105+
com.microsoft.azure.management.apigeneration.LangDefinitionProcessor
106+
</annotationProcessor>
107+
</annotationProcessors>
108+
<debug>true</debug>
109+
<optimize>true</optimize>
110+
<compilerArguments>
111+
<AaddGeneratedAnnotation>true</AaddGeneratedAnnotation>
112+
<Adebug>true</Adebug>
113+
</compilerArguments>
114+
</configuration>
115+
</plugin>
116+
<plugin>
117+
<groupId>org.apache.maven.plugins</groupId>
118+
<artifactId>maven-javadoc-plugin</artifactId>
119+
<version>2.8</version>
120+
<configuration>
121+
<excludePackageNames>*.implementation.*;*.utils.*;com.microsoft.schemas._2003._10.serialization;*.blob.core.search</excludePackageNames>
122+
<bottom>
123+
<![CDATA[<code>
124+
/**
125+
<br />* Copyright (c) Microsoft Corporation. All rights reserved.
126+
<br />* Licensed under the MIT License. See License.txt in the project root for
127+
<br />* license information.
128+
<br />*/
129+
</code>]]>
130+
</bottom>
131+
</configuration>
132+
</plugin>
133+
</plugins>
134+
</build>
135+
</project>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,66 @@
1+
/**
2+
* Copyright (c) Microsoft Corporation. All rights reserved.
3+
* Licensed under the MIT License. See License.txt in the project root for
4+
* license information.
5+
*
6+
* Code generated by Microsoft (R) AutoRest Code Generator.
7+
*/
8+
9+
package com.microsoft.azure.management.eventgrid.v2019_02_01_preview;
10+
11+
import com.fasterxml.jackson.annotation.JsonProperty;
12+
import com.fasterxml.jackson.annotation.JsonTypeInfo;
13+
import com.fasterxml.jackson.annotation.JsonTypeName;
14+
import com.fasterxml.jackson.annotation.JsonSubTypes;
15+
16+
/**
17+
* This is the base type that represents an advanced filter. To configure an
18+
* advanced filter, do not directly instantiate an object of this class.
19+
* Instead, instantiate an object of a derived class such as
20+
* BoolEqualsAdvancedFilter, NumberInAdvancedFilter, StringEqualsAdvancedFilter
21+
* etc. depending on the type of the key based on which you want to filter.
22+
*/
23+
@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "operatorType", defaultImpl = AdvancedFilter.class)
24+
@JsonTypeName("AdvancedFilter")
25+
@JsonSubTypes({
26+
@JsonSubTypes.Type(name = "NumberIn", value = NumberInAdvancedFilter.class),
27+
@JsonSubTypes.Type(name = "NumberNotIn", value = NumberNotInAdvancedFilter.class),
28+
@JsonSubTypes.Type(name = "NumberLessThan", value = NumberLessThanAdvancedFilter.class),
29+
@JsonSubTypes.Type(name = "NumberGreaterThan", value = NumberGreaterThanAdvancedFilter.class),
30+
@JsonSubTypes.Type(name = "NumberLessThanOrEquals", value = NumberLessThanOrEqualsAdvancedFilter.class),
31+
@JsonSubTypes.Type(name = "NumberGreaterThanOrEquals", value = NumberGreaterThanOrEqualsAdvancedFilter.class),
32+
@JsonSubTypes.Type(name = "BoolEquals", value = BoolEqualsAdvancedFilter.class),
33+
@JsonSubTypes.Type(name = "StringIn", value = StringInAdvancedFilter.class),
34+
@JsonSubTypes.Type(name = "StringNotIn", value = StringNotInAdvancedFilter.class),
35+
@JsonSubTypes.Type(name = "StringBeginsWith", value = StringBeginsWithAdvancedFilter.class),
36+
@JsonSubTypes.Type(name = "StringEndsWith", value = StringEndsWithAdvancedFilter.class),
37+
@JsonSubTypes.Type(name = "StringContains", value = StringContainsAdvancedFilter.class)
38+
})
39+
public class AdvancedFilter {
40+
/**
41+
* The field/property in the event based on which you want to filter.
42+
*/
43+
@JsonProperty(value = "key")
44+
private String key;
45+
46+
/**
47+
* Get the field/property in the event based on which you want to filter.
48+
*
49+
* @return the key value
50+
*/
51+
public String key() {
52+
return this.key;
53+
}
54+
55+
/**
56+
* Set the field/property in the event based on which you want to filter.
57+
*
58+
* @param key the key value to set
59+
* @return the AdvancedFilter object itself.
60+
*/
61+
public AdvancedFilter withKey(String key) {
62+
this.key = key;
63+
return this;
64+
}
65+
66+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
/**
2+
* Copyright (c) Microsoft Corporation. All rights reserved.
3+
* Licensed under the MIT License. See License.txt in the project root for
4+
* license information.
5+
*
6+
* Code generated by Microsoft (R) AutoRest Code Generator.
7+
*/
8+
9+
package com.microsoft.azure.management.eventgrid.v2019_02_01_preview;
10+
11+
import com.fasterxml.jackson.annotation.JsonProperty;
12+
import com.fasterxml.jackson.annotation.JsonTypeInfo;
13+
import com.fasterxml.jackson.annotation.JsonTypeName;
14+
15+
/**
16+
* BoolEquals Advanced Filter.
17+
*/
18+
@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "operatorType", defaultImpl = BoolEqualsAdvancedFilter.class)
19+
@JsonTypeName("BoolEquals")
20+
public class BoolEqualsAdvancedFilter extends AdvancedFilter {
21+
/**
22+
* The boolean filter value.
23+
*/
24+
@JsonProperty(value = "value")
25+
private Boolean value;
26+
27+
/**
28+
* Get the boolean filter value.
29+
*
30+
* @return the value value
31+
*/
32+
public Boolean value() {
33+
return this.value;
34+
}
35+
36+
/**
37+
* Set the boolean filter value.
38+
*
39+
* @param value the value value to set
40+
* @return the BoolEqualsAdvancedFilter object itself.
41+
*/
42+
public BoolEqualsAdvancedFilter withValue(Boolean value) {
43+
this.value = value;
44+
return this;
45+
}
46+
47+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
/**
2+
* Copyright (c) Microsoft Corporation. All rights reserved.
3+
* Licensed under the MIT License. See License.txt in the project root for
4+
* license information.
5+
*
6+
* Code generated by Microsoft (R) AutoRest Code Generator.
7+
*/
8+
9+
package com.microsoft.azure.management.eventgrid.v2019_02_01_preview;
10+
11+
import com.fasterxml.jackson.annotation.JsonTypeInfo;
12+
import com.fasterxml.jackson.annotation.JsonTypeName;
13+
import com.fasterxml.jackson.annotation.JsonSubTypes;
14+
15+
/**
16+
* Information about the dead letter destination for an event subscription. To
17+
* configure a deadletter destination, do not directly instantiate an object of
18+
* this class. Instead, instantiate an object of a derived class. Currently,
19+
* StorageBlobDeadLetterDestination is the only class that derives from this
20+
* class.
21+
*/
22+
@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "endpointType", defaultImpl = DeadLetterDestination.class)
23+
@JsonTypeName("DeadLetterDestination")
24+
@JsonSubTypes({
25+
@JsonSubTypes.Type(name = "StorageBlob", value = StorageBlobDeadLetterDestination.class)
26+
})
27+
public class DeadLetterDestination {
28+
}

0 commit comments

Comments
 (0)