Class: Google::Apis::DeploymentmanagerV2beta2::Resource

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

Returns a new instance of Resource



655
656
657
# File 'generated/google/apis/deploymentmanager_v2beta2/classes.rb', line 655

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

Instance Attribute Details

#final_propertiesString

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

Returns:

  • (String)


604
605
606
# File 'generated/google/apis/deploymentmanager_v2beta2/classes.rb', line 604

def final_properties
  @final_properties
end

#idString

[Output Only] Unique identifier for the resource; defined by the server. Corresponds to the JSON property id

Returns:

  • (String)


609
610
611
# File 'generated/google/apis/deploymentmanager_v2beta2/classes.rb', line 609

def id
  @id
end

#insert_timeString

[Output Only] Timestamp when the resource was created or acquired, in RFC3339 text format . Corresponds to the JSON property insertTime

Returns:

  • (String)


615
616
617
# File 'generated/google/apis/deploymentmanager_v2beta2/classes.rb', line 615

def insert_time
  @insert_time
end

#manifestString

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

Returns:

  • (String)


621
622
623
# File 'generated/google/apis/deploymentmanager_v2beta2/classes.rb', line 621

def manifest
  @manifest
end

#nameString

[Output Only] The name of the resource as it appears in the YAML config. Corresponds to the JSON property name

Returns:

  • (String)


626
627
628
# File 'generated/google/apis/deploymentmanager_v2beta2/classes.rb', line 626

def name
  @name
end

#propertiesString

[Output Only] The current properties of the resource before any references have been filled in. Returned as serialized YAML. Corresponds to the JSON property properties

Returns:

  • (String)


632
633
634
# File 'generated/google/apis/deploymentmanager_v2beta2/classes.rb', line 632

def properties
  @properties
end

#typeString

[Output Only] The type of the resource, for example compute.v1.instance, or replicaPools.v1beta2.instanceGroupManager. Corresponds to the JSON property type

Returns:

  • (String)


638
639
640
# File 'generated/google/apis/deploymentmanager_v2beta2/classes.rb', line 638

def type
  @type
end

#updateGoogle::Apis::DeploymentmanagerV2beta2::ResourceUpdate

Corresponds to the JSON property update



643
644
645
# File 'generated/google/apis/deploymentmanager_v2beta2/classes.rb', line 643

def update
  @update
end

#update_timeString

[Output Only] Timestamp when the resource was updated, in RFC3339 text format . Corresponds to the JSON property updateTime

Returns:

  • (String)


648
649
650
# File 'generated/google/apis/deploymentmanager_v2beta2/classes.rb', line 648

def update_time
  @update_time
end

#urlString

[Output Only] The URL of the actual resource. Corresponds to the JSON property url

Returns:

  • (String)


653
654
655
# File 'generated/google/apis/deploymentmanager_v2beta2/classes.rb', line 653

def url
  @url
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



660
661
662
663
664
665
666
667
668
669
670
671
# File 'generated/google/apis/deploymentmanager_v2beta2/classes.rb', line 660

def update!(**args)
  @final_properties = args[:final_properties] unless args[:final_properties].nil?
  @id = args[:id] unless args[:id].nil?
  @insert_time = args[:insert_time] unless args[:insert_time].nil?
  @manifest = args[:manifest] unless args[:manifest].nil?
  @name = args[:name] unless args[:name].nil?
  @properties = args[:properties] unless args[:properties].nil?
  @type = args[:type] unless args[:type].nil?
  @update = args[:update] unless args[:update].nil?
  @update_time = args[:update_time] unless args[:update_time].nil?
  @url = args[:url] unless args[:url].nil?
end