Class: Google::Apis::GenomicsV1alpha2::ContainerStartedEvent

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

Overview

An event generated when a container starts.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ ContainerStartedEvent

Returns a new instance of ContainerStartedEvent.



121
122
123
# File 'lib/google/apis/genomics_v1alpha2/classes.rb', line 121

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)


104
105
106
# File 'lib/google/apis/genomics_v1alpha2/classes.rb', line 104

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)


112
113
114
# File 'lib/google/apis/genomics_v1alpha2/classes.rb', line 112

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>)


119
120
121
# File 'lib/google/apis/genomics_v1alpha2/classes.rb', line 119

def port_mappings
  @port_mappings
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



126
127
128
129
130
# File 'lib/google/apis/genomics_v1alpha2/classes.rb', line 126

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