Class: Google::Apis::ManagerV1beta2::Deployment

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

Overview

A deployment represents a physical instantiation of a Template.

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

Returns a new instance of Deployment



257
258
259
# File 'generated/google/apis/manager_v1beta2/classes.rb', line 257

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

Instance Attribute Details

#creation_dateString

[Output Only] The time when this deployment was created. Corresponds to the JSON property creationDate

Returns:

  • (String)


223
224
225
# File 'generated/google/apis/manager_v1beta2/classes.rb', line 223

def creation_date
  @creation_date
end

#descriptionString

A user-supplied description of this Deployment. Corresponds to the JSON property description

Returns:

  • (String)


228
229
230
# File 'generated/google/apis/manager_v1beta2/classes.rb', line 228

def description
  @description
end

#modulesHash<String,Google::Apis::ManagerV1beta2::ModuleStatus>

[Output Only] List of status for the modules in this deployment. Corresponds to the JSON property modules



233
234
235
# File 'generated/google/apis/manager_v1beta2/classes.rb', line 233

def modules
  @modules
end

#nameString

Name of this deployment. The name must conform to the following regular expression: [a-zA-Z0-9-_]1,64 Corresponds to the JSON property name

Returns:

  • (String)


239
240
241
# File 'generated/google/apis/manager_v1beta2/classes.rb', line 239

def name
  @name
end

#overridesArray<Google::Apis::ManagerV1beta2::ParamOverride>

The set of parameter overrides to apply to the corresponding Template before deploying. Corresponds to the JSON property overrides



245
246
247
# File 'generated/google/apis/manager_v1beta2/classes.rb', line 245

def overrides
  @overrides
end

#stateGoogle::Apis::ManagerV1beta2::DeployState

[Output Only] The current state of a replica or module. Corresponds to the JSON property state



250
251
252
# File 'generated/google/apis/manager_v1beta2/classes.rb', line 250

def state
  @state
end

#template_nameString

The name of the Template on which this deployment is based. Corresponds to the JSON property templateName

Returns:

  • (String)


255
256
257
# File 'generated/google/apis/manager_v1beta2/classes.rb', line 255

def template_name
  @template_name
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



262
263
264
265
266
267
268
269
270
# File 'generated/google/apis/manager_v1beta2/classes.rb', line 262

def update!(**args)
  @creation_date = args[:creation_date] if args.key?(:creation_date)
  @description = args[:description] if args.key?(:description)
  @modules = args[:modules] if args.key?(:modules)
  @name = args[:name] if args.key?(:name)
  @overrides = args[:overrides] if args.key?(:overrides)
  @state = args[:state] if args.key?(:state)
  @template_name = args[:template_name] if args.key?(:template_name)
end