Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[AutoPR sdk/eventhubs/mgmt-v2018_01_01_preview] EventHub : corrected the Operations API version #2986

Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -146,19 +146,6 @@ public NamespacesInner namespaces() {
return this.namespaces;
}

/**
* The OperationsInner object to access its operations.
*/
private OperationsInner operations;

/**
* Gets the OperationsInner object to access its operations.
* @return the OperationsInner object.
*/
public OperationsInner operations() {
return this.operations;
}

/**
* The ConfigurationsInner object to access its operations.
*/
Expand Down Expand Up @@ -211,6 +198,19 @@ public ConsumerGroupsInner consumerGroups() {
return this.consumerGroups;
}

/**
* The OperationsInner object to access its operations.
*/
private OperationsInner operations;

/**
* Gets the OperationsInner object to access its operations.
* @return the OperationsInner object.
*/
public OperationsInner operations() {
return this.operations;
}

/**
* The RegionsInner object to access its operations.
*/
Expand Down Expand Up @@ -260,11 +260,11 @@ protected void initialize() {
this.generateClientRequestId = true;
this.clusters = new ClustersInner(restClient().retrofit(), this);
this.namespaces = new NamespacesInner(restClient().retrofit(), this);
this.operations = new OperationsInner(restClient().retrofit(), this);
this.configurations = new ConfigurationsInner(restClient().retrofit(), this);
this.disasterRecoveryConfigs = new DisasterRecoveryConfigsInner(restClient().retrofit(), this);
this.eventHubs = new EventHubsInner(restClient().retrofit(), this);
this.consumerGroups = new ConsumerGroupsInner(restClient().retrofit(), this);
this.operations = new OperationsInner(restClient().retrofit(), this);
this.regions = new RegionsInner(restClient().retrofit(), this);
this.azureClient = new AzureClient(this);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,11 @@
import com.microsoft.rest.RestClient;
import com.microsoft.azure.management.eventhubs.v2018_01_01_preview.Clusters;
import com.microsoft.azure.management.eventhubs.v2018_01_01_preview.Namespaces;
import com.microsoft.azure.management.eventhubs.v2018_01_01_preview.Operations;
import com.microsoft.azure.management.eventhubs.v2018_01_01_preview.Configurations;
import com.microsoft.azure.management.eventhubs.v2018_01_01_preview.DisasterRecoveryConfigs;
import com.microsoft.azure.management.eventhubs.v2018_01_01_preview.EventHubs;
import com.microsoft.azure.management.eventhubs.v2018_01_01_preview.ConsumerGroups;
import com.microsoft.azure.management.eventhubs.v2018_01_01_preview.Operations;
import com.microsoft.azure.management.eventhubs.v2018_01_01_preview.Regions;
import com.microsoft.azure.arm.resources.implementation.AzureConfigurableCoreImpl;
import com.microsoft.azure.arm.resources.implementation.ManagerCore;
Expand All @@ -33,11 +33,11 @@
public final class EventHubsManager extends ManagerCore<EventHubsManager, EventHubManagementClientImpl> {
private Clusters clusters;
private Namespaces namespaces;
private Operations operations;
private Configurations configurations;
private DisasterRecoveryConfigs disasterRecoveryConfigs;
private EventHubs eventHubs;
private ConsumerGroups consumerGroups;
private Operations operations;
private Regions regions;
/**
* Get a Configurable instance that can be used to create EventHubsManager with optional configuration.
Expand Down Expand Up @@ -106,16 +106,6 @@ public Namespaces namespaces() {
return this.namespaces;
}

/**
* @return Entry point to manage Operations.
*/
public Operations operations() {
if (this.operations == null) {
this.operations = new OperationsImpl(this);
}
return this.operations;
}

/**
* @return Entry point to manage Configurations.
*/
Expand Down Expand Up @@ -156,6 +146,16 @@ public ConsumerGroups consumerGroups() {
return this.consumerGroups;
}

/**
* @return Entry point to manage Operations.
*/
public Operations operations() {
if (this.operations == null) {
this.operations = new OperationsImpl(this);
}
return this.operations;
}

/**
* @return Entry point to manage Regions.
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ public Observable<ServiceResponse<Page<OperationInner>>> call(ServiceResponse<Pa
* @return the PagedList&lt;OperationInner&gt; object wrapped in {@link ServiceResponse} if successful.
*/
public Observable<ServiceResponse<Page<OperationInner>>> listSinglePageAsync() {
final String apiVersion = "2018-01-01-preview";
final String apiVersion = "2017-04-01";
return service.list(apiVersion, this.client.acceptLanguage(), this.client.userAgent())
.flatMap(new Func1<Response<ResponseBody>, Observable<ServiceResponse<Page<OperationInner>>>>() {
@Override
Expand Down