Class: Google::Apis::NetworkmanagementV1::InstanceInfo

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

For display only. Metadata associated with a Compute Engine instance.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ InstanceInfo

Returns a new instance of InstanceInfo.



1162
1163
1164
# File 'lib/google/apis/networkmanagement_v1/classes.rb', line 1162

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

Instance Attribute Details

#display_name ⇒ String

Name of a Compute Engine instance. Corresponds to the JSON property displayName

Returns:

  • (String)


1125
1126
1127
# File 'lib/google/apis/networkmanagement_v1/classes.rb', line 1125

def display_name
  @display_name
end

#external_ip ⇒ String

External IP address of the network interface. Corresponds to the JSON property externalIp

Returns:

  • (String)


1130
1131
1132
# File 'lib/google/apis/networkmanagement_v1/classes.rb', line 1130

def external_ip
  @external_ip
end

#interface ⇒ String

Name of the network interface of a Compute Engine instance. Corresponds to the JSON property interface

Returns:

  • (String)


1135
1136
1137
# File 'lib/google/apis/networkmanagement_v1/classes.rb', line 1135

def interface
  @interface
end

#internal_ip ⇒ String

Internal IP address of the network interface. Corresponds to the JSON property internalIp

Returns:

  • (String)


1140
1141
1142
# File 'lib/google/apis/networkmanagement_v1/classes.rb', line 1140

def internal_ip
  @internal_ip
end

#network_tags ⇒ Array<String>

Network tags configured on the instance. Corresponds to the JSON property networkTags

Returns:

  • (Array<String>)


1145
1146
1147
# File 'lib/google/apis/networkmanagement_v1/classes.rb', line 1145

def network_tags
  @network_tags
end

#network_uri ⇒ String

URI of a Compute Engine network. Corresponds to the JSON property networkUri

Returns:

  • (String)


1150
1151
1152
# File 'lib/google/apis/networkmanagement_v1/classes.rb', line 1150

def network_uri
  @network_uri
end

#service_account ⇒ String

Service account authorized for the instance. Corresponds to the JSON property serviceAccount

Returns:

  • (String)


1155
1156
1157
# File 'lib/google/apis/networkmanagement_v1/classes.rb', line 1155

def 
  @service_account
end

#uri ⇒ String

URI of a Compute Engine instance. Corresponds to the JSON property uri

Returns:

  • (String)


1160
1161
1162
# File 'lib/google/apis/networkmanagement_v1/classes.rb', line 1160

def uri
  @uri
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1167
1168
1169
1170
1171
1172
1173
1174
1175
1176
# File 'lib/google/apis/networkmanagement_v1/classes.rb', line 1167

def update!(**args)
  @display_name = args[:display_name] if args.key?(:display_name)
  @external_ip = args[:external_ip] if args.key?(:external_ip)
  @interface = args[:interface] if args.key?(:interface)
  @internal_ip = args[:internal_ip] if args.key?(:internal_ip)
  @network_tags = args[:network_tags] if args.key?(:network_tags)
  @network_uri = args[:network_uri] if args.key?(:network_uri)
  @service_account = args[:service_account] if args.key?(:service_account)
  @uri = args[:uri] if args.key?(:uri)
end