Class: Google::Cloud::OsConfig::V1::OSPolicy::Resource::ExecResource::Exec

Inherits:
Object
  • Object
show all
Extended by:
Protobuf::MessageExts::ClassMethods
Includes:
Protobuf::MessageExts
Defined in:
proto_docs/google/cloud/osconfig/v1/os_policy.rb

Overview

A file or script to execute.

Defined Under Namespace

Modules: Interpreter

Instance Attribute Summary collapse

Instance Attribute Details

#args::Array<::String>

Returns Optional arguments to pass to the source during execution.

Returns:

  • (::Array<::String>)

    Optional arguments to pass to the source during execution.



470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
# File 'proto_docs/google/cloud/osconfig/v1/os_policy.rb', line 470

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::V1::OSPolicy::Resource::File

Returns A remote or local file.

Returns:



470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
# File 'proto_docs/google/cloud/osconfig/v1/os_policy.rb', line 470

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::V1::OSPolicy::Resource::ExecResource::Exec::Interpreter

Returns Required. The script interpreter to use.

Returns:



470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
# File 'proto_docs/google/cloud/osconfig/v1/os_policy.rb', line 470

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.

Returns:

  • (::String)

    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.



470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
# File 'proto_docs/google/cloud/osconfig/v1/os_policy.rb', line 470

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.

Returns:

  • (::String)

    An inline script. The size of the script is limited to 1024 characters.



470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
# File 'proto_docs/google/cloud/osconfig/v1/os_policy.rb', line 470

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