Skip to content

Commit e532247

Browse files
authored
mgmt loganalytics regenerate package-2020-03-preview (Azure#18803)
* mgmt loganalytics regenerate package-2020-03-preview * update pom * fix compile errors
1 parent 76ce32c commit e532247

File tree

6 files changed

+30
-38
lines changed

6 files changed

+30
-38
lines changed

sdk/loganalytics/mgmt-v2020_03_01_preview/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
<relativePath>../../parents/azure-arm-parent/pom.xml</relativePath>
1616
</parent>
1717
<artifactId>azure-mgmt-loganalytics</artifactId>
18-
<version>1.0.0-beta-1</version>
18+
<version>1.0.0-beta-2</version>
1919
<packaging>jar</packaging>
2020
<name>Microsoft Azure SDK for LogAnalytics Management</name>
2121
<description>This package contains Microsoft LogAnalytics Management SDK.</description>

sdk/loganalytics/mgmt-v2020_03_01_preview/src/main/java/com/microsoft/azure/management/loganalytics/v2020_03_01_preview/AzureEntityResource.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,8 @@
1212
import com.microsoft.azure.ProxyResource;
1313

1414
/**
15-
* The resource model definition for a Azure Resource Manager resource with an
15+
* Entity Resource.
16+
* The resource model definition for an Azure Resource Manager resource with an
1617
* etag.
1718
*/
1819
public class AzureEntityResource extends ProxyResource {

sdk/loganalytics/mgmt-v2020_03_01_preview/src/main/java/com/microsoft/azure/management/loganalytics/v2020_03_01_preview/DataExport.java

Lines changed: 16 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ public interface DataExport extends HasInner<DataExportInner>, Indexable, Refres
8181
/**
8282
* The entirety of the DataExport definition.
8383
*/
84-
interface Definition extends DefinitionStages.Blank, DefinitionStages.WithWorkspace, DefinitionStages.WithResourceId, DefinitionStages.WithCreate {
84+
interface Definition extends DefinitionStages.Blank, DefinitionStages.WithWorkspace, DefinitionStages.WithResourceId, DefinitionStages.WithTableNames, DefinitionStages.WithCreate {
8585
}
8686

8787
/**
@@ -116,7 +116,19 @@ interface WithResourceId {
116116
* @param resourceId The destination resource ID. This can be copied from the Properties entry of the destination resource in Azure
117117
* @return the next definition stage
118118
*/
119-
WithCreate withResourceId(String resourceId);
119+
WithTableNames withResourceId(String resourceId);
120+
}
121+
122+
/**
123+
* The stage of the dataexport definition allowing to specify TableNames.
124+
*/
125+
interface WithTableNames {
126+
/**
127+
* Specifies tableNames.
128+
* @param tableNames An array of tables to export, for example: [“Heartbeat, SecurityEvent”]
129+
* @return the next definition stage
130+
*/
131+
WithCreate withTableNames(List<String> tableNames);
120132
}
121133

122134
/**
@@ -179,30 +191,18 @@ interface WithLastModifiedDate {
179191
WithCreate withLastModifiedDate(String lastModifiedDate);
180192
}
181193

182-
/**
183-
* The stage of the dataexport definition allowing to specify TableNames.
184-
*/
185-
interface WithTableNames {
186-
/**
187-
* Specifies tableNames.
188-
* @param tableNames An array of tables to export, for example: [“Heartbeat, SecurityEvent”]
189-
* @return the next definition stage
190-
*/
191-
WithCreate withTableNames(List<String> tableNames);
192-
}
193-
194194
/**
195195
* The stage of the definition which contains all the minimum required inputs for
196196
* the resource to be created (via {@link WithCreate#create()}), but also allows
197197
* for any other optional settings to be specified.
198198
*/
199-
interface WithCreate extends Creatable<DataExport>, DefinitionStages.WithCreatedDate, DefinitionStages.WithDataExportId, DefinitionStages.WithEnable, DefinitionStages.WithEventHubName, DefinitionStages.WithLastModifiedDate, DefinitionStages.WithTableNames {
199+
interface WithCreate extends Creatable<DataExport>, DefinitionStages.WithCreatedDate, DefinitionStages.WithDataExportId, DefinitionStages.WithEnable, DefinitionStages.WithEventHubName, DefinitionStages.WithLastModifiedDate {
200200
}
201201
}
202202
/**
203203
* The template for a DataExport update operation, containing all the settings that can be modified.
204204
*/
205-
interface Update extends Appliable<DataExport>, UpdateStages.WithCreatedDate, UpdateStages.WithDataExportId, UpdateStages.WithEnable, UpdateStages.WithEventHubName, UpdateStages.WithLastModifiedDate, UpdateStages.WithTableNames {
205+
interface Update extends Appliable<DataExport>, UpdateStages.WithCreatedDate, UpdateStages.WithDataExportId, UpdateStages.WithEnable, UpdateStages.WithEventHubName, UpdateStages.WithLastModifiedDate {
206206
}
207207

208208
/**
@@ -269,17 +269,5 @@ interface WithLastModifiedDate {
269269
Update withLastModifiedDate(String lastModifiedDate);
270270
}
271271

272-
/**
273-
* The stage of the dataexport update allowing to specify TableNames.
274-
*/
275-
interface WithTableNames {
276-
/**
277-
* Specifies tableNames.
278-
* @param tableNames An array of tables to export, for example: [“Heartbeat, SecurityEvent”]
279-
* @return the next update stage
280-
*/
281-
Update withTableNames(List<String> tableNames);
282-
}
283-
284272
}
285273
}

sdk/loganalytics/mgmt-v2020_03_01_preview/src/main/java/com/microsoft/azure/management/loganalytics/v2020_03_01_preview/ErrorResponse.java

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,10 @@
1212
import com.fasterxml.jackson.annotation.JsonProperty;
1313

1414
/**
15-
* The resource management error response.
15+
* Error Response.
16+
* Common error response for all Azure Resource Manager APIs to return error
17+
* details for failed operations. (This also follows the OData error response
18+
* format.).
1619
*/
1720
public class ErrorResponse {
1821
/**

sdk/loganalytics/mgmt-v2020_03_01_preview/src/main/java/com/microsoft/azure/management/loganalytics/v2020_03_01_preview/implementation/DataExportImpl.java

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -139,6 +139,12 @@ public DataExportImpl withResourceId(String resourceId) {
139139
return this;
140140
}
141141

142+
@Override
143+
public DataExportImpl withTableNames(List<String> tableNames) {
144+
this.inner().withTableNames(tableNames);
145+
return this;
146+
}
147+
142148
@Override
143149
public DataExportImpl withCreatedDate(String createdDate) {
144150
this.inner().withCreatedDate(createdDate);
@@ -169,10 +175,4 @@ public DataExportImpl withLastModifiedDate(String lastModifiedDate) {
169175
return this;
170176
}
171177

172-
@Override
173-
public DataExportImpl withTableNames(List<String> tableNames) {
174-
this.inner().withTableNames(tableNames);
175-
return this;
176-
}
177-
178178
}

sdk/loganalytics/mgmt-v2020_03_01_preview/src/main/java/com/microsoft/azure/management/loganalytics/v2020_03_01_preview/implementation/DataExportInner.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ public class DataExportInner extends ProxyResource {
2828
/**
2929
* An array of tables to export, for example: [“Heartbeat, SecurityEvent”].
3030
*/
31-
@JsonProperty(value = "properties.tableNames")
31+
@JsonProperty(value = "properties.tableNames", required = true)
3232
private List<String> tableNames;
3333

3434
/**

0 commit comments

Comments
 (0)