Class: Google::Apis::DeploymentmanagerV2::DeploymentUpdate

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

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

Returns a new instance of DeploymentUpdate.


441
442
443
# File 'generated/google/apis/deploymentmanager_v2/classes.rb', line 441

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

Instance Attribute Details

#descriptionString

Output only. An optional user-provided description of the deployment after the current update has been applied. Corresponds to the JSON property description

Returns:

  • (String)

424
425
426
# File 'generated/google/apis/deploymentmanager_v2/classes.rb', line 424

def description
  @description
end

#labelsArray<Google::Apis::DeploymentmanagerV2::DeploymentUpdateLabelEntry>

Output only. Map of 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


433
434
435
# File 'generated/google/apis/deploymentmanager_v2/classes.rb', line 433

def labels
  @labels
end

#manifestString

Output only. URL of the manifest representing the update configuration of this deployment. Corresponds to the JSON property manifest

Returns:

  • (String)

439
440
441
# File 'generated/google/apis/deploymentmanager_v2/classes.rb', line 439

def manifest
  @manifest
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object


446
447
448
449
450
# File 'generated/google/apis/deploymentmanager_v2/classes.rb', line 446

def update!(**args)
  @description = args[:description] if args.key?(:description)
  @labels = args[:labels] if args.key?(:labels)
  @manifest = args[:manifest] if args.key?(:manifest)
end