Class: Google::Apis::ConfigV1::DeploymentGroupRevision

Inherits:
Object
  • Object
show all
Includes:
Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
Defined in:
lib/google/apis/config_v1/classes.rb,
lib/google/apis/config_v1/representations.rb,
lib/google/apis/config_v1/representations.rb

Overview

A DeploymentGroupRevision represents a snapshot of a DeploymentGroup at a given point in time, created when a DeploymentGroup is provisioned or deprovisioned.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ DeploymentGroupRevision

Returns a new instance of DeploymentGroupRevision.



602
603
604
# File 'lib/google/apis/config_v1/classes.rb', line 602

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

Instance Attribute Details

#alternative_idsArray<String>

Output only. The alternative IDs of the deployment group revision. Corresponds to the JSON property alternativeIds

Returns:

  • (Array<String>)


582
583
584
# File 'lib/google/apis/config_v1/classes.rb', line 582

def alternative_ids
  @alternative_ids
end

#create_timeString

Output only. Time when the deployment group revision was created. Corresponds to the JSON property createTime

Returns:

  • (String)


587
588
589
# File 'lib/google/apis/config_v1/classes.rb', line 587

def create_time
  @create_time
end

#nameString

Identifier. The name of the deployment group revision. Format: 'projects/ project_id/locations/location/deploymentGroups/deployment_group/revisions/ revision'. Corresponds to the JSON property name

Returns:

  • (String)


594
595
596
# File 'lib/google/apis/config_v1/classes.rb', line 594

def name
  @name
end

#snapshotGoogle::Apis::ConfigV1::DeploymentGroup

A DeploymentGroup is a collection of DeploymentUnits that in a DAG-like structure. Corresponds to the JSON property snapshot



600
601
602
# File 'lib/google/apis/config_v1/classes.rb', line 600

def snapshot
  @snapshot
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



607
608
609
610
611
612
# File 'lib/google/apis/config_v1/classes.rb', line 607

def update!(**args)
  @alternative_ids = args[:alternative_ids] if args.key?(:alternative_ids)
  @create_time = args[:create_time] if args.key?(:create_time)
  @name = args[:name] if args.key?(:name)
  @snapshot = args[:snapshot] if args.key?(:snapshot)
end