Class: Google::Apis::DeploymentmanagerV2::Type
- Inherits:
-
Object
- Object
- Google::Apis::DeploymentmanagerV2::Type
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/deploymentmanager_v2/classes.rb,
lib/google/apis/deploymentmanager_v2/representations.rb,
lib/google/apis/deploymentmanager_v2/representations.rb
Overview
A resource type supported by Deployment Manager.
Instance Attribute Summary collapse
-
#id ⇒ Fixnum
Corresponds to the JSON property
id
. -
#insert_time ⇒ String
Output only.
-
#name ⇒ String
Name of the type.
-
#operation ⇒ Google::Apis::DeploymentmanagerV2::Operation
Represents an Operation resource.
-
#self_link ⇒ String
Output only.
Instance Method Summary collapse
-
#initialize(**args) ⇒ Type
constructor
A new instance of Type.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ Type
Returns a new instance of Type.
2186 2187 2188 |
# File 'lib/google/apis/deploymentmanager_v2/classes.rb', line 2186 def initialize(**args) update!(**args) end |
Instance Attribute Details
#id ⇒ Fixnum
Corresponds to the JSON property id
2154 2155 2156 |
# File 'lib/google/apis/deploymentmanager_v2/classes.rb', line 2154 def id @id end |
#insert_time ⇒ String
Output only. Creation timestamp in RFC3339 text format.
Corresponds to the JSON property insertTime
2159 2160 2161 |
# File 'lib/google/apis/deploymentmanager_v2/classes.rb', line 2159 def insert_time @insert_time end |
#name ⇒ String
Name of the type.
Corresponds to the JSON property name
2164 2165 2166 |
# File 'lib/google/apis/deploymentmanager_v2/classes.rb', line 2164 def name @name end |
#operation ⇒ Google::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 zoneOperations
resource. For more information,
read Global, Regional, and Zonal Resources. Note that completed Operation
resources have a limited retention period.
Corresponds to the JSON property operation
2179 2180 2181 |
# File 'lib/google/apis/deploymentmanager_v2/classes.rb', line 2179 def operation @operation end |
#self_link ⇒ String
Output only. Server defined URL for the resource.
Corresponds to the JSON property selfLink
2184 2185 2186 |
# File 'lib/google/apis/deploymentmanager_v2/classes.rb', line 2184 def self_link @self_link end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
2191 2192 2193 2194 2195 2196 2197 |
# File 'lib/google/apis/deploymentmanager_v2/classes.rb', line 2191 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 |