Class: Google::Apis::DataformV1beta1::DataPreparation

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

Defines a compiled Data Preparation entity

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ DataPreparation

Returns a new instance of DataPreparation.



1052
1053
1054
# File 'lib/google/apis/dataform_v1beta1/classes.rb', line 1052

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

Instance Attribute Details

#contents_sqlGoogle::Apis::DataformV1beta1::SqlDefinition

Definition of a SQL Data Preparation Corresponds to the JSON property contentsSql



1029
1030
1031
# File 'lib/google/apis/dataform_v1beta1/classes.rb', line 1029

def contents_sql
  @contents_sql
end

#contents_yamlString

The data preparation definition, stored as a YAML string. Corresponds to the JSON property contentsYaml

Returns:

  • (String)


1034
1035
1036
# File 'lib/google/apis/dataform_v1beta1/classes.rb', line 1034

def contents_yaml
  @contents_yaml
end

#dependency_targetsArray<Google::Apis::DataformV1beta1::Target>

A list of actions that this action depends on. Corresponds to the JSON property dependencyTargets



1039
1040
1041
# File 'lib/google/apis/dataform_v1beta1/classes.rb', line 1039

def dependency_targets
  @dependency_targets
end

#disabledBoolean Also known as: disabled?

Whether this action is disabled (i.e. should not be run). Corresponds to the JSON property disabled

Returns:

  • (Boolean)


1044
1045
1046
# File 'lib/google/apis/dataform_v1beta1/classes.rb', line 1044

def disabled
  @disabled
end

#tagsArray<String>

Arbitrary, user-defined tags on this action. Corresponds to the JSON property tags

Returns:

  • (Array<String>)


1050
1051
1052
# File 'lib/google/apis/dataform_v1beta1/classes.rb', line 1050

def tags
  @tags
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1057
1058
1059
1060
1061
1062
1063
# File 'lib/google/apis/dataform_v1beta1/classes.rb', line 1057

def update!(**args)
  @contents_sql = args[:contents_sql] if args.key?(:contents_sql)
  @contents_yaml = args[:contents_yaml] if args.key?(:contents_yaml)
  @dependency_targets = args[:dependency_targets] if args.key?(:dependency_targets)
  @disabled = args[:disabled] if args.key?(:disabled)
  @tags = args[:tags] if args.key?(:tags)
end