Skip to content

Commit c82cf76

Browse files
author
ci.datadog-api-spec
committed
Regenerate client from commit b5c0faa of spec repo
1 parent f13fbac commit c82cf76

31 files changed

Lines changed: 1889 additions & 612 deletions

File tree

.generator/schemas/v2/openapi.yaml

Lines changed: 176 additions & 83 deletions
Large diffs are not rendered by default.

api/datadogV2/api_security_monitoring.go

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ import (
2121
type SecurityMonitoringApi datadog.Service
2222

2323
// ActivateContentPack Activate content pack.
24-
// Activate a Cloud SIEM content pack. This operation configures the necessary
24+
// Activate a security monitoring content pack. This operation configures the necessary
2525
// log filters or security filters depending on the pricing model and updates the content
2626
// pack activation state.
2727
func (a *SecurityMonitoringApi) ActivateContentPack(ctx _context.Context, contentPackId string) (*_nethttp.Response, error) {
@@ -1844,7 +1844,7 @@ func (a *SecurityMonitoringApi) CreateVulnerabilityNotificationRule(ctx _context
18441844
}
18451845

18461846
// DeactivateContentPack Deactivate content pack.
1847-
// Deactivate a Cloud SIEM content pack. This operation removes the content pack's
1847+
// Deactivate a security monitoring content pack. This operation removes the content pack's
18481848
// configuration from log filters or security filters and updates the content pack activation state.
18491849
func (a *SecurityMonitoringApi) DeactivateContentPack(ctx _context.Context, contentPackId string) (*_nethttp.Response, error) {
18501850
var (
@@ -2989,8 +2989,9 @@ func (a *SecurityMonitoringApi) ExportSecurityMonitoringTerraformResource(ctx _c
29892989
}
29902990

29912991
// GetContentPacksStates Get content pack states.
2992-
// Get the activation state, integration status, and log collection status
2993-
// for all Cloud SIEM content packs.
2992+
// Get the activation and configuration states for all security monitoring content packs.
2993+
// This endpoint returns status information about each content pack including activation state,
2994+
// integration status, and log collection status.
29942995
func (a *SecurityMonitoringApi) GetContentPacksStates(ctx _context.Context) (SecurityMonitoringContentPackStatesResponse, *_nethttp.Response, error) {
29952996
var (
29962997
localVarHTTPMethod = _nethttp.MethodGet

api/datadogV2/model_feature_flag_attributes.go

Lines changed: 36 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,8 @@ type FeatureFlagAttributes struct {
3737
Name string `json:"name"`
3838
// Indicates whether this feature flag requires approval for changes.
3939
RequireApproval *bool `json:"require_approval,omitempty"`
40+
// Indicates the staleness status of the feature flag.
41+
StalenessStatus *string `json:"staleness_status,omitempty"`
4042
// Tags associated with the feature flag.
4143
Tags []string `json:"tags,omitempty"`
4244
// The timestamp when the feature flag was last updated.
@@ -387,6 +389,34 @@ func (o *FeatureFlagAttributes) SetRequireApproval(v bool) {
387389
o.RequireApproval = &v
388390
}
389391

392+
// GetStalenessStatus returns the StalenessStatus field value if set, zero value otherwise.
393+
func (o *FeatureFlagAttributes) GetStalenessStatus() string {
394+
if o == nil || o.StalenessStatus == nil {
395+
var ret string
396+
return ret
397+
}
398+
return *o.StalenessStatus
399+
}
400+
401+
// GetStalenessStatusOk returns a tuple with the StalenessStatus field value if set, nil otherwise
402+
// and a boolean to check if the value has been set.
403+
func (o *FeatureFlagAttributes) GetStalenessStatusOk() (*string, bool) {
404+
if o == nil || o.StalenessStatus == nil {
405+
return nil, false
406+
}
407+
return o.StalenessStatus, true
408+
}
409+
410+
// HasStalenessStatus returns a boolean if a field has been set.
411+
func (o *FeatureFlagAttributes) HasStalenessStatus() bool {
412+
return o != nil && o.StalenessStatus != nil
413+
}
414+
415+
// SetStalenessStatus gets a reference to the given string and assigns it to the StalenessStatus field.
416+
func (o *FeatureFlagAttributes) SetStalenessStatus(v string) {
417+
o.StalenessStatus = &v
418+
}
419+
390420
// GetTags returns the Tags field value if set, zero value otherwise.
391421
func (o *FeatureFlagAttributes) GetTags() []string {
392422
if o == nil || o.Tags == nil {
@@ -526,6 +556,9 @@ func (o FeatureFlagAttributes) MarshalJSON() ([]byte, error) {
526556
if o.RequireApproval != nil {
527557
toSerialize["require_approval"] = o.RequireApproval
528558
}
559+
if o.StalenessStatus != nil {
560+
toSerialize["staleness_status"] = o.StalenessStatus
561+
}
529562
if o.Tags != nil {
530563
toSerialize["tags"] = o.Tags
531564
}
@@ -559,6 +592,7 @@ func (o *FeatureFlagAttributes) UnmarshalJSON(bytes []byte) (err error) {
559592
LastUpdatedBy *uuid.UUID `json:"last_updated_by,omitempty"`
560593
Name *string `json:"name"`
561594
RequireApproval *bool `json:"require_approval,omitempty"`
595+
StalenessStatus *string `json:"staleness_status,omitempty"`
562596
Tags []string `json:"tags,omitempty"`
563597
UpdatedAt *time.Time `json:"updated_at,omitempty"`
564598
ValueType *ValueType `json:"value_type"`
@@ -584,7 +618,7 @@ func (o *FeatureFlagAttributes) UnmarshalJSON(bytes []byte) (err error) {
584618
}
585619
additionalProperties := make(map[string]interface{})
586620
if err = datadog.Unmarshal(bytes, &additionalProperties); err == nil {
587-
datadog.DeleteKeys(additionalProperties, &[]string{"archived_at", "created_at", "created_by", "description", "distribution_channel", "feature_flag_environments", "json_schema", "key", "last_updated_by", "name", "require_approval", "tags", "updated_at", "value_type", "variants"})
621+
datadog.DeleteKeys(additionalProperties, &[]string{"archived_at", "created_at", "created_by", "description", "distribution_channel", "feature_flag_environments", "json_schema", "key", "last_updated_by", "name", "require_approval", "staleness_status", "tags", "updated_at", "value_type", "variants"})
588622
} else {
589623
return err
590624
}
@@ -601,6 +635,7 @@ func (o *FeatureFlagAttributes) UnmarshalJSON(bytes []byte) (err error) {
601635
o.LastUpdatedBy = all.LastUpdatedBy
602636
o.Name = *all.Name
603637
o.RequireApproval = all.RequireApproval
638+
o.StalenessStatus = all.StalenessStatus
604639
o.Tags = all.Tags
605640
o.UpdatedAt = all.UpdatedAt
606641
if !all.ValueType.IsValid() {

api/datadogV2/model_feature_flag_environment.go

Lines changed: 13 additions & 83 deletions
Original file line numberDiff line numberDiff line change
@@ -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.
463403
func (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.
537471
func (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

Comments
 (0)