Class: Google::Apis::DataflowV1b3::ParameterMetadata
- Inherits:
-
Object
- Object
- Google::Apis::DataflowV1b3::ParameterMetadata
- 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
-
#custom_metadata ⇒ Hash<String,String>
Optional.
-
#help_text ⇒ String
Required.
-
#is_optional ⇒ Boolean
(also: #is_optional?)
Optional.
-
#label ⇒ String
Required.
-
#name ⇒ String
Required.
-
#param_type ⇒ String
Optional.
-
#regexes ⇒ Array<String>
Optional.
Instance Method Summary collapse
-
#initialize(**args) ⇒ ParameterMetadata
constructor
A new instance of ParameterMetadata.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ ParameterMetadata
Returns a new instance of ParameterMetadata.
3337 3338 3339 |
# File 'lib/google/apis/dataflow_v1b3/classes.rb', line 3337 def initialize(**args) update!(**args) end |
Instance Attribute Details
#custom_metadata ⇒ Hash<String,String>
Optional. Additional metadata for describing this parameter.
Corresponds to the JSON property customMetadata
3304 3305 3306 |
# File 'lib/google/apis/dataflow_v1b3/classes.rb', line 3304 def @custom_metadata end |
#help_text ⇒ String
Required. The help text to display for the parameter.
Corresponds to the JSON property helpText
3309 3310 3311 |
# File 'lib/google/apis/dataflow_v1b3/classes.rb', line 3309 def help_text @help_text end |
#is_optional ⇒ Boolean Also known as: is_optional?
Optional. Whether the parameter is optional. Defaults to false.
Corresponds to the JSON property isOptional
3314 3315 3316 |
# File 'lib/google/apis/dataflow_v1b3/classes.rb', line 3314 def is_optional @is_optional end |
#label ⇒ String
Required. The label to display for the parameter.
Corresponds to the JSON property label
3320 3321 3322 |
# File 'lib/google/apis/dataflow_v1b3/classes.rb', line 3320 def label @label end |
#name ⇒ String
Required. The name of the parameter.
Corresponds to the JSON property name
3325 3326 3327 |
# File 'lib/google/apis/dataflow_v1b3/classes.rb', line 3325 def name @name end |
#param_type ⇒ String
Optional. The type of the parameter. Used for selecting input picker.
Corresponds to the JSON property paramType
3330 3331 3332 |
# File 'lib/google/apis/dataflow_v1b3/classes.rb', line 3330 def param_type @param_type end |
#regexes ⇒ Array<String>
Optional. Regexes that the parameter must match.
Corresponds to the JSON property regexes
3335 3336 3337 |
# File 'lib/google/apis/dataflow_v1b3/classes.rb', line 3335 def regexes @regexes end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
3342 3343 3344 3345 3346 3347 3348 3349 3350 |
# File 'lib/google/apis/dataflow_v1b3/classes.rb', line 3342 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 |