Class: Google::Apis::DataformV1beta1::Assertion
- Inherits:
-
Object
- Object
- Google::Apis::DataformV1beta1::Assertion
- 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
-
#dependency_targets ⇒ Array<Google::Apis::DataformV1beta1::Target>
A list of actions that this action depends on.
-
#disabled ⇒ Boolean
(also: #disabled?)
Whether this action is disabled (i.e. should not be run).
-
#parent_action ⇒ Google::Apis::DataformV1beta1::Target
Represents an action identifier.
-
#relation_descriptor ⇒ Google::Apis::DataformV1beta1::RelationDescriptor
Describes a relation and its columns.
-
#select_query ⇒ String
The SELECT query which must return zero rows in order for this assertion to succeed.
-
#tags ⇒ Array<String>
Arbitrary, user-defined tags on this action.
Instance Method Summary collapse
-
#initialize(**args) ⇒ Assertion
constructor
A new instance of Assertion.
-
#update!(**args) ⇒ Object
Update properties of this object.
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_targets ⇒ Array<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 |
#disabled ⇒ Boolean Also known as: disabled?
Whether this action is disabled (i.e. should not be run).
Corresponds to the JSON property disabled
37 38 39 |
# File 'lib/google/apis/dataform_v1beta1/classes.rb', line 37 def disabled @disabled end |
#parent_action ⇒ Google::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_descriptor ⇒ Google::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_query ⇒ String
The SELECT query which must return zero rows in order for this assertion to
succeed.
Corresponds to the JSON property selectQuery
55 56 57 |
# File 'lib/google/apis/dataform_v1beta1/classes.rb', line 55 def select_query @select_query end |
#tags ⇒ Array<String>
Arbitrary, user-defined tags on this action.
Corresponds to the JSON property tags
60 61 62 |
# File 'lib/google/apis/dataform_v1beta1/classes.rb', line 60 def @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 |