Class: Google::Apis::DataformV1beta1::WorkflowConfig

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

Overview

Represents a Dataform workflow configuration.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ WorkflowConfig

Returns a new instance of WorkflowConfig.



2650
2651
2652
# File 'lib/google/apis/dataform_v1beta1/classes.rb', line 2650

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

Instance Attribute Details

#cron_scheduleString

Optional. Optional schedule (in cron format) for automatic execution of this workflow config. Corresponds to the JSON property cronSchedule

Returns:

  • (String)


2616
2617
2618
# File 'lib/google/apis/dataform_v1beta1/classes.rb', line 2616

def cron_schedule
  @cron_schedule
end

#invocation_configGoogle::Apis::DataformV1beta1::InvocationConfig

Includes various configuration options for a workflow invocation. If both included_targets and included_tags are unset, all actions will be included. Corresponds to the JSON property invocationConfig



2622
2623
2624
# File 'lib/google/apis/dataform_v1beta1/classes.rb', line 2622

def invocation_config
  @invocation_config
end

#nameString

Output only. The workflow config's name. Corresponds to the JSON property name

Returns:

  • (String)


2627
2628
2629
# File 'lib/google/apis/dataform_v1beta1/classes.rb', line 2627

def name
  @name
end

#recent_scheduled_execution_recordsArray<Google::Apis::DataformV1beta1::ScheduledExecutionRecord>

Output only. Records of the 10 most recent scheduled execution attempts, ordered in in descending order of execution_time. Updated whenever automatic creation of a workflow invocation is triggered by cron_schedule. Corresponds to the JSON property recentScheduledExecutionRecords



2634
2635
2636
# File 'lib/google/apis/dataform_v1beta1/classes.rb', line 2634

def recent_scheduled_execution_records
  @recent_scheduled_execution_records
end

#release_configString

Required. The name of the release config whose release_compilation_result should be executed. Must be in the format projects/*/locations/*/repositories/ */releaseConfigs/*. Corresponds to the JSON property releaseConfig

Returns:

  • (String)


2641
2642
2643
# File 'lib/google/apis/dataform_v1beta1/classes.rb', line 2641

def release_config
  @release_config
end

#time_zoneString

Optional. Specifies the time zone to be used when interpreting cron_schedule. Must be a time zone name from the time zone database (https://en.wikipedia.org/ wiki/List_of_tz_database_time_zones). If left unspecified, the default is UTC. Corresponds to the JSON property timeZone

Returns:

  • (String)


2648
2649
2650
# File 'lib/google/apis/dataform_v1beta1/classes.rb', line 2648

def time_zone
  @time_zone
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2655
2656
2657
2658
2659
2660
2661
2662
# File 'lib/google/apis/dataform_v1beta1/classes.rb', line 2655

def update!(**args)
  @cron_schedule = args[:cron_schedule] if args.key?(:cron_schedule)
  @invocation_config = args[:invocation_config] if args.key?(:invocation_config)
  @name = args[:name] if args.key?(:name)
  @recent_scheduled_execution_records = args[:recent_scheduled_execution_records] if args.key?(:recent_scheduled_execution_records)
  @release_config = args[:release_config] if args.key?(:release_config)
  @time_zone = args[:time_zone] if args.key?(:time_zone)
end