Class: Google::Apis::ManagerV1beta2::Deployment
- Inherits:
-
Object
- Object
- Google::Apis::ManagerV1beta2::Deployment
- 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
-
#creation_date ⇒ String
[Output Only] The time when this deployment was created.
-
#description ⇒ String
A user-supplied description of this Deployment.
-
#modules ⇒ Hash<String,Google::Apis::ManagerV1beta2::ModuleStatus>
[Output Only] List of status for the modules in this deployment.
-
#name ⇒ String
Name of this deployment.
-
#overrides ⇒ Array<Google::Apis::ManagerV1beta2::ParamOverride>
The set of parameter overrides to apply to the corresponding Template before deploying.
-
#state ⇒ Google::Apis::ManagerV1beta2::DeployState
[Output Only] The current state of a replica or module.
-
#template_name ⇒ String
The name of the Template on which this deployment is based.
Instance Method Summary collapse
-
#initialize(**args) ⇒ Deployment
constructor
A new instance of Deployment.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
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_date ⇒ String
[Output Only] The time when this deployment was created.
Corresponds to the JSON property creationDate
223 224 225 |
# File 'generated/google/apis/manager_v1beta2/classes.rb', line 223 def creation_date @creation_date end |
#description ⇒ String
A user-supplied description of this Deployment.
Corresponds to the JSON property description
228 229 230 |
# File 'generated/google/apis/manager_v1beta2/classes.rb', line 228 def description @description end |
#modules ⇒ Hash<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 |
#name ⇒ String
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
239 240 241 |
# File 'generated/google/apis/manager_v1beta2/classes.rb', line 239 def name @name end |
#overrides ⇒ Array<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 |
#state ⇒ Google::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_name ⇒ String
The name of the Template on which this deployment is based.
Corresponds to the JSON property templateName
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 |