Class: Google::Apis::DataflowV1b3::NameAndKind
- Inherits:
-
Object
- Object
- Google::Apis::DataflowV1b3::NameAndKind
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/dataflow_v1b3/classes.rb,
lib/google/apis/dataflow_v1b3/representations.rb,
lib/google/apis/dataflow_v1b3/representations.rb
Overview
Basic metadata about a counter.
Instance Attribute Summary collapse
-
#kind ⇒ String
Counter aggregation kind.
-
#name ⇒ String
Name of the counter.
Instance Method Summary collapse
-
#initialize(**args) ⇒ NameAndKind
constructor
A new instance of NameAndKind.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ NameAndKind
Returns a new instance of NameAndKind.
3140 3141 3142 |
# File 'lib/google/apis/dataflow_v1b3/classes.rb', line 3140 def initialize(**args) update!(**args) end |
Instance Attribute Details
#kind ⇒ String
Counter aggregation kind.
Corresponds to the JSON property kind
3133 3134 3135 |
# File 'lib/google/apis/dataflow_v1b3/classes.rb', line 3133 def kind @kind end |
#name ⇒ String
Name of the counter.
Corresponds to the JSON property name
3138 3139 3140 |
# File 'lib/google/apis/dataflow_v1b3/classes.rb', line 3138 def name @name end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
3145 3146 3147 3148 |
# File 'lib/google/apis/dataflow_v1b3/classes.rb', line 3145 def update!(**args) @kind = args[:kind] if args.key?(:kind) @name = args[:name] if args.key?(:name) end |