Skip to content
Open
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 @@ -41,7 +41,7 @@ public class AzureFileVolume {
private String storageAccountKey;

/**
* Get the shareName value.
* Get the name of the Azure File share to be mounted as a volume.
*
* @return the shareName value
*/
Expand All @@ -50,7 +50,7 @@ public String shareName() {
}

/**
* Set the shareName value.
* Set the name of the Azure File share to be mounted as a volume.
*
* @param shareName the shareName value to set
* @return the AzureFileVolume object itself.
Expand All @@ -61,7 +61,7 @@ public AzureFileVolume withShareName(String shareName) {
}

/**
* Get the readOnly value.
* Get the flag indicating whether the Azure File shared mounted as a volume is read-only.
*
* @return the readOnly value
*/
Expand All @@ -70,7 +70,7 @@ public Boolean readOnly() {
}

/**
* Set the readOnly value.
* Set the flag indicating whether the Azure File shared mounted as a volume is read-only.
*
* @param readOnly the readOnly value to set
* @return the AzureFileVolume object itself.
Expand All @@ -81,7 +81,7 @@ public AzureFileVolume withReadOnly(Boolean readOnly) {
}

/**
* Get the storageAccountName value.
* Get the name of the storage account that contains the Azure File share.
*
* @return the storageAccountName value
*/
Expand All @@ -90,7 +90,7 @@ public String storageAccountName() {
}

/**
* Set the storageAccountName value.
* Set the name of the storage account that contains the Azure File share.
*
* @param storageAccountName the storageAccountName value to set
* @return the AzureFileVolume object itself.
Expand All @@ -101,7 +101,7 @@ public AzureFileVolume withStorageAccountName(String storageAccountName) {
}

/**
* Get the storageAccountKey value.
* Get the storage account access key used to access the Azure File share.
*
* @return the storageAccountKey value
*/
Expand All @@ -110,7 +110,7 @@ public String storageAccountKey() {
}

/**
* Set the storageAccountKey value.
* Set the storage account access key used to access the Azure File share.
*
* @param storageAccountKey the storageAccountKey value to set
* @return the AzureFileVolume object itself.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,19 @@ public class Container {
private List<VolumeMount> volumeMounts;

/**
* Get the name value.
* The liveness probe.
*/
@JsonProperty(value = "properties.livenessProbe")
private ContainerProbe livenessProbe;

/**
* The readiness probe.
*/
@JsonProperty(value = "properties.readinessProbe")
private ContainerProbe readinessProbe;

/**
* Get the user-provided name of the container instance.
*
* @return the name value
*/
Expand All @@ -75,7 +87,7 @@ public String name() {
}

/**
* Set the name value.
* Set the user-provided name of the container instance.
*
* @param name the name value to set
* @return the Container object itself.
Expand All @@ -86,7 +98,7 @@ public Container withName(String name) {
}

/**
* Get the image value.
* Get the name of the image used to create the container instance.
*
* @return the image value
*/
Expand All @@ -95,7 +107,7 @@ public String image() {
}

/**
* Set the image value.
* Set the name of the image used to create the container instance.
*
* @param image the image value to set
* @return the Container object itself.
Expand All @@ -106,7 +118,7 @@ public Container withImage(String image) {
}

/**
* Get the command value.
* Get the commands to execute within the container instance in exec form.
*
* @return the command value
*/
Expand All @@ -115,7 +127,7 @@ public List<String> command() {
}

/**
* Set the command value.
* Set the commands to execute within the container instance in exec form.
*
* @param command the command value to set
* @return the Container object itself.
Expand All @@ -126,7 +138,7 @@ public Container withCommand(List<String> command) {
}

/**
* Get the ports value.
* Get the exposed ports on the container instance.
*
* @return the ports value
*/
Expand All @@ -135,7 +147,7 @@ public List<ContainerPort> ports() {
}

/**
* Set the ports value.
* Set the exposed ports on the container instance.
*
* @param ports the ports value to set
* @return the Container object itself.
Expand All @@ -146,7 +158,7 @@ public Container withPorts(List<ContainerPort> ports) {
}

/**
* Get the environmentVariables value.
* Get the environment variables to set in the container instance.
*
* @return the environmentVariables value
*/
Expand All @@ -155,7 +167,7 @@ public List<EnvironmentVariable> environmentVariables() {
}

/**
* Set the environmentVariables value.
* Set the environment variables to set in the container instance.
*
* @param environmentVariables the environmentVariables value to set
* @return the Container object itself.
Expand All @@ -166,7 +178,7 @@ public Container withEnvironmentVariables(List<EnvironmentVariable> environmentV
}

/**
* Get the instanceView value.
* Get the instance view of the container instance. Only valid in response.
*
* @return the instanceView value
*/
Expand All @@ -175,7 +187,7 @@ public ContainerPropertiesInstanceView instanceView() {
}

/**
* Get the resources value.
* Get the resource requirements of the container instance.
*
* @return the resources value
*/
Expand All @@ -184,7 +196,7 @@ public ResourceRequirements resources() {
}

/**
* Set the resources value.
* Set the resource requirements of the container instance.
*
* @param resources the resources value to set
* @return the Container object itself.
Expand All @@ -195,7 +207,7 @@ public Container withResources(ResourceRequirements resources) {
}

/**
* Get the volumeMounts value.
* Get the volume mounts available to the container instance.
*
* @return the volumeMounts value
*/
Expand All @@ -204,7 +216,7 @@ public List<VolumeMount> volumeMounts() {
}

/**
* Set the volumeMounts value.
* Set the volume mounts available to the container instance.
*
* @param volumeMounts the volumeMounts value to set
* @return the Container object itself.
Expand All @@ -214,4 +226,44 @@ public Container withVolumeMounts(List<VolumeMount> volumeMounts) {
return this;
}

/**
* Get the liveness probe.
*
* @return the livenessProbe value
*/
public ContainerProbe livenessProbe() {
return this.livenessProbe;
}

/**
* Set the liveness probe.
*
* @param livenessProbe the livenessProbe value to set
* @return the Container object itself.
*/
public Container withLivenessProbe(ContainerProbe livenessProbe) {
this.livenessProbe = livenessProbe;
return this;
}

/**
* Get the readiness probe.
*
* @return the readinessProbe value
*/
public ContainerProbe readinessProbe() {
return this.readinessProbe;
}

/**
* Set the readiness probe.
*
* @param readinessProbe the readinessProbe value to set
* @return the Container object itself.
*/
public Container withReadinessProbe(ContainerProbe readinessProbe) {
this.readinessProbe = readinessProbe;
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;

import java.util.List;
import com.fasterxml.jackson.annotation.JsonProperty;

/**
* The container execution command, for liveness or readiness probe.
*/
public class ContainerExec {
/**
* The commands to execute within the container.
*/
@JsonProperty(value = "command")
private List<String> command;

/**
* Get the commands to execute within the container.
*
* @return the command value
*/
public List<String> command() {
return this.command;
}

/**
* Set the commands to execute within the container.
*
* @param command the command value to set
* @return the ContainerExec object itself.
*/
public ContainerExec withCommand(List<String> command) {
this.command = command;
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.containerinstance;

import com.fasterxml.jackson.annotation.JsonProperty;

/**
* The start container exec request.
*/
public class ContainerExecRequest {
/**
* The command to be executed.
*/
@JsonProperty(value = "command")
private String command;

/**
* The size of the terminal.
*/
@JsonProperty(value = "terminalSize")
private ContainerExecRequestTerminalSize terminalSize;

/**
* Get the command to be executed.
*
* @return the command value
*/
public String command() {
return this.command;
}

/**
* Set the command to be executed.
*
* @param command the command value to set
* @return the ContainerExecRequest object itself.
*/
public ContainerExecRequest withCommand(String command) {
this.command = command;
return this;
}

/**
* Get the size of the terminal.
*
* @return the terminalSize value
*/
public ContainerExecRequestTerminalSize terminalSize() {
return this.terminalSize;
}

/**
* Set the size of the terminal.
*
* @param terminalSize the terminalSize value to set
* @return the ContainerExecRequest object itself.
*/
public ContainerExecRequest withTerminalSize(ContainerExecRequestTerminalSize terminalSize) {
this.terminalSize = terminalSize;
return this;
}

}
Loading