Skip to content

Commit 83e4933

Browse files
author
SDKAuto
committed
CodeGen from PR 11649 in Azure/azure-rest-api-specs
Merge 02f6511d7e980ed7e91d0adb183ee92bff265234 into 11e915c47baf981dc5613fd782fccef4bc942a42
1 parent c417552 commit 83e4933

Some content is hidden

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

53 files changed

+7331
-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.loganalytics.v2015_11_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-loganalytics</artifactId>
18+
<version>1.0.0-beta</version>
19+
<packaging>jar</packaging>
20+
<name>Microsoft Azure SDK for LogAnalytics Management</name>
21+
<description>This package contains Microsoft LogAnalytics 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,181 @@
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.loganalytics.v2015_11_01_preview;
10+
11+
import com.microsoft.azure.arm.model.HasInner;
12+
import com.microsoft.azure.management.loganalytics.v2015_11_01_preview.implementation.DataSourceInner;
13+
import com.microsoft.azure.arm.model.Indexable;
14+
import com.microsoft.azure.arm.model.Refreshable;
15+
import com.microsoft.azure.arm.model.Updatable;
16+
import com.microsoft.azure.arm.model.Appliable;
17+
import com.microsoft.azure.arm.model.Creatable;
18+
import com.microsoft.azure.arm.resources.models.HasManager;
19+
import com.microsoft.azure.management.loganalytics.v2015_11_01_preview.implementation.LogAnalyticsManager;
20+
import java.util.Map;
21+
22+
/**
23+
* Type representing DataSource.
24+
*/
25+
public interface DataSource extends HasInner<DataSourceInner>, Indexable, Refreshable<DataSource>, Updatable<DataSource.Update>, HasManager<LogAnalyticsManager> {
26+
/**
27+
* @return the eTag value.
28+
*/
29+
String eTag();
30+
31+
/**
32+
* @return the id value.
33+
*/
34+
String id();
35+
36+
/**
37+
* @return the kind value.
38+
*/
39+
DataSourceKind kind();
40+
41+
/**
42+
* @return the name value.
43+
*/
44+
String name();
45+
46+
/**
47+
* @return the properties value.
48+
*/
49+
Object properties();
50+
51+
/**
52+
* @return the tags value.
53+
*/
54+
Map<String, String> tags();
55+
56+
/**
57+
* @return the type value.
58+
*/
59+
String type();
60+
61+
/**
62+
* The entirety of the DataSource definition.
63+
*/
64+
interface Definition extends DefinitionStages.Blank, DefinitionStages.WithWorkspace, DefinitionStages.WithKind, DefinitionStages.WithProperties, DefinitionStages.WithCreate {
65+
}
66+
67+
/**
68+
* Grouping of DataSource definition stages.
69+
*/
70+
interface DefinitionStages {
71+
/**
72+
* The first stage of a DataSource definition.
73+
*/
74+
interface Blank extends WithWorkspace {
75+
}
76+
77+
/**
78+
* The stage of the datasource definition allowing to specify Workspace.
79+
*/
80+
interface WithWorkspace {
81+
/**
82+
* Specifies resourceGroupName, workspaceName.
83+
* @param resourceGroupName The name of the resource group to get. The name is case insensitive
84+
* @param workspaceName Name of the Log Analytics Workspace that will contain the datasource
85+
* @return the next definition stage
86+
*/
87+
WithKind withExistingWorkspace(String resourceGroupName, String workspaceName);
88+
}
89+
90+
/**
91+
* The stage of the datasource definition allowing to specify Kind.
92+
*/
93+
interface WithKind {
94+
/**
95+
* Specifies kind.
96+
* @param kind Possible values include: 'AzureActivityLog', 'ChangeTrackingPath', 'ChangeTrackingDefaultPath', 'ChangeTrackingDefaultRegistry', 'ChangeTrackingCustomRegistry', 'CustomLog', 'CustomLogCollection', 'GenericDataSource', 'IISLogs', 'LinuxPerformanceObject', 'LinuxPerformanceCollection', 'LinuxSyslog', 'LinuxSyslogCollection', 'WindowsEvent', 'WindowsPerformanceCounter'
97+
* @return the next definition stage
98+
*/
99+
WithProperties withKind(DataSourceKind kind);
100+
}
101+
102+
/**
103+
* The stage of the datasource definition allowing to specify Properties.
104+
*/
105+
interface WithProperties {
106+
/**
107+
* Specifies properties.
108+
* @param properties The data source properties in raw json format, each kind of data source have it's own schema
109+
* @return the next definition stage
110+
*/
111+
WithCreate withProperties(Object properties);
112+
}
113+
114+
/**
115+
* The stage of the datasource definition allowing to specify ETag.
116+
*/
117+
interface WithETag {
118+
/**
119+
* Specifies eTag.
120+
* @param eTag The ETag of the data source
121+
* @return the next definition stage
122+
*/
123+
WithCreate withETag(String eTag);
124+
}
125+
126+
/**
127+
* The stage of the datasource definition allowing to specify Tags.
128+
*/
129+
interface WithTags {
130+
/**
131+
* Specifies tags.
132+
* @param tags Resource tags
133+
* @return the next definition stage
134+
*/
135+
WithCreate withTags(Map<String, String> tags);
136+
}
137+
138+
/**
139+
* The stage of the definition which contains all the minimum required inputs for
140+
* the resource to be created (via {@link WithCreate#create()}), but also allows
141+
* for any other optional settings to be specified.
142+
*/
143+
interface WithCreate extends Creatable<DataSource>, DefinitionStages.WithETag, DefinitionStages.WithTags {
144+
}
145+
}
146+
/**
147+
* The template for a DataSource update operation, containing all the settings that can be modified.
148+
*/
149+
interface Update extends Appliable<DataSource>, UpdateStages.WithETag, UpdateStages.WithTags {
150+
}
151+
152+
/**
153+
* Grouping of DataSource update stages.
154+
*/
155+
interface UpdateStages {
156+
/**
157+
* The stage of the datasource update allowing to specify ETag.
158+
*/
159+
interface WithETag {
160+
/**
161+
* Specifies eTag.
162+
* @param eTag The ETag of the data source
163+
* @return the next update stage
164+
*/
165+
Update withETag(String eTag);
166+
}
167+
168+
/**
169+
* The stage of the datasource update allowing to specify Tags.
170+
*/
171+
interface WithTags {
172+
/**
173+
* Specifies tags.
174+
* @param tags Resource tags
175+
* @return the next update stage
176+
*/
177+
Update withTags(Map<String, String> tags);
178+
}
179+
180+
}
181+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
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.loganalytics.v2015_11_01_preview;
10+
11+
import com.fasterxml.jackson.annotation.JsonProperty;
12+
13+
/**
14+
* DataSource filter. Right now, only filter by kind is supported.
15+
*/
16+
public class DataSourceFilter {
17+
/**
18+
* Possible values include: 'AzureActivityLog', 'ChangeTrackingPath',
19+
* 'ChangeTrackingDefaultPath', 'ChangeTrackingDefaultRegistry',
20+
* 'ChangeTrackingCustomRegistry', 'CustomLog', 'CustomLogCollection',
21+
* 'GenericDataSource', 'IISLogs', 'LinuxPerformanceObject',
22+
* 'LinuxPerformanceCollection', 'LinuxSyslog', 'LinuxSyslogCollection',
23+
* 'WindowsEvent', 'WindowsPerformanceCounter'.
24+
*/
25+
@JsonProperty(value = "kind")
26+
private DataSourceKind kind;
27+
28+
/**
29+
* Get possible values include: 'AzureActivityLog', 'ChangeTrackingPath', 'ChangeTrackingDefaultPath', 'ChangeTrackingDefaultRegistry', 'ChangeTrackingCustomRegistry', 'CustomLog', 'CustomLogCollection', 'GenericDataSource', 'IISLogs', 'LinuxPerformanceObject', 'LinuxPerformanceCollection', 'LinuxSyslog', 'LinuxSyslogCollection', 'WindowsEvent', 'WindowsPerformanceCounter'.
30+
*
31+
* @return the kind value
32+
*/
33+
public DataSourceKind kind() {
34+
return this.kind;
35+
}
36+
37+
/**
38+
* Set possible values include: 'AzureActivityLog', 'ChangeTrackingPath', 'ChangeTrackingDefaultPath', 'ChangeTrackingDefaultRegistry', 'ChangeTrackingCustomRegistry', 'CustomLog', 'CustomLogCollection', 'GenericDataSource', 'IISLogs', 'LinuxPerformanceObject', 'LinuxPerformanceCollection', 'LinuxSyslog', 'LinuxSyslogCollection', 'WindowsEvent', 'WindowsPerformanceCounter'.
39+
*
40+
* @param kind the kind value to set
41+
* @return the DataSourceFilter object itself.
42+
*/
43+
public DataSourceFilter withKind(DataSourceKind kind) {
44+
this.kind = kind;
45+
return this;
46+
}
47+
48+
}

0 commit comments

Comments
 (0)