Class: Google::Apis::MigrationcenterV1::NetworkConnection

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

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ NetworkConnection

Returns a new instance of NetworkConnection.



3199
3200
3201
# File 'lib/google/apis/migrationcenter_v1/classes.rb', line 3199

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

Instance Attribute Details

#local_ip_addressString

Local IP address. Corresponds to the JSON property localIpAddress

Returns:

  • (String)


3162
3163
3164
# File 'lib/google/apis/migrationcenter_v1/classes.rb', line 3162

def local_ip_address
  @local_ip_address
end

#local_portFixnum

Local port. Corresponds to the JSON property localPort

Returns:

  • (Fixnum)


3167
3168
3169
# File 'lib/google/apis/migrationcenter_v1/classes.rb', line 3167

def local_port
  @local_port
end

#pidFixnum

Process ID. Corresponds to the JSON property pid

Returns:

  • (Fixnum)


3172
3173
3174
# File 'lib/google/apis/migrationcenter_v1/classes.rb', line 3172

def pid
  @pid
end

#process_nameString

Process or service name. Corresponds to the JSON property processName

Returns:

  • (String)


3177
3178
3179
# File 'lib/google/apis/migrationcenter_v1/classes.rb', line 3177

def process_name
  @process_name
end

#protocolString

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

Returns:

  • (String)


3182
3183
3184
# File 'lib/google/apis/migrationcenter_v1/classes.rb', line 3182

def protocol
  @protocol
end

#remote_ip_addressString

Remote IP address. Corresponds to the JSON property remoteIpAddress

Returns:

  • (String)


3187
3188
3189
# File 'lib/google/apis/migrationcenter_v1/classes.rb', line 3187

def remote_ip_address
  @remote_ip_address
end

#remote_portFixnum

Remote port. Corresponds to the JSON property remotePort

Returns:

  • (Fixnum)


3192
3193
3194
# File 'lib/google/apis/migrationcenter_v1/classes.rb', line 3192

def remote_port
  @remote_port
end

#stateString

Network connection state. Corresponds to the JSON property state

Returns:

  • (String)


3197
3198
3199
# File 'lib/google/apis/migrationcenter_v1/classes.rb', line 3197

def state
  @state
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



3204
3205
3206
3207
3208
3209
3210
3211
3212
3213
# File 'lib/google/apis/migrationcenter_v1/classes.rb', line 3204

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