From 54026a057193023c2365f7c2b53dd09714e1a457 Mon Sep 17 00:00:00 2001 From: Lajos Szoke <63732287+laliconfigcat@users.noreply.github.com> Date: Thu, 24 Aug 2023 15:36:29 +0200 Subject: [PATCH] Regen (#7) * regen * gitignore * vendor --- .gitignore | 1 - .openapi-generator/FILES | 20 +- README.md | 1 + api/openapi.yaml | 141 ++++++-- docs/AuditLogType.md | 2 - docs/ConfigSettingFormulasModel.md | 26 ++ docs/ConfigSettingFormulasModelHaljson.md | 26 ++ docs/ConfigSettingValuesModel.md | 26 ++ docs/ConfigSettingValuesModelHaljson.md | 26 ++ docs/FeatureFlagLimitations.md | 212 +++++++++++ docs/SettingFormulaModel.md | 26 ++ docs/SettingFormulaModelHaljson.md | 26 ++ docs/SettingValueModel.md | 26 ++ docs/SettingValueModelHaljson.md | 26 ++ docs/UserComparator.md | 12 +- go.mod | 5 - go.sum | 21 +- model_audit_log_type.go | 2 - model_config_setting_formulas_model.go | 36 ++ ...l_config_setting_formulas_model_haljson.go | 36 ++ model_config_setting_values_model.go | 36 ++ model_config_setting_values_model_haljson.go | 36 ++ model_feature_flag_limitations.go | 336 ++++++++++++++++++ model_setting_formula_model.go | 36 ++ model_setting_formula_model_haljson.go | 36 ++ model_setting_value_model.go | 36 ++ model_setting_value_model_haljson.go | 36 ++ model_user_comparator.go | 24 +- 28 files changed, 1195 insertions(+), 78 deletions(-) create mode 100644 docs/FeatureFlagLimitations.md create mode 100644 model_feature_flag_limitations.go diff --git a/.gitignore b/.gitignore index a938edc..4ee6720 100644 --- a/.gitignore +++ b/.gitignore @@ -22,5 +22,4 @@ _testmain.go *.exe *.test *.prof - vendor/ \ No newline at end of file diff --git a/.openapi-generator/FILES b/.openapi-generator/FILES index ffde294..708b026 100644 --- a/.openapi-generator/FILES +++ b/.openapi-generator/FILES @@ -73,6 +73,7 @@ docs/EnvironmentModel.md docs/EnvironmentModelHaljson.md docs/EnvironmentsApi.md docs/EvaluationVersion.md +docs/FeatureFlagLimitations.md docs/FeatureFlagSettingValuesApi.md docs/FeatureFlagSettingValuesUsingSDKKeyApi.md docs/FeatureFlagSettingValuesUsingSDKKeyV2Api.md @@ -203,6 +204,7 @@ model_environment_access_type.go model_environment_model.go model_environment_model_haljson.go model_evaluation_version.go +model_feature_flag_limitations.go model_flag_reference.go model_initial_value.go model_integration_link_detail.go @@ -270,22 +272,4 @@ model_user_condition_model.go model_user_model.go model_value_model.go response.go -test/api_audit_logs_test.go -test/api_code_references_test.go -test/api_configs_test.go -test/api_environments_test.go -test/api_feature_flag_setting_values_test.go -test/api_feature_flag_setting_values_using_sdk_key_test.go -test/api_feature_flag_setting_values_using_sdk_key_v2_test.go -test/api_feature_flag_setting_values_v2_test.go -test/api_feature_flags_settings_test.go -test/api_integration_links_test.go -test/api_me_test.go -test/api_members_test.go -test/api_organizations_test.go -test/api_permission_groups_test.go -test/api_products_test.go -test/api_sdk_keys_test.go -test/api_segments_test.go -test/api_tags_test.go utils.go diff --git a/README.md b/README.md index 9a57486..69463be 100644 --- a/README.md +++ b/README.md @@ -236,6 +236,7 @@ Class | Method | HTTP request | Description - [EnvironmentModel](docs/EnvironmentModel.md) - [EnvironmentModelHaljson](docs/EnvironmentModelHaljson.md) - [EvaluationVersion](docs/EvaluationVersion.md) + - [FeatureFlagLimitations](docs/FeatureFlagLimitations.md) - [FlagReference](docs/FlagReference.md) - [InitialValue](docs/InitialValue.md) - [IntegrationLinkDetail](docs/IntegrationLinkDetail.md) diff --git a/api/openapi.yaml b/api/openapi.yaml index 9120309..9c72606 100644 --- a/api/openapi.yaml +++ b/api/openapi.yaml @@ -5166,7 +5166,6 @@ components: - webHookCreated - webHookChanged - webHookDeleted - - subscriptionChanged - permissionGroupCreated - permissionGroupChanged - permissionGroupDeleted @@ -5937,6 +5936,14 @@ components: description: description order: 0 reasonRequired: true + featureFlagLimitations: + maxComparisonValueListItemLength: 2 + maxComparisonValueListLength: 3 + maxPercentageOptionCount: 2 + maxConditionPerTargetingRuleCount: 7 + maxComparisonValueLength: 9 + maxStringFlagValueLength: 4 + maxTargetingRuleCount: 7 settingFormulas: - lastVersionId: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 targetingRules: @@ -6300,6 +6307,8 @@ components: $ref: '#/components/schemas/ConfigSettingFormulaModel' nullable: true type: array + featureFlagLimitations: + $ref: '#/components/schemas/FeatureFlagLimitations' type: object ConfigSettingFormulasModel-haljson: properties: @@ -6313,6 +6322,8 @@ components: $ref: '#/components/schemas/ConfigSettingFormulaModel' nullable: true type: array + featureFlagLimitations: + $ref: '#/components/schemas/FeatureFlagLimitations' _links: $ref: '#/components/schemas/ConfigSettingFormulasModel_haljson__embedded_environment__links' type: object @@ -6434,6 +6445,14 @@ components: description: description order: 0 reasonRequired: true + featureFlagLimitations: + maxComparisonValueListItemLength: 2 + maxComparisonValueListLength: 3 + maxPercentageOptionCount: 2 + maxConditionPerTargetingRuleCount: 7 + maxComparisonValueLength: 9 + maxStringFlagValueLength: 4 + maxTargetingRuleCount: 7 readOnly: true settingValues: - rolloutRules: @@ -6566,6 +6585,8 @@ components: $ref: '#/components/schemas/ConfigSettingValueModel' nullable: true type: array + featureFlagLimitations: + $ref: '#/components/schemas/FeatureFlagLimitations' type: object ConfigSettingValuesModel-haljson: properties: @@ -6578,6 +6599,8 @@ components: $ref: '#/components/schemas/ConfigSettingValueModel' nullable: true type: array + featureFlagLimitations: + $ref: '#/components/schemas/FeatureFlagLimitations' _links: $ref: '#/components/schemas/ConfigSettingFormulasModel_haljson__embedded_environment__links' type: object @@ -7068,6 +7091,58 @@ components: - v1 - v2 type: string + FeatureFlagLimitations: + additionalProperties: false + description: Subscription limitations regarding Feature flag or Setting values + and targeting. + example: + maxComparisonValueListItemLength: 2 + maxComparisonValueListLength: 3 + maxPercentageOptionCount: 2 + maxConditionPerTargetingRuleCount: 7 + maxComparisonValueLength: 9 + maxStringFlagValueLength: 4 + maxTargetingRuleCount: 7 + properties: + maxPercentageOptionCount: + description: Maximum number of percentage options a Feature Flag or Setting + can have within a targeting rule. + format: int32 + readOnly: true + type: integer + maxTargetingRuleCount: + description: Maximum number of targeting rules a Feature Flag or Setting + can have. + format: int32 + readOnly: true + type: integer + maxComparisonValueLength: + description: Maximum length of a text comparison value. + format: int32 + readOnly: true + type: integer + maxComparisonValueListLength: + description: Maximum item count of a list comparison value. + format: int32 + readOnly: true + type: integer + maxComparisonValueListItemLength: + description: Maximum length of a list comparison value's item. + format: int32 + readOnly: true + type: integer + maxStringFlagValueLength: + description: Maximum length of a text Setting's value. + format: int32 + readOnly: true + type: integer + maxConditionPerTargetingRuleCount: + description: Maximum number of `AND` conditions a Feature Flag or Setting + can have within a targeting rule. + format: int32 + readOnly: true + type: integer + type: object FlagReference: additionalProperties: false example: @@ -8464,6 +8539,14 @@ components: description: description order: 0 reasonRequired: true + featureFlagLimitations: + maxComparisonValueListItemLength: 2 + maxComparisonValueListLength: 3 + maxPercentageOptionCount: 2 + maxConditionPerTargetingRuleCount: 7 + maxComparisonValueLength: 9 + maxStringFlagValueLength: 4 + maxTargetingRuleCount: 7 integrationLinks: - integrationLinkType: null description: description @@ -8551,6 +8634,8 @@ components: $ref: '#/components/schemas/EnvironmentModel' readOnly: type: boolean + featureFlagLimitations: + $ref: '#/components/schemas/FeatureFlagLimitations' type: object SettingFormulaModel-haljson: properties: @@ -8588,6 +8673,8 @@ components: $ref: '#/components/schemas/SettingFormulaModel_haljson__embedded' readOnly: type: boolean + featureFlagLimitations: + $ref: '#/components/schemas/FeatureFlagLimitations' _links: $ref: '#/components/schemas/ConfigSettingFormulasModel_haljson__embedded_environment__links' type: object @@ -8755,6 +8842,19 @@ components: value: "" - percentage: 0 value: "" + lastUpdaterUserEmail: lastUpdaterUserEmail + readOnly: true + setting: + createdAt: 2000-01-23T04:56:07.000+00:00 + creatorEmail: creatorEmail + hint: hint + name: name + creatorFullName: creatorFullName + isWatching: true + settingType: null + key: key + settingId: 6 + order: 1 environment: product: productId: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 @@ -8771,8 +8871,14 @@ components: description: description order: 0 reasonRequired: true - lastUpdaterUserEmail: lastUpdaterUserEmail - readOnly: true + featureFlagLimitations: + maxComparisonValueListItemLength: 2 + maxComparisonValueListLength: 3 + maxPercentageOptionCount: 2 + maxConditionPerTargetingRuleCount: 7 + maxComparisonValueLength: 9 + maxStringFlagValueLength: 4 + maxTargetingRuleCount: 7 value: "" integrationLinks: - integrationLinkType: null @@ -8808,17 +8914,6 @@ components: tagId: 5 name: name settingTagId: 5 - setting: - createdAt: 2000-01-23T04:56:07.000+00:00 - creatorEmail: creatorEmail - hint: hint - name: name - creatorFullName: creatorFullName - isWatching: true - settingType: null - key: key - settingId: 6 - order: 1 updatedAt: 2000-01-23T04:56:07.000+00:00 lastUpdaterUserFullName: lastUpdaterUserFullName properties: @@ -8869,6 +8964,8 @@ components: $ref: '#/components/schemas/ConfigModel' environment: $ref: '#/components/schemas/EnvironmentModel' + featureFlagLimitations: + $ref: '#/components/schemas/FeatureFlagLimitations' readOnly: type: boolean type: object @@ -8905,6 +9002,8 @@ components: type: string _embedded: $ref: '#/components/schemas/SettingFormulaModel_haljson__embedded' + featureFlagLimitations: + $ref: '#/components/schemas/FeatureFlagLimitations' readOnly: type: boolean _links: @@ -10012,8 +10111,8 @@ components: description: The comparison operator the evaluation process must use when it compares the given user attribute's value with the comparison value. enum: - - contains - - doesNotContain + - containsAnyOf + - doesNotContainAnyOf - semVerIsOneOf - semVerIsNotOneOf - semVerLess @@ -10032,10 +10131,10 @@ components: - dateTimeAfter - sensitiveTextEquals - sensitiveTextDoesNotEqual - - sensitiveTextStartsWith - - sensitiveTextNotStartsWith - - sensitiveTextEndsWith - - sensitiveTextNotEndsWith + - sensitiveTextStartsWithAnyOf + - sensitiveTextNotStartsWithAnyOf + - sensitiveTextEndsWithAnyOf + - sensitiveTextNotEndsWithAnyOf - arrayContains - arrayDoesNotContain type: string @@ -10108,8 +10207,6 @@ components: type: boolean stringValue: description: The served value in case of a text Setting. - maxLength: 100000 - minLength: 0 nullable: true type: string intValue: diff --git a/docs/AuditLogType.md b/docs/AuditLogType.md index b2aa434..f369f0f 100644 --- a/docs/AuditLogType.md +++ b/docs/AuditLogType.md @@ -63,8 +63,6 @@ * `WEB_HOOK_DELETED` (value: `"webHookDeleted"`) -* `SUBSCRIPTION_CHANGED` (value: `"subscriptionChanged"`) - * `PERMISSION_GROUP_CREATED` (value: `"permissionGroupCreated"`) * `PERMISSION_GROUP_CHANGED` (value: `"permissionGroupChanged"`) diff --git a/docs/ConfigSettingFormulasModel.md b/docs/ConfigSettingFormulasModel.md index 7ba9544..b1f0c9d 100644 --- a/docs/ConfigSettingFormulasModel.md +++ b/docs/ConfigSettingFormulasModel.md @@ -8,6 +8,7 @@ Name | Type | Description | Notes **Environment** | Pointer to [**EnvironmentModel**](EnvironmentModel.md) | | [optional] **ReadOnly** | Pointer to **bool** | | [optional] **SettingFormulas** | Pointer to [**[]ConfigSettingFormulaModel**](ConfigSettingFormulaModel.md) | Evaluation descriptors of each updated Feature Flag and Setting. | [optional] +**FeatureFlagLimitations** | Pointer to [**FeatureFlagLimitations**](FeatureFlagLimitations.md) | | [optional] ## Methods @@ -138,6 +139,31 @@ HasSettingFormulas returns a boolean if a field has been set. `func (o *ConfigSettingFormulasModel) UnsetSettingFormulas()` UnsetSettingFormulas ensures that no value is present for SettingFormulas, not even an explicit nil +### GetFeatureFlagLimitations + +`func (o *ConfigSettingFormulasModel) GetFeatureFlagLimitations() FeatureFlagLimitations` + +GetFeatureFlagLimitations returns the FeatureFlagLimitations field if non-nil, zero value otherwise. + +### GetFeatureFlagLimitationsOk + +`func (o *ConfigSettingFormulasModel) GetFeatureFlagLimitationsOk() (*FeatureFlagLimitations, bool)` + +GetFeatureFlagLimitationsOk returns a tuple with the FeatureFlagLimitations field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetFeatureFlagLimitations + +`func (o *ConfigSettingFormulasModel) SetFeatureFlagLimitations(v FeatureFlagLimitations)` + +SetFeatureFlagLimitations sets FeatureFlagLimitations field to given value. + +### HasFeatureFlagLimitations + +`func (o *ConfigSettingFormulasModel) HasFeatureFlagLimitations() bool` + +HasFeatureFlagLimitations returns a boolean if a field has been set. + [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/ConfigSettingFormulasModelHaljson.md b/docs/ConfigSettingFormulasModelHaljson.md index 54cf8fb..5ccd878 100644 --- a/docs/ConfigSettingFormulasModelHaljson.md +++ b/docs/ConfigSettingFormulasModelHaljson.md @@ -7,6 +7,7 @@ Name | Type | Description | Notes **Embedded** | Pointer to [**ConfigSettingFormulasModelHaljsonEmbedded**](ConfigSettingFormulasModelHaljsonEmbedded.md) | | [optional] **ReadOnly** | Pointer to **bool** | | [optional] **SettingFormulas** | Pointer to [**[]ConfigSettingFormulaModel**](ConfigSettingFormulaModel.md) | Evaluation descriptors of each updated Feature Flag and Setting. | [optional] +**FeatureFlagLimitations** | Pointer to [**FeatureFlagLimitations**](FeatureFlagLimitations.md) | | [optional] **Links** | Pointer to [**ConfigSettingFormulasModelHaljsonEmbeddedEnvironmentLinks**](ConfigSettingFormulasModelHaljsonEmbeddedEnvironmentLinks.md) | | [optional] ## Methods @@ -113,6 +114,31 @@ HasSettingFormulas returns a boolean if a field has been set. `func (o *ConfigSettingFormulasModelHaljson) UnsetSettingFormulas()` UnsetSettingFormulas ensures that no value is present for SettingFormulas, not even an explicit nil +### GetFeatureFlagLimitations + +`func (o *ConfigSettingFormulasModelHaljson) GetFeatureFlagLimitations() FeatureFlagLimitations` + +GetFeatureFlagLimitations returns the FeatureFlagLimitations field if non-nil, zero value otherwise. + +### GetFeatureFlagLimitationsOk + +`func (o *ConfigSettingFormulasModelHaljson) GetFeatureFlagLimitationsOk() (*FeatureFlagLimitations, bool)` + +GetFeatureFlagLimitationsOk returns a tuple with the FeatureFlagLimitations field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetFeatureFlagLimitations + +`func (o *ConfigSettingFormulasModelHaljson) SetFeatureFlagLimitations(v FeatureFlagLimitations)` + +SetFeatureFlagLimitations sets FeatureFlagLimitations field to given value. + +### HasFeatureFlagLimitations + +`func (o *ConfigSettingFormulasModelHaljson) HasFeatureFlagLimitations() bool` + +HasFeatureFlagLimitations returns a boolean if a field has been set. + ### GetLinks `func (o *ConfigSettingFormulasModelHaljson) GetLinks() ConfigSettingFormulasModelHaljsonEmbeddedEnvironmentLinks` diff --git a/docs/ConfigSettingValuesModel.md b/docs/ConfigSettingValuesModel.md index 207a5d2..c38a37a 100644 --- a/docs/ConfigSettingValuesModel.md +++ b/docs/ConfigSettingValuesModel.md @@ -8,6 +8,7 @@ Name | Type | Description | Notes **Environment** | Pointer to [**EnvironmentModel**](EnvironmentModel.md) | | [optional] **ReadOnly** | Pointer to **bool** | | [optional] **SettingValues** | Pointer to [**[]ConfigSettingValueModel**](ConfigSettingValueModel.md) | | [optional] +**FeatureFlagLimitations** | Pointer to [**FeatureFlagLimitations**](FeatureFlagLimitations.md) | | [optional] ## Methods @@ -138,6 +139,31 @@ HasSettingValues returns a boolean if a field has been set. `func (o *ConfigSettingValuesModel) UnsetSettingValues()` UnsetSettingValues ensures that no value is present for SettingValues, not even an explicit nil +### GetFeatureFlagLimitations + +`func (o *ConfigSettingValuesModel) GetFeatureFlagLimitations() FeatureFlagLimitations` + +GetFeatureFlagLimitations returns the FeatureFlagLimitations field if non-nil, zero value otherwise. + +### GetFeatureFlagLimitationsOk + +`func (o *ConfigSettingValuesModel) GetFeatureFlagLimitationsOk() (*FeatureFlagLimitations, bool)` + +GetFeatureFlagLimitationsOk returns a tuple with the FeatureFlagLimitations field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetFeatureFlagLimitations + +`func (o *ConfigSettingValuesModel) SetFeatureFlagLimitations(v FeatureFlagLimitations)` + +SetFeatureFlagLimitations sets FeatureFlagLimitations field to given value. + +### HasFeatureFlagLimitations + +`func (o *ConfigSettingValuesModel) HasFeatureFlagLimitations() bool` + +HasFeatureFlagLimitations returns a boolean if a field has been set. + [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/ConfigSettingValuesModelHaljson.md b/docs/ConfigSettingValuesModelHaljson.md index b35d015..619511b 100644 --- a/docs/ConfigSettingValuesModelHaljson.md +++ b/docs/ConfigSettingValuesModelHaljson.md @@ -7,6 +7,7 @@ Name | Type | Description | Notes **Embedded** | Pointer to [**ConfigSettingFormulasModelHaljsonEmbedded**](ConfigSettingFormulasModelHaljsonEmbedded.md) | | [optional] **ReadOnly** | Pointer to **bool** | | [optional] **SettingValues** | Pointer to [**[]ConfigSettingValueModel**](ConfigSettingValueModel.md) | | [optional] +**FeatureFlagLimitations** | Pointer to [**FeatureFlagLimitations**](FeatureFlagLimitations.md) | | [optional] **Links** | Pointer to [**ConfigSettingFormulasModelHaljsonEmbeddedEnvironmentLinks**](ConfigSettingFormulasModelHaljsonEmbeddedEnvironmentLinks.md) | | [optional] ## Methods @@ -113,6 +114,31 @@ HasSettingValues returns a boolean if a field has been set. `func (o *ConfigSettingValuesModelHaljson) UnsetSettingValues()` UnsetSettingValues ensures that no value is present for SettingValues, not even an explicit nil +### GetFeatureFlagLimitations + +`func (o *ConfigSettingValuesModelHaljson) GetFeatureFlagLimitations() FeatureFlagLimitations` + +GetFeatureFlagLimitations returns the FeatureFlagLimitations field if non-nil, zero value otherwise. + +### GetFeatureFlagLimitationsOk + +`func (o *ConfigSettingValuesModelHaljson) GetFeatureFlagLimitationsOk() (*FeatureFlagLimitations, bool)` + +GetFeatureFlagLimitationsOk returns a tuple with the FeatureFlagLimitations field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetFeatureFlagLimitations + +`func (o *ConfigSettingValuesModelHaljson) SetFeatureFlagLimitations(v FeatureFlagLimitations)` + +SetFeatureFlagLimitations sets FeatureFlagLimitations field to given value. + +### HasFeatureFlagLimitations + +`func (o *ConfigSettingValuesModelHaljson) HasFeatureFlagLimitations() bool` + +HasFeatureFlagLimitations returns a boolean if a field has been set. + ### GetLinks `func (o *ConfigSettingValuesModelHaljson) GetLinks() ConfigSettingFormulasModelHaljsonEmbeddedEnvironmentLinks` diff --git a/docs/FeatureFlagLimitations.md b/docs/FeatureFlagLimitations.md new file mode 100644 index 0000000..617640e --- /dev/null +++ b/docs/FeatureFlagLimitations.md @@ -0,0 +1,212 @@ +# FeatureFlagLimitations + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**MaxPercentageOptionCount** | Pointer to **int32** | Maximum number of percentage options a Feature Flag or Setting can have within a targeting rule. | [optional] [readonly] +**MaxTargetingRuleCount** | Pointer to **int32** | Maximum number of targeting rules a Feature Flag or Setting can have. | [optional] [readonly] +**MaxComparisonValueLength** | Pointer to **int32** | Maximum length of a text comparison value. | [optional] [readonly] +**MaxComparisonValueListLength** | Pointer to **int32** | Maximum item count of a list comparison value. | [optional] [readonly] +**MaxComparisonValueListItemLength** | Pointer to **int32** | Maximum length of a list comparison value's item. | [optional] [readonly] +**MaxStringFlagValueLength** | Pointer to **int32** | Maximum length of a text Setting's value. | [optional] [readonly] +**MaxConditionPerTargetingRuleCount** | Pointer to **int32** | Maximum number of `AND` conditions a Feature Flag or Setting can have within a targeting rule. | [optional] [readonly] + +## Methods + +### NewFeatureFlagLimitations + +`func NewFeatureFlagLimitations() *FeatureFlagLimitations` + +NewFeatureFlagLimitations instantiates a new FeatureFlagLimitations 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 + +### NewFeatureFlagLimitationsWithDefaults + +`func NewFeatureFlagLimitationsWithDefaults() *FeatureFlagLimitations` + +NewFeatureFlagLimitationsWithDefaults instantiates a new FeatureFlagLimitations 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 + +### GetMaxPercentageOptionCount + +`func (o *FeatureFlagLimitations) GetMaxPercentageOptionCount() int32` + +GetMaxPercentageOptionCount returns the MaxPercentageOptionCount field if non-nil, zero value otherwise. + +### GetMaxPercentageOptionCountOk + +`func (o *FeatureFlagLimitations) GetMaxPercentageOptionCountOk() (*int32, bool)` + +GetMaxPercentageOptionCountOk returns a tuple with the MaxPercentageOptionCount field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMaxPercentageOptionCount + +`func (o *FeatureFlagLimitations) SetMaxPercentageOptionCount(v int32)` + +SetMaxPercentageOptionCount sets MaxPercentageOptionCount field to given value. + +### HasMaxPercentageOptionCount + +`func (o *FeatureFlagLimitations) HasMaxPercentageOptionCount() bool` + +HasMaxPercentageOptionCount returns a boolean if a field has been set. + +### GetMaxTargetingRuleCount + +`func (o *FeatureFlagLimitations) GetMaxTargetingRuleCount() int32` + +GetMaxTargetingRuleCount returns the MaxTargetingRuleCount field if non-nil, zero value otherwise. + +### GetMaxTargetingRuleCountOk + +`func (o *FeatureFlagLimitations) GetMaxTargetingRuleCountOk() (*int32, bool)` + +GetMaxTargetingRuleCountOk returns a tuple with the MaxTargetingRuleCount field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMaxTargetingRuleCount + +`func (o *FeatureFlagLimitations) SetMaxTargetingRuleCount(v int32)` + +SetMaxTargetingRuleCount sets MaxTargetingRuleCount field to given value. + +### HasMaxTargetingRuleCount + +`func (o *FeatureFlagLimitations) HasMaxTargetingRuleCount() bool` + +HasMaxTargetingRuleCount returns a boolean if a field has been set. + +### GetMaxComparisonValueLength + +`func (o *FeatureFlagLimitations) GetMaxComparisonValueLength() int32` + +GetMaxComparisonValueLength returns the MaxComparisonValueLength field if non-nil, zero value otherwise. + +### GetMaxComparisonValueLengthOk + +`func (o *FeatureFlagLimitations) GetMaxComparisonValueLengthOk() (*int32, bool)` + +GetMaxComparisonValueLengthOk returns a tuple with the MaxComparisonValueLength field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMaxComparisonValueLength + +`func (o *FeatureFlagLimitations) SetMaxComparisonValueLength(v int32)` + +SetMaxComparisonValueLength sets MaxComparisonValueLength field to given value. + +### HasMaxComparisonValueLength + +`func (o *FeatureFlagLimitations) HasMaxComparisonValueLength() bool` + +HasMaxComparisonValueLength returns a boolean if a field has been set. + +### GetMaxComparisonValueListLength + +`func (o *FeatureFlagLimitations) GetMaxComparisonValueListLength() int32` + +GetMaxComparisonValueListLength returns the MaxComparisonValueListLength field if non-nil, zero value otherwise. + +### GetMaxComparisonValueListLengthOk + +`func (o *FeatureFlagLimitations) GetMaxComparisonValueListLengthOk() (*int32, bool)` + +GetMaxComparisonValueListLengthOk returns a tuple with the MaxComparisonValueListLength field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMaxComparisonValueListLength + +`func (o *FeatureFlagLimitations) SetMaxComparisonValueListLength(v int32)` + +SetMaxComparisonValueListLength sets MaxComparisonValueListLength field to given value. + +### HasMaxComparisonValueListLength + +`func (o *FeatureFlagLimitations) HasMaxComparisonValueListLength() bool` + +HasMaxComparisonValueListLength returns a boolean if a field has been set. + +### GetMaxComparisonValueListItemLength + +`func (o *FeatureFlagLimitations) GetMaxComparisonValueListItemLength() int32` + +GetMaxComparisonValueListItemLength returns the MaxComparisonValueListItemLength field if non-nil, zero value otherwise. + +### GetMaxComparisonValueListItemLengthOk + +`func (o *FeatureFlagLimitations) GetMaxComparisonValueListItemLengthOk() (*int32, bool)` + +GetMaxComparisonValueListItemLengthOk returns a tuple with the MaxComparisonValueListItemLength field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMaxComparisonValueListItemLength + +`func (o *FeatureFlagLimitations) SetMaxComparisonValueListItemLength(v int32)` + +SetMaxComparisonValueListItemLength sets MaxComparisonValueListItemLength field to given value. + +### HasMaxComparisonValueListItemLength + +`func (o *FeatureFlagLimitations) HasMaxComparisonValueListItemLength() bool` + +HasMaxComparisonValueListItemLength returns a boolean if a field has been set. + +### GetMaxStringFlagValueLength + +`func (o *FeatureFlagLimitations) GetMaxStringFlagValueLength() int32` + +GetMaxStringFlagValueLength returns the MaxStringFlagValueLength field if non-nil, zero value otherwise. + +### GetMaxStringFlagValueLengthOk + +`func (o *FeatureFlagLimitations) GetMaxStringFlagValueLengthOk() (*int32, bool)` + +GetMaxStringFlagValueLengthOk returns a tuple with the MaxStringFlagValueLength field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMaxStringFlagValueLength + +`func (o *FeatureFlagLimitations) SetMaxStringFlagValueLength(v int32)` + +SetMaxStringFlagValueLength sets MaxStringFlagValueLength field to given value. + +### HasMaxStringFlagValueLength + +`func (o *FeatureFlagLimitations) HasMaxStringFlagValueLength() bool` + +HasMaxStringFlagValueLength returns a boolean if a field has been set. + +### GetMaxConditionPerTargetingRuleCount + +`func (o *FeatureFlagLimitations) GetMaxConditionPerTargetingRuleCount() int32` + +GetMaxConditionPerTargetingRuleCount returns the MaxConditionPerTargetingRuleCount field if non-nil, zero value otherwise. + +### GetMaxConditionPerTargetingRuleCountOk + +`func (o *FeatureFlagLimitations) GetMaxConditionPerTargetingRuleCountOk() (*int32, bool)` + +GetMaxConditionPerTargetingRuleCountOk returns a tuple with the MaxConditionPerTargetingRuleCount field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMaxConditionPerTargetingRuleCount + +`func (o *FeatureFlagLimitations) SetMaxConditionPerTargetingRuleCount(v int32)` + +SetMaxConditionPerTargetingRuleCount sets MaxConditionPerTargetingRuleCount field to given value. + +### HasMaxConditionPerTargetingRuleCount + +`func (o *FeatureFlagLimitations) HasMaxConditionPerTargetingRuleCount() bool` + +HasMaxConditionPerTargetingRuleCount returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/SettingFormulaModel.md b/docs/SettingFormulaModel.md index 545f1ff..ddec2ec 100644 --- a/docs/SettingFormulaModel.md +++ b/docs/SettingFormulaModel.md @@ -17,6 +17,7 @@ Name | Type | Description | Notes **Config** | Pointer to [**ConfigModel**](ConfigModel.md) | | [optional] **Environment** | Pointer to [**EnvironmentModel**](EnvironmentModel.md) | | [optional] **ReadOnly** | Pointer to **bool** | | [optional] +**FeatureFlagLimitations** | Pointer to [**FeatureFlagLimitations**](FeatureFlagLimitations.md) | | [optional] ## Methods @@ -432,6 +433,31 @@ SetReadOnly sets ReadOnly field to given value. HasReadOnly returns a boolean if a field has been set. +### GetFeatureFlagLimitations + +`func (o *SettingFormulaModel) GetFeatureFlagLimitations() FeatureFlagLimitations` + +GetFeatureFlagLimitations returns the FeatureFlagLimitations field if non-nil, zero value otherwise. + +### GetFeatureFlagLimitationsOk + +`func (o *SettingFormulaModel) GetFeatureFlagLimitationsOk() (*FeatureFlagLimitations, bool)` + +GetFeatureFlagLimitationsOk returns a tuple with the FeatureFlagLimitations field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetFeatureFlagLimitations + +`func (o *SettingFormulaModel) SetFeatureFlagLimitations(v FeatureFlagLimitations)` + +SetFeatureFlagLimitations sets FeatureFlagLimitations field to given value. + +### HasFeatureFlagLimitations + +`func (o *SettingFormulaModel) HasFeatureFlagLimitations() bool` + +HasFeatureFlagLimitations returns a boolean if a field has been set. + [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/SettingFormulaModelHaljson.md b/docs/SettingFormulaModelHaljson.md index 857cec6..f2ca096 100644 --- a/docs/SettingFormulaModelHaljson.md +++ b/docs/SettingFormulaModelHaljson.md @@ -13,6 +13,7 @@ Name | Type | Description | Notes **LastUpdaterUserFullName** | Pointer to **NullableString** | The name of the user who last updated the Feature Flag or Setting. | [optional] **Embedded** | Pointer to [**SettingFormulaModelHaljsonEmbedded**](SettingFormulaModelHaljsonEmbedded.md) | | [optional] **ReadOnly** | Pointer to **bool** | | [optional] +**FeatureFlagLimitations** | Pointer to [**FeatureFlagLimitations**](FeatureFlagLimitations.md) | | [optional] **Links** | Pointer to [**ConfigSettingFormulasModelHaljsonEmbeddedEnvironmentLinks**](ConfigSettingFormulasModelHaljsonEmbeddedEnvironmentLinks.md) | | [optional] ## Methods @@ -309,6 +310,31 @@ SetReadOnly sets ReadOnly field to given value. HasReadOnly returns a boolean if a field has been set. +### GetFeatureFlagLimitations + +`func (o *SettingFormulaModelHaljson) GetFeatureFlagLimitations() FeatureFlagLimitations` + +GetFeatureFlagLimitations returns the FeatureFlagLimitations field if non-nil, zero value otherwise. + +### GetFeatureFlagLimitationsOk + +`func (o *SettingFormulaModelHaljson) GetFeatureFlagLimitationsOk() (*FeatureFlagLimitations, bool)` + +GetFeatureFlagLimitationsOk returns a tuple with the FeatureFlagLimitations field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetFeatureFlagLimitations + +`func (o *SettingFormulaModelHaljson) SetFeatureFlagLimitations(v FeatureFlagLimitations)` + +SetFeatureFlagLimitations sets FeatureFlagLimitations field to given value. + +### HasFeatureFlagLimitations + +`func (o *SettingFormulaModelHaljson) HasFeatureFlagLimitations() bool` + +HasFeatureFlagLimitations returns a boolean if a field has been set. + ### GetLinks `func (o *SettingFormulaModelHaljson) GetLinks() ConfigSettingFormulasModelHaljsonEmbeddedEnvironmentLinks` diff --git a/docs/SettingValueModel.md b/docs/SettingValueModel.md index 570f8ed..b3e4964 100644 --- a/docs/SettingValueModel.md +++ b/docs/SettingValueModel.md @@ -15,6 +15,7 @@ Name | Type | Description | Notes **SettingTags** | Pointer to [**[]SettingTagModel**](SettingTagModel.md) | The tags attached to the Feature Flag or Setting. | [optional] **Config** | Pointer to [**ConfigModel**](ConfigModel.md) | | [optional] **Environment** | Pointer to [**EnvironmentModel**](EnvironmentModel.md) | | [optional] +**FeatureFlagLimitations** | Pointer to [**FeatureFlagLimitations**](FeatureFlagLimitations.md) | | [optional] **ReadOnly** | Pointer to **bool** | | [optional] ## Methods @@ -391,6 +392,31 @@ SetEnvironment sets Environment field to given value. HasEnvironment returns a boolean if a field has been set. +### GetFeatureFlagLimitations + +`func (o *SettingValueModel) GetFeatureFlagLimitations() FeatureFlagLimitations` + +GetFeatureFlagLimitations returns the FeatureFlagLimitations field if non-nil, zero value otherwise. + +### GetFeatureFlagLimitationsOk + +`func (o *SettingValueModel) GetFeatureFlagLimitationsOk() (*FeatureFlagLimitations, bool)` + +GetFeatureFlagLimitationsOk returns a tuple with the FeatureFlagLimitations field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetFeatureFlagLimitations + +`func (o *SettingValueModel) SetFeatureFlagLimitations(v FeatureFlagLimitations)` + +SetFeatureFlagLimitations sets FeatureFlagLimitations field to given value. + +### HasFeatureFlagLimitations + +`func (o *SettingValueModel) HasFeatureFlagLimitations() bool` + +HasFeatureFlagLimitations returns a boolean if a field has been set. + ### GetReadOnly `func (o *SettingValueModel) GetReadOnly() bool` diff --git a/docs/SettingValueModelHaljson.md b/docs/SettingValueModelHaljson.md index 9b8b0c1..6cf248e 100644 --- a/docs/SettingValueModelHaljson.md +++ b/docs/SettingValueModelHaljson.md @@ -11,6 +11,7 @@ Name | Type | Description | Notes **LastUpdaterUserEmail** | Pointer to **NullableString** | The email of the user who last updated the Feature Flag or Setting. | [optional] **LastUpdaterUserFullName** | Pointer to **NullableString** | The name of the user who last updated the Feature Flag or Setting. | [optional] **Embedded** | Pointer to [**SettingFormulaModelHaljsonEmbedded**](SettingFormulaModelHaljsonEmbedded.md) | | [optional] +**FeatureFlagLimitations** | Pointer to [**FeatureFlagLimitations**](FeatureFlagLimitations.md) | | [optional] **ReadOnly** | Pointer to **bool** | | [optional] **Links** | Pointer to [**ConfigSettingFormulasModelHaljsonEmbeddedEnvironmentLinks**](ConfigSettingFormulasModelHaljsonEmbeddedEnvironmentLinks.md) | | [optional] @@ -268,6 +269,31 @@ SetEmbedded sets Embedded field to given value. HasEmbedded returns a boolean if a field has been set. +### GetFeatureFlagLimitations + +`func (o *SettingValueModelHaljson) GetFeatureFlagLimitations() FeatureFlagLimitations` + +GetFeatureFlagLimitations returns the FeatureFlagLimitations field if non-nil, zero value otherwise. + +### GetFeatureFlagLimitationsOk + +`func (o *SettingValueModelHaljson) GetFeatureFlagLimitationsOk() (*FeatureFlagLimitations, bool)` + +GetFeatureFlagLimitationsOk returns a tuple with the FeatureFlagLimitations field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetFeatureFlagLimitations + +`func (o *SettingValueModelHaljson) SetFeatureFlagLimitations(v FeatureFlagLimitations)` + +SetFeatureFlagLimitations sets FeatureFlagLimitations field to given value. + +### HasFeatureFlagLimitations + +`func (o *SettingValueModelHaljson) HasFeatureFlagLimitations() bool` + +HasFeatureFlagLimitations returns a boolean if a field has been set. + ### GetReadOnly `func (o *SettingValueModelHaljson) GetReadOnly() bool` diff --git a/docs/UserComparator.md b/docs/UserComparator.md index a9703a5..174c1e2 100644 --- a/docs/UserComparator.md +++ b/docs/UserComparator.md @@ -3,9 +3,9 @@ ## Enum -* `CONTAINS` (value: `"contains"`) +* `CONTAINS_ANY_OF` (value: `"containsAnyOf"`) -* `DOES_NOT_CONTAIN` (value: `"doesNotContain"`) +* `DOES_NOT_CONTAIN_ANY_OF` (value: `"doesNotContainAnyOf"`) * `SEM_VER_IS_ONE_OF` (value: `"semVerIsOneOf"`) @@ -43,13 +43,13 @@ * `SENSITIVE_TEXT_DOES_NOT_EQUAL` (value: `"sensitiveTextDoesNotEqual"`) -* `SENSITIVE_TEXT_STARTS_WITH` (value: `"sensitiveTextStartsWith"`) +* `SENSITIVE_TEXT_STARTS_WITH_ANY_OF` (value: `"sensitiveTextStartsWithAnyOf"`) -* `SENSITIVE_TEXT_NOT_STARTS_WITH` (value: `"sensitiveTextNotStartsWith"`) +* `SENSITIVE_TEXT_NOT_STARTS_WITH_ANY_OF` (value: `"sensitiveTextNotStartsWithAnyOf"`) -* `SENSITIVE_TEXT_ENDS_WITH` (value: `"sensitiveTextEndsWith"`) +* `SENSITIVE_TEXT_ENDS_WITH_ANY_OF` (value: `"sensitiveTextEndsWithAnyOf"`) -* `SENSITIVE_TEXT_NOT_ENDS_WITH` (value: `"sensitiveTextNotEndsWith"`) +* `SENSITIVE_TEXT_NOT_ENDS_WITH_ANY_OF` (value: `"sensitiveTextNotEndsWithAnyOf"`) * `ARRAY_CONTAINS` (value: `"arrayContains"`) diff --git a/go.mod b/go.mod index f15a36c..22a88a7 100644 --- a/go.mod +++ b/go.mod @@ -2,10 +2,5 @@ module github.com/configcat/configcat-publicapi-go-client go 1.18 -require github.com/stretchr/testify v1.8.4 - require ( - github.com/davecgh/go-spew v1.1.1 // indirect - github.com/pmezard/go-difflib v1.0.0 // indirect - gopkg.in/yaml.v3 v3.0.1 // indirect ) diff --git a/go.sum b/go.sum index fa4b6e6..c966c8d 100644 --- a/go.sum +++ b/go.sum @@ -1,10 +1,11 @@ -github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c= -github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= -github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM= -github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4= -github.com/stretchr/testify v1.8.4 h1:CcVxjf3Q8PM0mHUKJCdn+eZZtm5yQwehR5yeSVQQcUk= -github.com/stretchr/testify v1.8.4/go.mod h1:sz/lmYIOXD/1dqDmKjjqLyZ2RngseejIcXlSw2iwfAo= -gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405 h1:yhCVgyC4o1eVCa2tZl7eS0r+SDo693bJlVdllGtEeKM= -gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= -gopkg.in/yaml.v3 v3.0.1 h1:fxVm/GzAzEWqLHuvctI91KS9hhNmmWOoWu0XTYJS7CA= -gopkg.in/yaml.v3 v3.0.1/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM= +cloud.google.com/go v0.34.0/go.mod h1:aQUYkXzVsufM+DwF1aE+0xfcU+56JwCaLick0ClmMTw= +github.com/golang/protobuf v1.2.0 h1:P3YflyNX/ehuJFLhxviNdFxQPkGK5cDcApsge1SqnvM= +github.com/golang/protobuf v1.2.0/go.mod h1:6lQm79b+lXiMfvg/cZm0SGofjICqVBUtrP5yJMmIC1U= +golang.org/x/net v0.0.0-20180724234803-3673e40ba225/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= +golang.org/x/net v0.0.0-20190108225652-1e06a53dbb7e h1:bRhVy7zSSasaqNksaRZiA5EEI+Ei4I1nO5Jh72wfHlg= +golang.org/x/net v0.0.0-20190108225652-1e06a53dbb7e/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= +golang.org/x/sync v0.0.0-20181221193216-37e7f081c4d4 h1:YUO/7uOKsKeq9UokNS62b8FYywz3ker1l1vDZRCRefw= +golang.org/x/sync v0.0.0-20181221193216-37e7f081c4d4/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= +golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= +google.golang.org/appengine v1.4.0 h1:/wp5JvzpHIxhs/dumFmF7BXTf3Z+dd4uXta4kVyO508= +google.golang.org/appengine v1.4.0/go.mod h1:xpcJRLb0r/rnEns0DIKYYv+WjYCduHsrkT7/EB5XEv4= diff --git a/model_audit_log_type.go b/model_audit_log_type.go index 7b0bf22..be01e36 100644 --- a/model_audit_log_type.go +++ b/model_audit_log_type.go @@ -51,7 +51,6 @@ const ( AUDITLOGTYPE_WEB_HOOK_CREATED AuditLogType = "webHookCreated" AUDITLOGTYPE_WEB_HOOK_CHANGED AuditLogType = "webHookChanged" AUDITLOGTYPE_WEB_HOOK_DELETED AuditLogType = "webHookDeleted" - AUDITLOGTYPE_SUBSCRIPTION_CHANGED AuditLogType = "subscriptionChanged" AUDITLOGTYPE_PERMISSION_GROUP_CREATED AuditLogType = "permissionGroupCreated" AUDITLOGTYPE_PERMISSION_GROUP_CHANGED AuditLogType = "permissionGroupChanged" AUDITLOGTYPE_PERMISSION_GROUP_DELETED AuditLogType = "permissionGroupDeleted" @@ -133,7 +132,6 @@ var AllowedAuditLogTypeEnumValues = []AuditLogType{ "webHookCreated", "webHookChanged", "webHookDeleted", - "subscriptionChanged", "permissionGroupCreated", "permissionGroupChanged", "permissionGroupDeleted", diff --git a/model_config_setting_formulas_model.go b/model_config_setting_formulas_model.go index 254499c..ba70223 100644 --- a/model_config_setting_formulas_model.go +++ b/model_config_setting_formulas_model.go @@ -25,6 +25,7 @@ type ConfigSettingFormulasModel struct { ReadOnly *bool `json:"readOnly,omitempty"` // Evaluation descriptors of each updated Feature Flag and Setting. SettingFormulas []ConfigSettingFormulaModel `json:"settingFormulas,omitempty"` + FeatureFlagLimitations *FeatureFlagLimitations `json:"featureFlagLimitations,omitempty"` } // NewConfigSettingFormulasModel instantiates a new ConfigSettingFormulasModel object @@ -173,6 +174,38 @@ func (o *ConfigSettingFormulasModel) SetSettingFormulas(v []ConfigSettingFormula o.SettingFormulas = v } +// GetFeatureFlagLimitations returns the FeatureFlagLimitations field value if set, zero value otherwise. +func (o *ConfigSettingFormulasModel) GetFeatureFlagLimitations() FeatureFlagLimitations { + if o == nil || IsNil(o.FeatureFlagLimitations) { + var ret FeatureFlagLimitations + return ret + } + return *o.FeatureFlagLimitations +} + +// GetFeatureFlagLimitationsOk returns a tuple with the FeatureFlagLimitations field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ConfigSettingFormulasModel) GetFeatureFlagLimitationsOk() (*FeatureFlagLimitations, bool) { + if o == nil || IsNil(o.FeatureFlagLimitations) { + return nil, false + } + return o.FeatureFlagLimitations, true +} + +// HasFeatureFlagLimitations returns a boolean if a field has been set. +func (o *ConfigSettingFormulasModel) HasFeatureFlagLimitations() bool { + if o != nil && !IsNil(o.FeatureFlagLimitations) { + return true + } + + return false +} + +// SetFeatureFlagLimitations gets a reference to the given FeatureFlagLimitations and assigns it to the FeatureFlagLimitations field. +func (o *ConfigSettingFormulasModel) SetFeatureFlagLimitations(v FeatureFlagLimitations) { + o.FeatureFlagLimitations = &v +} + func (o ConfigSettingFormulasModel) MarshalJSON() ([]byte, error) { toSerialize,err := o.ToMap() if err != nil { @@ -195,6 +228,9 @@ func (o ConfigSettingFormulasModel) ToMap() (map[string]interface{}, error) { if o.SettingFormulas != nil { toSerialize["settingFormulas"] = o.SettingFormulas } + if !IsNil(o.FeatureFlagLimitations) { + toSerialize["featureFlagLimitations"] = o.FeatureFlagLimitations + } return toSerialize, nil } diff --git a/model_config_setting_formulas_model_haljson.go b/model_config_setting_formulas_model_haljson.go index ac6f0b9..89235eb 100644 --- a/model_config_setting_formulas_model_haljson.go +++ b/model_config_setting_formulas_model_haljson.go @@ -24,6 +24,7 @@ type ConfigSettingFormulasModelHaljson struct { ReadOnly *bool `json:"readOnly,omitempty"` // Evaluation descriptors of each updated Feature Flag and Setting. SettingFormulas []ConfigSettingFormulaModel `json:"settingFormulas,omitempty"` + FeatureFlagLimitations *FeatureFlagLimitations `json:"featureFlagLimitations,omitempty"` Links *ConfigSettingFormulasModelHaljsonEmbeddedEnvironmentLinks `json:"_links,omitempty"` } @@ -141,6 +142,38 @@ func (o *ConfigSettingFormulasModelHaljson) SetSettingFormulas(v []ConfigSetting o.SettingFormulas = v } +// GetFeatureFlagLimitations returns the FeatureFlagLimitations field value if set, zero value otherwise. +func (o *ConfigSettingFormulasModelHaljson) GetFeatureFlagLimitations() FeatureFlagLimitations { + if o == nil || IsNil(o.FeatureFlagLimitations) { + var ret FeatureFlagLimitations + return ret + } + return *o.FeatureFlagLimitations +} + +// GetFeatureFlagLimitationsOk returns a tuple with the FeatureFlagLimitations field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ConfigSettingFormulasModelHaljson) GetFeatureFlagLimitationsOk() (*FeatureFlagLimitations, bool) { + if o == nil || IsNil(o.FeatureFlagLimitations) { + return nil, false + } + return o.FeatureFlagLimitations, true +} + +// HasFeatureFlagLimitations returns a boolean if a field has been set. +func (o *ConfigSettingFormulasModelHaljson) HasFeatureFlagLimitations() bool { + if o != nil && !IsNil(o.FeatureFlagLimitations) { + return true + } + + return false +} + +// SetFeatureFlagLimitations gets a reference to the given FeatureFlagLimitations and assigns it to the FeatureFlagLimitations field. +func (o *ConfigSettingFormulasModelHaljson) SetFeatureFlagLimitations(v FeatureFlagLimitations) { + o.FeatureFlagLimitations = &v +} + // GetLinks returns the Links field value if set, zero value otherwise. func (o *ConfigSettingFormulasModelHaljson) GetLinks() ConfigSettingFormulasModelHaljsonEmbeddedEnvironmentLinks { if o == nil || IsNil(o.Links) { @@ -192,6 +225,9 @@ func (o ConfigSettingFormulasModelHaljson) ToMap() (map[string]interface{}, erro if o.SettingFormulas != nil { toSerialize["settingFormulas"] = o.SettingFormulas } + if !IsNil(o.FeatureFlagLimitations) { + toSerialize["featureFlagLimitations"] = o.FeatureFlagLimitations + } if !IsNil(o.Links) { toSerialize["_links"] = o.Links } diff --git a/model_config_setting_values_model.go b/model_config_setting_values_model.go index 3185a2f..20be6e6 100644 --- a/model_config_setting_values_model.go +++ b/model_config_setting_values_model.go @@ -24,6 +24,7 @@ type ConfigSettingValuesModel struct { Environment *EnvironmentModel `json:"environment,omitempty"` ReadOnly *bool `json:"readOnly,omitempty"` SettingValues []ConfigSettingValueModel `json:"settingValues,omitempty"` + FeatureFlagLimitations *FeatureFlagLimitations `json:"featureFlagLimitations,omitempty"` } // NewConfigSettingValuesModel instantiates a new ConfigSettingValuesModel object @@ -172,6 +173,38 @@ func (o *ConfigSettingValuesModel) SetSettingValues(v []ConfigSettingValueModel) o.SettingValues = v } +// GetFeatureFlagLimitations returns the FeatureFlagLimitations field value if set, zero value otherwise. +func (o *ConfigSettingValuesModel) GetFeatureFlagLimitations() FeatureFlagLimitations { + if o == nil || IsNil(o.FeatureFlagLimitations) { + var ret FeatureFlagLimitations + return ret + } + return *o.FeatureFlagLimitations +} + +// GetFeatureFlagLimitationsOk returns a tuple with the FeatureFlagLimitations field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ConfigSettingValuesModel) GetFeatureFlagLimitationsOk() (*FeatureFlagLimitations, bool) { + if o == nil || IsNil(o.FeatureFlagLimitations) { + return nil, false + } + return o.FeatureFlagLimitations, true +} + +// HasFeatureFlagLimitations returns a boolean if a field has been set. +func (o *ConfigSettingValuesModel) HasFeatureFlagLimitations() bool { + if o != nil && !IsNil(o.FeatureFlagLimitations) { + return true + } + + return false +} + +// SetFeatureFlagLimitations gets a reference to the given FeatureFlagLimitations and assigns it to the FeatureFlagLimitations field. +func (o *ConfigSettingValuesModel) SetFeatureFlagLimitations(v FeatureFlagLimitations) { + o.FeatureFlagLimitations = &v +} + func (o ConfigSettingValuesModel) MarshalJSON() ([]byte, error) { toSerialize,err := o.ToMap() if err != nil { @@ -194,6 +227,9 @@ func (o ConfigSettingValuesModel) ToMap() (map[string]interface{}, error) { if o.SettingValues != nil { toSerialize["settingValues"] = o.SettingValues } + if !IsNil(o.FeatureFlagLimitations) { + toSerialize["featureFlagLimitations"] = o.FeatureFlagLimitations + } return toSerialize, nil } diff --git a/model_config_setting_values_model_haljson.go b/model_config_setting_values_model_haljson.go index b1abb11..fe8b298 100644 --- a/model_config_setting_values_model_haljson.go +++ b/model_config_setting_values_model_haljson.go @@ -23,6 +23,7 @@ type ConfigSettingValuesModelHaljson struct { Embedded *ConfigSettingFormulasModelHaljsonEmbedded `json:"_embedded,omitempty"` ReadOnly *bool `json:"readOnly,omitempty"` SettingValues []ConfigSettingValueModel `json:"settingValues,omitempty"` + FeatureFlagLimitations *FeatureFlagLimitations `json:"featureFlagLimitations,omitempty"` Links *ConfigSettingFormulasModelHaljsonEmbeddedEnvironmentLinks `json:"_links,omitempty"` } @@ -140,6 +141,38 @@ func (o *ConfigSettingValuesModelHaljson) SetSettingValues(v []ConfigSettingValu o.SettingValues = v } +// GetFeatureFlagLimitations returns the FeatureFlagLimitations field value if set, zero value otherwise. +func (o *ConfigSettingValuesModelHaljson) GetFeatureFlagLimitations() FeatureFlagLimitations { + if o == nil || IsNil(o.FeatureFlagLimitations) { + var ret FeatureFlagLimitations + return ret + } + return *o.FeatureFlagLimitations +} + +// GetFeatureFlagLimitationsOk returns a tuple with the FeatureFlagLimitations field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ConfigSettingValuesModelHaljson) GetFeatureFlagLimitationsOk() (*FeatureFlagLimitations, bool) { + if o == nil || IsNil(o.FeatureFlagLimitations) { + return nil, false + } + return o.FeatureFlagLimitations, true +} + +// HasFeatureFlagLimitations returns a boolean if a field has been set. +func (o *ConfigSettingValuesModelHaljson) HasFeatureFlagLimitations() bool { + if o != nil && !IsNil(o.FeatureFlagLimitations) { + return true + } + + return false +} + +// SetFeatureFlagLimitations gets a reference to the given FeatureFlagLimitations and assigns it to the FeatureFlagLimitations field. +func (o *ConfigSettingValuesModelHaljson) SetFeatureFlagLimitations(v FeatureFlagLimitations) { + o.FeatureFlagLimitations = &v +} + // GetLinks returns the Links field value if set, zero value otherwise. func (o *ConfigSettingValuesModelHaljson) GetLinks() ConfigSettingFormulasModelHaljsonEmbeddedEnvironmentLinks { if o == nil || IsNil(o.Links) { @@ -191,6 +224,9 @@ func (o ConfigSettingValuesModelHaljson) ToMap() (map[string]interface{}, error) if o.SettingValues != nil { toSerialize["settingValues"] = o.SettingValues } + if !IsNil(o.FeatureFlagLimitations) { + toSerialize["featureFlagLimitations"] = o.FeatureFlagLimitations + } if !IsNil(o.Links) { toSerialize["_links"] = o.Links } diff --git a/model_feature_flag_limitations.go b/model_feature_flag_limitations.go new file mode 100644 index 0000000..94c8f4b --- /dev/null +++ b/model_feature_flag_limitations.go @@ -0,0 +1,336 @@ +/* +ConfigCat Public Management API + +**Base API URL**: https://test-api.configcat.com If you prefer the swagger documentation, you can find it here: [Swagger UI](https://test-api.configcat.com/swagger). The purpose of this API is to access the ConfigCat platform programmatically. You can **Create**, **Read**, **Update** and **Delete** any entities like **Feature Flags, Configs, Environments** or **Products** within ConfigCat. The API is based on HTTP REST, uses resource-oriented URLs, status codes and supports JSON and JSON+HAL format. Do not use this API for accessing and evaluating feature flag values. Use the [SDKs instead](https://configcat.com/docs/sdk-reference/overview). # OpenAPI Specification The complete specification is publicly available in the following formats: - [OpenAPI v3](https://test-api.configcat.com/docs/v1/swagger.json) - [Swagger v2](https://test-api.configcat.com/docs/v1/swagger.v2.json) You can use it to generate client libraries in various languages with [OpenAPI Generator](https://github.com/OpenAPITools/openapi-generator) or [Swagger Codegen](https://swagger.io/tools/swagger-codegen/) to interact with this API. # Authentication This API uses the [Basic HTTP Authentication Scheme](https://en.wikipedia.org/wiki/Basic_access_authentication). # Throttling and rate limits All the rate limited API calls are returning information about the current rate limit period in the following HTTP headers: | Header | Description | | :- | :- | | X-Rate-Limit-Remaining | The maximum number of requests remaining in the current rate limit period. | | X-Rate-Limit-Reset | The time when the current rate limit period resets. | When the rate limit is exceeded by a request, the API returns with a `HTTP 429 - Too many requests` status along with a `Retry-After` HTTP header. + +API version: v1 +Contact: support@configcat.com +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package configcatpublicapi + +import ( + "encoding/json" +) + +// checks if the FeatureFlagLimitations type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &FeatureFlagLimitations{} + +// FeatureFlagLimitations Subscription limitations regarding Feature flag or Setting values and targeting. +type FeatureFlagLimitations struct { + // Maximum number of percentage options a Feature Flag or Setting can have within a targeting rule. + MaxPercentageOptionCount *int32 `json:"maxPercentageOptionCount,omitempty"` + // Maximum number of targeting rules a Feature Flag or Setting can have. + MaxTargetingRuleCount *int32 `json:"maxTargetingRuleCount,omitempty"` + // Maximum length of a text comparison value. + MaxComparisonValueLength *int32 `json:"maxComparisonValueLength,omitempty"` + // Maximum item count of a list comparison value. + MaxComparisonValueListLength *int32 `json:"maxComparisonValueListLength,omitempty"` + // Maximum length of a list comparison value's item. + MaxComparisonValueListItemLength *int32 `json:"maxComparisonValueListItemLength,omitempty"` + // Maximum length of a text Setting's value. + MaxStringFlagValueLength *int32 `json:"maxStringFlagValueLength,omitempty"` + // Maximum number of `AND` conditions a Feature Flag or Setting can have within a targeting rule. + MaxConditionPerTargetingRuleCount *int32 `json:"maxConditionPerTargetingRuleCount,omitempty"` +} + +// NewFeatureFlagLimitations instantiates a new FeatureFlagLimitations 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 +func NewFeatureFlagLimitations() *FeatureFlagLimitations { + this := FeatureFlagLimitations{} + return &this +} + +// NewFeatureFlagLimitationsWithDefaults instantiates a new FeatureFlagLimitations 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 +func NewFeatureFlagLimitationsWithDefaults() *FeatureFlagLimitations { + this := FeatureFlagLimitations{} + return &this +} + +// GetMaxPercentageOptionCount returns the MaxPercentageOptionCount field value if set, zero value otherwise. +func (o *FeatureFlagLimitations) GetMaxPercentageOptionCount() int32 { + if o == nil || IsNil(o.MaxPercentageOptionCount) { + var ret int32 + return ret + } + return *o.MaxPercentageOptionCount +} + +// GetMaxPercentageOptionCountOk returns a tuple with the MaxPercentageOptionCount field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *FeatureFlagLimitations) GetMaxPercentageOptionCountOk() (*int32, bool) { + if o == nil || IsNil(o.MaxPercentageOptionCount) { + return nil, false + } + return o.MaxPercentageOptionCount, true +} + +// HasMaxPercentageOptionCount returns a boolean if a field has been set. +func (o *FeatureFlagLimitations) HasMaxPercentageOptionCount() bool { + if o != nil && !IsNil(o.MaxPercentageOptionCount) { + return true + } + + return false +} + +// SetMaxPercentageOptionCount gets a reference to the given int32 and assigns it to the MaxPercentageOptionCount field. +func (o *FeatureFlagLimitations) SetMaxPercentageOptionCount(v int32) { + o.MaxPercentageOptionCount = &v +} + +// GetMaxTargetingRuleCount returns the MaxTargetingRuleCount field value if set, zero value otherwise. +func (o *FeatureFlagLimitations) GetMaxTargetingRuleCount() int32 { + if o == nil || IsNil(o.MaxTargetingRuleCount) { + var ret int32 + return ret + } + return *o.MaxTargetingRuleCount +} + +// GetMaxTargetingRuleCountOk returns a tuple with the MaxTargetingRuleCount field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *FeatureFlagLimitations) GetMaxTargetingRuleCountOk() (*int32, bool) { + if o == nil || IsNil(o.MaxTargetingRuleCount) { + return nil, false + } + return o.MaxTargetingRuleCount, true +} + +// HasMaxTargetingRuleCount returns a boolean if a field has been set. +func (o *FeatureFlagLimitations) HasMaxTargetingRuleCount() bool { + if o != nil && !IsNil(o.MaxTargetingRuleCount) { + return true + } + + return false +} + +// SetMaxTargetingRuleCount gets a reference to the given int32 and assigns it to the MaxTargetingRuleCount field. +func (o *FeatureFlagLimitations) SetMaxTargetingRuleCount(v int32) { + o.MaxTargetingRuleCount = &v +} + +// GetMaxComparisonValueLength returns the MaxComparisonValueLength field value if set, zero value otherwise. +func (o *FeatureFlagLimitations) GetMaxComparisonValueLength() int32 { + if o == nil || IsNil(o.MaxComparisonValueLength) { + var ret int32 + return ret + } + return *o.MaxComparisonValueLength +} + +// GetMaxComparisonValueLengthOk returns a tuple with the MaxComparisonValueLength field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *FeatureFlagLimitations) GetMaxComparisonValueLengthOk() (*int32, bool) { + if o == nil || IsNil(o.MaxComparisonValueLength) { + return nil, false + } + return o.MaxComparisonValueLength, true +} + +// HasMaxComparisonValueLength returns a boolean if a field has been set. +func (o *FeatureFlagLimitations) HasMaxComparisonValueLength() bool { + if o != nil && !IsNil(o.MaxComparisonValueLength) { + return true + } + + return false +} + +// SetMaxComparisonValueLength gets a reference to the given int32 and assigns it to the MaxComparisonValueLength field. +func (o *FeatureFlagLimitations) SetMaxComparisonValueLength(v int32) { + o.MaxComparisonValueLength = &v +} + +// GetMaxComparisonValueListLength returns the MaxComparisonValueListLength field value if set, zero value otherwise. +func (o *FeatureFlagLimitations) GetMaxComparisonValueListLength() int32 { + if o == nil || IsNil(o.MaxComparisonValueListLength) { + var ret int32 + return ret + } + return *o.MaxComparisonValueListLength +} + +// GetMaxComparisonValueListLengthOk returns a tuple with the MaxComparisonValueListLength field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *FeatureFlagLimitations) GetMaxComparisonValueListLengthOk() (*int32, bool) { + if o == nil || IsNil(o.MaxComparisonValueListLength) { + return nil, false + } + return o.MaxComparisonValueListLength, true +} + +// HasMaxComparisonValueListLength returns a boolean if a field has been set. +func (o *FeatureFlagLimitations) HasMaxComparisonValueListLength() bool { + if o != nil && !IsNil(o.MaxComparisonValueListLength) { + return true + } + + return false +} + +// SetMaxComparisonValueListLength gets a reference to the given int32 and assigns it to the MaxComparisonValueListLength field. +func (o *FeatureFlagLimitations) SetMaxComparisonValueListLength(v int32) { + o.MaxComparisonValueListLength = &v +} + +// GetMaxComparisonValueListItemLength returns the MaxComparisonValueListItemLength field value if set, zero value otherwise. +func (o *FeatureFlagLimitations) GetMaxComparisonValueListItemLength() int32 { + if o == nil || IsNil(o.MaxComparisonValueListItemLength) { + var ret int32 + return ret + } + return *o.MaxComparisonValueListItemLength +} + +// GetMaxComparisonValueListItemLengthOk returns a tuple with the MaxComparisonValueListItemLength field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *FeatureFlagLimitations) GetMaxComparisonValueListItemLengthOk() (*int32, bool) { + if o == nil || IsNil(o.MaxComparisonValueListItemLength) { + return nil, false + } + return o.MaxComparisonValueListItemLength, true +} + +// HasMaxComparisonValueListItemLength returns a boolean if a field has been set. +func (o *FeatureFlagLimitations) HasMaxComparisonValueListItemLength() bool { + if o != nil && !IsNil(o.MaxComparisonValueListItemLength) { + return true + } + + return false +} + +// SetMaxComparisonValueListItemLength gets a reference to the given int32 and assigns it to the MaxComparisonValueListItemLength field. +func (o *FeatureFlagLimitations) SetMaxComparisonValueListItemLength(v int32) { + o.MaxComparisonValueListItemLength = &v +} + +// GetMaxStringFlagValueLength returns the MaxStringFlagValueLength field value if set, zero value otherwise. +func (o *FeatureFlagLimitations) GetMaxStringFlagValueLength() int32 { + if o == nil || IsNil(o.MaxStringFlagValueLength) { + var ret int32 + return ret + } + return *o.MaxStringFlagValueLength +} + +// GetMaxStringFlagValueLengthOk returns a tuple with the MaxStringFlagValueLength field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *FeatureFlagLimitations) GetMaxStringFlagValueLengthOk() (*int32, bool) { + if o == nil || IsNil(o.MaxStringFlagValueLength) { + return nil, false + } + return o.MaxStringFlagValueLength, true +} + +// HasMaxStringFlagValueLength returns a boolean if a field has been set. +func (o *FeatureFlagLimitations) HasMaxStringFlagValueLength() bool { + if o != nil && !IsNil(o.MaxStringFlagValueLength) { + return true + } + + return false +} + +// SetMaxStringFlagValueLength gets a reference to the given int32 and assigns it to the MaxStringFlagValueLength field. +func (o *FeatureFlagLimitations) SetMaxStringFlagValueLength(v int32) { + o.MaxStringFlagValueLength = &v +} + +// GetMaxConditionPerTargetingRuleCount returns the MaxConditionPerTargetingRuleCount field value if set, zero value otherwise. +func (o *FeatureFlagLimitations) GetMaxConditionPerTargetingRuleCount() int32 { + if o == nil || IsNil(o.MaxConditionPerTargetingRuleCount) { + var ret int32 + return ret + } + return *o.MaxConditionPerTargetingRuleCount +} + +// GetMaxConditionPerTargetingRuleCountOk returns a tuple with the MaxConditionPerTargetingRuleCount field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *FeatureFlagLimitations) GetMaxConditionPerTargetingRuleCountOk() (*int32, bool) { + if o == nil || IsNil(o.MaxConditionPerTargetingRuleCount) { + return nil, false + } + return o.MaxConditionPerTargetingRuleCount, true +} + +// HasMaxConditionPerTargetingRuleCount returns a boolean if a field has been set. +func (o *FeatureFlagLimitations) HasMaxConditionPerTargetingRuleCount() bool { + if o != nil && !IsNil(o.MaxConditionPerTargetingRuleCount) { + return true + } + + return false +} + +// SetMaxConditionPerTargetingRuleCount gets a reference to the given int32 and assigns it to the MaxConditionPerTargetingRuleCount field. +func (o *FeatureFlagLimitations) SetMaxConditionPerTargetingRuleCount(v int32) { + o.MaxConditionPerTargetingRuleCount = &v +} + +func (o FeatureFlagLimitations) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o FeatureFlagLimitations) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + // skip: maxPercentageOptionCount is readOnly + // skip: maxTargetingRuleCount is readOnly + // skip: maxComparisonValueLength is readOnly + // skip: maxComparisonValueListLength is readOnly + // skip: maxComparisonValueListItemLength is readOnly + // skip: maxStringFlagValueLength is readOnly + // skip: maxConditionPerTargetingRuleCount is readOnly + return toSerialize, nil +} + +type NullableFeatureFlagLimitations struct { + value *FeatureFlagLimitations + isSet bool +} + +func (v NullableFeatureFlagLimitations) Get() *FeatureFlagLimitations { + return v.value +} + +func (v *NullableFeatureFlagLimitations) Set(val *FeatureFlagLimitations) { + v.value = val + v.isSet = true +} + +func (v NullableFeatureFlagLimitations) IsSet() bool { + return v.isSet +} + +func (v *NullableFeatureFlagLimitations) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableFeatureFlagLimitations(val *FeatureFlagLimitations) *NullableFeatureFlagLimitations { + return &NullableFeatureFlagLimitations{value: val, isSet: true} +} + +func (v NullableFeatureFlagLimitations) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableFeatureFlagLimitations) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_setting_formula_model.go b/model_setting_formula_model.go index 769cedf..eebb142 100644 --- a/model_setting_formula_model.go +++ b/model_setting_formula_model.go @@ -41,6 +41,7 @@ type SettingFormulaModel struct { Config *ConfigModel `json:"config,omitempty"` Environment *EnvironmentModel `json:"environment,omitempty"` ReadOnly *bool `json:"readOnly,omitempty"` + FeatureFlagLimitations *FeatureFlagLimitations `json:"featureFlagLimitations,omitempty"` } // NewSettingFormulaModel instantiates a new SettingFormulaModel object @@ -519,6 +520,38 @@ func (o *SettingFormulaModel) SetReadOnly(v bool) { o.ReadOnly = &v } +// GetFeatureFlagLimitations returns the FeatureFlagLimitations field value if set, zero value otherwise. +func (o *SettingFormulaModel) GetFeatureFlagLimitations() FeatureFlagLimitations { + if o == nil || IsNil(o.FeatureFlagLimitations) { + var ret FeatureFlagLimitations + return ret + } + return *o.FeatureFlagLimitations +} + +// GetFeatureFlagLimitationsOk returns a tuple with the FeatureFlagLimitations field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SettingFormulaModel) GetFeatureFlagLimitationsOk() (*FeatureFlagLimitations, bool) { + if o == nil || IsNil(o.FeatureFlagLimitations) { + return nil, false + } + return o.FeatureFlagLimitations, true +} + +// HasFeatureFlagLimitations returns a boolean if a field has been set. +func (o *SettingFormulaModel) HasFeatureFlagLimitations() bool { + if o != nil && !IsNil(o.FeatureFlagLimitations) { + return true + } + + return false +} + +// SetFeatureFlagLimitations gets a reference to the given FeatureFlagLimitations and assigns it to the FeatureFlagLimitations field. +func (o *SettingFormulaModel) SetFeatureFlagLimitations(v FeatureFlagLimitations) { + o.FeatureFlagLimitations = &v +} + func (o SettingFormulaModel) MarshalJSON() ([]byte, error) { toSerialize,err := o.ToMap() if err != nil { @@ -568,6 +601,9 @@ func (o SettingFormulaModel) ToMap() (map[string]interface{}, error) { if !IsNil(o.ReadOnly) { toSerialize["readOnly"] = o.ReadOnly } + if !IsNil(o.FeatureFlagLimitations) { + toSerialize["featureFlagLimitations"] = o.FeatureFlagLimitations + } return toSerialize, nil } diff --git a/model_setting_formula_model_haljson.go b/model_setting_formula_model_haljson.go index 9120cd2..6b2f787 100644 --- a/model_setting_formula_model_haljson.go +++ b/model_setting_formula_model_haljson.go @@ -35,6 +35,7 @@ type SettingFormulaModelHaljson struct { LastUpdaterUserFullName NullableString `json:"lastUpdaterUserFullName,omitempty"` Embedded *SettingFormulaModelHaljsonEmbedded `json:"_embedded,omitempty"` ReadOnly *bool `json:"readOnly,omitempty"` + FeatureFlagLimitations *FeatureFlagLimitations `json:"featureFlagLimitations,omitempty"` Links *ConfigSettingFormulasModelHaljsonEmbeddedEnvironmentLinks `json:"_links,omitempty"` } @@ -384,6 +385,38 @@ func (o *SettingFormulaModelHaljson) SetReadOnly(v bool) { o.ReadOnly = &v } +// GetFeatureFlagLimitations returns the FeatureFlagLimitations field value if set, zero value otherwise. +func (o *SettingFormulaModelHaljson) GetFeatureFlagLimitations() FeatureFlagLimitations { + if o == nil || IsNil(o.FeatureFlagLimitations) { + var ret FeatureFlagLimitations + return ret + } + return *o.FeatureFlagLimitations +} + +// GetFeatureFlagLimitationsOk returns a tuple with the FeatureFlagLimitations field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SettingFormulaModelHaljson) GetFeatureFlagLimitationsOk() (*FeatureFlagLimitations, bool) { + if o == nil || IsNil(o.FeatureFlagLimitations) { + return nil, false + } + return o.FeatureFlagLimitations, true +} + +// HasFeatureFlagLimitations returns a boolean if a field has been set. +func (o *SettingFormulaModelHaljson) HasFeatureFlagLimitations() bool { + if o != nil && !IsNil(o.FeatureFlagLimitations) { + return true + } + + return false +} + +// SetFeatureFlagLimitations gets a reference to the given FeatureFlagLimitations and assigns it to the FeatureFlagLimitations field. +func (o *SettingFormulaModelHaljson) SetFeatureFlagLimitations(v FeatureFlagLimitations) { + o.FeatureFlagLimitations = &v +} + // GetLinks returns the Links field value if set, zero value otherwise. func (o *SettingFormulaModelHaljson) GetLinks() ConfigSettingFormulasModelHaljsonEmbeddedEnvironmentLinks { if o == nil || IsNil(o.Links) { @@ -453,6 +486,9 @@ func (o SettingFormulaModelHaljson) ToMap() (map[string]interface{}, error) { if !IsNil(o.ReadOnly) { toSerialize["readOnly"] = o.ReadOnly } + if !IsNil(o.FeatureFlagLimitations) { + toSerialize["featureFlagLimitations"] = o.FeatureFlagLimitations + } if !IsNil(o.Links) { toSerialize["_links"] = o.Links } diff --git a/model_setting_value_model.go b/model_setting_value_model.go index ea32561..4f11ad7 100644 --- a/model_setting_value_model.go +++ b/model_setting_value_model.go @@ -40,6 +40,7 @@ type SettingValueModel struct { SettingTags []SettingTagModel `json:"settingTags,omitempty"` Config *ConfigModel `json:"config,omitempty"` Environment *EnvironmentModel `json:"environment,omitempty"` + FeatureFlagLimitations *FeatureFlagLimitations `json:"featureFlagLimitations,omitempty"` ReadOnly *bool `json:"readOnly,omitempty"` } @@ -447,6 +448,38 @@ func (o *SettingValueModel) SetEnvironment(v EnvironmentModel) { o.Environment = &v } +// GetFeatureFlagLimitations returns the FeatureFlagLimitations field value if set, zero value otherwise. +func (o *SettingValueModel) GetFeatureFlagLimitations() FeatureFlagLimitations { + if o == nil || IsNil(o.FeatureFlagLimitations) { + var ret FeatureFlagLimitations + return ret + } + return *o.FeatureFlagLimitations +} + +// GetFeatureFlagLimitationsOk returns a tuple with the FeatureFlagLimitations field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SettingValueModel) GetFeatureFlagLimitationsOk() (*FeatureFlagLimitations, bool) { + if o == nil || IsNil(o.FeatureFlagLimitations) { + return nil, false + } + return o.FeatureFlagLimitations, true +} + +// HasFeatureFlagLimitations returns a boolean if a field has been set. +func (o *SettingValueModel) HasFeatureFlagLimitations() bool { + if o != nil && !IsNil(o.FeatureFlagLimitations) { + return true + } + + return false +} + +// SetFeatureFlagLimitations gets a reference to the given FeatureFlagLimitations and assigns it to the FeatureFlagLimitations field. +func (o *SettingValueModel) SetFeatureFlagLimitations(v FeatureFlagLimitations) { + o.FeatureFlagLimitations = &v +} + // GetReadOnly returns the ReadOnly field value if set, zero value otherwise. func (o *SettingValueModel) GetReadOnly() bool { if o == nil || IsNil(o.ReadOnly) { @@ -522,6 +555,9 @@ func (o SettingValueModel) ToMap() (map[string]interface{}, error) { if !IsNil(o.Environment) { toSerialize["environment"] = o.Environment } + if !IsNil(o.FeatureFlagLimitations) { + toSerialize["featureFlagLimitations"] = o.FeatureFlagLimitations + } if !IsNil(o.ReadOnly) { toSerialize["readOnly"] = o.ReadOnly } diff --git a/model_setting_value_model_haljson.go b/model_setting_value_model_haljson.go index bb2bfce..ff84911 100644 --- a/model_setting_value_model_haljson.go +++ b/model_setting_value_model_haljson.go @@ -34,6 +34,7 @@ type SettingValueModelHaljson struct { // The name of the user who last updated the Feature Flag or Setting. LastUpdaterUserFullName NullableString `json:"lastUpdaterUserFullName,omitempty"` Embedded *SettingFormulaModelHaljsonEmbedded `json:"_embedded,omitempty"` + FeatureFlagLimitations *FeatureFlagLimitations `json:"featureFlagLimitations,omitempty"` ReadOnly *bool `json:"readOnly,omitempty"` Links *ConfigSettingFormulasModelHaljsonEmbeddedEnvironmentLinks `json:"_links,omitempty"` } @@ -312,6 +313,38 @@ func (o *SettingValueModelHaljson) SetEmbedded(v SettingFormulaModelHaljsonEmbed o.Embedded = &v } +// GetFeatureFlagLimitations returns the FeatureFlagLimitations field value if set, zero value otherwise. +func (o *SettingValueModelHaljson) GetFeatureFlagLimitations() FeatureFlagLimitations { + if o == nil || IsNil(o.FeatureFlagLimitations) { + var ret FeatureFlagLimitations + return ret + } + return *o.FeatureFlagLimitations +} + +// GetFeatureFlagLimitationsOk returns a tuple with the FeatureFlagLimitations field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SettingValueModelHaljson) GetFeatureFlagLimitationsOk() (*FeatureFlagLimitations, bool) { + if o == nil || IsNil(o.FeatureFlagLimitations) { + return nil, false + } + return o.FeatureFlagLimitations, true +} + +// HasFeatureFlagLimitations returns a boolean if a field has been set. +func (o *SettingValueModelHaljson) HasFeatureFlagLimitations() bool { + if o != nil && !IsNil(o.FeatureFlagLimitations) { + return true + } + + return false +} + +// SetFeatureFlagLimitations gets a reference to the given FeatureFlagLimitations and assigns it to the FeatureFlagLimitations field. +func (o *SettingValueModelHaljson) SetFeatureFlagLimitations(v FeatureFlagLimitations) { + o.FeatureFlagLimitations = &v +} + // GetReadOnly returns the ReadOnly field value if set, zero value otherwise. func (o *SettingValueModelHaljson) GetReadOnly() bool { if o == nil || IsNil(o.ReadOnly) { @@ -407,6 +440,9 @@ func (o SettingValueModelHaljson) ToMap() (map[string]interface{}, error) { if !IsNil(o.Embedded) { toSerialize["_embedded"] = o.Embedded } + if !IsNil(o.FeatureFlagLimitations) { + toSerialize["featureFlagLimitations"] = o.FeatureFlagLimitations + } if !IsNil(o.ReadOnly) { toSerialize["readOnly"] = o.ReadOnly } diff --git a/model_user_comparator.go b/model_user_comparator.go index 2b6f371..3d1b575 100644 --- a/model_user_comparator.go +++ b/model_user_comparator.go @@ -21,8 +21,8 @@ type UserComparator string // List of UserComparator const ( - USERCOMPARATOR_CONTAINS UserComparator = "contains" - USERCOMPARATOR_DOES_NOT_CONTAIN UserComparator = "doesNotContain" + USERCOMPARATOR_CONTAINS_ANY_OF UserComparator = "containsAnyOf" + USERCOMPARATOR_DOES_NOT_CONTAIN_ANY_OF UserComparator = "doesNotContainAnyOf" USERCOMPARATOR_SEM_VER_IS_ONE_OF UserComparator = "semVerIsOneOf" USERCOMPARATOR_SEM_VER_IS_NOT_ONE_OF UserComparator = "semVerIsNotOneOf" USERCOMPARATOR_SEM_VER_LESS UserComparator = "semVerLess" @@ -41,18 +41,18 @@ const ( USERCOMPARATOR_DATE_TIME_AFTER UserComparator = "dateTimeAfter" USERCOMPARATOR_SENSITIVE_TEXT_EQUALS UserComparator = "sensitiveTextEquals" USERCOMPARATOR_SENSITIVE_TEXT_DOES_NOT_EQUAL UserComparator = "sensitiveTextDoesNotEqual" - USERCOMPARATOR_SENSITIVE_TEXT_STARTS_WITH UserComparator = "sensitiveTextStartsWith" - USERCOMPARATOR_SENSITIVE_TEXT_NOT_STARTS_WITH UserComparator = "sensitiveTextNotStartsWith" - USERCOMPARATOR_SENSITIVE_TEXT_ENDS_WITH UserComparator = "sensitiveTextEndsWith" - USERCOMPARATOR_SENSITIVE_TEXT_NOT_ENDS_WITH UserComparator = "sensitiveTextNotEndsWith" + USERCOMPARATOR_SENSITIVE_TEXT_STARTS_WITH_ANY_OF UserComparator = "sensitiveTextStartsWithAnyOf" + USERCOMPARATOR_SENSITIVE_TEXT_NOT_STARTS_WITH_ANY_OF UserComparator = "sensitiveTextNotStartsWithAnyOf" + USERCOMPARATOR_SENSITIVE_TEXT_ENDS_WITH_ANY_OF UserComparator = "sensitiveTextEndsWithAnyOf" + USERCOMPARATOR_SENSITIVE_TEXT_NOT_ENDS_WITH_ANY_OF UserComparator = "sensitiveTextNotEndsWithAnyOf" USERCOMPARATOR_ARRAY_CONTAINS UserComparator = "arrayContains" USERCOMPARATOR_ARRAY_DOES_NOT_CONTAIN UserComparator = "arrayDoesNotContain" ) // All allowed values of UserComparator enum var AllowedUserComparatorEnumValues = []UserComparator{ - "contains", - "doesNotContain", + "containsAnyOf", + "doesNotContainAnyOf", "semVerIsOneOf", "semVerIsNotOneOf", "semVerLess", @@ -71,10 +71,10 @@ var AllowedUserComparatorEnumValues = []UserComparator{ "dateTimeAfter", "sensitiveTextEquals", "sensitiveTextDoesNotEqual", - "sensitiveTextStartsWith", - "sensitiveTextNotStartsWith", - "sensitiveTextEndsWith", - "sensitiveTextNotEndsWith", + "sensitiveTextStartsWithAnyOf", + "sensitiveTextNotStartsWithAnyOf", + "sensitiveTextEndsWithAnyOf", + "sensitiveTextNotEndsWithAnyOf", "arrayContains", "arrayDoesNotContain", }