class Google::Apis::ManagerV1beta2::ReplicaPoolParamsV1Beta1

Configuration information for a ReplicaPools v1beta1 API resource. Directly maps to ReplicaPool InitTemplate.

Attributes

auto_restart[RW]

Whether these replicas should be restarted if they experience a failure. The default value is true. Corresponds to the JSON property `autoRestart` @return [Boolean]

auto_restart?[RW]

Whether these replicas should be restarted if they experience a failure. The default value is true. Corresponds to the JSON property `autoRestart` @return [Boolean]

base_instance_name[RW]

The base name for instances within this ReplicaPool. Corresponds to the JSON property `baseInstanceName` @return [String]

can_ip_forward[RW]

Enables IP Forwarding Corresponds to the JSON property `canIpForward` @return [Boolean]

can_ip_forward?[RW]

Enables IP Forwarding Corresponds to the JSON property `canIpForward` @return [Boolean]

description[RW]

An optional textual description of the resource. Corresponds to the JSON property `description` @return [String]

disks_to_attach[RW]

A list of existing Persistent Disk resources to attach to each replica in the pool. Each disk will be attached in read-only mode to every replica. Corresponds to the JSON property `disksToAttach` @return [Array<Google::Apis::ManagerV1beta2::ExistingDisk>]

disks_to_create[RW]

A list of Disk resources to create and attach to each Replica in the Pool. Currently, you can only define one disk and it must be a root persistent disk. Note that Replica Pool will create a root persistent disk for each replica. Corresponds to the JSON property `disksToCreate` @return [Array<Google::Apis::ManagerV1beta2::NewDisk>]

init_action[RW]

Name of the Action to be run during initialization of a ReplicaPoolModule. Corresponds to the JSON property `initAction` @return [String]

machine_type[RW]

The machine type for this instance. Either a complete URL, or the resource name (e.g. n1-standard-1). Corresponds to the JSON property `machineType` @return [String]

metadata[RW]

A Compute Engine metadata entry. Identical to the metadata on the corresponding Compute Engine resource. Corresponds to the JSON property `metadata` @return [Google::Apis::ManagerV1beta2::Metadata]

network_interfaces[RW]

A list of network interfaces for the instance. Currently only one interface is supported by Google Compute Engine. Corresponds to the JSON property `networkInterfaces` @return [Array<Google::Apis::ManagerV1beta2::NetworkInterface>]

on_host_maintenance[RW]

Corresponds to the JSON property `onHostMaintenance` @return [String]

service_accounts[RW]

A list of Service Accounts to enable for this instance. Corresponds to the JSON property `serviceAccounts` @return [Array<Google::Apis::ManagerV1beta2::ServiceAccount>]

tags[RW]

A Compute Engine Instance tag, identical to the tags on the corresponding Compute Engine Instance resource. Corresponds to the JSON property `tags` @return [Google::Apis::ManagerV1beta2::Tag]

zone[RW]

The zone for this ReplicaPool. Corresponds to the JSON property `zone` @return [String]

Public Class Methods

new(**args) click to toggle source
# File generated/google/apis/manager_v1beta2/classes.rb, line 1149
def initialize(**args)
   update!(**args)
end

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# File generated/google/apis/manager_v1beta2/classes.rb, line 1154
def update!(**args)
  @auto_restart = args[:auto_restart] if args.key?(:auto_restart)
  @base_instance_name = args[:base_instance_name] if args.key?(:base_instance_name)
  @can_ip_forward = args[:can_ip_forward] if args.key?(:can_ip_forward)
  @description = args[:description] if args.key?(:description)
  @disks_to_attach = args[:disks_to_attach] if args.key?(:disks_to_attach)
  @disks_to_create = args[:disks_to_create] if args.key?(:disks_to_create)
  @init_action = args[:init_action] if args.key?(:init_action)
  @machine_type = args[:machine_type] if args.key?(:machine_type)
  @metadata = args[:metadata] if args.key?(:metadata)
  @network_interfaces = args[:network_interfaces] if args.key?(:network_interfaces)
  @on_host_maintenance = args[:on_host_maintenance] if args.key?(:on_host_maintenance)
  @service_accounts = args[:service_accounts] if args.key?(:service_accounts)
  @tags = args[:tags] if args.key?(:tags)
  @zone = args[:zone] if args.key?(:zone)
end