Skip to content

Commit

Permalink
CodeGen from PR 11857 in Azure/azure-rest-api-specs
Browse files Browse the repository at this point in the history
Merge 97c379516242a9139b91e893b44cd41e5f25825d into c6ae7e9a1ff90c116baa2cacb944aebf74d72cb9
  • Loading branch information
SDKAuto committed Dec 2, 2020
1 parent 33362b5 commit b8a8d18
Show file tree
Hide file tree
Showing 9 changed files with 12 additions and 80 deletions.
4 changes: 2 additions & 2 deletions sdk/loganalytics/mgmt-v2020_08_01/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@
<parent>
<groupId>com.microsoft.azure</groupId>
<artifactId>azure-arm-parent</artifactId>
<version>1.3.2</version>
<relativePath>../../parents/azure-arm-parent/pom.xml</relativePath>
<version>1.1.0</version>
<relativePath>../../../pom.management.xml</relativePath>
</parent>
<artifactId>azure-mgmt-loganalytics</artifactId>
<version>1.0.0-beta</version>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@
import com.microsoft.azure.ProxyResource;

/**
* The resource model definition for a Azure Resource Manager resource with an
* Entity Resource.
* The resource model definition for an Azure Resource Manager resource with an
* etag.
*/
public class AzureEntityResource extends ProxyResource {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,6 @@
* Type representing DataExport.
*/
public interface DataExport extends HasInner<DataExportInner>, Indexable, Refreshable<DataExport>, Updatable<DataExport.Update>, HasManager<LogAnalyticsManager> {
/**
* @return the allTables value.
*/
Boolean allTables();

/**
* @return the createdDate value.
*/
Expand Down Expand Up @@ -124,18 +119,6 @@ interface WithResourceId {
WithCreate withResourceId(String resourceId);
}

/**
* The stage of the dataexport definition allowing to specify AllTables.
*/
interface WithAllTables {
/**
* Specifies allTables.
* @param allTables When ‘true’, all workspace's tables are exported
* @return the next definition stage
*/
WithCreate withAllTables(Boolean allTables);
}

/**
* The stage of the dataexport definition allowing to specify CreatedDate.
*/
Expand Down Expand Up @@ -213,31 +196,19 @@ interface WithTableNames {
* the resource to be created (via {@link WithCreate#create()}), but also allows
* for any other optional settings to be specified.
*/
interface WithCreate extends Creatable<DataExport>, DefinitionStages.WithAllTables, DefinitionStages.WithCreatedDate, DefinitionStages.WithDataExportId, DefinitionStages.WithEnable, DefinitionStages.WithEventHubName, DefinitionStages.WithLastModifiedDate, DefinitionStages.WithTableNames {
interface WithCreate extends Creatable<DataExport>, DefinitionStages.WithCreatedDate, DefinitionStages.WithDataExportId, DefinitionStages.WithEnable, DefinitionStages.WithEventHubName, DefinitionStages.WithLastModifiedDate, DefinitionStages.WithTableNames {
}
}
/**
* The template for a DataExport update operation, containing all the settings that can be modified.
*/
interface Update extends Appliable<DataExport>, UpdateStages.WithAllTables, UpdateStages.WithCreatedDate, UpdateStages.WithDataExportId, UpdateStages.WithEnable, UpdateStages.WithEventHubName, UpdateStages.WithLastModifiedDate, UpdateStages.WithTableNames {
interface Update extends Appliable<DataExport>, UpdateStages.WithCreatedDate, UpdateStages.WithDataExportId, UpdateStages.WithEnable, UpdateStages.WithEventHubName, UpdateStages.WithLastModifiedDate, UpdateStages.WithTableNames {
}

/**
* Grouping of DataExport update stages.
*/
interface UpdateStages {
/**
* The stage of the dataexport update allowing to specify AllTables.
*/
interface WithAllTables {
/**
* Specifies allTables.
* @param allTables When ‘true’, all workspace's tables are exported
* @return the next update stage
*/
Update withAllTables(Boolean allTables);
}

/**
* The stage of the dataexport update allowing to specify CreatedDate.
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,10 @@
import com.fasterxml.jackson.annotation.JsonProperty;

/**
* The resource management error response.
* Error Response.
* Common error response for all Azure Resource Manager APIs to return error
* details for failed operations. (This also follows the OData error response
* format.).
*/
public class ErrorResponse {
/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -71,11 +71,6 @@ public boolean isInCreateMode() {
}


@Override
public Boolean allTables() {
return this.inner().allTables();
}

@Override
public String createdDate() {
return this.inner().createdDate();
Expand Down Expand Up @@ -144,12 +139,6 @@ public DataExportImpl withResourceId(String resourceId) {
return this;
}

@Override
public DataExportImpl withAllTables(Boolean allTables) {
this.inner().withAllTables(allTables);
return this;
}

@Override
public DataExportImpl withCreatedDate(String createdDate) {
this.inner().withCreatedDate(createdDate);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,12 +25,6 @@ public class DataExportInner extends ProxyResource {
@JsonProperty(value = "properties.dataExportId")
private String dataExportId;

/**
* When ‘true’, all workspace's tables are exported.
*/
@JsonProperty(value = "properties.allTables")
private Boolean allTables;

/**
* An array of tables to export, for example: [“Heartbeat, SecurityEvent”].
*/
Expand Down Expand Up @@ -96,26 +90,6 @@ public DataExportInner withDataExportId(String dataExportId) {
return this;
}

/**
* Get when ‘true’, all workspace's tables are exported.
*
* @return the allTables value
*/
public Boolean allTables() {
return this.allTables;
}

/**
* Set when ‘true’, all workspace's tables are exported.
*
* @param allTables the allTables value to set
* @return the DataExportInner object itself.
*/
public DataExportInner withAllTables(Boolean allTables) {
this.allTables = allTables;
return this;
}

/**
* Get an array of tables to export, for example: [“Heartbeat, SecurityEvent”].
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@

import com.microsoft.azure.arm.model.implementation.WrapperImpl;
import com.microsoft.azure.management.loganalytics.v2020_08_01.Gateways;
import rx.Completable;

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

@Override
public Completable deleteAsync(String resourceGroupName, String workspaceName, String gatewayId) {
return manager().inner().gateways().deleteAsync(resourceGroupName, workspaceName, gatewayId).toCompletable();
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
package com.microsoft.azure.management.loganalytics.v2020_08_01.implementation;

import com.microsoft.azure.arm.model.implementation.WrapperImpl;
import com.microsoft.azure.management.loganalytics.v2020_08_01.DataSourceType;
import com.microsoft.azure.management.loganalytics.v2020_08_01.LinkedStorageAccounts;
import rx.Completable;
import rx.Observable;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,15 +26,15 @@ class LinkedStorageAccountsResourceImpl extends CreatableUpdatableImpl<LinkedSto
super(name, new LinkedStorageAccountsResourceInner());
this.manager = manager;
// Set resource name
this.dataSourceType = DataSourceType.fromString(name);
this.dataSourceType = name;
//
}

LinkedStorageAccountsResourceImpl(LinkedStorageAccountsResourceInner inner, LogAnalyticsManager manager) {
super(inner.name(), inner);
this.manager = manager;
// Set resource name
this.dataSourceType = DataSourceType.fromString(inner.name());
this.dataSourceType = inner.name();
// set resource ancestor and positional variables
this.resourceGroupName = IdParsingUtils.getValueFromIdByName(inner.id(), "resourcegroups");
this.workspaceName = IdParsingUtils.getValueFromIdByName(inner.id(), "workspaces");
Expand Down

0 comments on commit b8a8d18

Please sign in to comment.