Class: Google::Apis::DeploymentmanagerV2::Type

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

Overview

A resource type supported by Deployment Manager.

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

Returns a new instance of Type



1722
1723
1724
# File 'generated/google/apis/deploymentmanager_v2/classes.rb', line 1722

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

Instance Attribute Details

#idFixnum

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

Returns:

  • (Fixnum)


1700
1701
1702
# File 'generated/google/apis/deploymentmanager_v2/classes.rb', line 1700

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)


1705
1706
1707
# File 'generated/google/apis/deploymentmanager_v2/classes.rb', line 1705

def insert_time
  @insert_time
end

#nameString

Name of the type. Corresponds to the JSON property name

Returns:

  • (String)


1710
1711
1712
# File 'generated/google/apis/deploymentmanager_v2/classes.rb', line 1710

def name
  @name
end

#operationGoogle::Apis::DeploymentmanagerV2::Operation

An Operation resource, used to manage asynchronous API requests. Corresponds to the JSON property operation



1715
1716
1717
# File 'generated/google/apis/deploymentmanager_v2/classes.rb', line 1715

def operation
  @operation
end

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

Returns:

  • (String)


1720
1721
1722
# File 'generated/google/apis/deploymentmanager_v2/classes.rb', line 1720

def self_link
  @self_link
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1727
1728
1729
1730
1731
1732
1733
# File 'generated/google/apis/deploymentmanager_v2/classes.rb', line 1727

def update!(**args)
  @id = args[:id] if args.key?(:id)
  @insert_time = args[:insert_time] if args.key?(:insert_time)
  @name = args[:name] if args.key?(:name)
  @operation = args[:operation] if args.key?(:operation)
  @self_link = args[:self_link] if args.key?(:self_link)
end