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.



989
990
991
# File 'lib/google/apis/dataform_v1beta1/classes.rb', line 989

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



966
967
968
# File 'lib/google/apis/dataform_v1beta1/classes.rb', line 966

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)


971
972
973
# File 'lib/google/apis/dataform_v1beta1/classes.rb', line 971

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



976
977
978
# File 'lib/google/apis/dataform_v1beta1/classes.rb', line 976

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)


981
982
983
# File 'lib/google/apis/dataform_v1beta1/classes.rb', line 981

def disabled
  @disabled
end

#tagsArray<String>

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

Returns:

  • (Array<String>)


987
988
989
# File 'lib/google/apis/dataform_v1beta1/classes.rb', line 987

def tags
  @tags
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



994
995
996
997
998
999
1000
# File 'lib/google/apis/dataform_v1beta1/classes.rb', line 994

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