Class Cardinality
A Cardinality condition for the Waiter resource. A cardinality condition is met when the number of variables
under a specified path prefix reaches a predefined number. For example, if you set a Cardinality condition where
the path
is set to /foo
and the number of paths is set to 2
, the following variables would meet the
condition in a RuntimeConfig resource: + /foo/variable1 = "value1"
+ /foo/variable2 = "value2"
+
/bar/variable3 = "value3"
It would not satisfy the same condition with the number
set to 3
, however,
because there is only 2 paths that start with /foo
. Cardinality conditions are recursive; all subtrees under
the specific path prefix are counted.
Implements
Inherited Members
Namespace: Google.Apis.CloudRuntimeConfig.v1beta1.Data
Assembly: Google.Apis.CloudRuntimeConfig.v1beta1.dll
Syntax
public class Cardinality : IDirectResponseSchema
Properties
ETag
The ETag of the item.
Declaration
public virtual string ETag { get; set; }
Property Value
Type | Description |
---|---|
string |
Number
The number variables under the path
that must exist to meet this condition. Defaults to 1 if not
specified.
Declaration
[JsonProperty("number")]
public virtual int? Number { get; set; }
Property Value
Type | Description |
---|---|
int? |
Path
The root of the variable subtree to monitor. For example, /foo
.
Declaration
[JsonProperty("path")]
public virtual string Path { get; set; }
Property Value
Type | Description |
---|---|
string |