Class: Google::Apis::DeploymentmanagerAlpha::CompositeType

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

Overview

Holds the composite type.

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

Returns a new instance of CompositeType.


362
363
364
# File 'generated/google/apis/deploymentmanager_alpha/classes.rb', line 362

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

Instance Attribute Details

#descriptionString

An optional textual description of the resource; provided by the client when the resource is created. Corresponds to the JSON property description

Returns:

  • (String)

301
302
303
# File 'generated/google/apis/deploymentmanager_alpha/classes.rb', line 301

def description
  @description
end

#idFixnum

Corresponds to the JSON property id

Returns:

  • (Fixnum)

306
307
308
# File 'generated/google/apis/deploymentmanager_alpha/classes.rb', line 306

def id
  @id
end

#insert_timeString

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

Returns:

  • (String)

311
312
313
# File 'generated/google/apis/deploymentmanager_alpha/classes.rb', line 311

def insert_time
  @insert_time
end

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

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]*[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


320
321
322
# File 'generated/google/apis/deploymentmanager_alpha/classes.rb', line 320

def labels
  @labels
end

#nameString

Name of the composite type, must follow the expression: [a-z]([-a-z0-9_.]0, 61[a-z0-9])?. Corresponds to the JSON property name

Returns:

  • (String)

326
327
328
# File 'generated/google/apis/deploymentmanager_alpha/classes.rb', line 326

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 zonalOperations resource. For more information, read Global, Regional, and Zonal Resources. (== resource_for $api_version.globalOperations ==) (== resource_for $ api_version.regionOperations ==) (== resource_for $api_version. zoneOperations ==) Corresponds to the JSON property operation

345
346
347
# File 'generated/google/apis/deploymentmanager_alpha/classes.rb', line 345

def operation
  @operation
end

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

Returns:

  • (String)

350
351
352
# File 'generated/google/apis/deploymentmanager_alpha/classes.rb', line 350

def self_link
  @self_link
end

#statusString

Corresponds to the JSON property status

Returns:

  • (String)

355
356
357
# File 'generated/google/apis/deploymentmanager_alpha/classes.rb', line 355

def status
  @status
end

#template_contentsGoogle::Apis::DeploymentmanagerAlpha::TemplateContents

Files that make up the template contents of a template type. Corresponds to the JSON property templateContents


360
361
362
# File 'generated/google/apis/deploymentmanager_alpha/classes.rb', line 360

def template_contents
  @template_contents
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object


367
368
369
370
371
372
373
374
375
376
377
# File 'generated/google/apis/deploymentmanager_alpha/classes.rb', line 367

def update!(**args)
  @description = args[:description] if args.key?(:description)
  @id = args[:id] if args.key?(:id)
  @insert_time = args[:insert_time] if args.key?(:insert_time)
  @labels = args[:labels] if args.key?(:labels)
  @name = args[:name] if args.key?(:name)
  @operation = args[:operation] if args.key?(:operation)
  @self_link = args[:self_link] if args.key?(:self_link)
  @status = args[:status] if args.key?(:status)
  @template_contents = args[:template_contents] if args.key?(:template_contents)
end