Class: Google::Apis::GenomicsV2alpha1::ContainerStartedEvent

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

Overview

This event is generated when a container starts.

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ ContainerStartedEvent

Returns a new instance of ContainerStartedEvent



350
351
352
# File 'generated/google/apis/genomics_v2alpha1/classes.rb', line 350

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

Instance Attribute Details

#action_idFixnum

The numeric ID of the action that started this container. Corresponds to the JSON property actionId

Returns:

  • (Fixnum)


333
334
335
# File 'generated/google/apis/genomics_v2alpha1/classes.rb', line 333

def action_id
  @action_id
end

#ip_addressString

The public IP address that can be used to connect to the container. This field is only populated when at least one port mapping is present. If the instance was created with a private address this field will be empty even if port mappings exist. Corresponds to the JSON property ipAddress

Returns:

  • (String)


341
342
343
# File 'generated/google/apis/genomics_v2alpha1/classes.rb', line 341

def ip_address
  @ip_address
end

#port_mappingsHash<String,Fixnum>

The container to host port mappings installed for this container. This set will contain any ports exposed using the PUBLISH_EXPOSED_PORTS flag as well as any specified in the Action definition. Corresponds to the JSON property portMappings

Returns:

  • (Hash<String,Fixnum>)


348
349
350
# File 'generated/google/apis/genomics_v2alpha1/classes.rb', line 348

def port_mappings
  @port_mappings
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



355
356
357
358
359
# File 'generated/google/apis/genomics_v2alpha1/classes.rb', line 355

def update!(**args)
  @action_id = args[:action_id] if args.key?(:action_id)
  @ip_address = args[:ip_address] if args.key?(:ip_address)
  @port_mappings = args[:port_mappings] if args.key?(:port_mappings)
end