Class: Google::Apis::MigrationcenterV1::RunningService

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

Overview

Guest OS running service details.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ RunningService

Returns a new instance of RunningService.



5979
5980
5981
# File 'lib/google/apis/migrationcenter_v1/classes.rb', line 5979

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

Instance Attribute Details

#cmdlineString

Service command line. Corresponds to the JSON property cmdline

Returns:

  • (String)


5952
5953
5954
# File 'lib/google/apis/migrationcenter_v1/classes.rb', line 5952

def cmdline
  @cmdline
end

#exe_pathString

Service binary path. Corresponds to the JSON property exePath

Returns:

  • (String)


5957
5958
5959
# File 'lib/google/apis/migrationcenter_v1/classes.rb', line 5957

def exe_path
  @exe_path
end

#pidFixnum

Service pid. Corresponds to the JSON property pid

Returns:

  • (Fixnum)


5962
5963
5964
# File 'lib/google/apis/migrationcenter_v1/classes.rb', line 5962

def pid
  @pid
end

#service_nameString

Service name. Corresponds to the JSON property serviceName

Returns:

  • (String)


5967
5968
5969
# File 'lib/google/apis/migrationcenter_v1/classes.rb', line 5967

def service_name
  @service_name
end

#start_modeString

Service start mode (OS-agnostic). Corresponds to the JSON property startMode

Returns:

  • (String)


5972
5973
5974
# File 'lib/google/apis/migrationcenter_v1/classes.rb', line 5972

def start_mode
  @start_mode
end

#stateString

Service state (OS-agnostic). Corresponds to the JSON property state

Returns:

  • (String)


5977
5978
5979
# File 'lib/google/apis/migrationcenter_v1/classes.rb', line 5977

def state
  @state
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



5984
5985
5986
5987
5988
5989
5990
5991
# File 'lib/google/apis/migrationcenter_v1/classes.rb', line 5984

def update!(**args)
  @cmdline = args[:cmdline] if args.key?(:cmdline)
  @exe_path = args[:exe_path] if args.key?(:exe_path)
  @pid = args[:pid] if args.key?(:pid)
  @service_name = args[:service_name] if args.key?(:service_name)
  @start_mode = args[:start_mode] if args.key?(:start_mode)
  @state = args[:state] if args.key?(:state)
end