Class: Google::Apis::OsconfigV1beta::ExecStepConfig
- Inherits:
-
Object
- Object
- Google::Apis::OsconfigV1beta::ExecStepConfig
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- generated/google/apis/osconfig_v1beta/classes.rb,
generated/google/apis/osconfig_v1beta/representations.rb,
generated/google/apis/osconfig_v1beta/representations.rb
Overview
Common configurations for an ExecStep.
Instance Attribute Summary collapse
-
#allowed_success_codes ⇒ Array<Fixnum>
Defaults to [0].
-
#gcs_object ⇒ Google::Apis::OsconfigV1beta::GcsObject
Google Cloud Storage object representation.
-
#interpreter ⇒ String
The script interpreter to use to run the script.
-
#local_path ⇒ String
An absolute path to the executable on the VM.
Instance Method Summary collapse
-
#initialize(**args) ⇒ ExecStepConfig
constructor
A new instance of ExecStepConfig.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ ExecStepConfig
Returns a new instance of ExecStepConfig.
451 452 453 |
# File 'generated/google/apis/osconfig_v1beta/classes.rb', line 451 def initialize(**args) update!(**args) end |
Instance Attribute Details
#allowed_success_codes ⇒ Array<Fixnum>
Defaults to [0]. A list of possible return values that the
execution can return to indicate a success.
Corresponds to the JSON property allowedSuccessCodes
431 432 433 |
# File 'generated/google/apis/osconfig_v1beta/classes.rb', line 431 def allowed_success_codes @allowed_success_codes end |
#gcs_object ⇒ Google::Apis::OsconfigV1beta::GcsObject
Google Cloud Storage object representation.
Corresponds to the JSON property gcsObject
436 437 438 |
# File 'generated/google/apis/osconfig_v1beta/classes.rb', line 436 def gcs_object @gcs_object end |
#interpreter ⇒ String
The script interpreter to use to run the script. If no interpreter is
specified the script will be executed directly, which will likely
only succeed for scripts with shebang lines.
Corresponds to the JSON property interpreter
444 445 446 |
# File 'generated/google/apis/osconfig_v1beta/classes.rb', line 444 def interpreter @interpreter end |
#local_path ⇒ String
An absolute path to the executable on the VM.
Corresponds to the JSON property localPath
449 450 451 |
# File 'generated/google/apis/osconfig_v1beta/classes.rb', line 449 def local_path @local_path end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
456 457 458 459 460 461 |
# File 'generated/google/apis/osconfig_v1beta/classes.rb', line 456 def update!(**args) @allowed_success_codes = args[:allowed_success_codes] if args.key?(:allowed_success_codes) @gcs_object = args[:gcs_object] if args.key?(:gcs_object) @interpreter = args[:interpreter] if args.key?(:interpreter) @local_path = args[:local_path] if args.key?(:local_path) end |