Class: Google::Apis::OsconfigV1beta::SoftwareRecipeStepExecFile
- Inherits:
-
Object
- Object
- Google::Apis::OsconfigV1beta::SoftwareRecipeStepExecFile
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/osconfig_v1beta/classes.rb,
lib/google/apis/osconfig_v1beta/representations.rb,
lib/google/apis/osconfig_v1beta/representations.rb
Overview
Executes an artifact or local file.
Instance Attribute Summary collapse
-
#allowed_exit_codes ⇒ Array<Fixnum>
Defaults to [0].
-
#args ⇒ Array<String>
Arguments to be passed to the provided executable.
-
#artifact_id ⇒ String
The id of the relevant artifact in the recipe.
-
#local_path ⇒ String
The absolute path of the file on the local filesystem.
Instance Method Summary collapse
-
#initialize(**args) ⇒ SoftwareRecipeStepExecFile
constructor
A new instance of SoftwareRecipeStepExecFile.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ SoftwareRecipeStepExecFile
Returns a new instance of SoftwareRecipeStepExecFile.
2064 2065 2066 |
# File 'lib/google/apis/osconfig_v1beta/classes.rb', line 2064 def initialize(**args) update!(**args) end |
Instance Attribute Details
#allowed_exit_codes ⇒ Array<Fixnum>
Defaults to [0]. A list of possible return values that the program can return
to indicate a success.
Corresponds to the JSON property allowedExitCodes
2047 2048 2049 |
# File 'lib/google/apis/osconfig_v1beta/classes.rb', line 2047 def allowed_exit_codes @allowed_exit_codes end |
#args ⇒ Array<String>
Arguments to be passed to the provided executable.
Corresponds to the JSON property args
2052 2053 2054 |
# File 'lib/google/apis/osconfig_v1beta/classes.rb', line 2052 def args @args end |
#artifact_id ⇒ String
The id of the relevant artifact in the recipe.
Corresponds to the JSON property artifactId
2057 2058 2059 |
# File 'lib/google/apis/osconfig_v1beta/classes.rb', line 2057 def artifact_id @artifact_id end |
#local_path ⇒ String
The absolute path of the file on the local filesystem.
Corresponds to the JSON property localPath
2062 2063 2064 |
# File 'lib/google/apis/osconfig_v1beta/classes.rb', line 2062 def local_path @local_path end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
2069 2070 2071 2072 2073 2074 |
# File 'lib/google/apis/osconfig_v1beta/classes.rb', line 2069 def update!(**args) @allowed_exit_codes = args[:allowed_exit_codes] if args.key?(:allowed_exit_codes) @args = args[:args] if args.key?(:args) @artifact_id = args[:artifact_id] if args.key?(:artifact_id) @local_path = args[:local_path] if args.key?(:local_path) end |