Class: Google::Apis::ComputeAlpha::BulkInsertInstanceResourcePerInstanceProperties

Inherits:
Object
  • Object
show all
Includes:
Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
Defined in:
lib/google/apis/compute_alpha/classes.rb,
lib/google/apis/compute_alpha/representations.rb,
lib/google/apis/compute_alpha/representations.rb

Overview

Per-instance properties to be set on individual instances. To be extended in the future.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ BulkInsertInstanceResourcePerInstanceProperties

Returns a new instance of BulkInsertInstanceResourcePerInstanceProperties.



5637
5638
5639
# File 'lib/google/apis/compute_alpha/classes.rb', line 5637

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

Instance Attribute Details

#hostnameString

Specifies the hostname of the instance. More details in: https://cloud.google. com/compute/docs/instances/custom-hostname-vm#naming_convention Corresponds to the JSON property hostname

Returns:

  • (String)


5630
5631
5632
# File 'lib/google/apis/compute_alpha/classes.rb', line 5630

def hostname
  @hostname
end

#nameString

This field is only temporary. It will be removed. Do not use it. Corresponds to the JSON property name

Returns:

  • (String)


5635
5636
5637
# File 'lib/google/apis/compute_alpha/classes.rb', line 5635

def name
  @name
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



5642
5643
5644
5645
# File 'lib/google/apis/compute_alpha/classes.rb', line 5642

def update!(**args)
  @hostname = args[:hostname] if args.key?(:hostname)
  @name = args[:name] if args.key?(:name)
end