-
Notifications
You must be signed in to change notification settings - Fork 58
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Regenerate client from commit 4e5906d6 of spec repo
- Loading branch information
ci.datadog-api-spec
committed
Jan 17, 2025
1 parent
d448669
commit d446b97
Showing
17 changed files
with
201 additions
and
89 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
64 changes: 64 additions & 0 deletions
64
api/datadogV2/model_create_data_deletion_request_body_data_type.go
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,64 @@ | ||
// Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. | ||
// This product includes software developed at Datadog (https://www.datadoghq.com/). | ||
// Copyright 2019-Present Datadog, Inc. | ||
|
||
package datadogV2 | ||
|
||
import ( | ||
"fmt" | ||
|
||
"github.com/DataDog/datadog-api-client-go/v2/api/datadog" | ||
) | ||
|
||
// CreateDataDeletionRequestBodyDataType The deletion request type. | ||
type CreateDataDeletionRequestBodyDataType string | ||
|
||
// List of CreateDataDeletionRequestBodyDataType. | ||
const ( | ||
CREATEDATADELETIONREQUESTBODYDATATYPE_CREATE_DELETION_REQ CreateDataDeletionRequestBodyDataType = "create_deletion_req" | ||
) | ||
|
||
var allowedCreateDataDeletionRequestBodyDataTypeEnumValues = []CreateDataDeletionRequestBodyDataType{ | ||
CREATEDATADELETIONREQUESTBODYDATATYPE_CREATE_DELETION_REQ, | ||
} | ||
|
||
// GetAllowedValues reeturns the list of possible values. | ||
func (v *CreateDataDeletionRequestBodyDataType) GetAllowedValues() []CreateDataDeletionRequestBodyDataType { | ||
return allowedCreateDataDeletionRequestBodyDataTypeEnumValues | ||
} | ||
|
||
// UnmarshalJSON deserializes the given payload. | ||
func (v *CreateDataDeletionRequestBodyDataType) UnmarshalJSON(src []byte) error { | ||
var value string | ||
err := datadog.Unmarshal(src, &value) | ||
if err != nil { | ||
return err | ||
} | ||
*v = CreateDataDeletionRequestBodyDataType(value) | ||
return nil | ||
} | ||
|
||
// NewCreateDataDeletionRequestBodyDataTypeFromValue returns a pointer to a valid CreateDataDeletionRequestBodyDataType | ||
// for the value passed as argument, or an error if the value passed is not allowed by the enum. | ||
func NewCreateDataDeletionRequestBodyDataTypeFromValue(v string) (*CreateDataDeletionRequestBodyDataType, error) { | ||
ev := CreateDataDeletionRequestBodyDataType(v) | ||
if ev.IsValid() { | ||
return &ev, nil | ||
} | ||
return nil, fmt.Errorf("invalid value '%v' for CreateDataDeletionRequestBodyDataType: valid values are %v", v, allowedCreateDataDeletionRequestBodyDataTypeEnumValues) | ||
} | ||
|
||
// IsValid return true if the value is valid for the enum, false otherwise. | ||
func (v CreateDataDeletionRequestBodyDataType) IsValid() bool { | ||
for _, existing := range allowedCreateDataDeletionRequestBodyDataTypeEnumValues { | ||
if existing == v { | ||
return true | ||
} | ||
} | ||
return false | ||
} | ||
|
||
// Ptr returns reference to CreateDataDeletionRequestBodyDataType value. | ||
func (v CreateDataDeletionRequestBodyDataType) Ptr() *CreateDataDeletionRequestBodyDataType { | ||
return &v | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...ata_Deletion/Scenario_Cancels_a_data_deletion_request_returns_Bad_Request_response.freeze
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
2024-12-05T09:23:41.160Z | ||
2025-01-15T14:25:54.929Z |
2 changes: 1 addition & 1 deletion
2
...Feature_Data_Deletion/Scenario_Cancels_a_data_deletion_request_returns_OK_response.freeze
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
2024-12-05T09:23:41.674Z | ||
2025-01-15T14:26:08.930Z |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...cenario_Cancels_a_data_deletion_request_returns_Precondition_failed_error_response.freeze
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
2024-12-05T09:23:42.850Z | ||
2025-01-15T14:26:26.195Z |
2 changes: 1 addition & 1 deletion
2
...Feature_Data_Deletion/Scenario_Creates_a_data_deletion_request_returns_OK_response.freeze
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
2024-12-05T09:23:43.197Z | ||
2025-01-15T14:27:27.929Z |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...cenario_Creates_a_data_deletion_request_returns_Precondition_failed_error_response.freeze
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
2024-12-05T09:23:44.038Z | ||
2025-01-15T14:27:45.329Z |
2 changes: 1 addition & 1 deletion
2
.../Scenario_Creates_a_data_deletion_request_returns_Precondition_failed_error_response.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...e_Data_Deletion/Scenario_Gets_a_list_of_data_deletion_requests_returns_OK_response.freeze
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
2024-12-05T09:23:44.395Z | ||
2025-01-15T14:28:03.053Z |
Oops, something went wrong.