Class: Google::Apis::DeploymentmanagerV2::Deployment

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ Deployment


325
326
327
# File 'generated/google/apis/deploymentmanager_v2/classes.rb', line 325

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

Instance Attribute Details

#descriptionString

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


246
247
248
# File 'generated/google/apis/deploymentmanager_v2/classes.rb', line 246

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.


259
260
261
# File 'generated/google/apis/deploymentmanager_v2/classes.rb', line 259

def fingerprint
  @fingerprint
end

#idFixnum

Corresponds to the JSON property id


264
265
266
# File 'generated/google/apis/deploymentmanager_v2/classes.rb', line 264

def id
  @id
end

#insert_timeString

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


269
270
271
# File 'generated/google/apis/deploymentmanager_v2/classes.rb', line 269

def insert_time
  @insert_time
end

#labelsArray<Google::Apis::DeploymentmanagerV2::DeploymentLabelEntry>

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? Label values must be between 0 and 63 characters long and must conform to the regular expression (a-z?)? Corresponds to the JSON property labels


278
279
280
# File 'generated/google/apis/deploymentmanager_v2/classes.rb', line 278

def labels
  @labels
end

#manifestString

Output only. URL of the manifest representing the last manifest that was successfully deployed. Corresponds to the JSON property manifest


284
285
286
# File 'generated/google/apis/deploymentmanager_v2/classes.rb', line 284

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? 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


294
295
296
# File 'generated/google/apis/deploymentmanager_v2/classes.rb', line 294

def name
  @name
end

#operationGoogle::Apis::DeploymentmanagerV2::Operation

An Operation resource, used to manage asynchronous API requests. (== resource_for v1.globalOperations ==) (== resource_for beta.globalOperations ==) (== resource_for v1.regionOperations ==) (== resource_for beta. regionOperations ==) (== resource_for v1.zoneOperations ==) (== resource_for beta.zoneOperations ==) Corresponds to the JSON property operation


303
304
305
# File 'generated/google/apis/deploymentmanager_v2/classes.rb', line 303

def operation
  @operation
end

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


308
309
310
# File 'generated/google/apis/deploymentmanager_v2/classes.rb', line 308

def self_link
  @self_link
end

#targetGoogle::Apis::DeploymentmanagerV2::TargetConfiguration

Corresponds to the JSON property target


313
314
315
# File 'generated/google/apis/deploymentmanager_v2/classes.rb', line 313

def target
  @target
end

#updateGoogle::Apis::DeploymentmanagerV2::DeploymentUpdate

Corresponds to the JSON property update


318
319
320
# File 'generated/google/apis/deploymentmanager_v2/classes.rb', line 318

def update
  @update
end

#update_timeString

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


323
324
325
# File 'generated/google/apis/deploymentmanager_v2/classes.rb', line 323

def update_time
  @update_time
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object


330
331
332
333
334
335
336
337
338
339
340
341
342
343
# File 'generated/google/apis/deploymentmanager_v2/classes.rb', line 330

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)
  @update_time = args[:update_time] if args.key?(:update_time)
end