Show / Hide Table of Contents

Class V1AppArmorProfile

AppArmorProfile defines a pod or container's AppArmor settings.

Inheritance
object
V1AppArmorProfile
Implements
IEquatable<V1AppArmorProfile>
Inherited Members
object.GetType()
object.MemberwiseClone()
object.Equals(object, object)
object.ReferenceEquals(object, object)
Namespace: k8s.Models
Assembly: KubernetesClient.dll
Syntax
public record V1AppArmorProfile : IEquatable<V1AppArmorProfile>

Constructors

V1AppArmorProfile()

Declaration
public V1AppArmorProfile()

V1AppArmorProfile(V1AppArmorProfile)

Declaration
protected V1AppArmorProfile(V1AppArmorProfile original)
Parameters
Type Name Description
V1AppArmorProfile original

Properties

EqualityContract

Declaration
protected virtual Type EqualityContract { get; }
Property Value
Type Description
Type

LocalhostProfile

localhostProfile indicates a profile loaded on the node that should be used. The profile must be preconfigured on the node to work. Must match the loaded name of the profile. Must be set if and only if type is "Localhost".

Declaration
[JsonPropertyName("localhostProfile")]
public string LocalhostProfile { get; set; }
Property Value
Type Description
string

Type

type indicates which kind of AppArmor profile will be applied. Valid options are: Localhost - a profile pre-loaded on the node. RuntimeDefault - the container runtime's default profile. Unconfined - no AppArmor enforcement.

Declaration
[JsonPropertyName("type")]
public string Type { get; set; }
Property Value
Type Description
string

Methods

Equals(object?)

Declaration
public override bool Equals(object? obj)
Parameters
Type Name Description
object obj
Returns
Type Description
bool
Overrides
object.Equals(object)

Equals(V1AppArmorProfile?)

Declaration
public virtual bool Equals(V1AppArmorProfile? other)
Parameters
Type Name Description
V1AppArmorProfile other
Returns
Type Description
bool

GetHashCode()

Declaration
public override int GetHashCode()
Returns
Type Description
int
Overrides
object.GetHashCode()

PrintMembers(StringBuilder)

Declaration
protected virtual bool PrintMembers(StringBuilder builder)
Parameters
Type Name Description
StringBuilder builder
Returns
Type Description
bool

ToString()

Declaration
public override string ToString()
Returns
Type Description
string
Overrides
object.ToString()

Operators

operator ==(V1AppArmorProfile?, V1AppArmorProfile?)

Declaration
public static bool operator ==(V1AppArmorProfile? left, V1AppArmorProfile? right)
Parameters
Type Name Description
V1AppArmorProfile left
V1AppArmorProfile right
Returns
Type Description
bool

operator !=(V1AppArmorProfile?, V1AppArmorProfile?)

Declaration
public static bool operator !=(V1AppArmorProfile? left, V1AppArmorProfile? right)
Parameters
Type Name Description
V1AppArmorProfile left
V1AppArmorProfile right
Returns
Type Description
bool

Implements

IEquatable<T>
In this article
Back to top Generated by DocFX