Skip to content

Commit

Permalink
make innerManagementClient var private (Azure#15583)
Browse files Browse the repository at this point in the history
  • Loading branch information
weidongxu-microsoft authored Sep 24, 2020
1 parent 7a30cfa commit e1dc876
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -180,9 +180,9 @@ public VirtualMachineImages virtualMachineImages() {
virtualMachineImages =
new VirtualMachineImagesImpl(
new VirtualMachinePublishersImpl(
super.innerManagementClient.getVirtualMachineImages(),
super.innerManagementClient.getVirtualMachineExtensionImages()),
super.innerManagementClient.getVirtualMachineImages());
this.serviceClient().getVirtualMachineImages(),
this.serviceClient().getVirtualMachineExtensionImages()),
this.serviceClient().getVirtualMachineImages());
}
return virtualMachineImages;
}
Expand All @@ -193,8 +193,8 @@ public VirtualMachineExtensionImages virtualMachineExtensionImages() {
virtualMachineExtensionImages =
new VirtualMachineExtensionImagesImpl(
new VirtualMachinePublishersImpl(
super.innerManagementClient.getVirtualMachineImages(),
super.innerManagementClient.getVirtualMachineExtensionImages()));
this.serviceClient().getVirtualMachineImages(),
this.serviceClient().getVirtualMachineExtensionImages()));
}
return virtualMachineExtensionImages;
}
Expand All @@ -211,7 +211,7 @@ public VirtualMachineScaleSets virtualMachineScaleSets() {
/** @return the compute resource usage management API entry point */
public ComputeUsages usages() {
if (computeUsages == null) {
computeUsages = new ComputeUsagesImpl(super.innerManagementClient);
computeUsages = new ComputeUsagesImpl(this.serviceClient());
}
return computeUsages;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,7 @@ public LoadBalancers loadBalancers() {
/** @return entry point to network resource usage management API entry point */
public NetworkUsages usages() {
if (this.networkUsages == null) {
this.networkUsages = new NetworkUsagesImpl(super.innerManagementClient);
this.networkUsages = new NetworkUsagesImpl(this.serviceClient());
}
return this.networkUsages;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ public abstract class Manager<InnerT> implements HasServiceClient<InnerT> {
private final HttpPipeline httpPipeline;
private final SdkContext sdkContext;

protected final InnerT innerManagementClient;
private final InnerT innerManagementClient;

protected Manager(HttpPipeline httpPipeline, AzureProfile profile,
InnerT innerManagementClient, SdkContext sdkContext) {
Expand Down

0 comments on commit e1dc876

Please sign in to comment.