Skip to content

Latest commit

 

History

History
32 lines (23 loc) · 1.92 KB

EnvironmentReleaseNewRulePhaseInput.md

File metadata and controls

32 lines (23 loc) · 1.92 KB

EnvironmentReleaseNewRulePhaseInput

A phase that creates a new rule.

Properties

Name Type Description Notes
clauses List[EnvironmentReleaseClause] Clauses for a new rule. Must include the `kind` clause for `randomizationUnit` described in `startEnvironmentRelease`. A new rule that exactly duplicates an existing rule on the flag returns `400` with `new rule is exact duplicate of an existing rule at index <n>`.
description str Description for a new rule. Must differ from the description of every other rule on the flag, including rules an earlier release left in place, or the request returns `400` with `duplicate rule description not allowed`. [optional]
steps List[EnvironmentReleaseStepInput]

Example

from launchdarkly_api.models.environment_release_new_rule_phase_input import EnvironmentReleaseNewRulePhaseInput

# TODO update the JSON string below
json = "{}"
# create an instance of EnvironmentReleaseNewRulePhaseInput from a JSON string
environment_release_new_rule_phase_input_instance = EnvironmentReleaseNewRulePhaseInput.from_json(json)
# print the JSON string representation of the object
print(EnvironmentReleaseNewRulePhaseInput.to_json())

# convert the object into a dict
environment_release_new_rule_phase_input_dict = environment_release_new_rule_phase_input_instance.to_dict()
# create an instance of EnvironmentReleaseNewRulePhaseInput from a dict
environment_release_new_rule_phase_input_from_dict = EnvironmentReleaseNewRulePhaseInput.from_dict(environment_release_new_rule_phase_input_dict)

[Back to Model list] [Back to API list] [Back to README]