Reference documentation and code samples for the Cloud OS Config V1 API class Google::Cloud::OsConfig::V1::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
deffixed()->::Integer
Returns
(::Integer) — Specifies a fixed value.
Note: The following fields are mutually exclusive: fixed, percent. If a field in that set is populated, all other fields in the set will automatically be cleared.
#fixed=
deffixed=(value)->::Integer
Parameter
value (::Integer) — Specifies a fixed value.
Note: The following fields are mutually exclusive: fixed, percent. If a field in that set is populated, all other fields in the set will automatically be cleared.
Returns
(::Integer) — Specifies a fixed value.
Note: The following fields are mutually exclusive: fixed, percent. If a field in that set is populated, all other fields in the set will automatically be cleared.
#percent
defpercent()->::Integer
Returns
(::Integer) — Specifies the relative value defined as a percentage, which will be
multiplied by a reference value.
Note: The following fields are mutually exclusive: percent, fixed. If a field in that set is populated, all other fields in the set will automatically be cleared.
#percent=
defpercent=(value)->::Integer
Parameter
value (::Integer) — Specifies the relative value defined as a percentage, which will be
multiplied by a reference value.
Note: The following fields are mutually exclusive: percent, fixed. If a field in that set is populated, all other fields in the set will automatically be cleared.
Returns
(::Integer) — Specifies the relative value defined as a percentage, which will be
multiplied by a reference value.
Note: The following fields are mutually exclusive: percent, fixed. If a field in that set is populated, all other fields in the set will automatically be cleared.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-09-09 UTC."],[],[],null,["# Cloud OS Config V1 API - Class Google::Cloud::OsConfig::V1::FixedOrPercent (v1.4.0)\n\nVersion latestkeyboard_arrow_down\n\n- [1.4.0 (latest)](/ruby/docs/reference/google-cloud-os_config-v1/latest/Google-Cloud-OsConfig-V1-FixedOrPercent)\n- [1.3.0](/ruby/docs/reference/google-cloud-os_config-v1/1.3.0/Google-Cloud-OsConfig-V1-FixedOrPercent)\n- [1.2.1](/ruby/docs/reference/google-cloud-os_config-v1/1.2.1/Google-Cloud-OsConfig-V1-FixedOrPercent)\n- [1.1.0](/ruby/docs/reference/google-cloud-os_config-v1/1.1.0/Google-Cloud-OsConfig-V1-FixedOrPercent)\n- [1.0.1](/ruby/docs/reference/google-cloud-os_config-v1/1.0.1/Google-Cloud-OsConfig-V1-FixedOrPercent)\n- [0.16.0](/ruby/docs/reference/google-cloud-os_config-v1/0.16.0/Google-Cloud-OsConfig-V1-FixedOrPercent)\n- [0.15.2](/ruby/docs/reference/google-cloud-os_config-v1/0.15.2/Google-Cloud-OsConfig-V1-FixedOrPercent)\n- [0.14.0](/ruby/docs/reference/google-cloud-os_config-v1/0.14.0/Google-Cloud-OsConfig-V1-FixedOrPercent)\n- [0.13.0](/ruby/docs/reference/google-cloud-os_config-v1/0.13.0/Google-Cloud-OsConfig-V1-FixedOrPercent)\n- [0.12.0](/ruby/docs/reference/google-cloud-os_config-v1/0.12.0/Google-Cloud-OsConfig-V1-FixedOrPercent)\n- [0.11.0](/ruby/docs/reference/google-cloud-os_config-v1/0.11.0/Google-Cloud-OsConfig-V1-FixedOrPercent)\n- [0.10.0](/ruby/docs/reference/google-cloud-os_config-v1/0.10.0/Google-Cloud-OsConfig-V1-FixedOrPercent)\n- [0.9.1](/ruby/docs/reference/google-cloud-os_config-v1/0.9.1/Google-Cloud-OsConfig-V1-FixedOrPercent) \nReference documentation and code samples for the Cloud OS Config V1 API class Google::Cloud::OsConfig::V1::FixedOrPercent.\n\nMessage encapsulating a value that can be either absolute (\"fixed\") or\nrelative (\"percent\") to a value. \n\nInherits\n--------\n\n- Object \n\nExtended By\n-----------\n\n- Google::Protobuf::MessageExts::ClassMethods \n\nIncludes\n--------\n\n- Google::Protobuf::MessageExts\n\nMethods\n-------\n\n### #fixed\n\n def fixed() -\u003e ::Integer\n\n**Returns**\n\n- (::Integer) --- Specifies a fixed value.\n\n Note: The following fields are mutually exclusive: `fixed`, `percent`. If a field in that set is populated, all other fields in the set will automatically be cleared.\n\n### #fixed=\n\n def fixed=(value) -\u003e ::Integer\n\n**Parameter**\n\n- **value** (::Integer) --- Specifies a fixed value.\n\n\nNote: The following fields are mutually exclusive: `fixed`, `percent`. If a field in that set is populated, all other fields in the set will automatically be cleared. \n**Returns**\n\n- (::Integer) --- Specifies a fixed value.\n\n Note: The following fields are mutually exclusive: `fixed`, `percent`. If a field in that set is populated, all other fields in the set will automatically be cleared.\n\n### #percent\n\n def percent() -\u003e ::Integer\n\n**Returns**\n\n- (::Integer) --- Specifies the relative value defined as a percentage, which will be multiplied by a reference value.\n\n Note: The following fields are mutually exclusive: `percent`, `fixed`. If a field in that set is populated, all other fields in the set will automatically be cleared.\n\n### #percent=\n\n def percent=(value) -\u003e ::Integer\n\n**Parameter**\n\n- **value** (::Integer) --- Specifies the relative value defined as a percentage, which will be multiplied by a reference value.\n\n\nNote: The following fields are mutually exclusive: `percent`, `fixed`. If a field in that set is populated, all other fields in the set will automatically be cleared. \n**Returns**\n\n- (::Integer) --- Specifies the relative value defined as a percentage, which will be multiplied by a reference value.\n\n Note: The following fields are mutually exclusive: `percent`, `fixed`. If a field in that set is populated, all other fields in the set will automatically be cleared."]]