Security Command Center V2 API - Class Google::Cloud::SecurityCenter::V2::Kubernetes::Object (v0.3.0)

Reference documentation and code samples for the Security Command Center V2 API class Google::Cloud::SecurityCenter::V2::Kubernetes::Object.

Kubernetes object related to the finding, uniquely identified by GKNN. Used if the object Kind is not one of Pod, Node, NodePool, Binding, or AccessReview.

Inherits

Extended By

  • Google::Protobuf::MessageExts::ClassMethods

Includes

  • Google::Protobuf::MessageExts

Methods

#containers

def containers() -> ::Array<::Google::Cloud::SecurityCenter::V2::Container>
Returns

#containers=

def containers=(value) -> ::Array<::Google::Cloud::SecurityCenter::V2::Container>
Parameter
Returns

#group

def group() -> ::String
Returns
  • (::String) — Kubernetes object group, such as "policy.k8s.io/v1".

#group=

def group=(value) -> ::String
Parameter
  • value (::String) — Kubernetes object group, such as "policy.k8s.io/v1".
Returns
  • (::String) — Kubernetes object group, such as "policy.k8s.io/v1".

#kind

def kind() -> ::String
Returns
  • (::String) — Kubernetes object kind, such as "Namespace".

#kind=

def kind=(value) -> ::String
Parameter
  • value (::String) — Kubernetes object kind, such as "Namespace".
Returns
  • (::String) — Kubernetes object kind, such as "Namespace".

#name

def name() -> ::String
Returns
  • (::String) — Kubernetes object name. For details see https://kubernetes.io/docs/concepts/overview/working-with-objects/names/.

#name=

def name=(value) -> ::String
Parameter
  • value (::String) — Kubernetes object name. For details see https://kubernetes.io/docs/concepts/overview/working-with-objects/names/.
Returns
  • (::String) — Kubernetes object name. For details see https://kubernetes.io/docs/concepts/overview/working-with-objects/names/.

#ns

def ns() -> ::String
Returns
  • (::String) — Kubernetes object namespace. Must be a valid DNS label. Named "ns" to avoid collision with C++ namespace keyword. For details see https://kubernetes.io/docs/tasks/administer-cluster/namespaces/.

#ns=

def ns=(value) -> ::String
Parameter
  • value (::String) — Kubernetes object namespace. Must be a valid DNS label. Named "ns" to avoid collision with C++ namespace keyword. For details see https://kubernetes.io/docs/tasks/administer-cluster/namespaces/.
Returns
  • (::String) — Kubernetes object namespace. Must be a valid DNS label. Named "ns" to avoid collision with C++ namespace keyword. For details see https://kubernetes.io/docs/tasks/administer-cluster/namespaces/.