Role Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Defines a Kubernetes Role resource within the "rbac.authorization.k8s.io/v1" API group.
[YamlDotNet.Serialization.YamlSerializable]
public sealed class Role : Aspire.Hosting.Kubernetes.Resources.BaseKubernetesResource
[<YamlDotNet.Serialization.YamlSerializable>]
type Role = class
inherit BaseKubernetesResource
Public NotInheritable Class Role
Inherits BaseKubernetesResource
- Inheritance
- Attributes
-
YamlDotNet.Serialization.YamlSerializableAttribute
Remarks
A Role is used to grant access to resources within a specific namespace in Kubernetes. It is composed of a collection of policy rules that determine the permitted actions (e.g., get, list, create) on specified resources within the namespace. This class extends the BaseKubernetesResource for consistent handling of Kubernetes resources.
Constructors
Role() |
Defines a Kubernetes Role resource within the "rbac.authorization.k8s.io/v1" API group. |
Properties
ApiVersion |
Gets or sets the API version for the Kubernetes resource. (Inherited from BaseKubernetesObject) |
Kind |
Gets or sets the kind of the Kubernetes resource. (Inherited from BaseKubernetesObject) |
Metadata |
Gets or sets the metadata for the Kubernetes resource. (Inherited from BaseKubernetesResource) |
Rules |
Represents the list of policy rules associated with a Kubernetes Role resource. |