Note: The following fields are mutually exclusive: gcs_object, local_path. If a field in that set is populated, all other fields in the set will automatically be cleared.
Note: The following fields are mutually exclusive: gcs_object, local_path. If a field in that set is populated, all other fields in the set will automatically be cleared.
Note: The following fields are mutually exclusive: gcs_object, local_path. If a field in that set is populated, all other fields in the set will automatically be cleared.
(::String) — An absolute path to the executable on the VM.
Note: The following fields are mutually exclusive: local_path, gcs_object. If a field in that set is populated, all other fields in the set will automatically be cleared.
#local_path=
deflocal_path=(value)->::String
Parameter
value (::String) — An absolute path to the executable on the VM.
Note: The following fields are mutually exclusive: local_path, gcs_object. If a field in that set is populated, all other fields in the set will automatically be cleared.
Returns
(::String) — An absolute path to the executable on the VM.
Note: The following fields are mutually exclusive: local_path, gcs_object. If a field in that set is populated, all other fields in the set will automatically be cleared.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-09-09 UTC."],[],[],null,["# Cloud OS Config V1 API - Class Google::Cloud::OsConfig::V1::ExecStepConfig (v1.4.0)\n\nVersion latestkeyboard_arrow_down\n\n- [1.4.0 (latest)](/ruby/docs/reference/google-cloud-os_config-v1/latest/Google-Cloud-OsConfig-V1-ExecStepConfig)\n- [1.3.0](/ruby/docs/reference/google-cloud-os_config-v1/1.3.0/Google-Cloud-OsConfig-V1-ExecStepConfig)\n- [1.2.1](/ruby/docs/reference/google-cloud-os_config-v1/1.2.1/Google-Cloud-OsConfig-V1-ExecStepConfig)\n- [1.1.0](/ruby/docs/reference/google-cloud-os_config-v1/1.1.0/Google-Cloud-OsConfig-V1-ExecStepConfig)\n- [1.0.1](/ruby/docs/reference/google-cloud-os_config-v1/1.0.1/Google-Cloud-OsConfig-V1-ExecStepConfig)\n- [0.16.0](/ruby/docs/reference/google-cloud-os_config-v1/0.16.0/Google-Cloud-OsConfig-V1-ExecStepConfig)\n- [0.15.2](/ruby/docs/reference/google-cloud-os_config-v1/0.15.2/Google-Cloud-OsConfig-V1-ExecStepConfig)\n- [0.14.0](/ruby/docs/reference/google-cloud-os_config-v1/0.14.0/Google-Cloud-OsConfig-V1-ExecStepConfig)\n- [0.13.0](/ruby/docs/reference/google-cloud-os_config-v1/0.13.0/Google-Cloud-OsConfig-V1-ExecStepConfig)\n- [0.12.0](/ruby/docs/reference/google-cloud-os_config-v1/0.12.0/Google-Cloud-OsConfig-V1-ExecStepConfig)\n- [0.11.0](/ruby/docs/reference/google-cloud-os_config-v1/0.11.0/Google-Cloud-OsConfig-V1-ExecStepConfig)\n- [0.10.0](/ruby/docs/reference/google-cloud-os_config-v1/0.10.0/Google-Cloud-OsConfig-V1-ExecStepConfig)\n- [0.9.1](/ruby/docs/reference/google-cloud-os_config-v1/0.9.1/Google-Cloud-OsConfig-V1-ExecStepConfig) \nReference documentation and code samples for the Cloud OS Config V1 API class Google::Cloud::OsConfig::V1::ExecStepConfig.\n\nCommon configurations for an ExecStep. \n\nInherits\n--------\n\n- Object \n\nExtended By\n-----------\n\n- Google::Protobuf::MessageExts::ClassMethods \n\nIncludes\n--------\n\n- Google::Protobuf::MessageExts\n\nMethods\n-------\n\n### #allowed_success_codes\n\n def allowed_success_codes() -\u003e ::Array\u003c::Integer\u003e\n\n**Returns**\n\n- (::Array\\\u003c::Integer\\\u003e) --- Defaults to \\[0\\]. A list of possible return values that the execution can return to indicate a success.\n\n### #allowed_success_codes=\n\n def allowed_success_codes=(value) -\u003e ::Array\u003c::Integer\u003e\n\n**Parameter**\n\n- **value** (::Array\\\u003c::Integer\\\u003e) --- Defaults to \\[0\\]. A list of possible return values that the execution can return to indicate a success. \n**Returns**\n\n- (::Array\\\u003c::Integer\\\u003e) --- Defaults to \\[0\\]. A list of possible return values that the execution can return to indicate a success.\n\n### #gcs_object\n\n def gcs_object() -\u003e ::Google::Cloud::OsConfig::V1::GcsObject\n\n**Returns**\n\n- ([::Google::Cloud::OsConfig::V1::GcsObject](./Google-Cloud-OsConfig-V1-GcsObject)) --- A Cloud Storage object containing the executable.\n\n\n Note: The following fields are mutually exclusive: `gcs_object`, `local_path`. If a field in that set is populated, all other fields in the set will automatically be cleared.\n\n### #gcs_object=\n\n def gcs_object=(value) -\u003e ::Google::Cloud::OsConfig::V1::GcsObject\n\n**Parameter**\n\n- **value** ([::Google::Cloud::OsConfig::V1::GcsObject](./Google-Cloud-OsConfig-V1-GcsObject)) --- A Cloud Storage object containing the executable.\n\n\nNote: The following fields are mutually exclusive: `gcs_object`, `local_path`. If a field in that set is populated, all other fields in the set will automatically be cleared. \n**Returns**\n\n- ([::Google::Cloud::OsConfig::V1::GcsObject](./Google-Cloud-OsConfig-V1-GcsObject)) --- A Cloud Storage object containing the executable.\n\n\n Note: The following fields are mutually exclusive: `gcs_object`, `local_path`. If a field in that set is populated, all other fields in the set will automatically be cleared.\n\n### #interpreter\n\n def interpreter() -\u003e ::Google::Cloud::OsConfig::V1::ExecStepConfig::Interpreter\n\n**Returns**\n\n- ([::Google::Cloud::OsConfig::V1::ExecStepConfig::Interpreter](./Google-Cloud-OsConfig-V1-ExecStepConfig-Interpreter)) --- 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](https://en.wikipedia.org/wiki/Shebang_(Unix)).\n\n### #interpreter=\n\n def interpreter=(value) -\u003e ::Google::Cloud::OsConfig::V1::ExecStepConfig::Interpreter\n\n**Parameter**\n\n- **value** ([::Google::Cloud::OsConfig::V1::ExecStepConfig::Interpreter](./Google-Cloud-OsConfig-V1-ExecStepConfig-Interpreter)) --- 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](https://en.wikipedia.org/wiki/Shebang_(Unix)). \n**Returns**\n\n- ([::Google::Cloud::OsConfig::V1::ExecStepConfig::Interpreter](./Google-Cloud-OsConfig-V1-ExecStepConfig-Interpreter)) --- 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](https://en.wikipedia.org/wiki/Shebang_(Unix)).\n\n### #local_path\n\n def local_path() -\u003e ::String\n\n**Returns**\n\n- (::String) --- An absolute path to the executable on the VM.\n\n Note: The following fields are mutually exclusive: `local_path`, `gcs_object`. If a field in that set is populated, all other fields in the set will automatically be cleared.\n\n### #local_path=\n\n def local_path=(value) -\u003e ::String\n\n**Parameter**\n\n- **value** (::String) --- An absolute path to the executable on the VM.\n\n\nNote: The following fields are mutually exclusive: `local_path`, `gcs_object`. If a field in that set is populated, all other fields in the set will automatically be cleared. \n**Returns**\n\n- (::String) --- An absolute path to the executable on the VM.\n\n Note: The following fields are mutually exclusive: `local_path`, `gcs_object`. If a field in that set is populated, all other fields in the set will automatically be cleared."]]