Cloud OS Config V1alpha API - Class Google::Cloud::OsConfig::V1alpha::FixedOrPercent (v0.6.0)

Reference documentation and code samples for the Cloud OS Config V1alpha API class Google::Cloud::OsConfig::V1alpha::FixedOrPercent.

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

Inherits

  • Object

Extended By

  • Google::Protobuf::MessageExts::ClassMethods

Includes

  • Google::Protobuf::MessageExts

Methods

#fixed

def fixed() -> ::Integer
Returns
  • (::Integer) — Specifies a fixed value.

#fixed=

def fixed=(value) -> ::Integer
Parameter
  • value (::Integer) — Specifies a fixed value.
Returns
  • (::Integer) — Specifies a fixed value.

#percent

def percent() -> ::Integer
Returns
  • (::Integer) — Specifies the relative value defined as a percentage, which will be multiplied by a reference value.

#percent=

def percent=(value) -> ::Integer
Parameter
  • value (::Integer) — Specifies the relative value defined as a percentage, which will be multiplied by a reference value.
Returns
  • (::Integer) — Specifies the relative value defined as a percentage, which will be multiplied by a reference value.