Class: Google::Apis::ManagerV1beta2::ReplicaPoolModule

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

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

Returns a new instance of ReplicaPoolModule



1003
1004
1005
# File 'generated/google/apis/manager_v1beta2/classes.rb', line 1003

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

Instance Attribute Details

#env_variablesHash<String,Google::Apis::ManagerV1beta2::EnvVariable>

A list of environment variables. Corresponds to the JSON property envVariables



978
979
980
# File 'generated/google/apis/manager_v1beta2/classes.rb', line 978

def env_variables
  @env_variables
end

#health_checksArray<String>

The Health Checks to configure for the ReplicaPoolModule Corresponds to the JSON property healthChecks

Returns:

  • (Array<String>)


983
984
985
# File 'generated/google/apis/manager_v1beta2/classes.rb', line 983

def health_checks
  @health_checks
end

#num_replicasFixnum

Number of replicas in this module. Corresponds to the JSON property numReplicas

Returns:

  • (Fixnum)


988
989
990
# File 'generated/google/apis/manager_v1beta2/classes.rb', line 988

def num_replicas
  @num_replicas
end

#replica_pool_paramsGoogle::Apis::ManagerV1beta2::ReplicaPoolParams

Configuration information for a ReplicaPools resource. Specifying an item within will determine the ReplicaPools API version used for a ReplicaPoolModule. Only one may be specified. Corresponds to the JSON property replicaPoolParams



995
996
997
# File 'generated/google/apis/manager_v1beta2/classes.rb', line 995

def replica_pool_params
  @replica_pool_params
end

#resource_viewString

[Output Only] The name of the Resource View associated with a ReplicaPoolModule. This field will be generated by the service. Corresponds to the JSON property resourceView

Returns:

  • (String)


1001
1002
1003
# File 'generated/google/apis/manager_v1beta2/classes.rb', line 1001

def resource_view
  @resource_view
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1008
1009
1010
1011
1012
1013
1014
# File 'generated/google/apis/manager_v1beta2/classes.rb', line 1008

def update!(**args)
  @env_variables = args[:env_variables] if args.key?(:env_variables)
  @health_checks = args[:health_checks] if args.key?(:health_checks)
  @num_replicas = args[:num_replicas] if args.key?(:num_replicas)
  @replica_pool_params = args[:replica_pool_params] if args.key?(:replica_pool_params)
  @resource_view = args[:resource_view] if args.key?(:resource_view)
end