forked from Azure/azure-sdk-for-java
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Generated from d43ef1e2fdb28e5a1199efe4916e264843b07728
[AKS] Apply patch from 0301 API version to 0401 (#9412)
- Loading branch information
SDK Automation
committed
May 15, 2020
1 parent
f35a9b1
commit 7f0b5fc
Showing
10 changed files
with
594 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
43 changes: 43 additions & 0 deletions
43
.../src/main/java/com/microsoft/azure/management/hdinsight/v2018_06_01_preview/HostInfo.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
/** | ||
* Copyright (c) Microsoft Corporation. All rights reserved. | ||
* Licensed under the MIT License. See License.txt in the project root for | ||
* license information. | ||
* | ||
* Code generated by Microsoft (R) AutoRest Code Generator. | ||
*/ | ||
|
||
package com.microsoft.azure.management.hdinsight.v2018_06_01_preview; | ||
|
||
import com.fasterxml.jackson.annotation.JsonProperty; | ||
|
||
/** | ||
* The cluster host information. | ||
*/ | ||
public class HostInfo { | ||
/** | ||
* The host name. | ||
*/ | ||
@JsonProperty(value = "name") | ||
private String name; | ||
|
||
/** | ||
* Get the host name. | ||
* | ||
* @return the name value | ||
*/ | ||
public String name() { | ||
return this.name; | ||
} | ||
|
||
/** | ||
* Set the host name. | ||
* | ||
* @param name the name value to set | ||
* @return the HostInfo object itself. | ||
*/ | ||
public HostInfo withName(String name) { | ||
this.name = name; | ||
return this; | ||
} | ||
|
||
} |
26 changes: 26 additions & 0 deletions
26
...java/com/microsoft/azure/management/hdinsight/v2018_06_01_preview/HostInfoListResult.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
/** | ||
* Copyright (c) Microsoft Corporation. All rights reserved. | ||
* Licensed under the MIT License. See License.txt in the project root for | ||
* license information. | ||
* | ||
* Code generated by Microsoft (R) AutoRest Code Generator. | ||
*/ | ||
|
||
package com.microsoft.azure.management.hdinsight.v2018_06_01_preview; | ||
|
||
import com.microsoft.azure.arm.model.HasInner; | ||
import com.microsoft.azure.arm.resources.models.HasManager; | ||
import com.microsoft.azure.management.hdinsight.v2018_06_01_preview.implementation.HDInsightManager; | ||
import com.microsoft.azure.management.hdinsight.v2018_06_01_preview.implementation.HostInfoListResultInner; | ||
import java.util.List; | ||
|
||
/** | ||
* Type representing HostInfoListResult. | ||
*/ | ||
public interface HostInfoListResult extends HasInner<HostInfoListResultInner>, HasManager<HDInsightManager> { | ||
/** | ||
* @return the value value. | ||
*/ | ||
List<HostInfo> value(); | ||
|
||
} |
42 changes: 42 additions & 0 deletions
42
...in/java/com/microsoft/azure/management/hdinsight/v2018_06_01_preview/VirtualMachines.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
/** | ||
* Copyright (c) Microsoft Corporation. All rights reserved. | ||
* Licensed under the MIT License. See License.txt in the project root for | ||
* license information. | ||
* | ||
* Code generated by Microsoft (R) AutoRest Code Generator. | ||
*/ | ||
|
||
package com.microsoft.azure.management.hdinsight.v2018_06_01_preview; | ||
|
||
import rx.Completable; | ||
import rx.Observable; | ||
import java.util.List; | ||
import com.microsoft.azure.management.hdinsight.v2018_06_01_preview.implementation.VirtualMachinesInner; | ||
import com.microsoft.azure.arm.model.HasInner; | ||
|
||
/** | ||
* Type representing VirtualMachines. | ||
*/ | ||
public interface VirtualMachines extends HasInner<VirtualMachinesInner> { | ||
/** | ||
* Lists the HDInsight clusters hosts. | ||
* | ||
* @param resourceGroupName The name of the resource group. | ||
* @param clusterName The name of the cluster. | ||
* @throws IllegalArgumentException thrown if parameters fail the validation | ||
* @return the observable for the request | ||
*/ | ||
Observable<HostInfoListResult> listHostsAsync(String resourceGroupName, String clusterName); | ||
|
||
/** | ||
* Restarts the specified HDInsight cluster hosts. | ||
* | ||
* @param resourceGroupName The name of the resource group. | ||
* @param clusterName The name of the cluster. | ||
* @param hosts The list of hosts to restart | ||
* @throws IllegalArgumentException thrown if parameters fail the validation | ||
* @return the observable for the request | ||
*/ | ||
Completable restartHostsAsync(String resourceGroupName, String clusterName, List<String> hosts); | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
33 changes: 33 additions & 0 deletions
33
...azure/management/hdinsight/v2018_06_01_preview/implementation/HostInfoListResultImpl.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
/** | ||
* Copyright (c) Microsoft Corporation. All rights reserved. | ||
* Licensed under the MIT License. See License.txt in the project root for | ||
* license information. | ||
* | ||
* Code generated by Microsoft (R) AutoRest Code Generator. | ||
*/ | ||
|
||
package com.microsoft.azure.management.hdinsight.v2018_06_01_preview.implementation; | ||
|
||
import com.microsoft.azure.management.hdinsight.v2018_06_01_preview.HostInfoListResult; | ||
import com.microsoft.azure.arm.model.implementation.WrapperImpl; | ||
import java.util.List; | ||
import com.microsoft.azure.management.hdinsight.v2018_06_01_preview.HostInfo; | ||
|
||
class HostInfoListResultImpl extends WrapperImpl<HostInfoListResultInner> implements HostInfoListResult { | ||
private final HDInsightManager manager; | ||
HostInfoListResultImpl(HostInfoListResultInner inner, HDInsightManager manager) { | ||
super(inner); | ||
this.manager = manager; | ||
} | ||
|
||
@Override | ||
public HDInsightManager manager() { | ||
return this.manager; | ||
} | ||
|
||
@Override | ||
public List<HostInfo> value() { | ||
return this.inner().value(); | ||
} | ||
|
||
} |
45 changes: 45 additions & 0 deletions
45
...zure/management/hdinsight/v2018_06_01_preview/implementation/HostInfoListResultInner.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
/** | ||
* Copyright (c) Microsoft Corporation. All rights reserved. | ||
* Licensed under the MIT License. See License.txt in the project root for | ||
* license information. | ||
* | ||
* Code generated by Microsoft (R) AutoRest Code Generator. | ||
*/ | ||
|
||
package com.microsoft.azure.management.hdinsight.v2018_06_01_preview.implementation; | ||
|
||
import java.util.List; | ||
import com.microsoft.azure.management.hdinsight.v2018_06_01_preview.HostInfo; | ||
import com.fasterxml.jackson.annotation.JsonProperty; | ||
|
||
/** | ||
* Result of the request to list cluster hosts. | ||
*/ | ||
public class HostInfoListResultInner { | ||
/** | ||
* The list of cluster hosts. | ||
*/ | ||
@JsonProperty(value = "value") | ||
private List<HostInfo> value; | ||
|
||
/** | ||
* Get the list of cluster hosts. | ||
* | ||
* @return the value value | ||
*/ | ||
public List<HostInfo> value() { | ||
return this.value; | ||
} | ||
|
||
/** | ||
* Set the list of cluster hosts. | ||
* | ||
* @param value the value value to set | ||
* @return the HostInfoListResultInner object itself. | ||
*/ | ||
public HostInfoListResultInner withValue(List<HostInfo> value) { | ||
this.value = value; | ||
return this; | ||
} | ||
|
||
} |
50 changes: 50 additions & 0 deletions
50
...ft/azure/management/hdinsight/v2018_06_01_preview/implementation/VirtualMachinesImpl.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
/** | ||
* Copyright (c) Microsoft Corporation. All rights reserved. | ||
* Licensed under the MIT License. See License.txt in the project root for | ||
* license information. | ||
* | ||
* Code generated by Microsoft (R) AutoRest Code Generator. | ||
* abc | ||
*/ | ||
|
||
package com.microsoft.azure.management.hdinsight.v2018_06_01_preview.implementation; | ||
|
||
import com.microsoft.azure.arm.model.implementation.WrapperImpl; | ||
import com.microsoft.azure.management.hdinsight.v2018_06_01_preview.VirtualMachines; | ||
import rx.Completable; | ||
import rx.functions.Func1; | ||
import rx.Observable; | ||
import com.microsoft.azure.management.hdinsight.v2018_06_01_preview.HostInfoListResult; | ||
import java.util.List; | ||
|
||
class VirtualMachinesImpl extends WrapperImpl<VirtualMachinesInner> implements VirtualMachines { | ||
private final HDInsightManager manager; | ||
|
||
VirtualMachinesImpl(HDInsightManager manager) { | ||
super(manager.inner().virtualMachines()); | ||
this.manager = manager; | ||
} | ||
|
||
public HDInsightManager manager() { | ||
return this.manager; | ||
} | ||
|
||
@Override | ||
public Observable<HostInfoListResult> listHostsAsync(String resourceGroupName, String clusterName) { | ||
VirtualMachinesInner client = this.inner(); | ||
return client.listHostsAsync(resourceGroupName, clusterName) | ||
.map(new Func1<HostInfoListResultInner, HostInfoListResult>() { | ||
@Override | ||
public HostInfoListResult call(HostInfoListResultInner inner) { | ||
return new HostInfoListResultImpl(inner, manager()); | ||
} | ||
}); | ||
} | ||
|
||
@Override | ||
public Completable restartHostsAsync(String resourceGroupName, String clusterName, List<String> hosts) { | ||
VirtualMachinesInner client = this.inner(); | ||
return client.restartHostsAsync(resourceGroupName, clusterName, hosts).toCompletable(); | ||
} | ||
|
||
} |
Oops, something went wrong.