Class: Google::Apis::ReplicapoolV1beta1::VmParams
- Inherits:
-
Object
- Object
- Google::Apis::ReplicapoolV1beta1::VmParams
- 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
Parameters for creating a Compute Engine Instance resource. Most fields are identical to the corresponding Compute Engine resource.
Instance Attribute Summary collapse
-
#base_instance_name ⇒ String
Deprecated.
-
#can_ip_forward ⇒ Boolean
(also: #can_ip_forward?)
Enables IP Forwarding, which allows this instance to receive packets destined for a different IP address, and send packets with a different source IP.
-
#description ⇒ String
An optional textual description of the instance.
-
#disks_to_attach ⇒ Array<Google::Apis::ReplicapoolV1beta1::ExistingDisk>
A list of existing Persistent Disk resources to attach to each replica in the pool.
-
#disks_to_create ⇒ Array<Google::Apis::ReplicapoolV1beta1::NewDisk>
A list of Disk resources to create and attach to each Replica in the Pool.
-
#machine_type ⇒ String
The machine type for this instance.
-
#metadata ⇒ Google::Apis::ReplicapoolV1beta1::Metadata
A Compute Engine metadata entry.
-
#network_interfaces ⇒ Array<Google::Apis::ReplicapoolV1beta1::NetworkInterface>
A list of network interfaces for the instance.
-
#on_host_maintenance ⇒ String
Corresponds to the JSON property
onHostMaintenance
. -
#service_accounts ⇒ Array<Google::Apis::ReplicapoolV1beta1::ServiceAccount>
A list of Service Accounts to enable for this instance.
-
#tags ⇒ Google::Apis::ReplicapoolV1beta1::Tag
A Compute Engine Instance tag, identical to the tags on the corresponding Compute Engine Instance resource.
Instance Method Summary collapse
-
#initialize(**args) ⇒ VmParams
constructor
A new instance of VmParams.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ VmParams
Returns a new instance of VmParams
897 898 899 |
# File 'generated/google/apis/replicapool_v1beta1/classes.rb', line 897 def initialize(**args) update!(**args) end |
Instance Attribute Details
#base_instance_name ⇒ String
Deprecated. Please use baseInstanceName instead.
Corresponds to the JSON property baseInstanceName
836 837 838 |
# File 'generated/google/apis/replicapool_v1beta1/classes.rb', line 836 def base_instance_name @base_instance_name end |
#can_ip_forward ⇒ Boolean Also known as: can_ip_forward?
Enables IP Forwarding, which allows this instance to receive packets destined
for a different IP address, and send packets with a different source IP. See
IP Forwarding for more information.
Corresponds to the JSON property canIpForward
843 844 845 |
# File 'generated/google/apis/replicapool_v1beta1/classes.rb', line 843 def can_ip_forward @can_ip_forward end |
#description ⇒ String
An optional textual description of the instance.
Corresponds to the JSON property description
849 850 851 |
# File 'generated/google/apis/replicapool_v1beta1/classes.rb', line 849 def description @description end |
#disks_to_attach ⇒ Array<Google::Apis::ReplicapoolV1beta1::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
855 856 857 |
# File 'generated/google/apis/replicapool_v1beta1/classes.rb', line 855 def disks_to_attach @disks_to_attach end |
#disks_to_create ⇒ Array<Google::Apis::ReplicapoolV1beta1::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
862 863 864 |
# File 'generated/google/apis/replicapool_v1beta1/classes.rb', line 862 def disks_to_create @disks_to_create end |
#machine_type ⇒ String
The machine type for this instance. The resource name (e.g. n1-standard-1).
Corresponds to the JSON property machineType
867 868 869 |
# File 'generated/google/apis/replicapool_v1beta1/classes.rb', line 867 def machine_type @machine_type end |
#metadata ⇒ Google::Apis::ReplicapoolV1beta1::Metadata
A Compute Engine metadata entry. Identical to the metadata on the
corresponding Compute Engine resource.
Corresponds to the JSON property metadata
873 874 875 |
# File 'generated/google/apis/replicapool_v1beta1/classes.rb', line 873 def @metadata end |
#network_interfaces ⇒ Array<Google::Apis::ReplicapoolV1beta1::NetworkInterface>
A list of network interfaces for the instance. Currently only one interface is
supported by Google Compute Engine, ONE_TO_ONE_NAT.
Corresponds to the JSON property networkInterfaces
879 880 881 |
# File 'generated/google/apis/replicapool_v1beta1/classes.rb', line 879 def network_interfaces @network_interfaces end |
#on_host_maintenance ⇒ String
Corresponds to the JSON property onHostMaintenance
884 885 886 |
# File 'generated/google/apis/replicapool_v1beta1/classes.rb', line 884 def on_host_maintenance @on_host_maintenance end |
#service_accounts ⇒ Array<Google::Apis::ReplicapoolV1beta1::ServiceAccount>
A list of Service Accounts to enable for this instance.
Corresponds to the JSON property serviceAccounts
889 890 891 |
# File 'generated/google/apis/replicapool_v1beta1/classes.rb', line 889 def service_accounts @service_accounts end |
#tags ⇒ Google::Apis::ReplicapoolV1beta1::Tag
A Compute Engine Instance tag, identical to the tags on the corresponding
Compute Engine Instance resource.
Corresponds to the JSON property tags
895 896 897 |
# File 'generated/google/apis/replicapool_v1beta1/classes.rb', line 895 def @tags end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
902 903 904 905 906 907 908 909 910 911 912 913 914 |
# File 'generated/google/apis/replicapool_v1beta1/classes.rb', line 902 def update!(**args) @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) @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) end |