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

Constructor Details

#initialize(**args) ⇒ Type

Returns a new instance of Type.



1598
1599
1600
# File 'generated/google/apis/deploymentmanager_v2/classes.rb', line 1598

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

Instance Attribute Details

#idFixnum

Corresponds to the JSON property id

Returns:

  • (Fixnum)


1567
1568
1569
# File 'generated/google/apis/deploymentmanager_v2/classes.rb', line 1567

def id
  @id
end

#insert_timeString

Output only. Creation timestamp in RFC3339 text format. Corresponds to the JSON property insertTime

Returns:

  • (String)


1572
1573
1574
# File 'generated/google/apis/deploymentmanager_v2/classes.rb', line 1572

def insert_time
  @insert_time
end

#nameString

Name of the type. Corresponds to the JSON property name

Returns:

  • (String)


1577
1578
1579
# File 'generated/google/apis/deploymentmanager_v2/classes.rb', line 1577

def name
  @name
end

#operationGoogle::Apis::DeploymentmanagerV2::Operation

Represents an Operation resource. Google Compute Engine has three Operation resources: * Global * Regional * Zonal You can use an operation resource to manage asynchronous API requests. For more information, read Handling API responses. Operations can be global, regional or zonal. - For global operations, use the globalOperations resource. - For regional operations, use the regionOperations resource. - For zonal operations, use the zonalOperations resource. For more information, read Global, Regional, and Zonal Resources. Corresponds to the JSON property operation



1591
1592
1593
# File 'generated/google/apis/deploymentmanager_v2/classes.rb', line 1591

def operation
  @operation
end

Output only. Server defined URL for the resource. Corresponds to the JSON property selfLink

Returns:

  • (String)


1596
1597
1598
# File 'generated/google/apis/deploymentmanager_v2/classes.rb', line 1596

def self_link
  @self_link
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1603
1604
1605
1606
1607
1608
1609
# File 'generated/google/apis/deploymentmanager_v2/classes.rb', line 1603

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