Class: Google::Apis::ComposerV1beta1::ExitInfo

Inherits:
Object
  • Object
show all
Includes:
Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
Defined in:
lib/google/apis/composer_v1beta1/classes.rb,
lib/google/apis/composer_v1beta1/representations.rb,
lib/google/apis/composer_v1beta1/representations.rb

Overview

Information about how a command ended.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ ExitInfo

Returns a new instance of ExitInfo.



799
800
801
# File 'lib/google/apis/composer_v1beta1/classes.rb', line 799

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

Instance Attribute Details

#errorString

Error message. Empty if there was no error. Corresponds to the JSON property error

Returns:

  • (String)


792
793
794
# File 'lib/google/apis/composer_v1beta1/classes.rb', line 792

def error
  @error
end

#exit_codeFixnum

The exit code from the command execution. Corresponds to the JSON property exitCode

Returns:

  • (Fixnum)


797
798
799
# File 'lib/google/apis/composer_v1beta1/classes.rb', line 797

def exit_code
  @exit_code
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



804
805
806
807
# File 'lib/google/apis/composer_v1beta1/classes.rb', line 804

def update!(**args)
  @error = args[:error] if args.key?(:error)
  @exit_code = args[:exit_code] if args.key?(:exit_code)
end