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.



3039
3040
3041
# File 'generated/google/apis/dataflow_v1b3/classes.rb', line 3039

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)


3010
3011
3012
# File 'generated/google/apis/dataflow_v1b3/classes.rb', line 3010

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)


3015
3016
3017
# File 'generated/google/apis/dataflow_v1b3/classes.rb', line 3015

def is_optional
  @is_optional
end

#labelString

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

Returns:

  • (String)


3021
3022
3023
# File 'generated/google/apis/dataflow_v1b3/classes.rb', line 3021

def label
  @label
end

#nameString

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

Returns:

  • (String)


3026
3027
3028
# File 'generated/google/apis/dataflow_v1b3/classes.rb', line 3026

def name
  @name
end

#param_typeString

Optional. The type of the parameter. Used for selecting input picker. Corresponds to the JSON property paramType

Returns:

  • (String)


3032
3033
3034
# File 'generated/google/apis/dataflow_v1b3/classes.rb', line 3032

def param_type
  @param_type
end

#regexesArray<String>

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

Returns:

  • (Array<String>)


3037
3038
3039
# File 'generated/google/apis/dataflow_v1b3/classes.rb', line 3037

def regexes
  @regexes
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



3044
3045
3046
3047
3048
3049
3050
3051
# File 'generated/google/apis/dataflow_v1b3/classes.rb', line 3044

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)
  @param_type = args[:param_type] if args.key?(:param_type)
  @regexes = args[:regexes] if args.key?(:regexes)
end