Class: Google::Apis::MigrationcenterV1::NetworkConnection
- Inherits:
-
Object
- Object
- Google::Apis::MigrationcenterV1::NetworkConnection
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/migrationcenter_v1/classes.rb,
lib/google/apis/migrationcenter_v1/representations.rb,
lib/google/apis/migrationcenter_v1/representations.rb
Instance Attribute Summary collapse
-
#local_ip_address ⇒ String
Local IP address.
-
#local_port ⇒ Fixnum
Local port.
-
#pid ⇒ Fixnum
Process ID.
-
#process_name ⇒ String
Process or service name.
-
#protocol ⇒ String
Connection protocol (e.g. TCP/UDP).
-
#remote_ip_address ⇒ String
Remote IP address.
-
#remote_port ⇒ Fixnum
Remote port.
-
#state ⇒ String
Network connection state.
Instance Method Summary collapse
-
#initialize(**args) ⇒ NetworkConnection
constructor
A new instance of NetworkConnection.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ NetworkConnection
Returns a new instance of NetworkConnection.
3198 3199 3200 |
# File 'lib/google/apis/migrationcenter_v1/classes.rb', line 3198 def initialize(**args) update!(**args) end |
Instance Attribute Details
#local_ip_address ⇒ String
Local IP address.
Corresponds to the JSON property localIpAddress
3161 3162 3163 |
# File 'lib/google/apis/migrationcenter_v1/classes.rb', line 3161 def local_ip_address @local_ip_address end |
#local_port ⇒ Fixnum
Local port.
Corresponds to the JSON property localPort
3166 3167 3168 |
# File 'lib/google/apis/migrationcenter_v1/classes.rb', line 3166 def local_port @local_port end |
#pid ⇒ Fixnum
Process ID.
Corresponds to the JSON property pid
3171 3172 3173 |
# File 'lib/google/apis/migrationcenter_v1/classes.rb', line 3171 def pid @pid end |
#process_name ⇒ String
Process or service name.
Corresponds to the JSON property processName
3176 3177 3178 |
# File 'lib/google/apis/migrationcenter_v1/classes.rb', line 3176 def process_name @process_name end |
#protocol ⇒ String
Connection protocol (e.g. TCP/UDP).
Corresponds to the JSON property protocol
3181 3182 3183 |
# File 'lib/google/apis/migrationcenter_v1/classes.rb', line 3181 def protocol @protocol end |
#remote_ip_address ⇒ String
Remote IP address.
Corresponds to the JSON property remoteIpAddress
3186 3187 3188 |
# File 'lib/google/apis/migrationcenter_v1/classes.rb', line 3186 def remote_ip_address @remote_ip_address end |
#remote_port ⇒ Fixnum
Remote port.
Corresponds to the JSON property remotePort
3191 3192 3193 |
# File 'lib/google/apis/migrationcenter_v1/classes.rb', line 3191 def remote_port @remote_port end |
#state ⇒ String
Network connection state.
Corresponds to the JSON property state
3196 3197 3198 |
# File 'lib/google/apis/migrationcenter_v1/classes.rb', line 3196 def state @state end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
3203 3204 3205 3206 3207 3208 3209 3210 3211 3212 |
# File 'lib/google/apis/migrationcenter_v1/classes.rb', line 3203 def update!(**args) @local_ip_address = args[:local_ip_address] if args.key?(:local_ip_address) @local_port = args[:local_port] if args.key?(:local_port) @pid = args[:pid] if args.key?(:pid) @process_name = args[:process_name] if args.key?(:process_name) @protocol = args[:protocol] if args.key?(:protocol) @remote_ip_address = args[:remote_ip_address] if args.key?(:remote_ip_address) @remote_port = args[:remote_port] if args.key?(:remote_port) @state = args[:state] if args.key?(:state) end |