Class: Google::Apis::NetworkmanagementV1beta1::InstanceInfo
- Inherits:
-
Object
- Object
- Google::Apis::NetworkmanagementV1beta1::InstanceInfo
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/networkmanagement_v1beta1/classes.rb,
lib/google/apis/networkmanagement_v1beta1/representations.rb,
lib/google/apis/networkmanagement_v1beta1/representations.rb
Overview
For display only. Metadata associated with a Compute Engine instance.
Instance Attribute Summary collapse
-
#display_name ⇒ String
Name of a Compute Engine instance.
-
#external_ip ⇒ String
External IP address of the network interface.
-
#interface ⇒ String
Name of the network interface of a Compute Engine instance.
-
#internal_ip ⇒ String
Internal IP address of the network interface.
-
#network_tags ⇒ Array<String>
Network tags configured on the instance.
-
#network_uri ⇒ String
URI of a Compute Engine network.
-
#service_account ⇒ String
Service account authorized for the instance.
-
#uri ⇒ String
URI of a Compute Engine instance.
Instance Method Summary collapse
-
#initialize(**args) ⇒ InstanceInfo
constructor
A new instance of InstanceInfo.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ InstanceInfo
Returns a new instance of InstanceInfo.
1168 1169 1170 |
# File 'lib/google/apis/networkmanagement_v1beta1/classes.rb', line 1168 def initialize(**args) update!(**args) end |
Instance Attribute Details
#display_name ⇒ String
Name of a Compute Engine instance.
Corresponds to the JSON property displayName
1131 1132 1133 |
# File 'lib/google/apis/networkmanagement_v1beta1/classes.rb', line 1131 def display_name @display_name end |
#external_ip ⇒ String
External IP address of the network interface.
Corresponds to the JSON property externalIp
1136 1137 1138 |
# File 'lib/google/apis/networkmanagement_v1beta1/classes.rb', line 1136 def external_ip @external_ip end |
#interface ⇒ String
Name of the network interface of a Compute Engine instance.
Corresponds to the JSON property interface
1141 1142 1143 |
# File 'lib/google/apis/networkmanagement_v1beta1/classes.rb', line 1141 def interface @interface end |
#internal_ip ⇒ String
Internal IP address of the network interface.
Corresponds to the JSON property internalIp
1146 1147 1148 |
# File 'lib/google/apis/networkmanagement_v1beta1/classes.rb', line 1146 def internal_ip @internal_ip end |
#network_tags ⇒ Array<String>
Network tags configured on the instance.
Corresponds to the JSON property networkTags
1151 1152 1153 |
# File 'lib/google/apis/networkmanagement_v1beta1/classes.rb', line 1151 def @network_tags end |
#network_uri ⇒ String
URI of a Compute Engine network.
Corresponds to the JSON property networkUri
1156 1157 1158 |
# File 'lib/google/apis/networkmanagement_v1beta1/classes.rb', line 1156 def network_uri @network_uri end |
#service_account ⇒ String
Service account authorized for the instance.
Corresponds to the JSON property serviceAccount
1161 1162 1163 |
# File 'lib/google/apis/networkmanagement_v1beta1/classes.rb', line 1161 def service_account @service_account end |
#uri ⇒ String
URI of a Compute Engine instance.
Corresponds to the JSON property uri
1166 1167 1168 |
# File 'lib/google/apis/networkmanagement_v1beta1/classes.rb', line 1166 def uri @uri end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1173 1174 1175 1176 1177 1178 1179 1180 1181 1182 |
# File 'lib/google/apis/networkmanagement_v1beta1/classes.rb', line 1173 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 |