-
Notifications
You must be signed in to change notification settings - Fork 2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Generated from b28170d473471c298dc43f09299dd655d8e03982 (#2555)
Update swagger with DNSConfig and GPU
- Loading branch information
1 parent
c1235e2
commit d42aa71
Showing
8 changed files
with
317 additions
and
1 deletion.
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
96 changes: 96 additions & 0 deletions
96
...n/java/com/microsoft/azure/management/containerinstance/v2018_10_01/DnsConfiguration.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,96 @@ | ||
/** | ||
* 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.containerinstance.v2018_10_01; | ||
|
||
import java.util.List; | ||
import com.fasterxml.jackson.annotation.JsonProperty; | ||
|
||
/** | ||
* DNS configuration for the container group. | ||
*/ | ||
public class DnsConfiguration { | ||
/** | ||
* The DNS servers for the container group. | ||
*/ | ||
@JsonProperty(value = "nameServers", required = true) | ||
private List<String> nameServers; | ||
|
||
/** | ||
* The DNS search domains for hostname lookup in the container group. | ||
*/ | ||
@JsonProperty(value = "searchDomains") | ||
private String searchDomains; | ||
|
||
/** | ||
* The DNS options for the container group. | ||
*/ | ||
@JsonProperty(value = "options") | ||
private String options; | ||
|
||
/** | ||
* Get the DNS servers for the container group. | ||
* | ||
* @return the nameServers value | ||
*/ | ||
public List<String> nameServers() { | ||
return this.nameServers; | ||
} | ||
|
||
/** | ||
* Set the DNS servers for the container group. | ||
* | ||
* @param nameServers the nameServers value to set | ||
* @return the DnsConfiguration object itself. | ||
*/ | ||
public DnsConfiguration withNameServers(List<String> nameServers) { | ||
this.nameServers = nameServers; | ||
return this; | ||
} | ||
|
||
/** | ||
* Get the DNS search domains for hostname lookup in the container group. | ||
* | ||
* @return the searchDomains value | ||
*/ | ||
public String searchDomains() { | ||
return this.searchDomains; | ||
} | ||
|
||
/** | ||
* Set the DNS search domains for hostname lookup in the container group. | ||
* | ||
* @param searchDomains the searchDomains value to set | ||
* @return the DnsConfiguration object itself. | ||
*/ | ||
public DnsConfiguration withSearchDomains(String searchDomains) { | ||
this.searchDomains = searchDomains; | ||
return this; | ||
} | ||
|
||
/** | ||
* Get the DNS options for the container group. | ||
* | ||
* @return the options value | ||
*/ | ||
public String options() { | ||
return this.options; | ||
} | ||
|
||
/** | ||
* Set the DNS options for the container group. | ||
* | ||
* @param options the options value to set | ||
* @return the DnsConfiguration object itself. | ||
*/ | ||
public DnsConfiguration withOptions(String options) { | ||
this.options = options; | ||
return this; | ||
} | ||
|
||
} |
70 changes: 70 additions & 0 deletions
70
...c/main/java/com/microsoft/azure/management/containerinstance/v2018_10_01/GpuResource.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,70 @@ | ||
/** | ||
* 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.containerinstance.v2018_10_01; | ||
|
||
import com.fasterxml.jackson.annotation.JsonProperty; | ||
|
||
/** | ||
* The GPU resource. | ||
*/ | ||
public class GpuResource { | ||
/** | ||
* The count of the GPU resource. | ||
*/ | ||
@JsonProperty(value = "count", required = true) | ||
private int count; | ||
|
||
/** | ||
* The SKU of the GPU resource. Possible values include: 'K80', 'P100', | ||
* 'V100'. | ||
*/ | ||
@JsonProperty(value = "sku", required = true) | ||
private GpuSku sku; | ||
|
||
/** | ||
* Get the count of the GPU resource. | ||
* | ||
* @return the count value | ||
*/ | ||
public int count() { | ||
return this.count; | ||
} | ||
|
||
/** | ||
* Set the count of the GPU resource. | ||
* | ||
* @param count the count value to set | ||
* @return the GpuResource object itself. | ||
*/ | ||
public GpuResource withCount(int count) { | ||
this.count = count; | ||
return this; | ||
} | ||
|
||
/** | ||
* Get the SKU of the GPU resource. Possible values include: 'K80', 'P100', 'V100'. | ||
* | ||
* @return the sku value | ||
*/ | ||
public GpuSku sku() { | ||
return this.sku; | ||
} | ||
|
||
/** | ||
* Set the SKU of the GPU resource. Possible values include: 'K80', 'P100', 'V100'. | ||
* | ||
* @param sku the sku value to set | ||
* @return the GpuResource object itself. | ||
*/ | ||
public GpuResource withSku(GpuSku sku) { | ||
this.sku = sku; | ||
return this; | ||
} | ||
|
||
} |
44 changes: 44 additions & 0 deletions
44
...01/src/main/java/com/microsoft/azure/management/containerinstance/v2018_10_01/GpuSku.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,44 @@ | ||
/** | ||
* 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.containerinstance.v2018_10_01; | ||
|
||
import java.util.Collection; | ||
import com.fasterxml.jackson.annotation.JsonCreator; | ||
import com.microsoft.rest.ExpandableStringEnum; | ||
|
||
/** | ||
* Defines values for GpuSku. | ||
*/ | ||
public final class GpuSku extends ExpandableStringEnum<GpuSku> { | ||
/** Static value K80 for GpuSku. */ | ||
public static final GpuSku K80 = fromString("K80"); | ||
|
||
/** Static value P100 for GpuSku. */ | ||
public static final GpuSku P100 = fromString("P100"); | ||
|
||
/** Static value V100 for GpuSku. */ | ||
public static final GpuSku V100 = fromString("V100"); | ||
|
||
/** | ||
* Creates or finds a GpuSku from its string representation. | ||
* @param name a name to look for | ||
* @return the corresponding GpuSku | ||
*/ | ||
@JsonCreator | ||
public static GpuSku fromString(String name) { | ||
return fromString(name, GpuSku.class); | ||
} | ||
|
||
/** | ||
* @return known GpuSku values | ||
*/ | ||
public static Collection<GpuSku> values() { | ||
return values(GpuSku.class); | ||
} | ||
} |
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
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
Oops, something went wrong.