Class: Google::Apis::ReplicapoolV1beta1::Template
- Inherits:
-
Object
- Object
- Google::Apis::ReplicapoolV1beta1::Template
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- generated/google/apis/replicapool_v1beta1/classes.rb,
generated/google/apis/replicapool_v1beta1/representations.rb,
generated/google/apis/replicapool_v1beta1/representations.rb
Overview
The template used for creating replicas in the pool.
Instance Attribute Summary collapse
-
#action ⇒ Google::Apis::ReplicapoolV1beta1::Action
An action that gets executed during initialization of the replicas.
-
#health_checks ⇒ Array<Google::Apis::ReplicapoolV1beta1::HealthCheck>
A list of HTTP Health Checks to configure for this replica pool and all virtual machines in this replica pool.
-
#version ⇒ String
A free-form string describing the version of this template.
-
#vm_params ⇒ Google::Apis::ReplicapoolV1beta1::VmParams
Parameters for creating a Compute Engine Instance resource.
Instance Method Summary collapse
-
#initialize(**args) ⇒ Template
constructor
A new instance of Template.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ Template
Returns a new instance of Template
815 816 817 |
# File 'generated/google/apis/replicapool_v1beta1/classes.rb', line 815 def initialize(**args) update!(**args) end |
Instance Attribute Details
#action ⇒ Google::Apis::ReplicapoolV1beta1::Action
An action that gets executed during initialization of the replicas.
Corresponds to the JSON property action
795 796 797 |
# File 'generated/google/apis/replicapool_v1beta1/classes.rb', line 795 def action @action end |
#health_checks ⇒ Array<Google::Apis::ReplicapoolV1beta1::HealthCheck>
A list of HTTP Health Checks to configure for this replica pool and all
virtual machines in this replica pool.
Corresponds to the JSON property healthChecks
801 802 803 |
# File 'generated/google/apis/replicapool_v1beta1/classes.rb', line 801 def health_checks @health_checks end |
#version ⇒ String
A free-form string describing the version of this template. You can provide
any versioning string you would like. For example, version1 or template-v1.
Corresponds to the JSON property version
807 808 809 |
# File 'generated/google/apis/replicapool_v1beta1/classes.rb', line 807 def version @version end |
#vm_params ⇒ Google::Apis::ReplicapoolV1beta1::VmParams
Parameters for creating a Compute Engine Instance resource. Most fields are
identical to the corresponding Compute Engine resource.
Corresponds to the JSON property vmParams
813 814 815 |
# File 'generated/google/apis/replicapool_v1beta1/classes.rb', line 813 def vm_params @vm_params end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
820 821 822 823 824 825 |
# File 'generated/google/apis/replicapool_v1beta1/classes.rb', line 820 def update!(**args) @action = args[:action] if args.key?(:action) @health_checks = args[:health_checks] if args.key?(:health_checks) @version = args[:version] if args.key?(:version) @vm_params = args[:vm_params] if args.key?(:vm_params) end |