Class: Google::Apis::DataflowV1b3::TemplateMetadata

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 describing a template.

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

Returns a new instance of TemplateMetadata



2274
2275
2276
# File 'generated/google/apis/dataflow_v1b3/classes.rb', line 2274

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

Instance Attribute Details

#bypass_temp_dir_validationBoolean Also known as: bypass_temp_dir_validation?

If true, will bypass the validation that the temp directory is writable. This should only be used with templates for pipelines that are guaranteed not to need to write to the temp directory, which is subject to change based on the optimizer. Corresponds to the JSON property bypassTempDirValidation

Returns:

  • (Boolean)


2271
2272
2273
# File 'generated/google/apis/dataflow_v1b3/classes.rb', line 2271

def bypass_temp_dir_validation
  @bypass_temp_dir_validation
end

#descriptionString

Optional. A description of the template. Corresponds to the JSON property description

Returns:

  • (String)


2263
2264
2265
# File 'generated/google/apis/dataflow_v1b3/classes.rb', line 2263

def description
  @description
end

#nameString

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

Returns:

  • (String)


2253
2254
2255
# File 'generated/google/apis/dataflow_v1b3/classes.rb', line 2253

def name
  @name
end

#parametersArray<Google::Apis::DataflowV1b3::ParameterMetadata>

The parameters for the template. Corresponds to the JSON property parameters



2258
2259
2260
# File 'generated/google/apis/dataflow_v1b3/classes.rb', line 2258

def parameters
  @parameters
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2279
2280
2281
2282
2283
2284
# File 'generated/google/apis/dataflow_v1b3/classes.rb', line 2279

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