Class: Google::Apis::ComposerV1beta1::ExecuteAirflowCommandRequest

Inherits:
Object
  • Object
show all
Includes:
Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
Defined in:
lib/google/apis/composer_v1beta1/classes.rb,
lib/google/apis/composer_v1beta1/representations.rb,
lib/google/apis/composer_v1beta1/representations.rb

Overview

Execute Airflow Command request.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ ExecuteAirflowCommandRequest

Returns a new instance of ExecuteAirflowCommandRequest.



558
559
560
# File 'lib/google/apis/composer_v1beta1/classes.rb', line 558

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#commandString

Airflow command. Corresponds to the JSON property command

Returns:

  • (String)


544
545
546
# File 'lib/google/apis/composer_v1beta1/classes.rb', line 544

def command
  @command
end

#parametersArray<String>

Parameters for the Airflow command/subcommand as an array of arguments. It may contain positional arguments like ["my-dag-id"], key-value parameters like [ "--foo=bar"] or ["--foo","bar"], or other flags like ["-f"]. Corresponds to the JSON property parameters

Returns:

  • (Array<String>)


551
552
553
# File 'lib/google/apis/composer_v1beta1/classes.rb', line 551

def parameters
  @parameters
end

#subcommandString

Airflow subcommand. Corresponds to the JSON property subcommand

Returns:

  • (String)


556
557
558
# File 'lib/google/apis/composer_v1beta1/classes.rb', line 556

def subcommand
  @subcommand
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



563
564
565
566
567
# File 'lib/google/apis/composer_v1beta1/classes.rb', line 563

def update!(**args)
  @command = args[:command] if args.key?(:command)
  @parameters = args[:parameters] if args.key?(:parameters)
  @subcommand = args[:subcommand] if args.key?(:subcommand)
end