Class: Google::Apis::DeploymentmanagerV2beta2::Type

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable
Defined in:
generated/google/apis/deploymentmanager_v2beta2/classes.rb,
generated/google/apis/deploymentmanager_v2beta2/representations.rb,
generated/google/apis/deploymentmanager_v2beta2/representations.rb

Overview

A resource type supported by Deployment Manager.

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ Type

Returns a new instance of Type



804
805
806
# File 'generated/google/apis/deploymentmanager_v2beta2/classes.rb', line 804

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

Instance Attribute Details

#idString

[Output Only] Unique identifier for the resource; defined by the server. Corresponds to the JSON property id

Returns:

  • (String)


787
788
789
# File 'generated/google/apis/deploymentmanager_v2beta2/classes.rb', line 787

def id
  @id
end

#insert_timeString

[Output Only] Timestamp when the type was created, in RFC3339 text format. Corresponds to the JSON property insertTime

Returns:

  • (String)


792
793
794
# File 'generated/google/apis/deploymentmanager_v2beta2/classes.rb', line 792

def insert_time
  @insert_time
end

#nameString

Name of the type. Corresponds to the JSON property name

Returns:

  • (String)


797
798
799
# File 'generated/google/apis/deploymentmanager_v2beta2/classes.rb', line 797

def name
  @name
end

[Output Only] Self link for the type. Corresponds to the JSON property selfLink

Returns:

  • (String)


802
803
804
# File 'generated/google/apis/deploymentmanager_v2beta2/classes.rb', line 802

def self_link
  @self_link
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



809
810
811
812
813
814
# File 'generated/google/apis/deploymentmanager_v2beta2/classes.rb', line 809

def update!(**args)
  @id = args[:id] unless args[:id].nil?
  @insert_time = args[:insert_time] unless args[:insert_time].nil?
  @name = args[:name] unless args[:name].nil?
  @self_link = args[:self_link] unless args[:self_link].nil?
end