Class NamespaceProperties
java.lang.Object
com.azure.resourcemanager.containerservice.models.NamespaceProperties
- All Implemented Interfaces:
com.azure.json.JsonSerializable<NamespaceProperties>
public final class NamespaceProperties
extends Object
implements com.azure.json.JsonSerializable<NamespaceProperties>
Properties of a namespace managed by ARM.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet the adoptionPolicy property: Action if Kubernetes namespace with same name already exists.Get the annotations property: The annotations of managed namespace.Get the defaultNetworkPolicy property: The default network policy enforced upon the namespace.Get the defaultResourceQuota property: The default resource quota enforced upon the namespace.Get the deletePolicy property: Delete options of a namespace.static NamespacePropertiesfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of NamespaceProperties from the JsonReader.labels()Get the labels property: The labels of managed namespace.Get the portalFqdn property: The special FQDN used by the Azure Portal to access the Managed Cluster.Get the provisioningState property: The current provisioning state of the namespace.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.withAdoptionPolicy(AdoptionPolicy adoptionPolicy) Set the adoptionPolicy property: Action if Kubernetes namespace with same name already exists.withAnnotations(Map<String, String> annotations) Set the annotations property: The annotations of managed namespace.withDefaultNetworkPolicy(NetworkPolicies defaultNetworkPolicy) Set the defaultNetworkPolicy property: The default network policy enforced upon the namespace.withDefaultResourceQuota(ResourceQuota defaultResourceQuota) Set the defaultResourceQuota property: The default resource quota enforced upon the namespace.withDeletePolicy(DeletePolicy deletePolicy) Set the deletePolicy property: Delete options of a namespace.withLabels(Map<String, String> labels) Set the labels property: The labels of managed namespace.Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Constructor Details
-
NamespaceProperties
public NamespaceProperties()Creates an instance of NamespaceProperties class.
-
-
Method Details
-
provisioningState
Get the provisioningState property: The current provisioning state of the namespace.- Returns:
- the provisioningState value.
-
labels
-
withLabels
Set the labels property: The labels of managed namespace.- Parameters:
labels- the labels value to set.- Returns:
- the NamespaceProperties object itself.
-
annotations
-
withAnnotations
Set the annotations property: The annotations of managed namespace.- Parameters:
annotations- the annotations value to set.- Returns:
- the NamespaceProperties object itself.
-
portalFqdn
Get the portalFqdn property: The special FQDN used by the Azure Portal to access the Managed Cluster. This FQDN is for use only by the Azure Portal and should not be used by other clients. The Azure Portal requires certain Cross-Origin Resource Sharing (CORS) headers to be sent in some responses, which Kubernetes APIServer doesn't handle by default. This special FQDN supports CORS, allowing the Azure Portal to function properly.- Returns:
- the portalFqdn value.
-
defaultResourceQuota
Get the defaultResourceQuota property: The default resource quota enforced upon the namespace. Customers can have other Kubernetes resource quota objects under the namespace. Resource quotas are additive; if multiple resource quotas are applied to a given namespace, then the effective limit will be one such that all quotas on the namespace can be satisfied.- Returns:
- the defaultResourceQuota value.
-
withDefaultResourceQuota
Set the defaultResourceQuota property: The default resource quota enforced upon the namespace. Customers can have other Kubernetes resource quota objects under the namespace. Resource quotas are additive; if multiple resource quotas are applied to a given namespace, then the effective limit will be one such that all quotas on the namespace can be satisfied.- Parameters:
defaultResourceQuota- the defaultResourceQuota value to set.- Returns:
- the NamespaceProperties object itself.
-
defaultNetworkPolicy
Get the defaultNetworkPolicy property: The default network policy enforced upon the namespace. Customers can have other Kubernetes network policy objects under the namespace. Network policies are additive; if a policy or policies apply to a given pod for a given direction, the connections allowed in that direction for the pod is the union of what all applicable policies allow.- Returns:
- the defaultNetworkPolicy value.
-
withDefaultNetworkPolicy
Set the defaultNetworkPolicy property: The default network policy enforced upon the namespace. Customers can have other Kubernetes network policy objects under the namespace. Network policies are additive; if a policy or policies apply to a given pod for a given direction, the connections allowed in that direction for the pod is the union of what all applicable policies allow.- Parameters:
defaultNetworkPolicy- the defaultNetworkPolicy value to set.- Returns:
- the NamespaceProperties object itself.
-
adoptionPolicy
Get the adoptionPolicy property: Action if Kubernetes namespace with same name already exists.- Returns:
- the adoptionPolicy value.
-
withAdoptionPolicy
Set the adoptionPolicy property: Action if Kubernetes namespace with same name already exists.- Parameters:
adoptionPolicy- the adoptionPolicy value to set.- Returns:
- the NamespaceProperties object itself.
-
deletePolicy
Get the deletePolicy property: Delete options of a namespace.- Returns:
- the deletePolicy value.
-
withDeletePolicy
Set the deletePolicy property: Delete options of a namespace.- Parameters:
deletePolicy- the deletePolicy value to set.- Returns:
- the NamespaceProperties object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<NamespaceProperties>- Throws:
IOException
-
fromJson
Reads an instance of NamespaceProperties from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of NamespaceProperties if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.
- Throws:
IOException- If an error occurs while reading the NamespaceProperties.
-