Class: Google::Apis::ManagerV1beta2::Template

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 Template represents a complete configuration for a Deployment.

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

Returns a new instance of Template



1248
1249
1250
# File 'generated/google/apis/manager_v1beta2/classes.rb', line 1248

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

Instance Attribute Details

#actionsHash<String,Google::Apis::ManagerV1beta2::Action>

Action definitions for use in Module intents in this Template. Corresponds to the JSON property actions

Returns:



1230
1231
1232
# File 'generated/google/apis/manager_v1beta2/classes.rb', line 1230

def actions
  @actions
end

#descriptionString

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

Returns:

  • (String)


1235
1236
1237
# File 'generated/google/apis/manager_v1beta2/classes.rb', line 1235

def description
  @description
end

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

A list of modules for this Template. Corresponds to the JSON property modules

Returns:



1240
1241
1242
# File 'generated/google/apis/manager_v1beta2/classes.rb', line 1240

def modules
  @modules
end

#nameString

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

Returns:

  • (String)


1246
1247
1248
# File 'generated/google/apis/manager_v1beta2/classes.rb', line 1246

def name
  @name
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1253
1254
1255
1256
1257
1258
# File 'generated/google/apis/manager_v1beta2/classes.rb', line 1253

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