Class: Google::Cloud::OsConfig::V1::FixedOrPercent

Inherits:
Object
  • Object
show all
Extended by:
Protobuf::MessageExts::ClassMethods
Includes:
Protobuf::MessageExts
Defined in:
proto_docs/google/cloud/osconfig/v1/osconfig_common.rb

Overview

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

Instance Attribute Summary collapse

Instance Attribute Details

#fixed::Integer

Returns Specifies a fixed value.

Returns:

  • (::Integer)

    Specifies a fixed value.



33
34
35
36
# File 'proto_docs/google/cloud/osconfig/v1/osconfig_common.rb', line 33

class FixedOrPercent
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods
end

#percent::Integer

Returns 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.



33
34
35
36
# File 'proto_docs/google/cloud/osconfig/v1/osconfig_common.rb', line 33

class FixedOrPercent
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods
end