Class: Google::Apis::DataflowV1b3::TemplateVersion

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

///////////////////////////////////////////////////////////////////////////// / /// Template Catalog is used to organize user TemplateVersions. //// TemplateVersions that have the same project_id and display_name are //// belong to the same Template. //// Templates with the same project_id belong to the same Project. //// TemplateVersion may have labels and multiple labels are allowed. //// Duplicated labels in the same TemplateVersion are not allowed. //// TemplateVersion may have tags and multiple tags are allowed. Duplicated // // tags in the same Template are not allowed!

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ TemplateVersion

Returns a new instance of TemplateVersion.



5830
5831
5832
# File 'generated/google/apis/dataflow_v1b3/classes.rb', line 5830

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

Instance Attribute Details

#artifactGoogle::Apis::DataflowV1b3::Artifact

Job information for templates. Corresponds to the JSON property artifact



5788
5789
5790
# File 'generated/google/apis/dataflow_v1b3/classes.rb', line 5788

def artifact
  @artifact
end

#create_timeString

Creation time of this TemplateVersion. Corresponds to the JSON property createTime

Returns:

  • (String)


5793
5794
5795
# File 'generated/google/apis/dataflow_v1b3/classes.rb', line 5793

def create_time
  @create_time
end

#descriptionString

Template description from the user. Corresponds to the JSON property description

Returns:

  • (String)


5798
5799
5800
# File 'generated/google/apis/dataflow_v1b3/classes.rb', line 5798

def description
  @description
end

#display_nameString

A customized name for Template. Multiple TemplateVersions per Template. Corresponds to the JSON property displayName

Returns:

  • (String)


5803
5804
5805
# File 'generated/google/apis/dataflow_v1b3/classes.rb', line 5803

def display_name
  @display_name
end

#labelsHash<String,String>

Labels for the Template Version. Labels can be duplicate within Template. Corresponds to the JSON property labels

Returns:

  • (Hash<String,String>)


5808
5809
5810
# File 'generated/google/apis/dataflow_v1b3/classes.rb', line 5808

def labels
  @labels
end

#project_idString

A unique project_id. Multiple Templates per Project. Corresponds to the JSON property projectId

Returns:

  • (String)


5813
5814
5815
# File 'generated/google/apis/dataflow_v1b3/classes.rb', line 5813

def project_id
  @project_id
end

#tagsArray<String>

Alias for version_id, helps locate a TemplateVersion. Corresponds to the JSON property tags

Returns:

  • (Array<String>)


5818
5819
5820
# File 'generated/google/apis/dataflow_v1b3/classes.rb', line 5818

def tags
  @tags
end

#typeString

Either LEGACY or FLEX. This should match with the type of artifact. Corresponds to the JSON property type

Returns:

  • (String)


5823
5824
5825
# File 'generated/google/apis/dataflow_v1b3/classes.rb', line 5823

def type
  @type
end

#version_idString

An auto generated version_id for TemplateVersion. Corresponds to the JSON property versionId

Returns:

  • (String)


5828
5829
5830
# File 'generated/google/apis/dataflow_v1b3/classes.rb', line 5828

def version_id
  @version_id
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



5835
5836
5837
5838
5839
5840
5841
5842
5843
5844
5845
# File 'generated/google/apis/dataflow_v1b3/classes.rb', line 5835

def update!(**args)
  @artifact = args[:artifact] if args.key?(:artifact)
  @create_time = args[:create_time] if args.key?(:create_time)
  @description = args[:description] if args.key?(:description)
  @display_name = args[:display_name] if args.key?(:display_name)
  @labels = args[:labels] if args.key?(:labels)
  @project_id = args[:project_id] if args.key?(:project_id)
  @tags = args[:tags] if args.key?(:tags)
  @type = args[:type] if args.key?(:type)
  @version_id = args[:version_id] if args.key?(:version_id)
end