Class: Google::Apis::ReplicapoolV1beta1::Template

Inherits:
Object
  • Object
show all
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

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



815
816
817
# File 'generated/google/apis/replicapool_v1beta1/classes.rb', line 815

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

Instance Attribute Details

#actionGoogle::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_checksArray<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

#versionString

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

Returns:

  • (String)


807
808
809
# File 'generated/google/apis/replicapool_v1beta1/classes.rb', line 807

def version
  @version
end

#vm_paramsGoogle::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