Class: Google::Apis::ReplicapoolV1beta1::Action
- Inherits:
- 
      Object
      
        - Object
- Google::Apis::ReplicapoolV1beta1::Action
 
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- generated/google/apis/replicapool_v1beta1/classes.rb,
 generated/google/apis/replicapool_v1beta1/representations.rb,
 generated/google/apis/replicapool_v1beta1/representations.rb
Overview
An action that gets executed during initialization of the replicas.
Instance Attribute Summary collapse
- 
  
    
      #commands  ⇒ Array<String> 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    A list of commands to run, one per line. 
- 
  
    
      #env_variables  ⇒ Array<Google::Apis::ReplicapoolV1beta1::EnvVariable> 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    A list of environment variables to use for the commands in this action. 
- 
  
    
      #timeout_milli_seconds  ⇒ Fixnum 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    If an action's commands on a particular replica do not finish in the specified timeoutMilliSeconds, the replica is considered to be in a FAILING state. 
Instance Method Summary collapse
- 
  
    
      #initialize(**args)  ⇒ Action 
    
    
  
  
  
    constructor
  
  
  
  
  
  
  
    A new instance of Action. 
- 
  
    
      #update!(**args)  ⇒ Object 
    
    
  
  
  
  
  
  
  
  
  
    Update properties of this object. 
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ Action
Returns a new instance of Action
| 83 84 85 | # File 'generated/google/apis/replicapool_v1beta1/classes.rb', line 83 def initialize(**args) update!(**args) end | 
Instance Attribute Details
#commands ⇒ Array<String>
A list of commands to run, one per line. If any command fails, the whole
action is considered a failure and no further actions are run. This also marks
the virtual machine or replica as a failure.
Corresponds to the JSON property commands
| 67 68 69 | # File 'generated/google/apis/replicapool_v1beta1/classes.rb', line 67 def commands @commands end | 
#env_variables ⇒ Array<Google::Apis::ReplicapoolV1beta1::EnvVariable>
A list of environment variables to use for the commands in this action.
Corresponds to the JSON property envVariables
| 72 73 74 | # File 'generated/google/apis/replicapool_v1beta1/classes.rb', line 72 def env_variables @env_variables end | 
#timeout_milli_seconds ⇒ Fixnum
If an action's commands on a particular replica do not finish in the specified
timeoutMilliSeconds, the replica is considered to be in a FAILING state. No
efforts are made to stop any processes that were spawned or created as the
result of running the action's commands. The default is the max allowed value,
1 hour (i.e. 3600000 milliseconds).
Corresponds to the JSON property timeoutMilliSeconds
| 81 82 83 | # File 'generated/google/apis/replicapool_v1beta1/classes.rb', line 81 def timeout_milli_seconds @timeout_milli_seconds end | 
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
| 88 89 90 91 92 | # File 'generated/google/apis/replicapool_v1beta1/classes.rb', line 88 def update!(**args) @commands = args[:commands] if args.key?(:commands) @env_variables = args[:env_variables] if args.key?(:env_variables) @timeout_milli_seconds = args[:timeout_milli_seconds] if args.key?(:timeout_milli_seconds) end |