Class: Google::Apis::DeploymentmanagerV2beta2::ResourceUpdate

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ ResourceUpdate

Returns a new instance of ResourceUpdate.


712
713
714
# File 'generated/google/apis/deploymentmanager_v2beta2/classes.rb', line 712

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

Instance Attribute Details

#errorsArray<String>

[Output Only] List of all errors encountered while trying to enact update. intent. Corresponds to the JSON property errors

Returns:

  • (Array<String>)

682
683
684
# File 'generated/google/apis/deploymentmanager_v2beta2/classes.rb', line 682

def errors
  @errors
end

#final_propertiesString

[Output Only] The expanded properties of the resource with reference values expanded. Returned as serialized YAML. Corresponds to the JSON property finalProperties

Returns:

  • (String)

688
689
690
# File 'generated/google/apis/deploymentmanager_v2beta2/classes.rb', line 688

def final_properties
  @final_properties
end

#intentString

[Output Only] The intent of the resource: PREVIEW, UPDATE, or CANCEL. Corresponds to the JSON property intent

Returns:

  • (String)

693
694
695
# File 'generated/google/apis/deploymentmanager_v2beta2/classes.rb', line 693

def intent
  @intent
end

#manifestString

[Output Only] URL of the manifest representing the update configuration of this resource. Corresponds to the JSON property manifest

Returns:

  • (String)

699
700
701
# File 'generated/google/apis/deploymentmanager_v2beta2/classes.rb', line 699

def manifest
  @manifest
end

#propertiesString

[Output Only] The set of updated properties for this resource, before references are expanded. Returned as serialized YAML. Corresponds to the JSON property properties

Returns:

  • (String)

705
706
707
# File 'generated/google/apis/deploymentmanager_v2beta2/classes.rb', line 705

def properties
  @properties
end

#stateString

[Output Only] The state of the resource. Corresponds to the JSON property state

Returns:

  • (String)

710
711
712
# File 'generated/google/apis/deploymentmanager_v2beta2/classes.rb', line 710

def state
  @state
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object


717
718
719
720
721
722
723
724
# File 'generated/google/apis/deploymentmanager_v2beta2/classes.rb', line 717

def update!(**args)
  @errors = args[:errors] unless args[:errors].nil?
  @final_properties = args[:final_properties] unless args[:final_properties].nil?
  @intent = args[:intent] unless args[:intent].nil?
  @manifest = args[:manifest] unless args[:manifest].nil?
  @properties = args[:properties] unless args[:properties].nil?
  @state = args[:state] unless args[:state].nil?
end