Skip to content

Commit

Permalink
Deprecate two sds metadata fields (#2739)
Browse files Browse the repository at this point in the history
Co-authored-by: ci.datadog-api-spec <packages@datadoghq.com>
  • Loading branch information
api-clients-generation-pipeline[bot] and ci.datadog-api-spec authored Oct 25, 2024
1 parent 9a32c15 commit 6d5518b
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 9 deletions.
8 changes: 4 additions & 4 deletions .apigentools-info
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,13 @@
"spec_versions": {
"v1": {
"apigentools_version": "1.6.6",
"regenerated": "2024-10-23 16:36:56.915981",
"spec_repo_commit": "a916f673"
"regenerated": "2024-10-24 20:04:20.108446",
"spec_repo_commit": "aaacb8db"
},
"v2": {
"apigentools_version": "1.6.6",
"regenerated": "2024-10-23 16:36:56.934414",
"spec_repo_commit": "a916f673"
"regenerated": "2024-10-24 20:04:20.126796",
"spec_repo_commit": "aaacb8db"
}
}
}
10 changes: 7 additions & 3 deletions .generator/schemas/v2/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21679,11 +21679,15 @@ components:
format: int64
type: integer
has_highlight_enabled:
description: Whether or not scanned events are highlighted in Logs or RUM
for the org.
default: true
deprecated: true
description: (Deprecated) Whether or not scanned events are highlighted
in Logs or RUM for the org.
type: boolean
has_multi_pass_enabled:
description: Whether or not scanned events have multi-pass enabled.
deprecated: true
description: (Deprecated) Whether or not scanned events have multi-pass
enabled.
type: boolean
is_pci_compliant:
description: Whether or not the org is compliant to the payment card industry
Expand Down
16 changes: 14 additions & 2 deletions api/datadogV2/model_sensitive_data_scanner_meta.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,11 @@ type SensitiveDataScannerMeta struct {
CountLimit *int64 `json:"count_limit,omitempty"`
// Maximum number of scanning groups allowed for the org.
GroupCountLimit *int64 `json:"group_count_limit,omitempty"`
// Whether or not scanned events are highlighted in Logs or RUM for the org.
// (Deprecated) Whether or not scanned events are highlighted in Logs or RUM for the org.
// Deprecated
HasHighlightEnabled *bool `json:"has_highlight_enabled,omitempty"`
// Whether or not scanned events have multi-pass enabled.
// (Deprecated) Whether or not scanned events have multi-pass enabled.
// Deprecated
HasMultiPassEnabled *bool `json:"has_multi_pass_enabled,omitempty"`
// Whether or not the org is compliant to the payment card industry standard.
IsPciCompliant *bool `json:"is_pci_compliant,omitempty"`
Expand All @@ -33,6 +35,8 @@ type SensitiveDataScannerMeta struct {
// will change when the set of required properties is changed.
func NewSensitiveDataScannerMeta() *SensitiveDataScannerMeta {
this := SensitiveDataScannerMeta{}
var hasHighlightEnabled bool = true
this.HasHighlightEnabled = &hasHighlightEnabled
return &this
}

Expand All @@ -41,6 +45,8 @@ func NewSensitiveDataScannerMeta() *SensitiveDataScannerMeta {
// but it doesn't guarantee that properties required by API are set.
func NewSensitiveDataScannerMetaWithDefaults() *SensitiveDataScannerMeta {
this := SensitiveDataScannerMeta{}
var hasHighlightEnabled bool = true
this.HasHighlightEnabled = &hasHighlightEnabled
return &this
}

Expand Down Expand Up @@ -101,6 +107,7 @@ func (o *SensitiveDataScannerMeta) SetGroupCountLimit(v int64) {
}

// GetHasHighlightEnabled returns the HasHighlightEnabled field value if set, zero value otherwise.
// Deprecated
func (o *SensitiveDataScannerMeta) GetHasHighlightEnabled() bool {
if o == nil || o.HasHighlightEnabled == nil {
var ret bool
Expand All @@ -111,6 +118,7 @@ func (o *SensitiveDataScannerMeta) GetHasHighlightEnabled() bool {

// GetHasHighlightEnabledOk returns a tuple with the HasHighlightEnabled field value if set, nil otherwise
// and a boolean to check if the value has been set.
// Deprecated
func (o *SensitiveDataScannerMeta) GetHasHighlightEnabledOk() (*bool, bool) {
if o == nil || o.HasHighlightEnabled == nil {
return nil, false
Expand All @@ -124,11 +132,13 @@ func (o *SensitiveDataScannerMeta) HasHasHighlightEnabled() bool {
}

// SetHasHighlightEnabled gets a reference to the given bool and assigns it to the HasHighlightEnabled field.
// Deprecated
func (o *SensitiveDataScannerMeta) SetHasHighlightEnabled(v bool) {
o.HasHighlightEnabled = &v
}

// GetHasMultiPassEnabled returns the HasMultiPassEnabled field value if set, zero value otherwise.
// Deprecated
func (o *SensitiveDataScannerMeta) GetHasMultiPassEnabled() bool {
if o == nil || o.HasMultiPassEnabled == nil {
var ret bool
Expand All @@ -139,6 +149,7 @@ func (o *SensitiveDataScannerMeta) GetHasMultiPassEnabled() bool {

// GetHasMultiPassEnabledOk returns a tuple with the HasMultiPassEnabled field value if set, nil otherwise
// and a boolean to check if the value has been set.
// Deprecated
func (o *SensitiveDataScannerMeta) GetHasMultiPassEnabledOk() (*bool, bool) {
if o == nil || o.HasMultiPassEnabled == nil {
return nil, false
Expand All @@ -152,6 +163,7 @@ func (o *SensitiveDataScannerMeta) HasHasMultiPassEnabled() bool {
}

// SetHasMultiPassEnabled gets a reference to the given bool and assigns it to the HasMultiPassEnabled field.
// Deprecated
func (o *SensitiveDataScannerMeta) SetHasMultiPassEnabled(v bool) {
o.HasMultiPassEnabled = &v
}
Expand Down

0 comments on commit 6d5518b

Please sign in to comment.