Google Cloud OS Config v1alpha API - Class FixedOrPercent (2.0.0-alpha05)

public sealed class FixedOrPercent : IMessage<FixedOrPercent>, IEquatable<FixedOrPercent>, IDeepCloneable<FixedOrPercent>, IBufferMessage, IMessage

Reference documentation and code samples for the Google Cloud OS Config v1alpha API class FixedOrPercent.

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

Inheritance

object > FixedOrPercent

Namespace

Google.Cloud.OsConfig.V1Alpha

Assembly

Google.Cloud.OsConfig.V1Alpha.dll

Constructors

FixedOrPercent()

public FixedOrPercent()

FixedOrPercent(FixedOrPercent)

public FixedOrPercent(FixedOrPercent other)
Parameter
Name Description
other FixedOrPercent

Properties

Fixed

public int Fixed { get; set; }

Specifies a fixed value.

Property Value
Type Description
int

HasFixed

public bool HasFixed { get; }

Gets whether the "fixed" field is set

Property Value
Type Description
bool

HasPercent

public bool HasPercent { get; }

Gets whether the "percent" field is set

Property Value
Type Description
bool

ModeCase

public FixedOrPercent.ModeOneofCase ModeCase { get; }
Property Value
Type Description
FixedOrPercentModeOneofCase

Percent

public int Percent { get; set; }

Specifies the relative value defined as a percentage, which will be multiplied by a reference value.

Property Value
Type Description
int