class Google::Apis::DeploymentmanagerV2::Deployment
Attributes
An optional user-provided description of the deployment. Corresponds to the JSON property `description` @return [String]
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` @return [String]
- Output Only
-
Unique identifier for the resource; defined by the server.
Corresponds to the JSON property `id` @return [String]
- Output Only
-
Timestamp when the deployment was created, in RFC3339 text
format . Corresponds to the JSON property `insertTime` @return [String]
Map of 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])? Label values must be between 0 and 63 characters long and must conform to the regular expression ([a-z](*[a-z0-9])?)? Corresponds to the JSON property `labels` @return [Array<Google::Apis::DeploymentmanagerV2::DeploymentLabelEntry>]
- Output Only
-
URL of the manifest representing the last manifest that was
successfully deployed. Corresponds to the JSON property `manifest` @return [String]
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]*)? 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` @return [String]
An Operation resource, used to manage asynchronous API requests. Corresponds to the JSON property `operation` @return [Google::Apis::DeploymentmanagerV2::Operation]
- Output Only
-
Self link for the deployment.
Corresponds to the JSON property `selfLink` @return [String]
Corresponds to the JSON property `target` @return [Google::Apis::DeploymentmanagerV2::TargetConfiguration]
Corresponds to the JSON property `update` @return [Google::Apis::DeploymentmanagerV2::DeploymentUpdate]
Public Class Methods
# File generated/google/apis/deploymentmanager_v2/classes.rb, line 121 def initialize(**args) update!(**args) end
Public Instance Methods
Update properties of this object
# File generated/google/apis/deploymentmanager_v2/classes.rb, line 126 def update!(**args) @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) @self_link = args[:self_link] if args.key?(:self_link) @target = args[:target] if args.key?(:target) @update = args[:update] if args.key?(:update) end