Class: Google::Apis::NetworkmanagementV1::Host

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

Overview

Message describing information about the host.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ Host

Returns a new instance of Host.



1625
1626
1627
# File 'lib/google/apis/networkmanagement_v1/classes.rb', line 1625

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

Instance Attribute Details

#cloud_instance_idString

Output only. The cloud instance id of the host. Corresponds to the JSON property cloudInstanceId

Returns:

  • (String)


1593
1594
1595
# File 'lib/google/apis/networkmanagement_v1/classes.rb', line 1593

def cloud_instance_id
  @cloud_instance_id
end

#cloud_project_idString

Output only. The cloud project id of the host. Corresponds to the JSON property cloudProjectId

Returns:

  • (String)


1598
1599
1600
# File 'lib/google/apis/networkmanagement_v1/classes.rb', line 1598

def cloud_project_id
  @cloud_project_id
end

#cloud_providerString

Output only. The cloud provider of the host. Corresponds to the JSON property cloudProvider

Returns:

  • (String)


1603
1604
1605
# File 'lib/google/apis/networkmanagement_v1/classes.rb', line 1603

def cloud_provider
  @cloud_provider
end

#cloud_regionString

Output only. The cloud region of the host. Corresponds to the JSON property cloudRegion

Returns:

  • (String)


1608
1609
1610
# File 'lib/google/apis/networkmanagement_v1/classes.rb', line 1608

def cloud_region
  @cloud_region
end

#cloud_virtual_network_idsArray<String>

Output only. The ids of cloud virtual networks of the host. Corresponds to the JSON property cloudVirtualNetworkIds

Returns:

  • (Array<String>)


1613
1614
1615
# File 'lib/google/apis/networkmanagement_v1/classes.rb', line 1613

def cloud_virtual_network_ids
  @cloud_virtual_network_ids
end

#cloud_zoneString

Output only. The cloud zone of the host. Corresponds to the JSON property cloudZone

Returns:

  • (String)


1618
1619
1620
# File 'lib/google/apis/networkmanagement_v1/classes.rb', line 1618

def cloud_zone
  @cloud_zone
end

#osString

Output only. The operating system of the host. Corresponds to the JSON property os

Returns:

  • (String)


1623
1624
1625
# File 'lib/google/apis/networkmanagement_v1/classes.rb', line 1623

def os
  @os
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1630
1631
1632
1633
1634
1635
1636
1637
1638
# File 'lib/google/apis/networkmanagement_v1/classes.rb', line 1630

def update!(**args)
  @cloud_instance_id = args[:cloud_instance_id] if args.key?(:cloud_instance_id)
  @cloud_project_id = args[:cloud_project_id] if args.key?(:cloud_project_id)
  @cloud_provider = args[:cloud_provider] if args.key?(:cloud_provider)
  @cloud_region = args[:cloud_region] if args.key?(:cloud_region)
  @cloud_virtual_network_ids = args[:cloud_virtual_network_ids] if args.key?(:cloud_virtual_network_ids)
  @cloud_zone = args[:cloud_zone] if args.key?(:cloud_zone)
  @os = args[:os] if args.key?(:os)
end