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.



5897
5898
5899
# File 'lib/google/apis/dataflow_v1b3/classes.rb', line 5897

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

Instance Attribute Details

#artifactGoogle::Apis::DataflowV1b3::Artifact

Job information for templates. Corresponds to the JSON property artifact



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

def artifact
  @artifact
end

#create_timeString

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

Returns:

  • (String)


5860
5861
5862
# File 'lib/google/apis/dataflow_v1b3/classes.rb', line 5860

def create_time
  @create_time
end

#descriptionString

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

Returns:

  • (String)


5865
5866
5867
# File 'lib/google/apis/dataflow_v1b3/classes.rb', line 5865

def description
  @description
end

#display_nameString

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

Returns:

  • (String)


5870
5871
5872
# File 'lib/google/apis/dataflow_v1b3/classes.rb', line 5870

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


5875
5876
5877
# File 'lib/google/apis/dataflow_v1b3/classes.rb', line 5875

def labels
  @labels
end

#project_idString

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

Returns:

  • (String)


5880
5881
5882
# File 'lib/google/apis/dataflow_v1b3/classes.rb', line 5880

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


5885
5886
5887
# File 'lib/google/apis/dataflow_v1b3/classes.rb', line 5885

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)


5890
5891
5892
# File 'lib/google/apis/dataflow_v1b3/classes.rb', line 5890

def type
  @type
end

#version_idString

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

Returns:

  • (String)


5895
5896
5897
# File 'lib/google/apis/dataflow_v1b3/classes.rb', line 5895

def version_id
  @version_id
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



5902
5903
5904
5905
5906
5907
5908
5909
5910
5911
5912
# File 'lib/google/apis/dataflow_v1b3/classes.rb', line 5902

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