Skip to content
Merged
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 @@ -36,6 +36,11 @@ public interface ContainerGroup extends HasInner<ContainerGroupInner>, Resource,
*/
ContainerGroupDiagnostics diagnostics();

/**
* @return the dnsConfig value.
*/
DnsConfiguration dnsConfig();

/**
* @return the identity value.
*/
Expand Down Expand Up @@ -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.
*/
Expand Down Expand Up @@ -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<ContainerGroup>, Resource.DefinitionWithTags<WithCreate>, DefinitionStages.WithDiagnostics, DefinitionStages.WithIdentity, DefinitionStages.WithImageRegistryCredentials, DefinitionStages.WithIpAddress, DefinitionStages.WithNetworkProfile, DefinitionStages.WithRestartPolicy, DefinitionStages.WithVolumes {
interface WithCreate extends Creatable<ContainerGroup>, Resource.DefinitionWithTags<WithCreate>, DefinitionStages.WithDiagnostics, DefinitionStages.WithDnsConfig, DefinitionStages.WithIdentity, DefinitionStages.WithImageRegistryCredentials, DefinitionStages.WithIpAddress, DefinitionStages.WithNetworkProfile, DefinitionStages.WithRestartPolicy, DefinitionStages.WithVolumes {
}
}
/**
Expand Down
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;
}

}
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;
}

}
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);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -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.
*
Expand Down Expand Up @@ -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;
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -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.
*
Expand Down Expand Up @@ -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;
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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();
Expand Down Expand Up @@ -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);
Expand Down
Loading