Class: Google::Apis::ComputeBeta::BulkInsertInstanceResourcePerInstanceProperties

Inherits:
Object
  • Object
show all
Includes:
Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
Defined in:
lib/google/apis/compute_beta/classes.rb,
lib/google/apis/compute_beta/representations.rb,
lib/google/apis/compute_beta/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.



7267
7268
7269
# File 'lib/google/apis/compute_beta/classes.rb', line 7267

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)


7260
7261
7262
# File 'lib/google/apis/compute_beta/classes.rb', line 7260

def hostname
  @hostname
end

#nameString

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

Returns:

  • (String)


7265
7266
7267
# File 'lib/google/apis/compute_beta/classes.rb', line 7265

def name
  @name
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



7272
7273
7274
7275
# File 'lib/google/apis/compute_beta/classes.rb', line 7272

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