Class: Google::Apis::SecuritycenterV1::GoogleCloudSecuritycenterV2Kubernetes

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/securitycenter_v1/classes.rb,
lib/google/apis/securitycenter_v1/representations.rb,
lib/google/apis/securitycenter_v1/representations.rb

Overview

Kubernetes-related attributes.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudSecuritycenterV2Kubernetes

Returns a new instance of GoogleCloudSecuritycenterV2Kubernetes.



6236
6237
6238
# File 'lib/google/apis/securitycenter_v1/classes.rb', line 6236

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#access_reviewsArray<Google::Apis::SecuritycenterV1::GoogleCloudSecuritycenterV2AccessReview>

Provides information on any Kubernetes access reviews (privilege checks) relevant to the finding. Corresponds to the JSON property accessReviews



6195
6196
6197
# File 'lib/google/apis/securitycenter_v1/classes.rb', line 6195

def access_reviews
  @access_reviews
end

#bindingsArray<Google::Apis::SecuritycenterV1::GoogleCloudSecuritycenterV2Binding>

Provides Kubernetes role binding information for findings that involve RoleBindings or ClusterRoleBindings. Corresponds to the JSON property bindings



6202
6203
6204
# File 'lib/google/apis/securitycenter_v1/classes.rb', line 6202

def bindings
  @bindings
end

#node_poolsArray<Google::Apis::SecuritycenterV1::GoogleCloudSecuritycenterV2NodePool>

GKE node pools associated with the finding. This field contains node pool information for each node, when it is available. Corresponds to the JSON property nodePools



6209
6210
6211
# File 'lib/google/apis/securitycenter_v1/classes.rb', line 6209

def node_pools
  @node_pools
end

#nodesArray<Google::Apis::SecuritycenterV1::GoogleCloudSecuritycenterV2Node>

Provides Kubernetes node information. Corresponds to the JSON property nodes



6215
6216
6217
# File 'lib/google/apis/securitycenter_v1/classes.rb', line 6215

def nodes
  @nodes
end

#objectsArray<Google::Apis::SecuritycenterV1::GoogleCloudSecuritycenterV2Object>

Kubernetes objects related to the finding. Corresponds to the JSON property objects



6220
6221
6222
# File 'lib/google/apis/securitycenter_v1/classes.rb', line 6220

def objects
  @objects
end

#podsArray<Google::Apis::SecuritycenterV1::GoogleCloudSecuritycenterV2Pod>

Kubernetes Pods associated with the finding. This field contains Pod records for each container that is owned by a Pod. Corresponds to the JSON property pods



6227
6228
6229
# File 'lib/google/apis/securitycenter_v1/classes.rb', line 6227

def pods
  @pods
end

#rolesArray<Google::Apis::SecuritycenterV1::GoogleCloudSecuritycenterV2Role>

Provides Kubernetes role information for findings that involve Roles or ClusterRoles. Corresponds to the JSON property roles



6234
6235
6236
# File 'lib/google/apis/securitycenter_v1/classes.rb', line 6234

def roles
  @roles
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



6241
6242
6243
6244
6245
6246
6247
6248
6249
# File 'lib/google/apis/securitycenter_v1/classes.rb', line 6241

def update!(**args)
  @access_reviews = args[:access_reviews] if args.key?(:access_reviews)
  @bindings = args[:bindings] if args.key?(:bindings)
  @node_pools = args[:node_pools] if args.key?(:node_pools)
  @nodes = args[:nodes] if args.key?(:nodes)
  @objects = args[:objects] if args.key?(:objects)
  @pods = args[:pods] if args.key?(:pods)
  @roles = args[:roles] if args.key?(:roles)
end