Package ai.shipeasy.admin.model
Class UpdateGateRequest
java.lang.Object
ai.shipeasy.admin.model.UpdateGateRequest
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
comments="Generator version: 7.23.0")
public class UpdateGateRequest
extends Object
Body for `PATCH /api/admin/gates/{id}`. Partial — only supplied fields change. Array fields (`rules`, `stack`) replace, not merge.
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddRulesItem(ListGatesResponseDataInnerRulesInner rulesItem) addStackItem(ListGatesResponseDataInnerStackInner stackItem) description(String description) booleanstatic UpdateGateRequestCreate an instance of UpdateGateRequest given an JSON stringReturn the additional (undeclared) property.Return the additional (undeclared) property with the specified name.Long-form description / runbook.Master switch.Optional folder name grouping items in the dashboard.getGroup()Group label for dashboard organisation (e.g.Owner contact.New rollout in **basis points** (0–10000 = 0%–100%) — `100` here means **1%**.New rollout as a **percentage** (0–100).getRules()Replaces the rule list wholesale.getStack()Replaces the gatekeeper stack wholesale.getTitle()Human-readable title shown in the dashboard.inthashCode()ownerEmail(String ownerEmail) putAdditionalProperty(String key, Object value) Set the additional (undeclared) property with the specified name and value.rolloutPct(Integer rolloutPct) rolloutPercent(BigDecimal rolloutPercent) voidsetDescription(String description) voidsetEnabled(Boolean enabled) voidvoidvoidsetOwnerEmail(String ownerEmail) voidsetRolloutPct(Integer rolloutPct) voidsetRolloutPercent(BigDecimal rolloutPercent) voidvoidvoidtoJson()Convert an instance of UpdateGateRequest to an JSON stringtoString()static voidvalidateJsonElement(com.google.gson.JsonElement jsonElement) Validates the JSON Element and throws an exception if issues found
-
Field Details
-
SERIALIZED_NAME_ROLLOUT_PCT
- See Also:
-
SERIALIZED_NAME_ROLLOUT_PERCENT
- See Also:
-
SERIALIZED_NAME_RULES
- See Also:
-
SERIALIZED_NAME_ENABLED
- See Also:
-
SERIALIZED_NAME_STACK
- See Also:
-
SERIALIZED_NAME_TITLE
- See Also:
-
SERIALIZED_NAME_DESCRIPTION
- See Also:
-
SERIALIZED_NAME_FOLDER
- See Also:
-
SERIALIZED_NAME_GROUP
- See Also:
-
SERIALIZED_NAME_OWNER_EMAIL
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
UpdateGateRequest
public UpdateGateRequest()
-
-
Method Details
-
rolloutPct
-
getRolloutPct
New rollout in **basis points** (0–10000 = 0%–100%) — `100` here means **1%**. Use `rollout_percent` (0–100) below for percent. Omit both to leave unchanged. minimum: 0 maximum: 10000- Returns:
- rolloutPct
-
setRolloutPct
-
rolloutPercent
-
getRolloutPercent
New rollout as a **percentage** (0–100). Friendlier alias for `rollout_pct`; converted internally. Wins over `rollout_pct` if both are supplied. Omit both to leave unchanged. minimum: 0 maximum: 100- Returns:
- rolloutPercent
-
setRolloutPercent
-
rules
-
addRulesItem
-
getRules
Replaces the rule list wholesale. To add a value to an `in` rule, send the full new `rules` array with the augmented `value` (e.g. previous `['US','CA']` → `['US','CA','GB']`).- Returns:
- rules
-
setRules
-
enabled
-
getEnabled
Master switch. `false` makes the gate evaluate to `false` for every caller regardless of `rollout_pct`, `rules`, or `stack` — use as kill switch.- Returns:
- enabled
-
setEnabled
-
stack
-
addStackItem
-
getStack
Replaces the gatekeeper stack wholesale. Send `null` to revert to flat `rules` + `rollout_pct` evaluation.- Returns:
- stack
-
setStack
-
title
-
getTitle
Human-readable title shown in the dashboard. Free-form, no key format constraint.- Returns:
- title
-
setTitle
-
description
-
getDescription
Long-form description / runbook. Markdown is rendered in the dashboard.- Returns:
- description
-
setDescription
-
folder
-
getFolder
Optional folder name grouping items in the dashboard. Alphanumeric, `_` or `-` (no `/`). Part of the SDK lookup key (`<folder>/<name>`).- Returns:
- folder
-
setFolder
-
group
-
getGroup
Group label for dashboard organisation (e.g. team or product area).- Returns:
- group
-
setGroup
-
ownerEmail
-
getOwnerEmail
Owner contact. Displayed verbatim; not used for auth.- Returns:
- ownerEmail
-
setOwnerEmail
-
putAdditionalProperty
Set the additional (undeclared) property with the specified name and value. If the property does not already exist, create it otherwise replace it.- Parameters:
key- name of the propertyvalue- value of the property- Returns:
- the UpdateGateRequest instance itself
-
getAdditionalProperties
Return the additional (undeclared) property.- Returns:
- a map of objects
-
getAdditionalProperty
Return the additional (undeclared) property with the specified name.- Parameters:
key- name of the property- Returns:
- an object
-
equals
-
hashCode
public int hashCode() -
toString
-
validateJsonElement
Validates the JSON Element and throws an exception if issues found- Parameters:
jsonElement- JSON Element- Throws:
IOException- if the JSON Element is invalid with respect to UpdateGateRequest
-
fromJson
Create an instance of UpdateGateRequest given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of UpdateGateRequest
- Throws:
IOException- if the JSON string is invalid with respect to UpdateGateRequest
-
toJson
Convert an instance of UpdateGateRequest to an JSON string- Returns:
- JSON string
-