Class: Google::Apis::MigrationcenterV1alpha1::NetworkConnection

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ NetworkConnection

Returns a new instance of NetworkConnection.



6103
6104
6105
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 6103

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

Instance Attribute Details

#local_ip_addressString

Local IP address. Corresponds to the JSON property localIpAddress

Returns:

  • (String)


6066
6067
6068
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 6066

def local_ip_address
  @local_ip_address
end

#local_portFixnum

Local port. Corresponds to the JSON property localPort

Returns:

  • (Fixnum)


6071
6072
6073
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 6071

def local_port
  @local_port
end

#pidFixnum

Process ID. Corresponds to the JSON property pid

Returns:

  • (Fixnum)


6076
6077
6078
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 6076

def pid
  @pid
end

#process_nameString

Process or service name. Corresponds to the JSON property processName

Returns:

  • (String)


6081
6082
6083
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 6081

def process_name
  @process_name
end

#protocolString

Connection protocol (e.g. TCP/UDP). Corresponds to the JSON property protocol

Returns:

  • (String)


6086
6087
6088
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 6086

def protocol
  @protocol
end

#remote_ip_addressString

Remote IP address. Corresponds to the JSON property remoteIpAddress

Returns:

  • (String)


6091
6092
6093
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 6091

def remote_ip_address
  @remote_ip_address
end

#remote_portFixnum

Remote port. Corresponds to the JSON property remotePort

Returns:

  • (Fixnum)


6096
6097
6098
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 6096

def remote_port
  @remote_port
end

#stateString

Connection state (e.g. CONNECTED). Corresponds to the JSON property state

Returns:

  • (String)


6101
6102
6103
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 6101

def state
  @state
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



6108
6109
6110
6111
6112
6113
6114
6115
6116
6117
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 6108

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