Class: Google::Apis::DataflowV1b3::ParameterMetadata

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

Metadata for a specific parameter.

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) ⇒ ParameterMetadata

Returns a new instance of ParameterMetadata



2789
2790
2791
# File 'generated/google/apis/dataflow_v1b3/classes.rb', line 2789

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

Instance Attribute Details

#help_textString

Required. The help text to display for the parameter. Corresponds to the JSON property helpText

Returns:

  • (String)


2766
2767
2768
# File 'generated/google/apis/dataflow_v1b3/classes.rb', line 2766

def help_text
  @help_text
end

#is_optionalBoolean Also known as: is_optional?

Optional. Whether the parameter is optional. Defaults to false. Corresponds to the JSON property isOptional

Returns:

  • (Boolean)


2771
2772
2773
# File 'generated/google/apis/dataflow_v1b3/classes.rb', line 2771

def is_optional
  @is_optional
end

#labelString

Required. The label to display for the parameter. Corresponds to the JSON property label

Returns:

  • (String)


2777
2778
2779
# File 'generated/google/apis/dataflow_v1b3/classes.rb', line 2777

def label
  @label
end

#nameString

Required. The name of the parameter. Corresponds to the JSON property name

Returns:

  • (String)


2782
2783
2784
# File 'generated/google/apis/dataflow_v1b3/classes.rb', line 2782

def name
  @name
end

#regexesArray<String>

Optional. Regexes that the parameter must match. Corresponds to the JSON property regexes

Returns:

  • (Array<String>)


2787
2788
2789
# File 'generated/google/apis/dataflow_v1b3/classes.rb', line 2787

def regexes
  @regexes
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2794
2795
2796
2797
2798
2799
2800
# File 'generated/google/apis/dataflow_v1b3/classes.rb', line 2794

def update!(**args)
  @help_text = args[:help_text] if args.key?(:help_text)
  @is_optional = args[:is_optional] if args.key?(:is_optional)
  @label = args[:label] if args.key?(:label)
  @name = args[:name] if args.key?(:name)
  @regexes = args[:regexes] if args.key?(:regexes)
end