Class: Google::Apis::ComputeV1::InstanceWithNamedPorts

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Google::Apis::Core::JsonObjectSupport

#to_json

Methods included from Google::Apis::Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ InstanceWithNamedPorts

Returns a new instance of InstanceWithNamedPorts.


5015
5016
5017
# File 'generated/google/apis/compute_v1/classes.rb', line 5015

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

Instance Attribute Details

#instanceString

[Output Only] The URL of the instance. Corresponds to the JSON property instance

Returns:

  • (String)

5003
5004
5005
# File 'generated/google/apis/compute_v1/classes.rb', line 5003

def instance
  @instance
end

#named_portsArray<Google::Apis::ComputeV1::NamedPort>

[Output Only] The named ports that belong to this instance group. Corresponds to the JSON property namedPorts


5008
5009
5010
# File 'generated/google/apis/compute_v1/classes.rb', line 5008

def named_ports
  @named_ports
end

#statusString

[Output Only] The status of the instance. Corresponds to the JSON property status

Returns:

  • (String)

5013
5014
5015
# File 'generated/google/apis/compute_v1/classes.rb', line 5013

def status
  @status
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object


5020
5021
5022
5023
5024
# File 'generated/google/apis/compute_v1/classes.rb', line 5020

def update!(**args)
  @instance = args[:instance] if args.key?(:instance)
  @named_ports = args[:named_ports] if args.key?(:named_ports)
  @status = args[:status] if args.key?(:status)
end