Class: Google::Apis::DataformV1beta1::Assertion

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 an assertion upon a SQL query which is required return zero rows.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ Assertion

Returns a new instance of Assertion.



62
63
64
# File 'lib/google/apis/dataform_v1beta1/classes.rb', line 62

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

Instance Attribute Details

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

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



32
33
34
# File 'lib/google/apis/dataform_v1beta1/classes.rb', line 32

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)


37
38
39
# File 'lib/google/apis/dataform_v1beta1/classes.rb', line 37

def disabled
  @disabled
end

#parent_actionGoogle::Apis::DataformV1beta1::Target

Represents an action identifier. If the action writes output, the output will be written to the referenced database object. Corresponds to the JSON property parentAction



44
45
46
# File 'lib/google/apis/dataform_v1beta1/classes.rb', line 44

def parent_action
  @parent_action
end

#relation_descriptorGoogle::Apis::DataformV1beta1::RelationDescriptor

Describes a relation and its columns. Corresponds to the JSON property relationDescriptor



49
50
51
# File 'lib/google/apis/dataform_v1beta1/classes.rb', line 49

def relation_descriptor
  @relation_descriptor
end

#select_queryString

The SELECT query which must return zero rows in order for this assertion to succeed. Corresponds to the JSON property selectQuery

Returns:

  • (String)


55
56
57
# File 'lib/google/apis/dataform_v1beta1/classes.rb', line 55

def select_query
  @select_query
end

#tagsArray<String>

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

Returns:

  • (Array<String>)


60
61
62
# File 'lib/google/apis/dataform_v1beta1/classes.rb', line 60

def tags
  @tags
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



67
68
69
70
71
72
73
74
# File 'lib/google/apis/dataform_v1beta1/classes.rb', line 67

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