Class: Google::Apis::ManagerV1beta2::ReplicaPoolParamsV1Beta1

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

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

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

Returns a new instance of ReplicaPoolParamsV1Beta1



1149
1150
1151
# File 'generated/google/apis/manager_v1beta2/classes.rb', line 1149

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

Instance Attribute Details

#auto_restartBoolean Also known as: auto_restart?

Whether these replicas should be restarted if they experience a failure. The default value is true. Corresponds to the JSON property autoRestart

Returns:

  • (Boolean)


1073
1074
1075
# File 'generated/google/apis/manager_v1beta2/classes.rb', line 1073

def auto_restart
  @auto_restart
end

#base_instance_nameString

The base name for instances within this ReplicaPool. Corresponds to the JSON property baseInstanceName

Returns:

  • (String)


1079
1080
1081
# File 'generated/google/apis/manager_v1beta2/classes.rb', line 1079

def base_instance_name
  @base_instance_name
end

#can_ip_forwardBoolean Also known as: can_ip_forward?

Enables IP Forwarding Corresponds to the JSON property canIpForward

Returns:

  • (Boolean)


1084
1085
1086
# File 'generated/google/apis/manager_v1beta2/classes.rb', line 1084

def can_ip_forward
  @can_ip_forward
end

#descriptionString

An optional textual description of the resource. Corresponds to the JSON property description

Returns:

  • (String)


1090
1091
1092
# File 'generated/google/apis/manager_v1beta2/classes.rb', line 1090

def description
  @description
end

#disks_to_attachArray<Google::Apis::ManagerV1beta2::ExistingDisk>

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



1096
1097
1098
# File 'generated/google/apis/manager_v1beta2/classes.rb', line 1096

def disks_to_attach
  @disks_to_attach
end

#disks_to_createArray<Google::Apis::ManagerV1beta2::NewDisk>

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



1103
1104
1105
# File 'generated/google/apis/manager_v1beta2/classes.rb', line 1103

def disks_to_create
  @disks_to_create
end

#init_actionString

Name of the Action to be run during initialization of a ReplicaPoolModule. Corresponds to the JSON property initAction

Returns:

  • (String)


1108
1109
1110
# File 'generated/google/apis/manager_v1beta2/classes.rb', line 1108

def init_action
  @init_action
end

#machine_typeString

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

Returns:

  • (String)


1114
1115
1116
# File 'generated/google/apis/manager_v1beta2/classes.rb', line 1114

def machine_type
  @machine_type
end

#metadataGoogle::Apis::ManagerV1beta2::Metadata

A Compute Engine metadata entry. Identical to the metadata on the corresponding Compute Engine resource. Corresponds to the JSON property metadata



1120
1121
1122
# File 'generated/google/apis/manager_v1beta2/classes.rb', line 1120

def 
  @metadata
end

#network_interfacesArray<Google::Apis::ManagerV1beta2::NetworkInterface>

A list of network interfaces for the instance. Currently only one interface is supported by Google Compute Engine. Corresponds to the JSON property networkInterfaces



1126
1127
1128
# File 'generated/google/apis/manager_v1beta2/classes.rb', line 1126

def network_interfaces
  @network_interfaces
end

#on_host_maintenanceString

Corresponds to the JSON property onHostMaintenance

Returns:

  • (String)


1131
1132
1133
# File 'generated/google/apis/manager_v1beta2/classes.rb', line 1131

def on_host_maintenance
  @on_host_maintenance
end

#service_accountsArray<Google::Apis::ManagerV1beta2::ServiceAccount>

A list of Service Accounts to enable for this instance. Corresponds to the JSON property serviceAccounts



1136
1137
1138
# File 'generated/google/apis/manager_v1beta2/classes.rb', line 1136

def service_accounts
  @service_accounts
end

#tagsGoogle::Apis::ManagerV1beta2::Tag

A Compute Engine Instance tag, identical to the tags on the corresponding Compute Engine Instance resource. Corresponds to the JSON property tags



1142
1143
1144
# File 'generated/google/apis/manager_v1beta2/classes.rb', line 1142

def tags
  @tags
end

#zoneString

The zone for this ReplicaPool. Corresponds to the JSON property zone

Returns:

  • (String)


1147
1148
1149
# File 'generated/google/apis/manager_v1beta2/classes.rb', line 1147

def zone
  @zone
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1154
1155
1156
1157
1158
1159
1160
1161
1162
1163
1164
1165
1166
1167
1168
1169
# 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