diff --git a/containerinstance/resource-manager/v2018_10_01/src/main/java/com/microsoft/azure/management/containerinstance/v2018_10_01/ContainerGroup.java b/containerinstance/resource-manager/v2018_10_01/src/main/java/com/microsoft/azure/management/containerinstance/v2018_10_01/ContainerGroup.java index a0bfb8301c2dd..ced6b2ed90495 100644 --- a/containerinstance/resource-manager/v2018_10_01/src/main/java/com/microsoft/azure/management/containerinstance/v2018_10_01/ContainerGroup.java +++ b/containerinstance/resource-manager/v2018_10_01/src/main/java/com/microsoft/azure/management/containerinstance/v2018_10_01/ContainerGroup.java @@ -36,6 +36,11 @@ public interface ContainerGroup extends HasInner, Resource, */ ContainerGroupDiagnostics diagnostics(); + /** + * @return the dnsConfig value. + */ + DnsConfiguration dnsConfig(); + /** * @return the identity value. */ @@ -133,6 +138,16 @@ interface WithDiagnostics { WithCreate withDiagnostics(ContainerGroupDiagnostics diagnostics); } + /** + * The stage of the containergroup update allowing to specify DnsConfig. + */ + interface WithDnsConfig { + /** + * Specifies dnsConfig. + */ + WithCreate withDnsConfig(DnsConfiguration dnsConfig); + } + /** * The stage of the containergroup update allowing to specify Identity. */ @@ -198,7 +213,7 @@ interface WithVolumes { * the resource to be created (via {@link WithCreate#create()}), but also allows * for any other optional settings to be specified. */ - interface WithCreate extends Creatable, Resource.DefinitionWithTags, DefinitionStages.WithDiagnostics, DefinitionStages.WithIdentity, DefinitionStages.WithImageRegistryCredentials, DefinitionStages.WithIpAddress, DefinitionStages.WithNetworkProfile, DefinitionStages.WithRestartPolicy, DefinitionStages.WithVolumes { + interface WithCreate extends Creatable, Resource.DefinitionWithTags, DefinitionStages.WithDiagnostics, DefinitionStages.WithDnsConfig, DefinitionStages.WithIdentity, DefinitionStages.WithImageRegistryCredentials, DefinitionStages.WithIpAddress, DefinitionStages.WithNetworkProfile, DefinitionStages.WithRestartPolicy, DefinitionStages.WithVolumes { } } /** diff --git a/containerinstance/resource-manager/v2018_10_01/src/main/java/com/microsoft/azure/management/containerinstance/v2018_10_01/DnsConfiguration.java b/containerinstance/resource-manager/v2018_10_01/src/main/java/com/microsoft/azure/management/containerinstance/v2018_10_01/DnsConfiguration.java new file mode 100644 index 0000000000000..c195b192980c3 --- /dev/null +++ b/containerinstance/resource-manager/v2018_10_01/src/main/java/com/microsoft/azure/management/containerinstance/v2018_10_01/DnsConfiguration.java @@ -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 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 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 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; + } + +} diff --git a/containerinstance/resource-manager/v2018_10_01/src/main/java/com/microsoft/azure/management/containerinstance/v2018_10_01/GpuResource.java b/containerinstance/resource-manager/v2018_10_01/src/main/java/com/microsoft/azure/management/containerinstance/v2018_10_01/GpuResource.java new file mode 100644 index 0000000000000..7e3195b544c1b --- /dev/null +++ b/containerinstance/resource-manager/v2018_10_01/src/main/java/com/microsoft/azure/management/containerinstance/v2018_10_01/GpuResource.java @@ -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; + } + +} diff --git a/containerinstance/resource-manager/v2018_10_01/src/main/java/com/microsoft/azure/management/containerinstance/v2018_10_01/GpuSku.java b/containerinstance/resource-manager/v2018_10_01/src/main/java/com/microsoft/azure/management/containerinstance/v2018_10_01/GpuSku.java new file mode 100644 index 0000000000000..e1c88ffa036e1 --- /dev/null +++ b/containerinstance/resource-manager/v2018_10_01/src/main/java/com/microsoft/azure/management/containerinstance/v2018_10_01/GpuSku.java @@ -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 { + /** 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 values() { + return values(GpuSku.class); + } +} diff --git a/containerinstance/resource-manager/v2018_10_01/src/main/java/com/microsoft/azure/management/containerinstance/v2018_10_01/ResourceLimits.java b/containerinstance/resource-manager/v2018_10_01/src/main/java/com/microsoft/azure/management/containerinstance/v2018_10_01/ResourceLimits.java index 96732bca46377..5178c105fa135 100644 --- a/containerinstance/resource-manager/v2018_10_01/src/main/java/com/microsoft/azure/management/containerinstance/v2018_10_01/ResourceLimits.java +++ b/containerinstance/resource-manager/v2018_10_01/src/main/java/com/microsoft/azure/management/containerinstance/v2018_10_01/ResourceLimits.java @@ -26,6 +26,12 @@ public class ResourceLimits { @JsonProperty(value = "cpu") private Double cpu; + /** + * The GPU limit of this container instance. + */ + @JsonProperty(value = "gpu") + private GpuResource gpu; + /** * Get the memory limit in GB of this container instance. * @@ -66,4 +72,24 @@ public ResourceLimits withCpu(Double cpu) { return this; } + /** + * Get the GPU limit of this container instance. + * + * @return the gpu value + */ + public GpuResource gpu() { + return this.gpu; + } + + /** + * Set the GPU limit of this container instance. + * + * @param gpu the gpu value to set + * @return the ResourceLimits object itself. + */ + public ResourceLimits withGpu(GpuResource gpu) { + this.gpu = gpu; + return this; + } + } diff --git a/containerinstance/resource-manager/v2018_10_01/src/main/java/com/microsoft/azure/management/containerinstance/v2018_10_01/ResourceRequests.java b/containerinstance/resource-manager/v2018_10_01/src/main/java/com/microsoft/azure/management/containerinstance/v2018_10_01/ResourceRequests.java index cc2946839866e..c7652202558d2 100644 --- a/containerinstance/resource-manager/v2018_10_01/src/main/java/com/microsoft/azure/management/containerinstance/v2018_10_01/ResourceRequests.java +++ b/containerinstance/resource-manager/v2018_10_01/src/main/java/com/microsoft/azure/management/containerinstance/v2018_10_01/ResourceRequests.java @@ -26,6 +26,12 @@ public class ResourceRequests { @JsonProperty(value = "cpu", required = true) private double cpu; + /** + * The GPU request of this container instance. + */ + @JsonProperty(value = "gpu") + private GpuResource gpu; + /** * Get the memory request in GB of this container instance. * @@ -66,4 +72,24 @@ public ResourceRequests withCpu(double cpu) { return this; } + /** + * Get the GPU request of this container instance. + * + * @return the gpu value + */ + public GpuResource gpu() { + return this.gpu; + } + + /** + * Set the GPU request of this container instance. + * + * @param gpu the gpu value to set + * @return the ResourceRequests object itself. + */ + public ResourceRequests withGpu(GpuResource gpu) { + this.gpu = gpu; + return this; + } + } diff --git a/containerinstance/resource-manager/v2018_10_01/src/main/java/com/microsoft/azure/management/containerinstance/v2018_10_01/implementation/ContainerGroupImpl.java b/containerinstance/resource-manager/v2018_10_01/src/main/java/com/microsoft/azure/management/containerinstance/v2018_10_01/implementation/ContainerGroupImpl.java index fda0d91a01ef8..4b30f51c04f02 100644 --- a/containerinstance/resource-manager/v2018_10_01/src/main/java/com/microsoft/azure/management/containerinstance/v2018_10_01/implementation/ContainerGroupImpl.java +++ b/containerinstance/resource-manager/v2018_10_01/src/main/java/com/microsoft/azure/management/containerinstance/v2018_10_01/implementation/ContainerGroupImpl.java @@ -22,6 +22,7 @@ import com.microsoft.azure.management.containerinstance.v2018_10_01.ContainerGroupPropertiesInstanceView; import com.microsoft.azure.management.containerinstance.v2018_10_01.ContainerGroupDiagnostics; import com.microsoft.azure.management.containerinstance.v2018_10_01.ContainerGroupNetworkProfile; +import com.microsoft.azure.management.containerinstance.v2018_10_01.DnsConfiguration; import java.util.ArrayList; import com.microsoft.azure.management.containerinstance.v2018_10_01.; import rx.functions.Func1; @@ -86,6 +87,11 @@ public ContainerGroupDiagnostics diagnostics() { return this.inner().diagnostics(); } + @Override + public DnsConfiguration dnsConfig() { + return this.inner().dnsConfig(); + } + @Override public ContainerGroupIdentity identity() { return this.inner().identity(); @@ -149,6 +155,12 @@ public ContainerGroupImpl withDiagnostics(ContainerGroupDiagnostics diagnostics) return this; } + @Override + public ContainerGroupImpl withDnsConfig(DnsConfiguration dnsConfig) { + this.inner().withDnsConfig(dnsConfig); + return this; + } + @Override public ContainerGroupImpl withIdentity(ContainerGroupIdentity identity) { this.inner().withIdentity(identity); diff --git a/containerinstance/resource-manager/v2018_10_01/src/main/java/com/microsoft/azure/management/containerinstance/v2018_10_01/implementation/ContainerGroupInner.java b/containerinstance/resource-manager/v2018_10_01/src/main/java/com/microsoft/azure/management/containerinstance/v2018_10_01/implementation/ContainerGroupInner.java index 327495bf409a9..904bf42b70b15 100644 --- a/containerinstance/resource-manager/v2018_10_01/src/main/java/com/microsoft/azure/management/containerinstance/v2018_10_01/implementation/ContainerGroupInner.java +++ b/containerinstance/resource-manager/v2018_10_01/src/main/java/com/microsoft/azure/management/containerinstance/v2018_10_01/implementation/ContainerGroupInner.java @@ -18,6 +18,7 @@ import com.microsoft.azure.management.containerinstance.v2018_10_01.ContainerGroupPropertiesInstanceView; import com.microsoft.azure.management.containerinstance.v2018_10_01.ContainerGroupDiagnostics; import com.microsoft.azure.management.containerinstance.v2018_10_01.ContainerGroupNetworkProfile; +import com.microsoft.azure.management.containerinstance.v2018_10_01.DnsConfiguration; import com.fasterxml.jackson.annotation.JsonProperty; import com.microsoft.rest.serializer.JsonFlatten; import com.microsoft.rest.SkipParentValidation; @@ -103,6 +104,12 @@ public class ContainerGroupInner extends Resource { @JsonProperty(value = "properties.networkProfile") private ContainerGroupNetworkProfile networkProfile; + /** + * The DNS config information for a container group. + */ + @JsonProperty(value = "properties.dnsConfig") + private DnsConfiguration dnsConfig; + /** * Get the identity of the container group, if configured. * @@ -309,4 +316,24 @@ public ContainerGroupInner withNetworkProfile(ContainerGroupNetworkProfile netwo return this; } + /** + * Get the DNS config information for a container group. + * + * @return the dnsConfig value + */ + public DnsConfiguration dnsConfig() { + return this.dnsConfig; + } + + /** + * Set the DNS config information for a container group. + * + * @param dnsConfig the dnsConfig value to set + * @return the ContainerGroupInner object itself. + */ + public ContainerGroupInner withDnsConfig(DnsConfiguration dnsConfig) { + this.dnsConfig = dnsConfig; + return this; + } + }