Class: Google::Cloud::OsConfig::V1alpha::OSPolicy::Resource::ExecResource::Exec
- Inherits:
-
Object
- Object
- Google::Cloud::OsConfig::V1alpha::OSPolicy::Resource::ExecResource::Exec
- Extended by:
- Protobuf::MessageExts::ClassMethods
- Includes:
- Protobuf::MessageExts
- Defined in:
- proto_docs/google/cloud/osconfig/v1alpha/os_policy.rb
Overview
A file or script to execute.
Defined Under Namespace
Modules: Interpreter
Instance Attribute Summary collapse
-
#args ⇒ ::Array<::String>
Optional arguments to pass to the source during execution.
-
#file ⇒ ::Google::Cloud::OsConfig::V1alpha::OSPolicy::Resource::File
A remote or local file.
-
#interpreter ⇒ ::Google::Cloud::OsConfig::V1alpha::OSPolicy::Resource::ExecResource::Exec::Interpreter
Required.
-
#output_file_path ⇒ ::String
Only recorded for enforce Exec.
-
#script ⇒ ::String
An inline script.
Instance Attribute Details
#args ⇒ ::Array<::String>
Returns Optional arguments to pass to the source during execution.
527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 |
# File 'proto_docs/google/cloud/osconfig/v1alpha/os_policy.rb', line 527 class Exec include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # The interpreter to use. module Interpreter # Invalid value, the request will return validation error. INTERPRETER_UNSPECIFIED = 0 # If an interpreter is not specified, the # source is executed directly. This execution, without an # interpreter, only succeeds for executables and scripts that have <a # href="https://en.wikipedia.org/wiki/Shebang_(Unix)" # class="external">shebang lines</a>. NONE = 1 # Indicates that the script runs with `/bin/sh` on Linux and # `cmd.exe` on Windows. SHELL = 2 # Indicates that the script runs with PowerShell. POWERSHELL = 3 end end |
#file ⇒ ::Google::Cloud::OsConfig::V1alpha::OSPolicy::Resource::File
Returns A remote or local file.
Note: The following fields are mutually exclusive: file, script. If a field in that set is populated, all other fields in the set will automatically be cleared.
527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 |
# File 'proto_docs/google/cloud/osconfig/v1alpha/os_policy.rb', line 527 class Exec include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # The interpreter to use. module Interpreter # Invalid value, the request will return validation error. INTERPRETER_UNSPECIFIED = 0 # If an interpreter is not specified, the # source is executed directly. This execution, without an # interpreter, only succeeds for executables and scripts that have <a # href="https://en.wikipedia.org/wiki/Shebang_(Unix)" # class="external">shebang lines</a>. NONE = 1 # Indicates that the script runs with `/bin/sh` on Linux and # `cmd.exe` on Windows. SHELL = 2 # Indicates that the script runs with PowerShell. POWERSHELL = 3 end end |
#interpreter ⇒ ::Google::Cloud::OsConfig::V1alpha::OSPolicy::Resource::ExecResource::Exec::Interpreter
Returns Required. The script interpreter to use.
527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 |
# File 'proto_docs/google/cloud/osconfig/v1alpha/os_policy.rb', line 527 class Exec include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # The interpreter to use. module Interpreter # Invalid value, the request will return validation error. INTERPRETER_UNSPECIFIED = 0 # If an interpreter is not specified, the # source is executed directly. This execution, without an # interpreter, only succeeds for executables and scripts that have <a # href="https://en.wikipedia.org/wiki/Shebang_(Unix)" # class="external">shebang lines</a>. NONE = 1 # Indicates that the script runs with `/bin/sh` on Linux and # `cmd.exe` on Windows. SHELL = 2 # Indicates that the script runs with PowerShell. POWERSHELL = 3 end end |
#output_file_path ⇒ ::String
Returns Only recorded for enforce Exec. Path to an output file (that is created by this Exec) whose content will be recorded in OSPolicyResourceCompliance after a successful run. Absence or failure to read this file will result in this ExecResource being non-compliant. Output file size is limited to 100K bytes.
527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 |
# File 'proto_docs/google/cloud/osconfig/v1alpha/os_policy.rb', line 527 class Exec include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # The interpreter to use. module Interpreter # Invalid value, the request will return validation error. INTERPRETER_UNSPECIFIED = 0 # If an interpreter is not specified, the # source is executed directly. This execution, without an # interpreter, only succeeds for executables and scripts that have <a # href="https://en.wikipedia.org/wiki/Shebang_(Unix)" # class="external">shebang lines</a>. NONE = 1 # Indicates that the script runs with `/bin/sh` on Linux and # `cmd.exe` on Windows. SHELL = 2 # Indicates that the script runs with PowerShell. POWERSHELL = 3 end end |
#script ⇒ ::String
Returns An inline script. The size of the script is limited to 1024 characters.
Note: The following fields are mutually exclusive: script, file. If a field in that set is populated, all other fields in the set will automatically be cleared.
527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 |
# File 'proto_docs/google/cloud/osconfig/v1alpha/os_policy.rb', line 527 class Exec include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # The interpreter to use. module Interpreter # Invalid value, the request will return validation error. INTERPRETER_UNSPECIFIED = 0 # If an interpreter is not specified, the # source is executed directly. This execution, without an # interpreter, only succeeds for executables and scripts that have <a # href="https://en.wikipedia.org/wiki/Shebang_(Unix)" # class="external">shebang lines</a>. NONE = 1 # Indicates that the script runs with `/bin/sh` on Linux and # `cmd.exe` on Windows. SHELL = 2 # Indicates that the script runs with PowerShell. POWERSHELL = 3 end end |