@@ -36,10 +36,6 @@ type FeatureFlagEnvironment struct {
3636 PendingSuggestionId datadog.NullableString `json:"pending_suggestion_id,omitempty"`
3737 // Indicates whether feature flag changes require approval in this environment.
3838 RequireFeatureFlagApproval * bool `json:"require_feature_flag_approval,omitempty"`
39- // Rollout percentage for this environment.
40- RolloutPercentage * int64 `json:"rollout_percentage,omitempty"`
41- // Environment targeting rules for this feature flag.
42- Rules []map [string ]interface {} `json:"rules,omitempty"`
4339 // The status of a feature flag in an environment.
4440 Status FeatureFlagStatus `json:"status"`
4541 // UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
@@ -403,62 +399,6 @@ func (o *FeatureFlagEnvironment) SetRequireFeatureFlagApproval(v bool) {
403399 o .RequireFeatureFlagApproval = & v
404400}
405401
406- // GetRolloutPercentage returns the RolloutPercentage field value if set, zero value otherwise.
407- func (o * FeatureFlagEnvironment ) GetRolloutPercentage () int64 {
408- if o == nil || o .RolloutPercentage == nil {
409- var ret int64
410- return ret
411- }
412- return * o .RolloutPercentage
413- }
414-
415- // GetRolloutPercentageOk returns a tuple with the RolloutPercentage field value if set, nil otherwise
416- // and a boolean to check if the value has been set.
417- func (o * FeatureFlagEnvironment ) GetRolloutPercentageOk () (* int64 , bool ) {
418- if o == nil || o .RolloutPercentage == nil {
419- return nil , false
420- }
421- return o .RolloutPercentage , true
422- }
423-
424- // HasRolloutPercentage returns a boolean if a field has been set.
425- func (o * FeatureFlagEnvironment ) HasRolloutPercentage () bool {
426- return o != nil && o .RolloutPercentage != nil
427- }
428-
429- // SetRolloutPercentage gets a reference to the given int64 and assigns it to the RolloutPercentage field.
430- func (o * FeatureFlagEnvironment ) SetRolloutPercentage (v int64 ) {
431- o .RolloutPercentage = & v
432- }
433-
434- // GetRules returns the Rules field value if set, zero value otherwise.
435- func (o * FeatureFlagEnvironment ) GetRules () []map [string ]interface {} {
436- if o == nil || o .Rules == nil {
437- var ret []map [string ]interface {}
438- return ret
439- }
440- return o .Rules
441- }
442-
443- // GetRulesOk returns a tuple with the Rules field value if set, nil otherwise
444- // and a boolean to check if the value has been set.
445- func (o * FeatureFlagEnvironment ) GetRulesOk () (* []map [string ]interface {}, bool ) {
446- if o == nil || o .Rules == nil {
447- return nil , false
448- }
449- return & o .Rules , true
450- }
451-
452- // HasRules returns a boolean if a field has been set.
453- func (o * FeatureFlagEnvironment ) HasRules () bool {
454- return o != nil && o .Rules != nil
455- }
456-
457- // SetRules gets a reference to the given []map[string]interface{} and assigns it to the Rules field.
458- func (o * FeatureFlagEnvironment ) SetRules (v []map [string ]interface {}) {
459- o .Rules = v
460- }
461-
462402// GetStatus returns the Status field value.
463403func (o * FeatureFlagEnvironment ) GetStatus () FeatureFlagStatus {
464404 if o == nil {
@@ -519,12 +459,6 @@ func (o FeatureFlagEnvironment) MarshalJSON() ([]byte, error) {
519459 if o .RequireFeatureFlagApproval != nil {
520460 toSerialize ["require_feature_flag_approval" ] = o .RequireFeatureFlagApproval
521461 }
522- if o .RolloutPercentage != nil {
523- toSerialize ["rollout_percentage" ] = o .RolloutPercentage
524- }
525- if o .Rules != nil {
526- toSerialize ["rules" ] = o .Rules
527- }
528462 toSerialize ["status" ] = o .Status
529463
530464 for key , value := range o .AdditionalProperties {
@@ -536,20 +470,18 @@ func (o FeatureFlagEnvironment) MarshalJSON() ([]byte, error) {
536470// UnmarshalJSON deserializes the given payload.
537471func (o * FeatureFlagEnvironment ) UnmarshalJSON (bytes []byte ) (err error ) {
538472 all := struct {
539- Allocations map [string ]interface {} `json:"allocations,omitempty"`
540- DefaultAllocationKey * string `json:"default_allocation_key,omitempty"`
541- DefaultVariantId datadog.NullableString `json:"default_variant_id,omitempty"`
542- EnvironmentId * uuid.UUID `json:"environment_id"`
543- EnvironmentName * string `json:"environment_name,omitempty"`
544- EnvironmentQueries []string `json:"environment_queries,omitempty"`
545- IsProduction * bool `json:"is_production,omitempty"`
546- OverrideAllocationKey * string `json:"override_allocation_key,omitempty"`
547- OverrideVariantId datadog.NullableString `json:"override_variant_id,omitempty"`
548- PendingSuggestionId datadog.NullableString `json:"pending_suggestion_id,omitempty"`
549- RequireFeatureFlagApproval * bool `json:"require_feature_flag_approval,omitempty"`
550- RolloutPercentage * int64 `json:"rollout_percentage,omitempty"`
551- Rules []map [string ]interface {} `json:"rules,omitempty"`
552- Status * FeatureFlagStatus `json:"status"`
473+ Allocations map [string ]interface {} `json:"allocations,omitempty"`
474+ DefaultAllocationKey * string `json:"default_allocation_key,omitempty"`
475+ DefaultVariantId datadog.NullableString `json:"default_variant_id,omitempty"`
476+ EnvironmentId * uuid.UUID `json:"environment_id"`
477+ EnvironmentName * string `json:"environment_name,omitempty"`
478+ EnvironmentQueries []string `json:"environment_queries,omitempty"`
479+ IsProduction * bool `json:"is_production,omitempty"`
480+ OverrideAllocationKey * string `json:"override_allocation_key,omitempty"`
481+ OverrideVariantId datadog.NullableString `json:"override_variant_id,omitempty"`
482+ PendingSuggestionId datadog.NullableString `json:"pending_suggestion_id,omitempty"`
483+ RequireFeatureFlagApproval * bool `json:"require_feature_flag_approval,omitempty"`
484+ Status * FeatureFlagStatus `json:"status"`
553485 }{}
554486 if err = datadog .Unmarshal (bytes , & all ); err != nil {
555487 return datadog .Unmarshal (bytes , & o .UnparsedObject )
@@ -562,7 +494,7 @@ func (o *FeatureFlagEnvironment) UnmarshalJSON(bytes []byte) (err error) {
562494 }
563495 additionalProperties := make (map [string ]interface {})
564496 if err = datadog .Unmarshal (bytes , & additionalProperties ); err == nil {
565- datadog .DeleteKeys (additionalProperties , & []string {"allocations" , "default_allocation_key" , "default_variant_id" , "environment_id" , "environment_name" , "environment_queries" , "is_production" , "override_allocation_key" , "override_variant_id" , "pending_suggestion_id" , "require_feature_flag_approval" , "rollout_percentage" , "rules" , " status" })
497+ datadog .DeleteKeys (additionalProperties , & []string {"allocations" , "default_allocation_key" , "default_variant_id" , "environment_id" , "environment_name" , "environment_queries" , "is_production" , "override_allocation_key" , "override_variant_id" , "pending_suggestion_id" , "require_feature_flag_approval" , "status" })
566498 } else {
567499 return err
568500 }
@@ -579,8 +511,6 @@ func (o *FeatureFlagEnvironment) UnmarshalJSON(bytes []byte) (err error) {
579511 o .OverrideVariantId = all .OverrideVariantId
580512 o .PendingSuggestionId = all .PendingSuggestionId
581513 o .RequireFeatureFlagApproval = all .RequireFeatureFlagApproval
582- o .RolloutPercentage = all .RolloutPercentage
583- o .Rules = all .Rules
584514 if ! all .Status .IsValid () {
585515 hasInvalidField = true
586516 } else {
0 commit comments