Class: Google::Apis::SecuritycenterV1beta2::Pod
- Inherits:
-
Object
- Object
- Google::Apis::SecuritycenterV1beta2::Pod
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/securitycenter_v1beta2/classes.rb,
lib/google/apis/securitycenter_v1beta2/representations.rb,
lib/google/apis/securitycenter_v1beta2/representations.rb
Overview
Kubernetes Pod.
Instance Attribute Summary collapse
-
#containers ⇒ Array<Google::Apis::SecuritycenterV1beta2::Container>
Pod containers associated with this finding, if any.
-
#labels ⇒ Array<Google::Apis::SecuritycenterV1beta2::Label>
Pod labels.
-
#name ⇒ String
Kubernetes Pod name.
-
#ns ⇒ String
Kubernetes Pod namespace.
Instance Method Summary collapse
-
#initialize(**args) ⇒ Pod
constructor
A new instance of Pod.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ Pod
Returns a new instance of Pod.
2390 2391 2392 |
# File 'lib/google/apis/securitycenter_v1beta2/classes.rb', line 2390 def initialize(**args) update!(**args) end |
Instance Attribute Details
#containers ⇒ Array<Google::Apis::SecuritycenterV1beta2::Container>
Pod containers associated with this finding, if any.
Corresponds to the JSON property containers
2373 2374 2375 |
# File 'lib/google/apis/securitycenter_v1beta2/classes.rb', line 2373 def containers @containers end |
#labels ⇒ Array<Google::Apis::SecuritycenterV1beta2::Label>
Pod labels. For Kubernetes containers, these are applied to the container.
Corresponds to the JSON property labels
2378 2379 2380 |
# File 'lib/google/apis/securitycenter_v1beta2/classes.rb', line 2378 def labels @labels end |
#name ⇒ String
Kubernetes Pod name.
Corresponds to the JSON property name
2383 2384 2385 |
# File 'lib/google/apis/securitycenter_v1beta2/classes.rb', line 2383 def name @name end |
#ns ⇒ String
Kubernetes Pod namespace.
Corresponds to the JSON property ns
2388 2389 2390 |
# File 'lib/google/apis/securitycenter_v1beta2/classes.rb', line 2388 def ns @ns end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
2395 2396 2397 2398 2399 2400 |
# File 'lib/google/apis/securitycenter_v1beta2/classes.rb', line 2395 def update!(**args) @containers = args[:containers] if args.key?(:containers) @labels = args[:labels] if args.key?(:labels) @name = args[:name] if args.key?(:name) @ns = args[:ns] if args.key?(:ns) end |