From 6d5518b86221adf69ed95927254638904b29d6c6 Mon Sep 17 00:00:00 2001 From: "api-clients-generation-pipeline[bot]" <54105614+api-clients-generation-pipeline[bot]@users.noreply.github.com> Date: Fri, 25 Oct 2024 13:02:40 +0000 Subject: [PATCH] Deprecate two sds metadata fields (#2739) Co-authored-by: ci.datadog-api-spec --- .apigentools-info | 8 ++++---- .generator/schemas/v2/openapi.yaml | 10 +++++++--- .../model_sensitive_data_scanner_meta.go | 16 ++++++++++++++-- 3 files changed, 25 insertions(+), 9 deletions(-) diff --git a/.apigentools-info b/.apigentools-info index 068e499b296..63e25dc3828 100644 --- a/.apigentools-info +++ b/.apigentools-info @@ -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" } } } \ No newline at end of file diff --git a/.generator/schemas/v2/openapi.yaml b/.generator/schemas/v2/openapi.yaml index db36354cca9..b4665794e53 100644 --- a/.generator/schemas/v2/openapi.yaml +++ b/.generator/schemas/v2/openapi.yaml @@ -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 diff --git a/api/datadogV2/model_sensitive_data_scanner_meta.go b/api/datadogV2/model_sensitive_data_scanner_meta.go index df9bcc1dc56..35826eef861 100644 --- a/api/datadogV2/model_sensitive_data_scanner_meta.go +++ b/api/datadogV2/model_sensitive_data_scanner_meta.go @@ -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"` @@ -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 } @@ -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 } @@ -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 @@ -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 @@ -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 @@ -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 @@ -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 }