Class: Google::Apis::DeploymentmanagerAlpha::DeploymentUpdate

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

Returns a new instance of DeploymentUpdate.



760
761
762
# File 'lib/google/apis/deploymentmanager_alpha/classes.rb', line 760

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



737
738
739
# File 'lib/google/apis/deploymentmanager_alpha/classes.rb', line 737

def credential
  @credential
end

#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)


743
744
745
# File 'lib/google/apis/deploymentmanager_alpha/classes.rb', line 743

def description
  @description
end

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

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



752
753
754
# File 'lib/google/apis/deploymentmanager_alpha/classes.rb', line 752

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)


758
759
760
# File 'lib/google/apis/deploymentmanager_alpha/classes.rb', line 758

def manifest
  @manifest
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



765
766
767
768
769
770
# File 'lib/google/apis/deploymentmanager_alpha/classes.rb', line 765

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