Interface GuestPolicies.SoftwareRecipe.Step.RunScriptOrBuilder

    • Method Detail

      • getScript

        String getScript()
         Required. The shell script to be executed.
         
        string script = 1 [(.google.api.field_behavior) = REQUIRED];
        Returns:
        The script.
      • getScriptBytes

        com.google.protobuf.ByteString getScriptBytes()
         Required. The shell script to be executed.
         
        string script = 1 [(.google.api.field_behavior) = REQUIRED];
        Returns:
        The bytes for script.
      • getAllowedExitCodesList

        List<Integer> getAllowedExitCodesList()
         Return codes that indicate that the software installed or updated
         successfully. Behaviour defaults to [0]
         
        repeated int32 allowed_exit_codes = 2;
        Returns:
        A list containing the allowedExitCodes.
      • getAllowedExitCodesCount

        int getAllowedExitCodesCount()
         Return codes that indicate that the software installed or updated
         successfully. Behaviour defaults to [0]
         
        repeated int32 allowed_exit_codes = 2;
        Returns:
        The count of allowedExitCodes.
      • getAllowedExitCodes

        int getAllowedExitCodes​(int index)
         Return codes that indicate that the software installed or updated
         successfully. Behaviour defaults to [0]
         
        repeated int32 allowed_exit_codes = 2;
        Parameters:
        index - The index of the element to return.
        Returns:
        The allowedExitCodes at the given index.
      • getInterpreterValue

        int getInterpreterValue()
         The script interpreter to use to run the script. If no interpreter is
         specified the script is executed directly, which likely
         only succeed for scripts with
         [shebang lines](https://en.wikipedia.org/wiki/Shebang_\(Unix\)).
         
        .google.cloud.osconfig.v1beta.SoftwareRecipe.Step.RunScript.Interpreter interpreter = 3;
        Returns:
        The enum numeric value on the wire for interpreter.
      • getInterpreter

        GuestPolicies.SoftwareRecipe.Step.RunScript.Interpreter getInterpreter()
         The script interpreter to use to run the script. If no interpreter is
         specified the script is executed directly, which likely
         only succeed for scripts with
         [shebang lines](https://en.wikipedia.org/wiki/Shebang_\(Unix\)).
         
        .google.cloud.osconfig.v1beta.SoftwareRecipe.Step.RunScript.Interpreter interpreter = 3;
        Returns:
        The interpreter.