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

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
generated/google/apis/dataflow_v1b3/classes.rb,
generated/google/apis/dataflow_v1b3/representations.rb,
generated/google/apis/dataflow_v1b3/representations.rb

Overview

Basic metadata about a counter.

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ NameAndKind

Returns a new instance of NameAndKind.



2811
2812
2813
# File 'generated/google/apis/dataflow_v1b3/classes.rb', line 2811

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

Instance Attribute Details

#kindString

Counter aggregation kind. Corresponds to the JSON property kind

Returns:

  • (String)


2804
2805
2806
# File 'generated/google/apis/dataflow_v1b3/classes.rb', line 2804

def kind
  @kind
end

#nameString

Name of the counter. Corresponds to the JSON property name

Returns:

  • (String)


2809
2810
2811
# File 'generated/google/apis/dataflow_v1b3/classes.rb', line 2809

def name
  @name
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2816
2817
2818
2819
# File 'generated/google/apis/dataflow_v1b3/classes.rb', line 2816

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