Class: Google::Apis::MigrationcenterV1::RunningService
- Inherits:
-
Object
- Object
- Google::Apis::MigrationcenterV1::RunningService
- 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
-
#cmdline ⇒ String
Service command line.
-
#exe_path ⇒ String
Service binary path.
-
#pid ⇒ Fixnum
Service pid.
-
#service_name ⇒ String
Service name.
-
#start_mode ⇒ String
Service start mode (OS-agnostic).
-
#state ⇒ String
Service state (OS-agnostic).
Instance Method Summary collapse
-
#initialize(**args) ⇒ RunningService
constructor
A new instance of RunningService.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ RunningService
Returns a new instance of RunningService.
4495 4496 4497 |
# File 'lib/google/apis/migrationcenter_v1/classes.rb', line 4495 def initialize(**args) update!(**args) end |
Instance Attribute Details
#cmdline ⇒ String
Service command line.
Corresponds to the JSON property cmdline
4468 4469 4470 |
# File 'lib/google/apis/migrationcenter_v1/classes.rb', line 4468 def cmdline @cmdline end |
#exe_path ⇒ String
Service binary path.
Corresponds to the JSON property exePath
4473 4474 4475 |
# File 'lib/google/apis/migrationcenter_v1/classes.rb', line 4473 def exe_path @exe_path end |
#pid ⇒ Fixnum
Service pid.
Corresponds to the JSON property pid
4478 4479 4480 |
# File 'lib/google/apis/migrationcenter_v1/classes.rb', line 4478 def pid @pid end |
#service_name ⇒ String
Service name.
Corresponds to the JSON property serviceName
4483 4484 4485 |
# File 'lib/google/apis/migrationcenter_v1/classes.rb', line 4483 def service_name @service_name end |
#start_mode ⇒ String
Service start mode (OS-agnostic).
Corresponds to the JSON property startMode
4488 4489 4490 |
# File 'lib/google/apis/migrationcenter_v1/classes.rb', line 4488 def start_mode @start_mode end |
#state ⇒ String
Service state (OS-agnostic).
Corresponds to the JSON property state
4493 4494 4495 |
# File 'lib/google/apis/migrationcenter_v1/classes.rb', line 4493 def state @state end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
4500 4501 4502 4503 4504 4505 4506 4507 |
# File 'lib/google/apis/migrationcenter_v1/classes.rb', line 4500 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 |