Class: Google::Apis::SecuritycenterV1::Container

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

Container associated with the finding.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ Container

Returns a new instance of Container.



646
647
648
# File 'lib/google/apis/securitycenter_v1/classes.rb', line 646

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

Instance Attribute Details

#image_idString

Optional container image id, when provided by the container runtime. Uniquely identifies the container image launched using a container image digest. Corresponds to the JSON property imageId

Returns:

  • (String)


628
629
630
# File 'lib/google/apis/securitycenter_v1/classes.rb', line 628

def image_id
  @image_id
end

#labelsArray<Google::Apis::SecuritycenterV1::Label>

Container labels, as provided by the container runtime. Corresponds to the JSON property labels



633
634
635
# File 'lib/google/apis/securitycenter_v1/classes.rb', line 633

def labels
  @labels
end

#nameString

Container name. Corresponds to the JSON property name

Returns:

  • (String)


638
639
640
# File 'lib/google/apis/securitycenter_v1/classes.rb', line 638

def name
  @name
end

#uriString

Container image URI provided when configuring a pod/container. May identify a container image version using mutable tags. Corresponds to the JSON property uri

Returns:

  • (String)


644
645
646
# File 'lib/google/apis/securitycenter_v1/classes.rb', line 644

def uri
  @uri
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



651
652
653
654
655
656
# File 'lib/google/apis/securitycenter_v1/classes.rb', line 651

def update!(**args)
  @image_id = args[:image_id] if args.key?(:image_id)
  @labels = args[:labels] if args.key?(:labels)
  @name = args[:name] if args.key?(:name)
  @uri = args[:uri] if args.key?(:uri)
end