Skip to content

Latest commit

 

History

History
526 lines (281 loc) · 15.2 KB

File metadata and controls

526 lines (281 loc) · 15.2 KB

FeatureFlagConfig

Properties

Name Type Description Notes
On bool Whether the flag is on
Archived bool Boolean indicating if the feature flag is archived
Salt string
Sel string
LastModified int64
Version int32 Version of the feature flag
Targets Pointer to []Target An array of the individual targets that will receive a specific variation based on their key. Individual targets with a context kind of 'user' are included here. [optional]
ContextTargets Pointer to []Target An array of the individual targets that will receive a specific variation based on their key. Individual targets with context kinds other than 'user' are included here. [optional]
Rules Pointer to []Rule An array of the rules for how to serve a variation to specific targets based on their attributes [optional]
Fallthrough Pointer to VariationOrRolloutRep [optional]
OffVariation Pointer to int32 The ID of the variation to serve when the flag is off [optional]
Prerequisites Pointer to []Prerequisite An array of the prerequisite flags and their variations that are required before this flag takes effect [optional]
Site Link
Access Pointer to Access [optional]
EnvironmentName string The environment name
TrackEvents bool Whether LaunchDarkly tracks events for the feature flag, for all rules
TrackEventsFallthrough bool Whether LaunchDarkly tracks events for the feature flag, for the default rule
DebugEventsUntilDate Pointer to int64 [optional]
Summary Pointer to FlagSummary [optional]
Evaluation Pointer to FlagConfigEvaluation [optional]
MigrationSettings Pointer to FlagConfigMigrationSettingsRep [optional]

Methods

NewFeatureFlagConfig

func NewFeatureFlagConfig(on bool, archived bool, salt string, sel string, lastModified int64, version int32, site Link, environmentName string, trackEvents bool, trackEventsFallthrough bool, ) *FeatureFlagConfig

NewFeatureFlagConfig instantiates a new FeatureFlagConfig object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

NewFeatureFlagConfigWithDefaults

func NewFeatureFlagConfigWithDefaults() *FeatureFlagConfig

NewFeatureFlagConfigWithDefaults instantiates a new FeatureFlagConfig object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

GetOn

func (o *FeatureFlagConfig) GetOn() bool

GetOn returns the On field if non-nil, zero value otherwise.

GetOnOk

func (o *FeatureFlagConfig) GetOnOk() (*bool, bool)

GetOnOk returns a tuple with the On field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.

SetOn

func (o *FeatureFlagConfig) SetOn(v bool)

SetOn sets On field to given value.

GetArchived

func (o *FeatureFlagConfig) GetArchived() bool

GetArchived returns the Archived field if non-nil, zero value otherwise.

GetArchivedOk

func (o *FeatureFlagConfig) GetArchivedOk() (*bool, bool)

GetArchivedOk returns a tuple with the Archived field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.

SetArchived

func (o *FeatureFlagConfig) SetArchived(v bool)

SetArchived sets Archived field to given value.

GetSalt

func (o *FeatureFlagConfig) GetSalt() string

GetSalt returns the Salt field if non-nil, zero value otherwise.

GetSaltOk

func (o *FeatureFlagConfig) GetSaltOk() (*string, bool)

GetSaltOk returns a tuple with the Salt field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.

SetSalt

func (o *FeatureFlagConfig) SetSalt(v string)

SetSalt sets Salt field to given value.

GetSel

func (o *FeatureFlagConfig) GetSel() string

GetSel returns the Sel field if non-nil, zero value otherwise.

GetSelOk

func (o *FeatureFlagConfig) GetSelOk() (*string, bool)

GetSelOk returns a tuple with the Sel field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.

SetSel

func (o *FeatureFlagConfig) SetSel(v string)

SetSel sets Sel field to given value.

GetLastModified

func (o *FeatureFlagConfig) GetLastModified() int64

GetLastModified returns the LastModified field if non-nil, zero value otherwise.

GetLastModifiedOk

func (o *FeatureFlagConfig) GetLastModifiedOk() (*int64, bool)

GetLastModifiedOk returns a tuple with the LastModified field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.

SetLastModified

func (o *FeatureFlagConfig) SetLastModified(v int64)

SetLastModified sets LastModified field to given value.

GetVersion

func (o *FeatureFlagConfig) GetVersion() int32

GetVersion returns the Version field if non-nil, zero value otherwise.

GetVersionOk

func (o *FeatureFlagConfig) GetVersionOk() (*int32, bool)

GetVersionOk returns a tuple with the Version field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.

SetVersion

func (o *FeatureFlagConfig) SetVersion(v int32)

SetVersion sets Version field to given value.

GetTargets

func (o *FeatureFlagConfig) GetTargets() []Target

GetTargets returns the Targets field if non-nil, zero value otherwise.

GetTargetsOk

func (o *FeatureFlagConfig) GetTargetsOk() (*[]Target, bool)

GetTargetsOk returns a tuple with the Targets field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.

SetTargets

func (o *FeatureFlagConfig) SetTargets(v []Target)

SetTargets sets Targets field to given value.

HasTargets

func (o *FeatureFlagConfig) HasTargets() bool

HasTargets returns a boolean if a field has been set.

GetContextTargets

func (o *FeatureFlagConfig) GetContextTargets() []Target

GetContextTargets returns the ContextTargets field if non-nil, zero value otherwise.

GetContextTargetsOk

func (o *FeatureFlagConfig) GetContextTargetsOk() (*[]Target, bool)

GetContextTargetsOk returns a tuple with the ContextTargets field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.

SetContextTargets

func (o *FeatureFlagConfig) SetContextTargets(v []Target)

SetContextTargets sets ContextTargets field to given value.

HasContextTargets

func (o *FeatureFlagConfig) HasContextTargets() bool

HasContextTargets returns a boolean if a field has been set.

GetRules

func (o *FeatureFlagConfig) GetRules() []Rule

GetRules returns the Rules field if non-nil, zero value otherwise.

GetRulesOk

func (o *FeatureFlagConfig) GetRulesOk() (*[]Rule, bool)

GetRulesOk returns a tuple with the Rules field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.

SetRules

func (o *FeatureFlagConfig) SetRules(v []Rule)

SetRules sets Rules field to given value.

HasRules

func (o *FeatureFlagConfig) HasRules() bool

HasRules returns a boolean if a field has been set.

GetFallthrough

func (o *FeatureFlagConfig) GetFallthrough() VariationOrRolloutRep

GetFallthrough returns the Fallthrough field if non-nil, zero value otherwise.

GetFallthroughOk

func (o *FeatureFlagConfig) GetFallthroughOk() (*VariationOrRolloutRep, bool)

GetFallthroughOk returns a tuple with the Fallthrough field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.

SetFallthrough

func (o *FeatureFlagConfig) SetFallthrough(v VariationOrRolloutRep)

SetFallthrough sets Fallthrough field to given value.

HasFallthrough

func (o *FeatureFlagConfig) HasFallthrough() bool

HasFallthrough returns a boolean if a field has been set.

GetOffVariation

func (o *FeatureFlagConfig) GetOffVariation() int32

GetOffVariation returns the OffVariation field if non-nil, zero value otherwise.

GetOffVariationOk

func (o *FeatureFlagConfig) GetOffVariationOk() (*int32, bool)

GetOffVariationOk returns a tuple with the OffVariation field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.

SetOffVariation

func (o *FeatureFlagConfig) SetOffVariation(v int32)

SetOffVariation sets OffVariation field to given value.

HasOffVariation

func (o *FeatureFlagConfig) HasOffVariation() bool

HasOffVariation returns a boolean if a field has been set.

GetPrerequisites

func (o *FeatureFlagConfig) GetPrerequisites() []Prerequisite

GetPrerequisites returns the Prerequisites field if non-nil, zero value otherwise.

GetPrerequisitesOk

func (o *FeatureFlagConfig) GetPrerequisitesOk() (*[]Prerequisite, bool)

GetPrerequisitesOk returns a tuple with the Prerequisites field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.

SetPrerequisites

func (o *FeatureFlagConfig) SetPrerequisites(v []Prerequisite)

SetPrerequisites sets Prerequisites field to given value.

HasPrerequisites

func (o *FeatureFlagConfig) HasPrerequisites() bool

HasPrerequisites returns a boolean if a field has been set.

GetSite

func (o *FeatureFlagConfig) GetSite() Link

GetSite returns the Site field if non-nil, zero value otherwise.

GetSiteOk

func (o *FeatureFlagConfig) GetSiteOk() (*Link, bool)

GetSiteOk returns a tuple with the Site field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.

SetSite

func (o *FeatureFlagConfig) SetSite(v Link)

SetSite sets Site field to given value.

GetAccess

func (o *FeatureFlagConfig) GetAccess() Access

GetAccess returns the Access field if non-nil, zero value otherwise.

GetAccessOk

func (o *FeatureFlagConfig) GetAccessOk() (*Access, bool)

GetAccessOk returns a tuple with the Access field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.

SetAccess

func (o *FeatureFlagConfig) SetAccess(v Access)

SetAccess sets Access field to given value.

HasAccess

func (o *FeatureFlagConfig) HasAccess() bool

HasAccess returns a boolean if a field has been set.

GetEnvironmentName

func (o *FeatureFlagConfig) GetEnvironmentName() string

GetEnvironmentName returns the EnvironmentName field if non-nil, zero value otherwise.

GetEnvironmentNameOk

func (o *FeatureFlagConfig) GetEnvironmentNameOk() (*string, bool)

GetEnvironmentNameOk returns a tuple with the EnvironmentName field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.

SetEnvironmentName

func (o *FeatureFlagConfig) SetEnvironmentName(v string)

SetEnvironmentName sets EnvironmentName field to given value.

GetTrackEvents

func (o *FeatureFlagConfig) GetTrackEvents() bool

GetTrackEvents returns the TrackEvents field if non-nil, zero value otherwise.

GetTrackEventsOk

func (o *FeatureFlagConfig) GetTrackEventsOk() (*bool, bool)

GetTrackEventsOk returns a tuple with the TrackEvents field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.

SetTrackEvents

func (o *FeatureFlagConfig) SetTrackEvents(v bool)

SetTrackEvents sets TrackEvents field to given value.

GetTrackEventsFallthrough

func (o *FeatureFlagConfig) GetTrackEventsFallthrough() bool

GetTrackEventsFallthrough returns the TrackEventsFallthrough field if non-nil, zero value otherwise.

GetTrackEventsFallthroughOk

func (o *FeatureFlagConfig) GetTrackEventsFallthroughOk() (*bool, bool)

GetTrackEventsFallthroughOk returns a tuple with the TrackEventsFallthrough field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.

SetTrackEventsFallthrough

func (o *FeatureFlagConfig) SetTrackEventsFallthrough(v bool)

SetTrackEventsFallthrough sets TrackEventsFallthrough field to given value.

GetDebugEventsUntilDate

func (o *FeatureFlagConfig) GetDebugEventsUntilDate() int64

GetDebugEventsUntilDate returns the DebugEventsUntilDate field if non-nil, zero value otherwise.

GetDebugEventsUntilDateOk

func (o *FeatureFlagConfig) GetDebugEventsUntilDateOk() (*int64, bool)

GetDebugEventsUntilDateOk returns a tuple with the DebugEventsUntilDate field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.

SetDebugEventsUntilDate

func (o *FeatureFlagConfig) SetDebugEventsUntilDate(v int64)

SetDebugEventsUntilDate sets DebugEventsUntilDate field to given value.

HasDebugEventsUntilDate

func (o *FeatureFlagConfig) HasDebugEventsUntilDate() bool

HasDebugEventsUntilDate returns a boolean if a field has been set.

GetSummary

func (o *FeatureFlagConfig) GetSummary() FlagSummary

GetSummary returns the Summary field if non-nil, zero value otherwise.

GetSummaryOk

func (o *FeatureFlagConfig) GetSummaryOk() (*FlagSummary, bool)

GetSummaryOk returns a tuple with the Summary field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.

SetSummary

func (o *FeatureFlagConfig) SetSummary(v FlagSummary)

SetSummary sets Summary field to given value.

HasSummary

func (o *FeatureFlagConfig) HasSummary() bool

HasSummary returns a boolean if a field has been set.

GetEvaluation

func (o *FeatureFlagConfig) GetEvaluation() FlagConfigEvaluation

GetEvaluation returns the Evaluation field if non-nil, zero value otherwise.

GetEvaluationOk

func (o *FeatureFlagConfig) GetEvaluationOk() (*FlagConfigEvaluation, bool)

GetEvaluationOk returns a tuple with the Evaluation field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.

SetEvaluation

func (o *FeatureFlagConfig) SetEvaluation(v FlagConfigEvaluation)

SetEvaluation sets Evaluation field to given value.

HasEvaluation

func (o *FeatureFlagConfig) HasEvaluation() bool

HasEvaluation returns a boolean if a field has been set.

GetMigrationSettings

func (o *FeatureFlagConfig) GetMigrationSettings() FlagConfigMigrationSettingsRep

GetMigrationSettings returns the MigrationSettings field if non-nil, zero value otherwise.

GetMigrationSettingsOk

func (o *FeatureFlagConfig) GetMigrationSettingsOk() (*FlagConfigMigrationSettingsRep, bool)

GetMigrationSettingsOk returns a tuple with the MigrationSettings field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.

SetMigrationSettings

func (o *FeatureFlagConfig) SetMigrationSettings(v FlagConfigMigrationSettingsRep)

SetMigrationSettings sets MigrationSettings field to given value.

HasMigrationSettings

func (o *FeatureFlagConfig) HasMigrationSettings() bool

HasMigrationSettings returns a boolean if a field has been set.

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