ContainerGroupProfileInner Class

public final class ContainerGroupProfileInner
extends ProxyResource

A container group profile object.

Constructor Summary

Constructor Description
ContainerGroupProfileInner()

Creates an instance of ContainerGroupProfileInner 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.

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 ContainerGroupProfileInner fromJson(JsonReader jsonReader)

Reads an instance of ContainerGroupProfileInner from the JsonReader.

String id()

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

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.

IpAddress ipAddress()

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

String location()

Get the location property: The geo-location where the resource lives.

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.

List<Integer> registeredRevisions()

Get the registeredRevisions property: Registered revisions are calculated at request time based off the records in the table logs.

ContainerGroupRestartPolicy restartPolicy()

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

Integer revision()

Get the revision property: Container group profile current revision number.

SecurityContextDefinition securityContext()

Get the securityContext property: The container security properties.

OffsetDateTime shutdownGracePeriod()

Get the shutdownGracePeriod property: Shutdown grace period for containers in a container group.

ContainerGroupSku sku()

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

SystemData systemData()

Get the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information.

Map<String,String> tags()

Get the tags property: Resource tags.

OffsetDateTime timeToLive()

Get the timeToLive property: Post completion time to live for containers of a CG.

JsonWriter toJson(JsonWriter jsonWriter)
String type()

Get the type property: The type of the resource.

Boolean useKrypton()

Get the useKrypton property: Gets or sets Krypton use property.

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.

ContainerGroupProfileInner withConfidentialComputeProperties(ConfidentialComputeProperties confidentialComputeProperties)

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

ContainerGroupProfileInner withContainers(List<Container> containers)

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

ContainerGroupProfileInner withDiagnostics(ContainerGroupDiagnostics diagnostics)

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

ContainerGroupProfileInner withEncryptionProperties(EncryptionProperties encryptionProperties)

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

ContainerGroupProfileInner withExtensions(List<DeploymentExtensionSpec> extensions)

Set the extensions property: extensions used by virtual kubelet.

ContainerGroupProfileInner withImageRegistryCredentials(List<ImageRegistryCredential> imageRegistryCredentials)

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

ContainerGroupProfileInner withInitContainers(List<InitContainerDefinition> initContainers)

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

ContainerGroupProfileInner withIpAddress(IpAddress ipAddress)

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

ContainerGroupProfileInner withLocation(String location)

Set the location property: The geo-location where the resource lives.

ContainerGroupProfileInner withOsType(OperatingSystemTypes osType)

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

ContainerGroupProfileInner withPriority(ContainerGroupPriority priority)

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

ContainerGroupProfileInner withRestartPolicy(ContainerGroupRestartPolicy restartPolicy)

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

ContainerGroupProfileInner withSecurityContext(SecurityContextDefinition securityContext)

Set the securityContext property: The container security properties.

ContainerGroupProfileInner withShutdownGracePeriod(OffsetDateTime shutdownGracePeriod)

Set the shutdownGracePeriod property: Shutdown grace period for containers in a container group.

ContainerGroupProfileInner withSku(ContainerGroupSku sku)

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

ContainerGroupProfileInner withTags(Map<String,String> tags)

Set the tags property: Resource tags.

ContainerGroupProfileInner withTimeToLive(OffsetDateTime timeToLive)

Set the timeToLive property: Post completion time to live for containers of a CG.

ContainerGroupProfileInner withUseKrypton(Boolean useKrypton)

Set the useKrypton property: Gets or sets Krypton use property.

ContainerGroupProfileInner withVolumes(List<Volume> volumes)

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

ContainerGroupProfileInner withZones(List<String> zones)

Set the zones property: The availability zones.

List<String> zones()

Get the zones property: The availability zones.

Methods inherited from ProxyResource

Methods inherited from java.lang.Object

Constructor Details

ContainerGroupProfileInner

public ContainerGroupProfileInner()

Creates an instance of ContainerGroupProfileInner class.

Method Details

confidentialComputeProperties

public ConfidentialComputeProperties confidentialComputeProperties()

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

Returns:

the confidentialComputeProperties value.

containers

public List<Container> 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.

encryptionProperties

public EncryptionProperties encryptionProperties()

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

Returns:

the encryptionProperties value.

extensions

public List<DeploymentExtensionSpec> extensions()

Get the extensions property: extensions used by virtual kubelet.

Returns:

the extensions value.

fromJson

public static ContainerGroupProfileInner fromJson(JsonReader jsonReader)

Reads an instance of ContainerGroupProfileInner from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of ContainerGroupProfileInner 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:

ContainerGroupProfileInner.id()

Returns:

the id value.

imageRegistryCredentials

public List<ImageRegistryCredential> imageRegistryCredentials()

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

Returns:

the imageRegistryCredentials value.

initContainers

public List<InitContainerDefinition> initContainers()

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

Returns:

the initContainers value.

ipAddress

public IpAddress ipAddress()

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

Returns:

the ipAddress value.

location

public String location()

Get the location property: The geo-location where the resource lives.

Returns:

the location value.

name

public String name()

Get the name property: The name of the resource.

Overrides:

ContainerGroupProfileInner.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.

registeredRevisions

public List<Integer> registeredRevisions()

Get the registeredRevisions property: Registered revisions are calculated at request time based off the records in the table logs.

Returns:

the registeredRevisions 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.

revision

public Integer revision()

Get the revision property: Container group profile current revision number.

Returns:

the revision value.

securityContext

public SecurityContextDefinition securityContext()

Get the securityContext property: The container security properties.

Returns:

the securityContext value.

shutdownGracePeriod

public OffsetDateTime shutdownGracePeriod()

Get the shutdownGracePeriod property: Shutdown grace period for containers in a container group.

Returns:

the shutdownGracePeriod value.

sku

public ContainerGroupSku sku()

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

Returns:

the sku value.

systemData

public SystemData systemData()

Get the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information.

Returns:

the systemData value.

tags

public Map<String,String> tags()

Get the tags property: Resource tags.

Returns:

the tags value.

timeToLive

public OffsetDateTime timeToLive()

Get the timeToLive property: Post completion time to live for containers of a CG.

Returns:

the timeToLive value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Overrides:

ContainerGroupProfileInner.toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

type

public String type()

Get the type property: The type of the resource.

Overrides:

ContainerGroupProfileInner.type()

Returns:

the type value.

useKrypton

public Boolean useKrypton()

Get the useKrypton property: Gets or sets Krypton use property.

Returns:

the useKrypton value.

validate

public void validate()

Validates the instance.

volumes

public List<Volume> 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 ContainerGroupProfileInner withConfidentialComputeProperties(ConfidentialComputeProperties confidentialComputeProperties)

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

Parameters:

confidentialComputeProperties - the confidentialComputeProperties value to set.

Returns:

the ContainerGroupProfileInner object itself.

withContainers

public ContainerGroupProfileInner withContainers(List<Container> containers)

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

Parameters:

containers - the containers value to set.

Returns:

the ContainerGroupProfileInner object itself.

withDiagnostics

public ContainerGroupProfileInner withDiagnostics(ContainerGroupDiagnostics diagnostics)

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

Parameters:

diagnostics - the diagnostics value to set.

Returns:

the ContainerGroupProfileInner object itself.

withEncryptionProperties

public ContainerGroupProfileInner withEncryptionProperties(EncryptionProperties encryptionProperties)

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

Parameters:

encryptionProperties - the encryptionProperties value to set.

Returns:

the ContainerGroupProfileInner object itself.

withExtensions

public ContainerGroupProfileInner withExtensions(List<DeploymentExtensionSpec> extensions)

Set the extensions property: extensions used by virtual kubelet.

Parameters:

extensions - the extensions value to set.

Returns:

the ContainerGroupProfileInner object itself.

withImageRegistryCredentials

public ContainerGroupProfileInner withImageRegistryCredentials(List<ImageRegistryCredential> 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 ContainerGroupProfileInner object itself.

withInitContainers

public ContainerGroupProfileInner withInitContainers(List<InitContainerDefinition> initContainers)

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

Parameters:

initContainers - the initContainers value to set.

Returns:

the ContainerGroupProfileInner object itself.

withIpAddress

public ContainerGroupProfileInner withIpAddress(IpAddress ipAddress)

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

Parameters:

ipAddress - the ipAddress value to set.

Returns:

the ContainerGroupProfileInner object itself.

withLocation

public ContainerGroupProfileInner withLocation(String location)

Set the location property: The geo-location where the resource lives.

Parameters:

location - the location value to set.

Returns:

the ContainerGroupProfileInner object itself.

withOsType

public ContainerGroupProfileInner 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 ContainerGroupProfileInner object itself.

withPriority

public ContainerGroupProfileInner withPriority(ContainerGroupPriority priority)

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

Parameters:

priority - the priority value to set.

Returns:

the ContainerGroupProfileInner object itself.

withRestartPolicy

public ContainerGroupProfileInner 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 ContainerGroupProfileInner object itself.

withSecurityContext

public ContainerGroupProfileInner withSecurityContext(SecurityContextDefinition securityContext)

Set the securityContext property: The container security properties.

Parameters:

securityContext - the securityContext value to set.

Returns:

the ContainerGroupProfileInner object itself.

withShutdownGracePeriod

public ContainerGroupProfileInner withShutdownGracePeriod(OffsetDateTime shutdownGracePeriod)

Set the shutdownGracePeriod property: Shutdown grace period for containers in a container group.

Parameters:

shutdownGracePeriod - the shutdownGracePeriod value to set.

Returns:

the ContainerGroupProfileInner object itself.

withSku

public ContainerGroupProfileInner withSku(ContainerGroupSku sku)

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

Parameters:

sku - the sku value to set.

Returns:

the ContainerGroupProfileInner object itself.

withTags

public ContainerGroupProfileInner withTags(Map<String,String> tags)

Set the tags property: Resource tags.

Parameters:

tags - the tags value to set.

Returns:

the ContainerGroupProfileInner object itself.

withTimeToLive

public ContainerGroupProfileInner withTimeToLive(OffsetDateTime timeToLive)

Set the timeToLive property: Post completion time to live for containers of a CG.

Parameters:

timeToLive - the timeToLive value to set.

Returns:

the ContainerGroupProfileInner object itself.

withUseKrypton

public ContainerGroupProfileInner withUseKrypton(Boolean useKrypton)

Set the useKrypton property: Gets or sets Krypton use property.

Parameters:

useKrypton - the useKrypton value to set.

Returns:

the ContainerGroupProfileInner object itself.

withVolumes

public ContainerGroupProfileInner withVolumes(List<Volume> 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 ContainerGroupProfileInner object itself.

withZones

public ContainerGroupProfileInner withZones(List<String> zones)

Set the zones property: The availability zones.

Parameters:

zones - the zones value to set.

Returns:

the ContainerGroupProfileInner object itself.

zones

public List<String> zones()

Get the zones property: The availability zones.

Returns:

the zones value.

Applies to