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

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

///////////////////////////////////////////////////////////////////////////// / /// 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.



5858
5859
5860
# File 'lib/google/apis/dataflow_v1b3/classes.rb', line 5858

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

Instance Attribute Details

#artifactGoogle::Apis::DataflowV1b3::Artifact

Job information for templates. Corresponds to the JSON property artifact



5816
5817
5818
# File 'lib/google/apis/dataflow_v1b3/classes.rb', line 5816

def artifact
  @artifact
end

#create_timeString

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

Returns:

  • (String)


5821
5822
5823
# File 'lib/google/apis/dataflow_v1b3/classes.rb', line 5821

def create_time
  @create_time
end

#descriptionString

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

Returns:

  • (String)


5826
5827
5828
# File 'lib/google/apis/dataflow_v1b3/classes.rb', line 5826

def description
  @description
end

#display_nameString

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

Returns:

  • (String)


5831
5832
5833
# File 'lib/google/apis/dataflow_v1b3/classes.rb', line 5831

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


5836
5837
5838
# File 'lib/google/apis/dataflow_v1b3/classes.rb', line 5836

def labels
  @labels
end

#project_idString

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

Returns:

  • (String)


5841
5842
5843
# File 'lib/google/apis/dataflow_v1b3/classes.rb', line 5841

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


5846
5847
5848
# File 'lib/google/apis/dataflow_v1b3/classes.rb', line 5846

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)


5851
5852
5853
# File 'lib/google/apis/dataflow_v1b3/classes.rb', line 5851

def type
  @type
end

#version_idString

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

Returns:

  • (String)


5856
5857
5858
# File 'lib/google/apis/dataflow_v1b3/classes.rb', line 5856

def version_id
  @version_id
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



5863
5864
5865
5866
5867
5868
5869
5870
5871
5872
5873
# File 'lib/google/apis/dataflow_v1b3/classes.rb', line 5863

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