Class: Google::Apis::ComputeAlpha::InstancePropertiesPatch

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

Represents the change that you want to make to the instance properties.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ InstancePropertiesPatch

Returns a new instance of InstancePropertiesPatch.



18238
18239
18240
# File 'lib/google/apis/compute_alpha/classes.rb', line 18238

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

Instance Attribute Details

#labelsHash<String,String>

The label key-value pairs that you want to patch onto the instance. Corresponds to the JSON property labels

Returns:

  • (Hash<String,String>)


18230
18231
18232
# File 'lib/google/apis/compute_alpha/classes.rb', line 18230

def labels
  @labels
end

#metadataHash<String,String>

The metadata key-value pairs that you want to patch onto the instance. For more information, see Project and instance metadata. Corresponds to the JSON property metadata

Returns:

  • (Hash<String,String>)


18236
18237
18238
# File 'lib/google/apis/compute_alpha/classes.rb', line 18236

def 
  @metadata
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



18243
18244
18245
18246
# File 'lib/google/apis/compute_alpha/classes.rb', line 18243

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