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.



4576
4577
4578
# File 'lib/google/apis/migrationcenter_v1/classes.rb', line 4576

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

Instance Attribute Details

#cmdlineString

Service command line. Corresponds to the JSON property cmdline

Returns:

  • (String)


4549
4550
4551
# File 'lib/google/apis/migrationcenter_v1/classes.rb', line 4549

def cmdline
  @cmdline
end

#exe_pathString

Service binary path. Corresponds to the JSON property exePath

Returns:

  • (String)


4554
4555
4556
# File 'lib/google/apis/migrationcenter_v1/classes.rb', line 4554

def exe_path
  @exe_path
end

#pidFixnum

Service pid. Corresponds to the JSON property pid

Returns:

  • (Fixnum)


4559
4560
4561
# File 'lib/google/apis/migrationcenter_v1/classes.rb', line 4559

def pid
  @pid
end

#service_nameString

Service name. Corresponds to the JSON property serviceName

Returns:

  • (String)


4564
4565
4566
# File 'lib/google/apis/migrationcenter_v1/classes.rb', line 4564

def service_name
  @service_name
end

#start_modeString

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

Returns:

  • (String)


4569
4570
4571
# File 'lib/google/apis/migrationcenter_v1/classes.rb', line 4569

def start_mode
  @start_mode
end

#stateString

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

Returns:

  • (String)


4574
4575
4576
# File 'lib/google/apis/migrationcenter_v1/classes.rb', line 4574

def state
  @state
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



4581
4582
4583
4584
4585
4586
4587
4588
# File 'lib/google/apis/migrationcenter_v1/classes.rb', line 4581

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