Class: Google::Apis::ManagerV1beta2::ReplicaPoolParamsV1Beta1
- Inherits:
-
Object
- Object
- Google::Apis::ManagerV1beta2::ReplicaPoolParamsV1Beta1
- 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
-
#auto_restart ⇒ Boolean
(also: #auto_restart?)
Whether these replicas should be restarted if they experience a failure.
-
#base_instance_name ⇒ String
The base name for instances within this ReplicaPool.
-
#can_ip_forward ⇒ Boolean
(also: #can_ip_forward?)
Enables IP Forwarding Corresponds to the JSON property
canIpForward
. -
#description ⇒ String
An optional textual description of the resource.
-
#disks_to_attach ⇒ Array<Google::Apis::ManagerV1beta2::ExistingDisk>
A list of existing Persistent Disk resources to attach to each replica in the pool.
-
#disks_to_create ⇒ Array<Google::Apis::ManagerV1beta2::NewDisk>
A list of Disk resources to create and attach to each Replica in the Pool.
-
#init_action ⇒ String
Name of the Action to be run during initialization of a ReplicaPoolModule.
-
#machine_type ⇒ String
The machine type for this instance.
-
#metadata ⇒ Google::Apis::ManagerV1beta2::Metadata
A Compute Engine metadata entry.
-
#network_interfaces ⇒ Array<Google::Apis::ManagerV1beta2::NetworkInterface>
A list of network interfaces for the instance.
-
#on_host_maintenance ⇒ String
Corresponds to the JSON property
onHostMaintenance
. -
#service_accounts ⇒ Array<Google::Apis::ManagerV1beta2::ServiceAccount>
A list of Service Accounts to enable for this instance.
-
#tags ⇒ Google::Apis::ManagerV1beta2::Tag
A Compute Engine Instance tag, identical to the tags on the corresponding Compute Engine Instance resource.
-
#zone ⇒ String
The zone for this ReplicaPool.
Instance Method Summary collapse
-
#initialize(**args) ⇒ ReplicaPoolParamsV1Beta1
constructor
A new instance of ReplicaPoolParamsV1Beta1.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
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_restart ⇒ Boolean 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
1073 1074 1075 |
# File 'generated/google/apis/manager_v1beta2/classes.rb', line 1073 def auto_restart @auto_restart end |
#base_instance_name ⇒ String
The base name for instances within this ReplicaPool.
Corresponds to the JSON property baseInstanceName
1079 1080 1081 |
# File 'generated/google/apis/manager_v1beta2/classes.rb', line 1079 def base_instance_name @base_instance_name end |
#can_ip_forward ⇒ Boolean Also known as: can_ip_forward?
Enables IP Forwarding
Corresponds to the JSON property canIpForward
1084 1085 1086 |
# File 'generated/google/apis/manager_v1beta2/classes.rb', line 1084 def can_ip_forward @can_ip_forward end |
#description ⇒ String
An optional textual description of the resource.
Corresponds to the JSON property description
1090 1091 1092 |
# File 'generated/google/apis/manager_v1beta2/classes.rb', line 1090 def description @description end |
#disks_to_attach ⇒ Array<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_create ⇒ Array<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_action ⇒ String
Name of the Action to be run during initialization of a ReplicaPoolModule.
Corresponds to the JSON property initAction
1108 1109 1110 |
# File 'generated/google/apis/manager_v1beta2/classes.rb', line 1108 def init_action @init_action end |
#machine_type ⇒ String
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
1114 1115 1116 |
# File 'generated/google/apis/manager_v1beta2/classes.rb', line 1114 def machine_type @machine_type end |
#metadata ⇒ Google::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_interfaces ⇒ Array<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_maintenance ⇒ String
Corresponds to the JSON property onHostMaintenance
1131 1132 1133 |
# File 'generated/google/apis/manager_v1beta2/classes.rb', line 1131 def on_host_maintenance @on_host_maintenance end |
#service_accounts ⇒ Array<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 |
#tags ⇒ Google::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 end |
#zone ⇒ String
The zone for this ReplicaPool.
Corresponds to the JSON property zone
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 |