Class: Google::Apis::ComputeAlpha::PerInstanceConfig

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Google::Apis::Core::JsonObjectSupport

#to_json

Methods included from Google::Apis::Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ PerInstanceConfig

Returns a new instance of PerInstanceConfig



16475
16476
16477
# File 'generated/google/apis/compute_alpha/classes.rb', line 16475

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

Instance Attribute Details

#instanceString

The URL of the instance. Serves as a merge key during UpdatePerInstanceConfigs operation. Corresponds to the JSON property instance

Returns:

  • (String)


16468
16469
16470
# File 'generated/google/apis/compute_alpha/classes.rb', line 16468

def instance
  @instance
end

#overrideGoogle::Apis::ComputeAlpha::ManagedInstanceOverride

Overrides of stateful properties for a given instance Corresponds to the JSON property override



16473
16474
16475
# File 'generated/google/apis/compute_alpha/classes.rb', line 16473

def override
  @override
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



16480
16481
16482
16483
# File 'generated/google/apis/compute_alpha/classes.rb', line 16480

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