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

Inherits:
Object
  • Object
show all
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

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.



487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
# File 'proto_docs/google/cloud/osconfig/v1alpha/os_policy.rb', line 487

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.

Returns:



487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
# File 'proto_docs/google/cloud/osconfig/v1alpha/os_policy.rb', line 487

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.

Returns:



487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
# File 'proto_docs/google/cloud/osconfig/v1alpha/os_policy.rb', line 487

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.



487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
# File 'proto_docs/google/cloud/osconfig/v1alpha/os_policy.rb', line 487

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.



487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
# File 'proto_docs/google/cloud/osconfig/v1alpha/os_policy.rb', line 487

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