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.



8120
8121
8122
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 8120

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

Instance Attribute Details

#cmdlineString

Service command line. Corresponds to the JSON property cmdline

Returns:

  • (String)


8083
8084
8085
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 8083

def cmdline
  @cmdline
end

#exe_pathString

Service binary path. Corresponds to the JSON property exePath

Returns:

  • (String)


8088
8089
8090
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 8088

def exe_path
  @exe_path
end

#nameString

Service name. Corresponds to the JSON property name

Returns:

  • (String)


8093
8094
8095
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 8093

def name
  @name
end

#pidFixnum

Service pid. Corresponds to the JSON property pid

Returns:

  • (Fixnum)


8098
8099
8100
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 8098

def pid
  @pid
end

#service_nameString

Service name. Corresponds to the JSON property serviceName

Returns:

  • (String)


8103
8104
8105
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 8103

def service_name
  @service_name
end

#start_modeString

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

Returns:

  • (String)


8108
8109
8110
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 8108

def start_mode
  @start_mode
end

#stateString

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

Returns:

  • (String)


8113
8114
8115
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 8113

def state
  @state
end

#statusString

Service status. Corresponds to the JSON property status

Returns:

  • (String)


8118
8119
8120
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 8118

def status
  @status
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



8125
8126
8127
8128
8129
8130
8131
8132
8133
8134
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 8125

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)
  @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)
  @status = args[:status] if args.key?(:status)
end