Resource: Traffic
Controls traffic configuration for the backend.
| JSON representation |
|---|
{ "name": string, "current": { object ( |
| Fields | |
|---|---|
name |
Identifier. The resource name of the backend's traffic. Format:
|
current |
Output only. Current state of traffic allocation for the backend. When setting |
reconciling |
Output only. A field that, if true, indicates that the system is working to make the backend's |
createTime |
Output only. Time at which the backend was created. Uses RFC 3339, where generated output will always be Z-normalized and use 0, 3, 6 or 9 fractional digits. Offsets other than "Z" are also accepted. Examples: |
updateTime |
Output only. Time at which the backend was last updated. Uses RFC 3339, where generated output will always be Z-normalized and use 0, 3, 6 or 9 fractional digits. Offsets other than "Z" are also accepted. Examples: |
labels |
Optional. Unstructured key value map that can be used to organize and categorize objects. An object containing a list of |
annotations |
Optional. Unstructured key value map that may be set by external tools to store and arbitrary metadata. They are not queryable and should be preserved when modifying objects. An object containing a list of |
etag |
Output only. Server-computed checksum based on other values; may be sent on update or delete to ensure operation is done on expected resource. |
uid |
Output only. System-assigned, unique identifier. |
Union field
|
|
target |
Set to manually control the desired traffic for the backend. This will cause |
rolloutPolicy |
A rollout policy specifies how new builds and automatic deployments are created. |
TrafficSet
A list of traffic splits that together represent where traffic is being routed.
| JSON representation |
|---|
{
"splits": [
{
object ( |
| Fields | |
|---|---|
splits[] |
Required. The list of traffic splits. |
TrafficSplit
The traffic allocation for the backend.
| JSON representation |
|---|
{ "build": string, "percent": integer } |
| Fields | |
|---|---|
build |
Required. The build that traffic is being routed to. |
percent |
Required. The percentage of traffic to send to the build. Currently must be 100% or 0%. |
RolloutPolicy
The policy for how automatic builds and rollouts are triggered and rolled out.
| JSON representation |
|---|
{ "disabled": boolean, "disabledTime": string, "requiredPaths": [ { object ( |
| Fields | |
|---|---|
disabled |
Optional. A flag that, if true, prevents automatic rollouts from being created via this RolloutPolicy. |
disabledTime |
Output only. If Uses RFC 3339, where generated output will always be Z-normalized and use 0, 3, 6 or 9 fractional digits. Offsets other than "Z" are also accepted. Examples: |
requiredPaths[] |
Optional. A list of file paths patterns that trigger a build and rollout if at least one of the changed files in the commit are present in this list. This field is optional; the rollout policy will default to triggering on all paths if both ignoredPaths and requiredPaths are not populated. Limited to 100 paths. Example: |
ignoredPaths[] |
Optional. A list of file paths patterns to exclude from triggering a rollout. Patterns in this list take precedence over requiredPaths. Note: All paths must be in the ignoredPaths in order for the rollout to be skipped. Limited to 100 paths. Example: |
Union field trigger. Specifies the type of codebase event that can trigger a new build. trigger can be only one of the following: |
|
codebaseBranch |
If set, specifies a branch that triggers a new build to be started with this policy. Otherwise, no automatic rollouts will happen. |
Path
A file path pattern to match against.
| JSON representation |
|---|
{
"pattern": string,
"type": enum ( |
| Fields | |
|---|---|
pattern |
Optional. The pattern to match against. |
type |
Optional. The type of pattern to match against. |
Path.PatternType
The possible types of path patterns.
| Enums | |
|---|---|
PATTERN_TYPE_UNSPECIFIED |
The pattern type is unspecified - this is an invalid value. |
RE2 |
RE2 - regular expression (https://github.com/google/re2/wiki/Syntax). |
GLOB |
The pattern is a glob. |
PREFIX |
The pattern is a prefix. |
Methods |
|
|---|---|
|
Gets information about a backend's traffic. |
|
Updates a backend's traffic. |