Class: Google::Apis::DeploymentmanagerV2::Deployment
- Inherits:
-
Object
- Object
- Google::Apis::DeploymentmanagerV2::Deployment
- 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
Instance Attribute Summary collapse
-
#description ⇒ String
An optional user-provided description of the deployment.
-
#fingerprint ⇒ String
Provides a fingerprint to use in requests to modify a deployment, such as
update()
,stop()
, andcancelPreview()
requests. -
#id ⇒ Fixnum
Corresponds to the JSON property
id
. -
#insert_time ⇒ String
Output only.
-
#labels ⇒ Array<Google::Apis::DeploymentmanagerV2::DeploymentLabelEntry>
Map of One Platform labels; provided by the client when the resource is created or updated.
-
#manifest ⇒ String
Output only.
-
#name ⇒ String
Name of the resource; provided by the client when the resource is created.
-
#operation ⇒ Google::Apis::DeploymentmanagerV2::Operation
Represents an Operation resource.
-
#self_link ⇒ String
Output only.
-
#target ⇒ Google::Apis::DeploymentmanagerV2::TargetConfiguration
[Input Only] The parameters that define your deployment, including the deployment configuration and relevant templates.
-
#update ⇒ Google::Apis::DeploymentmanagerV2::DeploymentUpdate
Output only.
-
#update_time ⇒ String
Output only.
Instance Method Summary collapse
-
#initialize(**args) ⇒ Deployment
constructor
A new instance of Deployment.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ Deployment
Returns a new instance of Deployment.
380 381 382 |
# File 'lib/google/apis/deploymentmanager_v2/classes.rb', line 380 def initialize(**args) update!(**args) end |
Instance Attribute Details
#description ⇒ String
An optional user-provided description of the deployment.
Corresponds to the JSON property description
292 293 294 |
# File 'lib/google/apis/deploymentmanager_v2/classes.rb', line 292 def description @description end |
#fingerprint ⇒ String
Provides a fingerprint to use in requests to modify a deployment, such as
update()
, stop()
, and cancelPreview()
requests. A fingerprint is a
randomly generated value that must be provided with update()
, stop()
, and
cancelPreview()
requests to perform optimistic locking. This ensures
optimistic concurrency so that only one request happens at a time. The
fingerprint is initially generated by Deployment Manager and changes after
every request to modify data. To get the latest fingerprint value, perform a
get()
request to a deployment.
Corresponds to the JSON property fingerprint
NOTE: Values are automatically base64 encoded/decoded in the client library.
305 306 307 |
# File 'lib/google/apis/deploymentmanager_v2/classes.rb', line 305 def fingerprint @fingerprint end |
#id ⇒ Fixnum
Corresponds to the JSON property id
310 311 312 |
# File 'lib/google/apis/deploymentmanager_v2/classes.rb', line 310 def id @id end |
#insert_time ⇒ String
Output only. Creation timestamp in RFC3339 text format.
Corresponds to the JSON property insertTime
315 316 317 |
# File 'lib/google/apis/deploymentmanager_v2/classes.rb', line 315 def insert_time @insert_time end |
#labels ⇒ Array<Google::Apis::DeploymentmanagerV2::DeploymentLabelEntry>
Map of One Platform labels; provided by the client when the resource is
created or updated. Specifically: Label keys must be between 1 and 63
characters long and must conform to the following regular expression: [a-z]([-
a-z0-9]*[a-z0-9])?
Label values must be between 0 and 63 characters long and
must conform to the regular expression ([a-z]([-a-z0-9]*[a-z0-9])?)?
.
Corresponds to the JSON property labels
324 325 326 |
# File 'lib/google/apis/deploymentmanager_v2/classes.rb', line 324 def labels @labels end |
#manifest ⇒ String
Output only. URL of the manifest representing the last manifest that was
successfully deployed. If no manifest has been successfully deployed, this
field will be absent.
Corresponds to the JSON property manifest
331 332 333 |
# File 'lib/google/apis/deploymentmanager_v2/classes.rb', line 331 def manifest @manifest end |
#name ⇒ String
Name of the resource; provided by the client when the resource is created. The
name must be 1-63 characters long, and comply with RFC1035. Specifically, the
name must be 1-63 characters long and match the regular expression [a-z]([-a-
z0-9]*[a-z0-9])?
which means the first character must be a lowercase letter,
and all following characters must be a dash, lowercase letter, or digit,
except the last character, which cannot be a dash.
Corresponds to the JSON property name
341 342 343 |
# File 'lib/google/apis/deploymentmanager_v2/classes.rb', line 341 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
356 357 358 |
# File 'lib/google/apis/deploymentmanager_v2/classes.rb', line 356 def operation @operation end |
#self_link ⇒ String
Output only. Server defined URL for the resource.
Corresponds to the JSON property selfLink
361 362 363 |
# File 'lib/google/apis/deploymentmanager_v2/classes.rb', line 361 def self_link @self_link end |
#target ⇒ Google::Apis::DeploymentmanagerV2::TargetConfiguration
[Input Only] The parameters that define your deployment, including the
deployment configuration and relevant templates.
Corresponds to the JSON property target
367 368 369 |
# File 'lib/google/apis/deploymentmanager_v2/classes.rb', line 367 def target @target end |
#update ⇒ Google::Apis::DeploymentmanagerV2::DeploymentUpdate
Output only. If Deployment Manager is currently updating or previewing an
update to this deployment, the updated configuration appears here.
Corresponds to the JSON property update
373 374 375 |
# File 'lib/google/apis/deploymentmanager_v2/classes.rb', line 373 def update @update end |
#update_time ⇒ String
Output only. Update timestamp in RFC3339 text format.
Corresponds to the JSON property updateTime
378 379 380 |
# File 'lib/google/apis/deploymentmanager_v2/classes.rb', line 378 def update_time @update_time end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
385 386 387 388 389 390 391 392 393 394 395 396 397 398 |
# File 'lib/google/apis/deploymentmanager_v2/classes.rb', line 385 def update!(**args) @description = args[:description] if args.key?(:description) @fingerprint = args[:fingerprint] if args.key?(:fingerprint) @id = args[:id] if args.key?(:id) @insert_time = args[:insert_time] if args.key?(:insert_time) @labels = args[:labels] if args.key?(:labels) @manifest = args[:manifest] if args.key?(:manifest) @name = args[:name] if args.key?(:name) @operation = args[:operation] if args.key?(:operation) @self_link = args[:self_link] if args.key?(:self_link) @target = args[:target] if args.key?(:target) @update = args[:update] if args.key?(:update) @update_time = args[:update_time] if args.key?(:update_time) end |