Skip to content

Commit 2ea066a

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

File tree

9 files changed

+12
-80
lines changed

9 files changed

+12
-80
lines changed

sdk/loganalytics/mgmt-v2020_08_01/pom.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@
1111
<parent>
1212
<groupId>com.microsoft.azure</groupId>
1313
<artifactId>azure-arm-parent</artifactId>
14-
<version>1.3.2</version>
15-
<relativePath>../../parents/azure-arm-parent/pom.xml</relativePath>
14+
<version>1.1.0</version>
15+
<relativePath>../../../pom.management.xml</relativePath>
1616
</parent>
1717
<artifactId>azure-mgmt-loganalytics</artifactId>
1818
<version>1.0.0-beta</version>

sdk/loganalytics/mgmt-v2020_08_01/src/main/java/com/microsoft/azure/management/loganalytics/v2020_08_01/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_08_01/src/main/java/com/microsoft/azure/management/loganalytics/v2020_08_01/DataExport.java

Lines changed: 2 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -23,11 +23,6 @@
2323
* Type representing DataExport.
2424
*/
2525
public interface DataExport extends HasInner<DataExportInner>, Indexable, Refreshable<DataExport>, Updatable<DataExport.Update>, HasManager<LogAnalyticsManager> {
26-
/**
27-
* @return the allTables value.
28-
*/
29-
Boolean allTables();
30-
3126
/**
3227
* @return the createdDate value.
3328
*/
@@ -124,18 +119,6 @@ interface WithResourceId {
124119
WithCreate withResourceId(String resourceId);
125120
}
126121

127-
/**
128-
* The stage of the dataexport definition allowing to specify AllTables.
129-
*/
130-
interface WithAllTables {
131-
/**
132-
* Specifies allTables.
133-
* @param allTables When ‘true’, all workspace's tables are exported
134-
* @return the next definition stage
135-
*/
136-
WithCreate withAllTables(Boolean allTables);
137-
}
138-
139122
/**
140123
* The stage of the dataexport definition allowing to specify CreatedDate.
141124
*/
@@ -213,31 +196,19 @@ interface WithTableNames {
213196
* the resource to be created (via {@link WithCreate#create()}), but also allows
214197
* for any other optional settings to be specified.
215198
*/
216-
interface WithCreate extends Creatable<DataExport>, DefinitionStages.WithAllTables, 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, DefinitionStages.WithTableNames {
217200
}
218201
}
219202
/**
220203
* The template for a DataExport update operation, containing all the settings that can be modified.
221204
*/
222-
interface Update extends Appliable<DataExport>, UpdateStages.WithAllTables, 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, UpdateStages.WithTableNames {
223206
}
224207

225208
/**
226209
* Grouping of DataExport update stages.
227210
*/
228211
interface UpdateStages {
229-
/**
230-
* The stage of the dataexport update allowing to specify AllTables.
231-
*/
232-
interface WithAllTables {
233-
/**
234-
* Specifies allTables.
235-
* @param allTables When ‘true’, all workspace's tables are exported
236-
* @return the next update stage
237-
*/
238-
Update withAllTables(Boolean allTables);
239-
}
240-
241212
/**
242213
* The stage of the dataexport update allowing to specify CreatedDate.
243214
*/

sdk/loganalytics/mgmt-v2020_08_01/src/main/java/com/microsoft/azure/management/loganalytics/v2020_08_01/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_08_01/src/main/java/com/microsoft/azure/management/loganalytics/v2020_08_01/implementation/DataExportImpl.java

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -71,11 +71,6 @@ public boolean isInCreateMode() {
7171
}
7272

7373

74-
@Override
75-
public Boolean allTables() {
76-
return this.inner().allTables();
77-
}
78-
7974
@Override
8075
public String createdDate() {
8176
return this.inner().createdDate();
@@ -144,12 +139,6 @@ public DataExportImpl withResourceId(String resourceId) {
144139
return this;
145140
}
146141

147-
@Override
148-
public DataExportImpl withAllTables(Boolean allTables) {
149-
this.inner().withAllTables(allTables);
150-
return this;
151-
}
152-
153142
@Override
154143
public DataExportImpl withCreatedDate(String createdDate) {
155144
this.inner().withCreatedDate(createdDate);

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

Lines changed: 0 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -25,12 +25,6 @@ public class DataExportInner extends ProxyResource {
2525
@JsonProperty(value = "properties.dataExportId")
2626
private String dataExportId;
2727

28-
/**
29-
* When ‘true’, all workspace's tables are exported.
30-
*/
31-
@JsonProperty(value = "properties.allTables")
32-
private Boolean allTables;
33-
3428
/**
3529
* An array of tables to export, for example: [“Heartbeat, SecurityEvent”].
3630
*/
@@ -96,26 +90,6 @@ public DataExportInner withDataExportId(String dataExportId) {
9690
return this;
9791
}
9892

99-
/**
100-
* Get when ‘true’, all workspace's tables are exported.
101-
*
102-
* @return the allTables value
103-
*/
104-
public Boolean allTables() {
105-
return this.allTables;
106-
}
107-
108-
/**
109-
* Set when ‘true’, all workspace's tables are exported.
110-
*
111-
* @param allTables the allTables value to set
112-
* @return the DataExportInner object itself.
113-
*/
114-
public DataExportInner withAllTables(Boolean allTables) {
115-
this.allTables = allTables;
116-
return this;
117-
}
118-
11993
/**
12094
* Get an array of tables to export, for example: [“Heartbeat, SecurityEvent”].
12195
*

sdk/loganalytics/mgmt-v2020_08_01/src/main/java/com/microsoft/azure/management/loganalytics/v2020_08_01/implementation/GatewaysImpl.java

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@
1111

1212
import com.microsoft.azure.arm.model.implementation.WrapperImpl;
1313
import com.microsoft.azure.management.loganalytics.v2020_08_01.Gateways;
14-
import rx.Completable;
1514

1615
class GatewaysImpl extends WrapperImpl<GatewaysInner> implements Gateways {
1716
private final LogAnalyticsManager manager;
@@ -25,8 +24,4 @@ public LogAnalyticsManager manager() {
2524
return this.manager;
2625
}
2726

28-
@Override
29-
public Completable deleteAsync(String resourceGroupName, String workspaceName, String gatewayId) {
30-
return manager().inner().gateways().deleteAsync(resourceGroupName, workspaceName, gatewayId).toCompletable();
31-
}
3227
}

sdk/loganalytics/mgmt-v2020_08_01/src/main/java/com/microsoft/azure/management/loganalytics/v2020_08_01/implementation/LinkedStorageAccountsImpl.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@
1010
package com.microsoft.azure.management.loganalytics.v2020_08_01.implementation;
1111

1212
import com.microsoft.azure.arm.model.implementation.WrapperImpl;
13-
import com.microsoft.azure.management.loganalytics.v2020_08_01.DataSourceType;
1413
import com.microsoft.azure.management.loganalytics.v2020_08_01.LinkedStorageAccounts;
1514
import rx.Completable;
1615
import rx.Observable;

sdk/loganalytics/mgmt-v2020_08_01/src/main/java/com/microsoft/azure/management/loganalytics/v2020_08_01/implementation/LinkedStorageAccountsResourceImpl.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,15 +26,15 @@ class LinkedStorageAccountsResourceImpl extends CreatableUpdatableImpl<LinkedSto
2626
super(name, new LinkedStorageAccountsResourceInner());
2727
this.manager = manager;
2828
// Set resource name
29-
this.dataSourceType = DataSourceType.fromString(name);
29+
this.dataSourceType = name;
3030
//
3131
}
3232

3333
LinkedStorageAccountsResourceImpl(LinkedStorageAccountsResourceInner inner, LogAnalyticsManager manager) {
3434
super(inner.name(), inner);
3535
this.manager = manager;
3636
// Set resource name
37-
this.dataSourceType = DataSourceType.fromString(inner.name());
37+
this.dataSourceType = inner.name();
3838
// set resource ancestor and positional variables
3939
this.resourceGroupName = IdParsingUtils.getValueFromIdByName(inner.id(), "resourcegroups");
4040
this.workspaceName = IdParsingUtils.getValueFromIdByName(inner.id(), "workspaces");

0 commit comments

Comments
 (0)