Class: Google::Apis::DeploymentmanagerAlpha::Deployment

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ Deployment

Returns a new instance of Deployment.



681
682
683
# File 'lib/google/apis/deploymentmanager_alpha/classes.rb', line 681

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

Instance Attribute Details

#credentialGoogle::Apis::DeploymentmanagerAlpha::Credential

The credential used by Deployment Manager and TypeProvider. Only one of the options is permitted. Corresponds to the JSON property credential



583
584
585
# File 'lib/google/apis/deploymentmanager_alpha/classes.rb', line 583

def credential
  @credential
end

#descriptionString

An optional user-provided description of the deployment. Corresponds to the JSON property description

Returns:

  • (String)


588
589
590
# File 'lib/google/apis/deploymentmanager_alpha/classes.rb', line 588

def description
  @description
end

#fingerprintString

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.

Returns:

  • (String)


601
602
603
# File 'lib/google/apis/deploymentmanager_alpha/classes.rb', line 601

def fingerprint
  @fingerprint
end

#idFixnum

Corresponds to the JSON property id

Returns:

  • (Fixnum)


606
607
608
# File 'lib/google/apis/deploymentmanager_alpha/classes.rb', line 606

def id
  @id
end

#insert_timeString

Output only. Creation timestamp in RFC3339 text format. Corresponds to the JSON property insertTime

Returns:

  • (String)


611
612
613
# File 'lib/google/apis/deploymentmanager_alpha/classes.rb', line 611

def insert_time
  @insert_time
end

#labelsArray<Google::Apis::DeploymentmanagerAlpha::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



620
621
622
# File 'lib/google/apis/deploymentmanager_alpha/classes.rb', line 620

def labels
  @labels
end

#manifestString

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

Returns:

  • (String)


627
628
629
# File 'lib/google/apis/deploymentmanager_alpha/classes.rb', line 627

def manifest
  @manifest
end

#nameString

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

Returns:

  • (String)


637
638
639
# File 'lib/google/apis/deploymentmanager_alpha/classes.rb', line 637

def name
  @name
end

#operationGoogle::Apis::DeploymentmanagerAlpha::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



652
653
654
# File 'lib/google/apis/deploymentmanager_alpha/classes.rb', line 652

def operation
  @operation
end

#outputsArray<Google::Apis::DeploymentmanagerAlpha::DeploymentOutputEntry>

Output only. List of outputs from the last manifest that deployed successfully. Corresponds to the JSON property outputs



657
658
659
# File 'lib/google/apis/deploymentmanager_alpha/classes.rb', line 657

def outputs
  @outputs
end

Output only. Server defined URL for the resource. Corresponds to the JSON property selfLink

Returns:

  • (String)


662
663
664
# File 'lib/google/apis/deploymentmanager_alpha/classes.rb', line 662

def self_link
  @self_link
end

#targetGoogle::Apis::DeploymentmanagerAlpha::TargetConfiguration

[Input Only] The parameters that define your deployment, including the deployment configuration and relevant templates. Corresponds to the JSON property target



668
669
670
# File 'lib/google/apis/deploymentmanager_alpha/classes.rb', line 668

def target
  @target
end

#updateGoogle::Apis::DeploymentmanagerAlpha::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



674
675
676
# File 'lib/google/apis/deploymentmanager_alpha/classes.rb', line 674

def update
  @update
end

#update_timeString

Output only. Update timestamp in RFC3339 text format. Corresponds to the JSON property updateTime

Returns:

  • (String)


679
680
681
# File 'lib/google/apis/deploymentmanager_alpha/classes.rb', line 679

def update_time
  @update_time
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
# File 'lib/google/apis/deploymentmanager_alpha/classes.rb', line 686

def update!(**args)
  @credential = args[:credential] if args.key?(:credential)
  @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)
  @outputs = args[:outputs] if args.key?(:outputs)
  @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