Class: Google::Apis::MigrationcenterV1alpha1::NetworkConnection
- Inherits:
-
Object
- Object
- Google::Apis::MigrationcenterV1alpha1::NetworkConnection
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/migrationcenter_v1alpha1/classes.rb,
lib/google/apis/migrationcenter_v1alpha1/representations.rb,
lib/google/apis/migrationcenter_v1alpha1/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
Connection state (e.g. CONNECTED).
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.
4518 4519 4520 |
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 4518 def initialize(**args) update!(**args) end |
Instance Attribute Details
#local_ip_address ⇒ String
Local IP address.
Corresponds to the JSON property localIpAddress
4481 4482 4483 |
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 4481 def local_ip_address @local_ip_address end |
#local_port ⇒ Fixnum
Local port.
Corresponds to the JSON property localPort
4486 4487 4488 |
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 4486 def local_port @local_port end |
#pid ⇒ Fixnum
Process ID.
Corresponds to the JSON property pid
4491 4492 4493 |
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 4491 def pid @pid end |
#process_name ⇒ String
Process or service name.
Corresponds to the JSON property processName
4496 4497 4498 |
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 4496 def process_name @process_name end |
#protocol ⇒ String
Connection protocol (e.g. TCP/UDP).
Corresponds to the JSON property protocol
4501 4502 4503 |
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 4501 def protocol @protocol end |
#remote_ip_address ⇒ String
Remote IP address.
Corresponds to the JSON property remoteIpAddress
4506 4507 4508 |
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 4506 def remote_ip_address @remote_ip_address end |
#remote_port ⇒ Fixnum
Remote port.
Corresponds to the JSON property remotePort
4511 4512 4513 |
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 4511 def remote_port @remote_port end |
#state ⇒ String
Connection state (e.g. CONNECTED).
Corresponds to the JSON property state
4516 4517 4518 |
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 4516 def state @state end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
4523 4524 4525 4526 4527 4528 4529 4530 4531 4532 |
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 4523 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 |