Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the MIT License. See License.txt in the project root for license information.
/** * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for * license information. */
package com.microsoft.azure.management.containerservice; import com.microsoft.azure.management.apigeneration.Beta; import com.microsoft.azure.management.apigeneration.Beta.SinceVersion; import com.microsoft.azure.management.apigeneration.Fluent; import com.microsoft.azure.management.resources.fluentcore.arm.models.ChildResource; import com.microsoft.azure.management.resources.fluentcore.model.Attachable; import com.microsoft.azure.management.resources.fluentcore.model.HasInner;
A client-side representation for a container service agent pool.
/** * A client-side representation for a container service agent pool. */
@Fluent @Beta(SinceVersion.V1_4_0) public interface ContainerServiceAgentPool extends ChildResource<OrchestratorServiceBase>, HasInner<ContainerServiceAgentPoolProfile> {
Returns:the number of agents (virtual machines) to host docker containers
/** * @return the number of agents (virtual machines) to host docker containers */
int count();
Returns:the size of each virtual machine in the agent pool
/** * @return the size of each virtual machine in the agent pool */
ContainerServiceVMSizeTypes vmSize();
Returns:DNS prefix to be used to create the FQDN for the agent pool
/** * @return DNS prefix to be used to create the FQDN for the agent pool */
String dnsPrefix();
Returns:FDQN for the agent pool
/** * @return FDQN for the agent pool */
String fqdn();
Returns:OS disk size in GB set for each virtual machine in the agent pool
/** * @return OS disk size in GB set for each virtual machine in the agent pool */
int osDiskSizeInGB();
Returns:array of ports opened on this agent pool
/** * @return array of ports opened on this agent pool */
int[] ports();
Returns:OS of each virtual machine in the agent pool
/** * @return OS of each virtual machine in the agent pool */
OSType osType();
Returns:the storage kind (managed or classic) set for each virtual machine in the agent pool
/** * @return the storage kind (managed or classic) set for each virtual machine in the agent pool */
ContainerServiceStorageProfileTypes storageProfile();
Returns:the name of the subnet used by each virtual machine in the agent pool
/** * @return the name of the subnet used by each virtual machine in the agent pool */
String subnetName();
Returns:the ID of the virtual network used by each virtual machine in the agent pool
/** * @return the ID of the virtual network used by each virtual machine in the agent pool */
String networkId(); // Fluent interfaces
The entirety of a container service agent pool definition as a part of a parent definition.
Type parameters:
  • <ParentT> – the stage of the container service definition to return to after attaching this definition
/** * The entirety of a container service agent pool definition as a part of a parent definition. * @param <ParentT> the stage of the container service definition to return to after attaching this definition */
interface Definition<ParentT> extends DefinitionStages.WithAttach<ParentT>, DefinitionStages.Blank<ParentT>, DefinitionStages.WithVMSize<ParentT>, DefinitionStages.WithLeafDomainLabel<ParentT> { }
Grouping of container service agent pool definition stages as a part of parent container service definition.
/** * Grouping of container service agent pool definition stages as a part of parent container service definition. */
interface DefinitionStages {
The first stage of a container service agent pool definition.
Type parameters:
  • <ParentT> – the stage of the container service definition to return to after attaching this definition
/** * The first stage of a container service agent pool definition. * * @param <ParentT> the stage of the container service definition to return to after attaching this definition */
interface Blank<ParentT> {
Specifies the number of agents (virtual machines) to host docker containers.
Params:
  • count – a number between 1 and 100
Returns:the next stage of the definition
/** * Specifies the number of agents (virtual machines) to host docker containers. * * @param count a number between 1 and 100 * @return the next stage of the definition */
WithVMSize<ParentT> withVirtualMachineCount(int count); }
The stage of a container service agent pool definition allowing to specify the agent virtual machine size.
Type parameters:
  • <ParentT> – the stage of the container service definition to return to after attaching this definition
/** * The stage of a container service agent pool definition allowing to specify the agent virtual machine size. * * @param <ParentT> the stage of the container service definition to return to after attaching this definition */
interface WithVMSize<ParentT> {
Specifies the size of the agent virtual machines.
Params:
  • vmSize – the size of the virtual machine
Returns:the next stage of the definition
/** * Specifies the size of the agent virtual machines. * @param vmSize the size of the virtual machine * @return the next stage of the definition */
WithLeafDomainLabel<ParentT> withVirtualMachineSize(ContainerServiceVMSizeTypes vmSize); }
The stage of a container service agent pool definition allowing to specify the DNS prefix.
Type parameters:
  • <ParentT> – the stage of the container service definition to return to after attaching this definition
/** * The stage of a container service agent pool definition allowing to specify the DNS prefix. * * @param <ParentT> the stage of the container service definition to return to after attaching this definition */
interface WithLeafDomainLabel<ParentT> {
Specify the DNS prefix to be used in the FQDN for the agent pool.
Params:
  • dnsPrefix – the DNS prefix
Returns:the next stage of the definition
/** * Specify the DNS prefix to be used in the FQDN for the agent pool. * @param dnsPrefix the DNS prefix * @return the next stage of the definition */
WithAttach<ParentT> withDnsPrefix(String dnsPrefix); }
The stage of a container service agent pool definition allowing to specify the agent pool ports to be exposed.
Type parameters:
  • <ParentT> – the stage of the container service definition to return to after attaching this definition
/** * The stage of a container service agent pool definition allowing to specify the agent pool ports to be exposed. * * @param <ParentT> the stage of the container service definition to return to after attaching this definition */
interface WithPorts<ParentT> {
Ports to be exposed on this agent pool.

The default exposed ports are different based on your choice of orchestrator.

Params:
  • ports – port numbers that will be exposed on this agent pool
Returns:the next stage of the definition
/** * Ports to be exposed on this agent pool. *<p> * The default exposed ports are different based on your choice of orchestrator. * @param ports port numbers that will be exposed on this agent pool * @return the next stage of the definition */
WithAttach<ParentT> withPorts(int... ports); }
The stage of a container service agent pool definition allowing to specify the agent pool OS type.
Type parameters:
  • <ParentT> – the stage of the container service definition to return to after attaching this definition
/** * The stage of a container service agent pool definition allowing to specify the agent pool OS type. * * @param <ParentT> the stage of the container service definition to return to after attaching this definition */
interface WithOSType<ParentT> {
OS type to be used for every machine in the agent pool. Default is Linux.
Params:
  • osType – OS type to be used for every machine in the agent pool
Returns:the next stage of the definition
/** * OS type to be used for every machine in the agent pool. * * Default is Linux. * @param osType OS type to be used for every machine in the agent pool * @return the next stage of the definition */
WithAttach<ParentT> withOSType(OSType osType); }
The stage of a container service agent pool definition allowing to specify the agent pool OS disk size.
Type parameters:
  • <ParentT> – the stage of the container service definition to return to after attaching this definition
/** * The stage of a container service agent pool definition allowing to specify the agent pool OS disk size. * * @param <ParentT> the stage of the container service definition to return to after attaching this definition */
interface WithOSDiskSize<ParentT> {
OS Disk Size in GB to be used for every machine in the agent pool.
Params:
  • osDiskSizeInGB – OS disk size in GB to be used for each virtual machine in the agent pool
Returns:the next stage of the definition
/** * OS Disk Size in GB to be used for every machine in the agent pool. * * @param osDiskSizeInGB OS disk size in GB to be used for each virtual machine in the agent pool * @return the next stage of the definition */
WithAttach<ParentT> withOSDiskSizeInGB(int osDiskSizeInGB); }
The stage of a container service agent pool definition allowing to specify the agent pool storage kind.
Type parameters:
  • <ParentT> – the stage of the container service definition to return to after attaching this definition
/** * The stage of a container service agent pool definition allowing to specify the agent pool storage kind. * * @param <ParentT> the stage of the container service definition to return to after attaching this definition */
interface WithStorageProfile<ParentT> {
Specifies the storage kind to be used for each virtual machine in the agent pool.
Params:
  • storageProfile – the storage kind to be used for each virtual machine in the agent pool
Returns:the next stage of the definition
/** * Specifies the storage kind to be used for each virtual machine in the agent pool. * * @param storageProfile the storage kind to be used for each virtual machine in the agent pool * @return the next stage of the definition */
WithAttach<ParentT> withStorageProfile(ContainerServiceStorageProfileTypes storageProfile); }
The stage of a container service agent pool definition allowing to specify a virtual network to be used for the agents.
Type parameters:
  • <ParentT> – the stage of the container service definition to return to after attaching this definition
/** * The stage of a container service agent pool definition allowing to specify a virtual network to be used for the agents. * * @param <ParentT> the stage of the container service definition to return to after attaching this definition */
@Beta(SinceVersion.V1_15_0) interface WithVirtualNetwork<ParentT> {
Specifies the virtual network to be used for the agents.
Params:
  • virtualNetworkId – the ID of a virtual network
  • subnetName – the name of the subnet within the virtual network.; the subnet must have the service endpoints enabled for 'Microsoft.ContainerService'.
Returns:the next stage
/** * Specifies the virtual network to be used for the agents. * * @param virtualNetworkId the ID of a virtual network * @param subnetName the name of the subnet within the virtual network.; the subnet must have the service * endpoints enabled for 'Microsoft.ContainerService'. * @return the next stage */
@Beta(SinceVersion.V1_15_0) WithAttach<ParentT> withVirtualNetwork(String virtualNetworkId, String subnetName); }
The final stage of a container service agent pool definition. At this stage, any remaining optional settings can be specified, or the container service agent pool can be attached to the parent container service definition.
Type parameters:
  • <ParentT> – the stage of the container service definition to return to after attaching this definition
/** The final stage of a container service agent pool definition. * At this stage, any remaining optional settings can be specified, or the container service agent pool * can be attached to the parent container service definition. * @param <ParentT> the stage of the container service definition to return to after attaching this definition */
interface WithAttach<ParentT> extends WithOSType<ParentT>, WithOSDiskSize<ParentT>, WithPorts<ParentT>, WithStorageProfile<ParentT>, WithVirtualNetwork<ParentT>, Attachable.InDefinition<ParentT> { } } }