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.



4341
4342
4343
# File 'lib/google/apis/migrationcenter_v1/classes.rb', line 4341

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

Instance Attribute Details

#cmdlineString

Service command line. Corresponds to the JSON property cmdline

Returns:

  • (String)


4314
4315
4316
# File 'lib/google/apis/migrationcenter_v1/classes.rb', line 4314

def cmdline
  @cmdline
end

#exe_pathString

Service binary path. Corresponds to the JSON property exePath

Returns:

  • (String)


4319
4320
4321
# File 'lib/google/apis/migrationcenter_v1/classes.rb', line 4319

def exe_path
  @exe_path
end

#pidFixnum

Service pid. Corresponds to the JSON property pid

Returns:

  • (Fixnum)


4324
4325
4326
# File 'lib/google/apis/migrationcenter_v1/classes.rb', line 4324

def pid
  @pid
end

#service_nameString

Service name. Corresponds to the JSON property serviceName

Returns:

  • (String)


4329
4330
4331
# File 'lib/google/apis/migrationcenter_v1/classes.rb', line 4329

def service_name
  @service_name
end

#start_modeString

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

Returns:

  • (String)


4334
4335
4336
# File 'lib/google/apis/migrationcenter_v1/classes.rb', line 4334

def start_mode
  @start_mode
end

#stateString

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

Returns:

  • (String)


4339
4340
4341
# File 'lib/google/apis/migrationcenter_v1/classes.rb', line 4339

def state
  @state
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



4346
4347
4348
4349
4350
4351
4352
4353
# File 'lib/google/apis/migrationcenter_v1/classes.rb', line 4346

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