class Google::Apis::OsconfigV1beta::FixedOrPercent

Message encapsulating a value that can be either absolute (“fixed”) or relative (“percent”) to a value.

Attributes

fixed[RW]

Specifies a fixed value. Corresponds to the JSON property `fixed` @return [Fixnum]

percent[RW]

Specifies the relative value defined as a percentage, which will be multiplied by a reference value. Corresponds to the JSON property `percent` @return [Fixnum]

Public Class Methods

new(**args) click to toggle source
# File lib/google/apis/osconfig_v1beta/classes.rb, line 519
def initialize(**args)
   update!(**args)
end

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# File lib/google/apis/osconfig_v1beta/classes.rb, line 524
def update!(**args)
  @fixed = args[:fixed] if args.key?(:fixed)
  @percent = args[:percent] if args.key?(:percent)
end