Class: Google::Apis::DataflowV1b3::NameAndKind

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ NameAndKind

Returns a new instance of NameAndKind.



3218
3219
3220
# File 'lib/google/apis/dataflow_v1b3/classes.rb', line 3218

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

Instance Attribute Details

#kindString

Counter aggregation kind. Corresponds to the JSON property kind

Returns:

  • (String)


3211
3212
3213
# File 'lib/google/apis/dataflow_v1b3/classes.rb', line 3211

def kind
  @kind
end

#nameString

Name of the counter. Corresponds to the JSON property name

Returns:

  • (String)


3216
3217
3218
# File 'lib/google/apis/dataflow_v1b3/classes.rb', line 3216

def name
  @name
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



3223
3224
3225
3226
# File 'lib/google/apis/dataflow_v1b3/classes.rb', line 3223

def update!(**args)
  @kind = args[:kind] if args.key?(:kind)
  @name = args[:name] if args.key?(:name)
end