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.



2897
2898
2899
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 2897

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

Instance Attribute Details

#local_ip_addressString

Local IP address. Corresponds to the JSON property localIpAddress

Returns:

  • (String)


2860
2861
2862
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 2860

def local_ip_address
  @local_ip_address
end

#local_portFixnum

Local port. Corresponds to the JSON property localPort

Returns:

  • (Fixnum)


2865
2866
2867
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 2865

def local_port
  @local_port
end

#pidFixnum

Process ID. Corresponds to the JSON property pid

Returns:

  • (Fixnum)


2870
2871
2872
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 2870

def pid
  @pid
end

#process_nameString

Process or service name. Corresponds to the JSON property processName

Returns:

  • (String)


2875
2876
2877
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 2875

def process_name
  @process_name
end

#protocolString

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

Returns:

  • (String)


2880
2881
2882
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 2880

def protocol
  @protocol
end

#remote_ip_addressString

Remote IP address. Corresponds to the JSON property remoteIpAddress

Returns:

  • (String)


2885
2886
2887
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 2885

def remote_ip_address
  @remote_ip_address
end

#remote_portFixnum

Remote port. Corresponds to the JSON property remotePort

Returns:

  • (Fixnum)


2890
2891
2892
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 2890

def remote_port
  @remote_port
end

#stateString

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

Returns:

  • (String)


2895
2896
2897
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 2895

def state
  @state
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2902
2903
2904
2905
2906
2907
2908
2909
2910
2911
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 2902

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