Class: Google::Apis::MigrationcenterV1alpha1::RunningService

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

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.



6335
6336
6337
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 6335

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

Instance Attribute Details

#cmdlineString

Service command line. Corresponds to the JSON property cmdline

Returns:

  • (String)


6303
6304
6305
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 6303

def cmdline
  @cmdline
end

#exe_pathString

Service binary path. Corresponds to the JSON property exePath

Returns:

  • (String)


6308
6309
6310
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 6308

def exe_path
  @exe_path
end

#nameString

Service name. Corresponds to the JSON property name

Returns:

  • (String)


6313
6314
6315
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 6313

def name
  @name
end

#pidFixnum

Service pid. Corresponds to the JSON property pid

Returns:

  • (Fixnum)


6318
6319
6320
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 6318

def pid
  @pid
end

#start_modeString

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

Returns:

  • (String)


6323
6324
6325
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 6323

def start_mode
  @start_mode
end

#stateString

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

Returns:

  • (String)


6328
6329
6330
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 6328

def state
  @state
end

#statusString

Service status. Corresponds to the JSON property status

Returns:

  • (String)


6333
6334
6335
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 6333

def status
  @status
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



6340
6341
6342
6343
6344
6345
6346
6347
6348
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 6340

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