Skip to content

Commit

Permalink
Generated from f2f595089c0038c9109c3221d2f04f8d0019a04e (#271)
Browse files Browse the repository at this point in the history
Plug disks 2018-04-01 for multi api versionning
  • Loading branch information
AutorestCI authored Mar 14, 2018
1 parent 4ff8e91 commit c388776
Show file tree
Hide file tree
Showing 62 changed files with 5,765 additions and 407 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,46 +8,34 @@

package com.microsoft.azure.management.compute;

import java.util.Collection;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonValue;
import com.microsoft.rest.ExpandableStringEnum;

/**
* Defines values for AccessLevel.
*/
public enum AccessLevel {
/** Enum value None. */
NONE("None"),
public final class AccessLevel extends ExpandableStringEnum<AccessLevel> {
/** Static value None for AccessLevel. */
public static final AccessLevel NONE = fromString("None");

/** Enum value Read. */
READ("Read");

/** The actual serialized value for a AccessLevel instance. */
private String value;

AccessLevel(String value) {
this.value = value;
}
/** Static value Read for AccessLevel. */
public static final AccessLevel READ = fromString("Read");

/**
* Parses a serialized value to a AccessLevel instance.
*
* @param value the serialized value to parse.
* @return the parsed AccessLevel object, or null if unable to parse.
* Creates or finds a AccessLevel from its string representation.
* @param name a name to look for
* @return the corresponding AccessLevel
*/
@JsonCreator
public static AccessLevel fromString(String value) {
AccessLevel[] items = AccessLevel.values();
for (AccessLevel item : items) {
if (item.toString().equalsIgnoreCase(value)) {
return item;
}
}
return null;
public static AccessLevel fromString(String name) {
return fromString(name, AccessLevel.class);
}

@JsonValue
@Override
public String toString() {
return this.value;
/**
* @return known AccessLevel values
*/
public static Collection<AccessLevel> values() {
return values(AccessLevel.class);
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,150 @@
/**
* 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.compute;

import com.fasterxml.jackson.annotation.JsonProperty;

/**
* Profile for the container service agent pool.
*/
public class ContainerServiceAgentPoolProfile {
/**
* Unique name of the agent pool profile in the context of the subscription
* and resource group.
*/
@JsonProperty(value = "name", required = true)
private String name;

/**
* Number of agents (VMs) to host docker containers. Allowed values must be
* in the range of 1 to 100 (inclusive). The default value is 1.
*/
@JsonProperty(value = "count", required = true)
private int count;

/**
* Size of agent VMs. Possible values include: 'Standard_A0',
* 'Standard_A1', 'Standard_A2', 'Standard_A3', 'Standard_A4',
* 'Standard_A5', 'Standard_A6', 'Standard_A7', 'Standard_A8',
* 'Standard_A9', 'Standard_A10', 'Standard_A11', 'Standard_D1',
* 'Standard_D2', 'Standard_D3', 'Standard_D4', 'Standard_D11',
* 'Standard_D12', 'Standard_D13', 'Standard_D14', 'Standard_D1_v2',
* 'Standard_D2_v2', 'Standard_D3_v2', 'Standard_D4_v2', 'Standard_D5_v2',
* 'Standard_D11_v2', 'Standard_D12_v2', 'Standard_D13_v2',
* 'Standard_D14_v2', 'Standard_G1', 'Standard_G2', 'Standard_G3',
* 'Standard_G4', 'Standard_G5', 'Standard_DS1', 'Standard_DS2',
* 'Standard_DS3', 'Standard_DS4', 'Standard_DS11', 'Standard_DS12',
* 'Standard_DS13', 'Standard_DS14', 'Standard_GS1', 'Standard_GS2',
* 'Standard_GS3', 'Standard_GS4', 'Standard_GS5'.
*/
@JsonProperty(value = "vmSize", required = true)
private ContainerServiceVMSizeTypes vmSize;

/**
* DNS prefix to be used to create the FQDN for the agent pool.
*/
@JsonProperty(value = "dnsPrefix", required = true)
private String dnsPrefix;

/**
* FDQN for the agent pool.
*/
@JsonProperty(value = "fqdn", access = JsonProperty.Access.WRITE_ONLY)
private String fqdn;

/**
* Get the name value.
*
* @return the name value
*/
public String name() {
return this.name;
}

/**
* Set the name value.
*
* @param name the name value to set
* @return the ContainerServiceAgentPoolProfile object itself.
*/
public ContainerServiceAgentPoolProfile withName(String name) {
this.name = name;
return this;
}

/**
* Get the count value.
*
* @return the count value
*/
public int count() {
return this.count;
}

/**
* Set the count value.
*
* @param count the count value to set
* @return the ContainerServiceAgentPoolProfile object itself.
*/
public ContainerServiceAgentPoolProfile withCount(int count) {
this.count = count;
return this;
}

/**
* Get the vmSize value.
*
* @return the vmSize value
*/
public ContainerServiceVMSizeTypes vmSize() {
return this.vmSize;
}

/**
* Set the vmSize value.
*
* @param vmSize the vmSize value to set
* @return the ContainerServiceAgentPoolProfile object itself.
*/
public ContainerServiceAgentPoolProfile withVmSize(ContainerServiceVMSizeTypes vmSize) {
this.vmSize = vmSize;
return this;
}

/**
* Get the dnsPrefix value.
*
* @return the dnsPrefix value
*/
public String dnsPrefix() {
return this.dnsPrefix;
}

/**
* Set the dnsPrefix value.
*
* @param dnsPrefix the dnsPrefix value to set
* @return the ContainerServiceAgentPoolProfile object itself.
*/
public ContainerServiceAgentPoolProfile withDnsPrefix(String dnsPrefix) {
this.dnsPrefix = dnsPrefix;
return this;
}

/**
* Get the fqdn value.
*
* @return the fqdn value
*/
public String fqdn() {
return this.fqdn;
}

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

import com.fasterxml.jackson.annotation.JsonProperty;

/**
* Properties to configure a custom container service cluster.
*/
public class ContainerServiceCustomProfile {
/**
* The name of the custom orchestrator to use.
*/
@JsonProperty(value = "orchestrator", required = true)
private String orchestrator;

/**
* Get the orchestrator value.
*
* @return the orchestrator value
*/
public String orchestrator() {
return this.orchestrator;
}

/**
* Set the orchestrator value.
*
* @param orchestrator the orchestrator value to set
* @return the ContainerServiceCustomProfile object itself.
*/
public ContainerServiceCustomProfile withOrchestrator(String orchestrator) {
this.orchestrator = orchestrator;
return this;
}

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

import com.fasterxml.jackson.annotation.JsonProperty;

/**
* The ContainerServiceDiagnosticsProfile model.
*/
public class ContainerServiceDiagnosticsProfile {
/**
* Profile for the container service VM diagnostic agent.
*/
@JsonProperty(value = "vmDiagnostics", required = true)
private ContainerServiceVMDiagnostics vmDiagnostics;

/**
* Get the vmDiagnostics value.
*
* @return the vmDiagnostics value
*/
public ContainerServiceVMDiagnostics vmDiagnostics() {
return this.vmDiagnostics;
}

/**
* Set the vmDiagnostics value.
*
* @param vmDiagnostics the vmDiagnostics value to set
* @return the ContainerServiceDiagnosticsProfile object itself.
*/
public ContainerServiceDiagnosticsProfile withVmDiagnostics(ContainerServiceVMDiagnostics vmDiagnostics) {
this.vmDiagnostics = vmDiagnostics;
return this;
}

}
Original file line number Diff line number Diff line change
@@ -0,0 +1,69 @@
/**
* 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.compute;

import com.fasterxml.jackson.annotation.JsonProperty;

/**
* Profile for Linux VMs in the container service cluster.
*/
public class ContainerServiceLinuxProfile {
/**
* The administrator username to use for Linux VMs.
*/
@JsonProperty(value = "adminUsername", required = true)
private String adminUsername;

/**
* The ssh key configuration for Linux VMs.
*/
@JsonProperty(value = "ssh", required = true)
private ContainerServiceSshConfiguration ssh;

/**
* Get the adminUsername value.
*
* @return the adminUsername value
*/
public String adminUsername() {
return this.adminUsername;
}

/**
* Set the adminUsername value.
*
* @param adminUsername the adminUsername value to set
* @return the ContainerServiceLinuxProfile object itself.
*/
public ContainerServiceLinuxProfile withAdminUsername(String adminUsername) {
this.adminUsername = adminUsername;
return this;
}

/**
* Get the ssh value.
*
* @return the ssh value
*/
public ContainerServiceSshConfiguration ssh() {
return this.ssh;
}

/**
* Set the ssh value.
*
* @param ssh the ssh value to set
* @return the ContainerServiceLinuxProfile object itself.
*/
public ContainerServiceLinuxProfile withSsh(ContainerServiceSshConfiguration ssh) {
this.ssh = ssh;
return this;
}

}
Loading

0 comments on commit c388776

Please sign in to comment.