Freigeben über


ContainerGroupInner Class

public final class ContainerGroupInner
extends Resource

A container group.

Constructor Summary

Constructor Description
ContainerGroupInner()

Creates an instance of ContainerGroupInner class.

Method Summary

Modifier and Type Method and Description
ConfidentialComputeProperties confidentialComputeProperties()

Get the confidentialComputeProperties property: The properties for confidential container group.

List<Container> containers()

Get the containers property: The containers within the container group.

ContainerGroupDiagnostics diagnostics()

Get the diagnostics property: The diagnostic information for a container group.

DnsConfiguration dnsConfig()

Get the dnsConfig property: The DNS config information for a container group.

EncryptionProperties encryptionProperties()

Get the encryptionProperties property: The encryption properties for a container group.

List<DeploymentExtensionSpec> extensions()

Get the extensions property: extensions used by virtual kubelet.

static ContainerGroupInner fromJson(JsonReader jsonReader)

Reads an instance of ContainerGroupInner from the JsonReader.

String id()

Get the id property: Fully qualified resource Id for the resource.

ContainerGroupIdentity identity()

Get the identity property: The identity of the container group, if configured.

List<ImageRegistryCredential> imageRegistryCredentials()

Get the imageRegistryCredentials property: The image registry credentials by which the container group is created from.

List<InitContainerDefinition> initContainers()

Get the initContainers property: The init containers for a container group.

ContainerGroupPropertiesInstanceView instanceView()

Get the instanceView property: The instance view of the container group.

IpAddress ipAddress()

Get the ipAddress property: The IP address type of the container group.

String name()

Get the name property: The name of the resource.

OperatingSystemTypes osType()

Get the osType property: The operating system type required by the containers in the container group.

ContainerGroupPriority priority()

Get the priority property: The priority of the container group.

String provisioningState()

Get the provisioningState property: The provisioning state of the container group.

ContainerGroupRestartPolicy restartPolicy()

Get the restartPolicy property: Restart policy for all containers within the container group.

ContainerGroupSku sku()

Get the sku property: The SKU for a container group.

List<ContainerGroupSubnetId> subnetIds()

Get the subnetIds property: The subnet resource IDs for a container group.

JsonWriter toJson(JsonWriter jsonWriter)
String type()

Get the type property: The type of the resource.

void validate()

Validates the instance.

List<Volume> volumes()

Get the volumes property: The list of volumes that can be mounted by containers in this container group.

ContainerGroupInner withConfidentialComputeProperties(ConfidentialComputeProperties confidentialComputeProperties)

Set the confidentialComputeProperties property: The properties for confidential container group.

ContainerGroupInner withContainers(List<Container> containers)

Set the containers property: The containers within the container group.

ContainerGroupInner withDiagnostics(ContainerGroupDiagnostics diagnostics)

Set the diagnostics property: The diagnostic information for a container group.

ContainerGroupInner withDnsConfig(DnsConfiguration dnsConfig)

Set the dnsConfig property: The DNS config information for a container group.

ContainerGroupInner withEncryptionProperties(EncryptionProperties encryptionProperties)

Set the encryptionProperties property: The encryption properties for a container group.

ContainerGroupInner withExtensions(List<DeploymentExtensionSpec> extensions)

Set the extensions property: extensions used by virtual kubelet.

ContainerGroupInner withIdentity(ContainerGroupIdentity identity)

Set the identity property: The identity of the container group, if configured.

ContainerGroupInner withImageRegistryCredentials(List<ImageRegistryCredential> imageRegistryCredentials)

Set the imageRegistryCredentials property: The image registry credentials by which the container group is created from.

ContainerGroupInner withInitContainers(List<InitContainerDefinition> initContainers)

Set the initContainers property: The init containers for a container group.

ContainerGroupInner withIpAddress(IpAddress ipAddress)

Set the ipAddress property: The IP address type of the container group.

ContainerGroupInner withLocation(String location)
ContainerGroupInner withOsType(OperatingSystemTypes osType)

Set the osType property: The operating system type required by the containers in the container group.

ContainerGroupInner withPriority(ContainerGroupPriority priority)

Set the priority property: The priority of the container group.

ContainerGroupInner withRestartPolicy(ContainerGroupRestartPolicy restartPolicy)

Set the restartPolicy property: Restart policy for all containers within the container group.

ContainerGroupInner withSku(ContainerGroupSku sku)

Set the sku property: The SKU for a container group.

ContainerGroupInner withSubnetIds(List<ContainerGroupSubnetId> subnetIds)

Set the subnetIds property: The subnet resource IDs for a container group.

ContainerGroupInner withTags(Map<String,String> tags)
ContainerGroupInner withVolumes(List<Volume> volumes)

Set the volumes property: The list of volumes that can be mounted by containers in this container group.

ContainerGroupInner withZones(List<String> zones)

Set the zones property: The zones for the container group.

List<String> zones()

Get the zones property: The zones for the container group.

Methods inherited from ProxyResource

Methods inherited from Resource

Methods inherited from java.lang.Object

Constructor Details

ContainerGroupInner

public ContainerGroupInner()

Creates an instance of ContainerGroupInner class.

Method Details

confidentialComputeProperties

public ConfidentialComputeProperties confidentialComputeProperties()

Get the confidentialComputeProperties property: The properties for confidential container group.

Returns:

the confidentialComputeProperties value.

containers

public List containers()

Get the containers property: The containers within the container group.

Returns:

the containers value.

diagnostics

public ContainerGroupDiagnostics diagnostics()

Get the diagnostics property: The diagnostic information for a container group.

Returns:

the diagnostics value.

dnsConfig

public DnsConfiguration dnsConfig()

Get the dnsConfig property: The DNS config information for a container group.

Returns:

the dnsConfig value.

encryptionProperties

public EncryptionProperties encryptionProperties()

Get the encryptionProperties property: The encryption properties for a container group.

Returns:

the encryptionProperties value.

extensions

public List extensions()

Get the extensions property: extensions used by virtual kubelet.

Returns:

the extensions value.

fromJson

public static ContainerGroupInner fromJson(JsonReader jsonReader)

Reads an instance of ContainerGroupInner from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of ContainerGroupInner if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.

Throws:

IOException

- If the deserialized JSON object was missing any required properties.

id

public String id()

Get the id property: Fully qualified resource Id for the resource.

Overrides:

ContainerGroupInner.id()

Returns:

the id value.

identity

public ContainerGroupIdentity identity()

Get the identity property: The identity of the container group, if configured.

Returns:

the identity value.

imageRegistryCredentials

public List imageRegistryCredentials()

Get the imageRegistryCredentials property: The image registry credentials by which the container group is created from.

Returns:

the imageRegistryCredentials value.

initContainers

public List initContainers()

Get the initContainers property: The init containers for a container group.

Returns:

the initContainers value.

instanceView

public ContainerGroupPropertiesInstanceView instanceView()

Get the instanceView property: The instance view of the container group. Only valid in response.

Returns:

the instanceView value.

ipAddress

public IpAddress ipAddress()

Get the ipAddress property: The IP address type of the container group.

Returns:

the ipAddress value.

name

public String name()

Get the name property: The name of the resource.

Overrides:

ContainerGroupInner.name()

Returns:

the name value.

osType

public OperatingSystemTypes osType()

Get the osType property: The operating system type required by the containers in the container group.

Returns:

the osType value.

priority

public ContainerGroupPriority priority()

Get the priority property: The priority of the container group.

Returns:

the priority value.

provisioningState

public String provisioningState()

Get the provisioningState property: The provisioning state of the container group. This only appears in the response.

Returns:

the provisioningState value.

restartPolicy

public ContainerGroupRestartPolicy restartPolicy()

Get the restartPolicy property: Restart policy for all containers within the container group. - `Always` Always restart - `OnFailure` Restart on failure - `Never` Never restart.

Returns:

the restartPolicy value.

sku

public ContainerGroupSku sku()

Get the sku property: The SKU for a container group.

Returns:

the sku value.

subnetIds

public List subnetIds()

Get the subnetIds property: The subnet resource IDs for a container group.

Returns:

the subnetIds value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Overrides:

ContainerGroupInner.toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

type

public String type()

Get the type property: The type of the resource.

Overrides:

ContainerGroupInner.type()

Returns:

the type value.

validate

public void validate()

Validates the instance.

volumes

public List volumes()

Get the volumes property: The list of volumes that can be mounted by containers in this container group.

Returns:

the volumes value.

withConfidentialComputeProperties

public ContainerGroupInner withConfidentialComputeProperties(ConfidentialComputeProperties confidentialComputeProperties)

Set the confidentialComputeProperties property: The properties for confidential container group.

Parameters:

confidentialComputeProperties - the confidentialComputeProperties value to set.

Returns:

the ContainerGroupInner object itself.

withContainers

public ContainerGroupInner withContainers(List containers)

Set the containers property: The containers within the container group.

Parameters:

containers - the containers value to set.

Returns:

the ContainerGroupInner object itself.

withDiagnostics

public ContainerGroupInner withDiagnostics(ContainerGroupDiagnostics diagnostics)

Set the diagnostics property: The diagnostic information for a container group.

Parameters:

diagnostics - the diagnostics value to set.

Returns:

the ContainerGroupInner object itself.

withDnsConfig

public ContainerGroupInner withDnsConfig(DnsConfiguration dnsConfig)

Set the dnsConfig property: The DNS config information for a container group.

Parameters:

dnsConfig - the dnsConfig value to set.

Returns:

the ContainerGroupInner object itself.

withEncryptionProperties

public ContainerGroupInner withEncryptionProperties(EncryptionProperties encryptionProperties)

Set the encryptionProperties property: The encryption properties for a container group.

Parameters:

encryptionProperties - the encryptionProperties value to set.

Returns:

the ContainerGroupInner object itself.

withExtensions

public ContainerGroupInner withExtensions(List extensions)

Set the extensions property: extensions used by virtual kubelet.

Parameters:

extensions - the extensions value to set.

Returns:

the ContainerGroupInner object itself.

withIdentity

public ContainerGroupInner withIdentity(ContainerGroupIdentity identity)

Set the identity property: The identity of the container group, if configured.

Parameters:

identity - the identity value to set.

Returns:

the ContainerGroupInner object itself.

withImageRegistryCredentials

public ContainerGroupInner withImageRegistryCredentials(List imageRegistryCredentials)

Set the imageRegistryCredentials property: The image registry credentials by which the container group is created from.

Parameters:

imageRegistryCredentials - the imageRegistryCredentials value to set.

Returns:

the ContainerGroupInner object itself.

withInitContainers

public ContainerGroupInner withInitContainers(List initContainers)

Set the initContainers property: The init containers for a container group.

Parameters:

initContainers - the initContainers value to set.

Returns:

the ContainerGroupInner object itself.

withIpAddress

public ContainerGroupInner withIpAddress(IpAddress ipAddress)

Set the ipAddress property: The IP address type of the container group.

Parameters:

ipAddress - the ipAddress value to set.

Returns:

the ContainerGroupInner object itself.

withLocation

public ContainerGroupInner withLocation(String location)

Overrides:

ContainerGroupInner.withLocation(String location)

Parameters:

location

withOsType

public ContainerGroupInner withOsType(OperatingSystemTypes osType)

Set the osType property: The operating system type required by the containers in the container group.

Parameters:

osType - the osType value to set.

Returns:

the ContainerGroupInner object itself.

withPriority

public ContainerGroupInner withPriority(ContainerGroupPriority priority)

Set the priority property: The priority of the container group.

Parameters:

priority - the priority value to set.

Returns:

the ContainerGroupInner object itself.

withRestartPolicy

public ContainerGroupInner withRestartPolicy(ContainerGroupRestartPolicy restartPolicy)

Set the restartPolicy property: Restart policy for all containers within the container group. - `Always` Always restart - `OnFailure` Restart on failure - `Never` Never restart.

Parameters:

restartPolicy - the restartPolicy value to set.

Returns:

the ContainerGroupInner object itself.

withSku

public ContainerGroupInner withSku(ContainerGroupSku sku)

Set the sku property: The SKU for a container group.

Parameters:

sku - the sku value to set.

Returns:

the ContainerGroupInner object itself.

withSubnetIds

public ContainerGroupInner withSubnetIds(List subnetIds)

Set the subnetIds property: The subnet resource IDs for a container group.

Parameters:

subnetIds - the subnetIds value to set.

Returns:

the ContainerGroupInner object itself.

withTags

public ContainerGroupInner withTags(Map tags)

Overrides:

ContainerGroupInner.withTags(Map<String,String> tags)

Parameters:

tags

withVolumes

public ContainerGroupInner withVolumes(List volumes)

Set the volumes property: The list of volumes that can be mounted by containers in this container group.

Parameters:

volumes - the volumes value to set.

Returns:

the ContainerGroupInner object itself.

withZones

public ContainerGroupInner withZones(List zones)

Set the zones property: The zones for the container group.

Parameters:

zones - the zones value to set.

Returns:

the ContainerGroupInner object itself.

zones

public List zones()

Get the zones property: The zones for the container group.

Returns:

the zones value.

Applies to