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.



6651
6652
6653
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 6651

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

Instance Attribute Details

#cmdlineString

Service command line. Corresponds to the JSON property cmdline

Returns:

  • (String)


6619
6620
6621
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 6619

def cmdline
  @cmdline
end

#exe_pathString

Service binary path. Corresponds to the JSON property exePath

Returns:

  • (String)


6624
6625
6626
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 6624

def exe_path
  @exe_path
end

#nameString

Service name. Corresponds to the JSON property name

Returns:

  • (String)


6629
6630
6631
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 6629

def name
  @name
end

#pidFixnum

Service pid. Corresponds to the JSON property pid

Returns:

  • (Fixnum)


6634
6635
6636
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 6634

def pid
  @pid
end

#start_modeString

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

Returns:

  • (String)


6639
6640
6641
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 6639

def start_mode
  @start_mode
end

#stateString

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

Returns:

  • (String)


6644
6645
6646
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 6644

def state
  @state
end

#statusString

Service status. Corresponds to the JSON property status

Returns:

  • (String)


6649
6650
6651
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 6649

def status
  @status
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



6656
6657
6658
6659
6660
6661
6662
6663
6664
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 6656

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