Class: Google::Apis::ComputeV1::InstancePropertiesPatch

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



17590
17591
17592
# File 'lib/google/apis/compute_v1/classes.rb', line 17590

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>)


17582
17583
17584
# File 'lib/google/apis/compute_v1/classes.rb', line 17582

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>)


17588
17589
17590
# File 'lib/google/apis/compute_v1/classes.rb', line 17588

def 
  @metadata
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



17595
17596
17597
17598
# File 'lib/google/apis/compute_v1/classes.rb', line 17595

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