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

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

Metadata for a specific parameter.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ ParameterMetadata

Returns a new instance of ParameterMetadata.



3307
3308
3309
# File 'lib/google/apis/dataflow_v1b3/classes.rb', line 3307

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

Instance Attribute Details

#custom_metadataHash<String,String>

Optional. Additional metadata for describing this parameter. Corresponds to the JSON property customMetadata

Returns:

  • (Hash<String,String>)


3274
3275
3276
# File 'lib/google/apis/dataflow_v1b3/classes.rb', line 3274

def 
  @custom_metadata
end

#help_textString

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

Returns:

  • (String)


3279
3280
3281
# File 'lib/google/apis/dataflow_v1b3/classes.rb', line 3279

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)


3284
3285
3286
# File 'lib/google/apis/dataflow_v1b3/classes.rb', line 3284

def is_optional
  @is_optional
end

#labelString

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

Returns:

  • (String)


3290
3291
3292
# File 'lib/google/apis/dataflow_v1b3/classes.rb', line 3290

def label
  @label
end

#nameString

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

Returns:

  • (String)


3295
3296
3297
# File 'lib/google/apis/dataflow_v1b3/classes.rb', line 3295

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)


3300
3301
3302
# File 'lib/google/apis/dataflow_v1b3/classes.rb', line 3300

def param_type
  @param_type
end

#regexesArray<String>

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

Returns:

  • (Array<String>)


3305
3306
3307
# File 'lib/google/apis/dataflow_v1b3/classes.rb', line 3305

def regexes
  @regexes
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



3312
3313
3314
3315
3316
3317
3318
3319
3320
# File 'lib/google/apis/dataflow_v1b3/classes.rb', line 3312

def update!(**args)
  @custom_metadata = args[:custom_metadata] if args.key?(:custom_metadata)
  @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