Skip to content

Commit

Permalink
Regenerate client from commit b4e4fbdf of spec repo
Browse files Browse the repository at this point in the history
  • Loading branch information
ci.datadog-api-spec committed Apr 17, 2023
1 parent badd45c commit 6d60cbb
Show file tree
Hide file tree
Showing 1,300 changed files with 16,533 additions and 5 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.4",
"regenerated": "2023-04-17 14:56:12.223857",
"spec_repo_commit": "c9aa3e76"
"regenerated": "2023-04-17 17:35:29.895609",
"spec_repo_commit": "b4e4fbdf"
},
"v2": {
"apigentools_version": "1.6.4",
"regenerated": "2023-04-17 14:56:12.239075",
"spec_repo_commit": "c9aa3e76"
"regenerated": "2023-04-17 17:35:29.908891",
"spec_repo_commit": "b4e4fbdf"
}
}
}
12 changes: 12 additions & 0 deletions api/datadogV1/model_add_signal_to_incident_request.go
Original file line number Diff line number Diff line change
Expand Up @@ -166,8 +166,20 @@ func (o *AddSignalToIncidentRequest) UnmarshalJSON(bytes []byte) (err error) {
o.UnparsedObject = raw
return nil
}
additionalProperties := make(map[string]interface{})
if err = json.Unmarshal(bytes, &additionalProperties); err == nil {
delete(additionalProperties, "add_to_signal_timeline")
delete(additionalProperties, "incident_id")
delete(additionalProperties, "version")
} else {
return err
}
o.AddToSignalTimeline = all.AddToSignalTimeline
o.IncidentId = all.IncidentId
o.Version = all.Version
if len(additionalProperties) > 0 {
o.AdditionalProperties = additionalProperties
}

return nil
}
16 changes: 16 additions & 0 deletions api/datadogV1/model_alert_graph_widget_definition.go
Original file line number Diff line number Diff line change
Expand Up @@ -300,6 +300,18 @@ func (o *AlertGraphWidgetDefinition) UnmarshalJSON(bytes []byte) (err error) {
o.UnparsedObject = raw
return nil
}
additionalProperties := make(map[string]interface{})
if err = json.Unmarshal(bytes, &additionalProperties); err == nil {
delete(additionalProperties, "alert_id")
delete(additionalProperties, "time")
delete(additionalProperties, "title")
delete(additionalProperties, "title_align")
delete(additionalProperties, "title_size")
delete(additionalProperties, "type")
delete(additionalProperties, "viz_type")
} else {
return err
}
if v := all.TitleAlign; v != nil && !v.IsValid() {
err = json.Unmarshal(bytes, &raw)
if err != nil {
Expand Down Expand Up @@ -338,5 +350,9 @@ func (o *AlertGraphWidgetDefinition) UnmarshalJSON(bytes []byte) (err error) {
o.TitleSize = all.TitleSize
o.Type = all.Type
o.VizType = all.VizType
if len(additionalProperties) > 0 {
o.AdditionalProperties = additionalProperties
}

return nil
}
17 changes: 17 additions & 0 deletions api/datadogV1/model_alert_value_widget_definition.go
Original file line number Diff line number Diff line change
Expand Up @@ -336,6 +336,19 @@ func (o *AlertValueWidgetDefinition) UnmarshalJSON(bytes []byte) (err error) {
o.UnparsedObject = raw
return nil
}
additionalProperties := make(map[string]interface{})
if err = json.Unmarshal(bytes, &additionalProperties); err == nil {
delete(additionalProperties, "alert_id")
delete(additionalProperties, "precision")
delete(additionalProperties, "text_align")
delete(additionalProperties, "title")
delete(additionalProperties, "title_align")
delete(additionalProperties, "title_size")
delete(additionalProperties, "type")
delete(additionalProperties, "unit")
} else {
return err
}
if v := all.TextAlign; v != nil && !v.IsValid() {
err = json.Unmarshal(bytes, &raw)
if err != nil {
Expand Down Expand Up @@ -368,5 +381,9 @@ func (o *AlertValueWidgetDefinition) UnmarshalJSON(bytes []byte) (err error) {
o.TitleSize = all.TitleSize
o.Type = all.Type
o.Unit = all.Unit
if len(additionalProperties) > 0 {
o.AdditionalProperties = additionalProperties
}

return nil
}
10 changes: 10 additions & 0 deletions api/datadogV1/model_api_error_response.go
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,16 @@ func (o *APIErrorResponse) UnmarshalJSON(bytes []byte) (err error) {
o.UnparsedObject = raw
return nil
}
additionalProperties := make(map[string]interface{})
if err = json.Unmarshal(bytes, &additionalProperties); err == nil {
delete(additionalProperties, "errors")
} else {
return err
}
o.Errors = all.Errors
if len(additionalProperties) > 0 {
o.AdditionalProperties = additionalProperties
}

return nil
}
13 changes: 13 additions & 0 deletions api/datadogV1/model_api_key.go
Original file line number Diff line number Diff line change
Expand Up @@ -195,9 +195,22 @@ func (o *ApiKey) UnmarshalJSON(bytes []byte) (err error) {
o.UnparsedObject = raw
return nil
}
additionalProperties := make(map[string]interface{})
if err = json.Unmarshal(bytes, &additionalProperties); err == nil {
delete(additionalProperties, "created")
delete(additionalProperties, "created_by")
delete(additionalProperties, "key")
delete(additionalProperties, "name")
} else {
return err
}
o.Created = all.Created
o.CreatedBy = all.CreatedBy
o.Key = all.Key
o.Name = all.Name
if len(additionalProperties) > 0 {
o.AdditionalProperties = additionalProperties
}

return nil
}
10 changes: 10 additions & 0 deletions api/datadogV1/model_api_key_list_response.go
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,16 @@ func (o *ApiKeyListResponse) UnmarshalJSON(bytes []byte) (err error) {
o.UnparsedObject = raw
return nil
}
additionalProperties := make(map[string]interface{})
if err = json.Unmarshal(bytes, &additionalProperties); err == nil {
delete(additionalProperties, "api_keys")
} else {
return err
}
o.ApiKeys = all.ApiKeys
if len(additionalProperties) > 0 {
o.AdditionalProperties = additionalProperties
}

return nil
}
10 changes: 10 additions & 0 deletions api/datadogV1/model_api_key_response.go
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,12 @@ func (o *ApiKeyResponse) UnmarshalJSON(bytes []byte) (err error) {
o.UnparsedObject = raw
return nil
}
additionalProperties := make(map[string]interface{})
if err = json.Unmarshal(bytes, &additionalProperties); err == nil {
delete(additionalProperties, "api_key")
} else {
return err
}
if all.ApiKey != nil && all.ApiKey.UnparsedObject != nil && o.UnparsedObject == nil {
err = json.Unmarshal(bytes, &raw)
if err != nil {
Expand All @@ -101,5 +107,9 @@ func (o *ApiKeyResponse) UnmarshalJSON(bytes []byte) (err error) {
o.UnparsedObject = raw
}
o.ApiKey = all.ApiKey
if len(additionalProperties) > 0 {
o.AdditionalProperties = additionalProperties
}

return nil
}
13 changes: 13 additions & 0 deletions api/datadogV1/model_apm_stats_query_column_type.go
Original file line number Diff line number Diff line change
Expand Up @@ -200,6 +200,15 @@ func (o *ApmStatsQueryColumnType) UnmarshalJSON(bytes []byte) (err error) {
o.UnparsedObject = raw
return nil
}
additionalProperties := make(map[string]interface{})
if err = json.Unmarshal(bytes, &additionalProperties); err == nil {
delete(additionalProperties, "alias")
delete(additionalProperties, "cell_display_mode")
delete(additionalProperties, "name")
delete(additionalProperties, "order")
} else {
return err
}
if v := all.CellDisplayMode; v != nil && !v.IsValid() {
err = json.Unmarshal(bytes, &raw)
if err != nil {
Expand All @@ -220,5 +229,9 @@ func (o *ApmStatsQueryColumnType) UnmarshalJSON(bytes []byte) (err error) {
o.CellDisplayMode = all.CellDisplayMode
o.Name = all.Name
o.Order = all.Order
if len(additionalProperties) > 0 {
o.AdditionalProperties = additionalProperties
}

return nil
}
16 changes: 16 additions & 0 deletions api/datadogV1/model_apm_stats_query_definition.go
Original file line number Diff line number Diff line change
Expand Up @@ -294,6 +294,18 @@ func (o *ApmStatsQueryDefinition) UnmarshalJSON(bytes []byte) (err error) {
o.UnparsedObject = raw
return nil
}
additionalProperties := make(map[string]interface{})
if err = json.Unmarshal(bytes, &additionalProperties); err == nil {
delete(additionalProperties, "columns")
delete(additionalProperties, "env")
delete(additionalProperties, "name")
delete(additionalProperties, "primary_tag")
delete(additionalProperties, "resource")
delete(additionalProperties, "row_type")
delete(additionalProperties, "service")
} else {
return err
}
if v := all.RowType; !v.IsValid() {
err = json.Unmarshal(bytes, &raw)
if err != nil {
Expand All @@ -309,5 +321,9 @@ func (o *ApmStatsQueryDefinition) UnmarshalJSON(bytes []byte) (err error) {
o.Resource = all.Resource
o.RowType = all.RowType
o.Service = all.Service
if len(additionalProperties) > 0 {
o.AdditionalProperties = additionalProperties
}

return nil
}
12 changes: 12 additions & 0 deletions api/datadogV1/model_application_key.go
Original file line number Diff line number Diff line change
Expand Up @@ -161,8 +161,20 @@ func (o *ApplicationKey) UnmarshalJSON(bytes []byte) (err error) {
o.UnparsedObject = raw
return nil
}
additionalProperties := make(map[string]interface{})
if err = json.Unmarshal(bytes, &additionalProperties); err == nil {
delete(additionalProperties, "hash")
delete(additionalProperties, "name")
delete(additionalProperties, "owner")
} else {
return err
}
o.Hash = all.Hash
o.Name = all.Name
o.Owner = all.Owner
if len(additionalProperties) > 0 {
o.AdditionalProperties = additionalProperties
}

return nil
}
10 changes: 10 additions & 0 deletions api/datadogV1/model_application_key_list_response.go
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,16 @@ func (o *ApplicationKeyListResponse) UnmarshalJSON(bytes []byte) (err error) {
o.UnparsedObject = raw
return nil
}
additionalProperties := make(map[string]interface{})
if err = json.Unmarshal(bytes, &additionalProperties); err == nil {
delete(additionalProperties, "application_keys")
} else {
return err
}
o.ApplicationKeys = all.ApplicationKeys
if len(additionalProperties) > 0 {
o.AdditionalProperties = additionalProperties
}

return nil
}
10 changes: 10 additions & 0 deletions api/datadogV1/model_application_key_response.go
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,12 @@ func (o *ApplicationKeyResponse) UnmarshalJSON(bytes []byte) (err error) {
o.UnparsedObject = raw
return nil
}
additionalProperties := make(map[string]interface{})
if err = json.Unmarshal(bytes, &additionalProperties); err == nil {
delete(additionalProperties, "application_key")
} else {
return err
}
if all.ApplicationKey != nil && all.ApplicationKey.UnparsedObject != nil && o.UnparsedObject == nil {
err = json.Unmarshal(bytes, &raw)
if err != nil {
Expand All @@ -101,5 +107,9 @@ func (o *ApplicationKeyResponse) UnmarshalJSON(bytes []byte) (err error) {
o.UnparsedObject = raw
}
o.ApplicationKey = all.ApplicationKey
if len(additionalProperties) > 0 {
o.AdditionalProperties = additionalProperties
}

return nil
}
10 changes: 10 additions & 0 deletions api/datadogV1/model_authentication_validation_response.go
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,16 @@ func (o *AuthenticationValidationResponse) UnmarshalJSON(bytes []byte) (err erro
o.UnparsedObject = raw
return nil
}
additionalProperties := make(map[string]interface{})
if err = json.Unmarshal(bytes, &additionalProperties); err == nil {
delete(additionalProperties, "valid")
} else {
return err
}
o.Valid = all.Valid
if len(additionalProperties) > 0 {
o.AdditionalProperties = additionalProperties
}

return nil
}
20 changes: 20 additions & 0 deletions api/datadogV1/model_aws_account.go
Original file line number Diff line number Diff line change
Expand Up @@ -453,6 +453,22 @@ func (o *AWSAccount) UnmarshalJSON(bytes []byte) (err error) {
o.UnparsedObject = raw
return nil
}
additionalProperties := make(map[string]interface{})
if err = json.Unmarshal(bytes, &additionalProperties); err == nil {
delete(additionalProperties, "access_key_id")
delete(additionalProperties, "account_id")
delete(additionalProperties, "account_specific_namespace_rules")
delete(additionalProperties, "cspm_resource_collection_enabled")
delete(additionalProperties, "excluded_regions")
delete(additionalProperties, "filter_tags")
delete(additionalProperties, "host_tags")
delete(additionalProperties, "metrics_collection_enabled")
delete(additionalProperties, "resource_collection_enabled")
delete(additionalProperties, "role_name")
delete(additionalProperties, "secret_access_key")
} else {
return err
}
o.AccessKeyId = all.AccessKeyId
o.AccountId = all.AccountId
o.AccountSpecificNamespaceRules = all.AccountSpecificNamespaceRules
Expand All @@ -464,5 +480,9 @@ func (o *AWSAccount) UnmarshalJSON(bytes []byte) (err error) {
o.ResourceCollectionEnabled = all.ResourceCollectionEnabled
o.RoleName = all.RoleName
o.SecretAccessKey = all.SecretAccessKey
if len(additionalProperties) > 0 {
o.AdditionalProperties = additionalProperties
}

return nil
}
11 changes: 11 additions & 0 deletions api/datadogV1/model_aws_account_and_lambda_request.go
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,18 @@ func (o *AWSAccountAndLambdaRequest) UnmarshalJSON(bytes []byte) (err error) {
o.UnparsedObject = raw
return nil
}
additionalProperties := make(map[string]interface{})
if err = json.Unmarshal(bytes, &additionalProperties); err == nil {
delete(additionalProperties, "account_id")
delete(additionalProperties, "lambda_arn")
} else {
return err
}
o.AccountId = all.AccountId
o.LambdaArn = all.LambdaArn
if len(additionalProperties) > 0 {
o.AdditionalProperties = additionalProperties
}

return nil
}
10 changes: 10 additions & 0 deletions api/datadogV1/model_aws_account_create_response.go
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,16 @@ func (o *AWSAccountCreateResponse) UnmarshalJSON(bytes []byte) (err error) {
o.UnparsedObject = raw
return nil
}
additionalProperties := make(map[string]interface{})
if err = json.Unmarshal(bytes, &additionalProperties); err == nil {
delete(additionalProperties, "external_id")
} else {
return err
}
o.ExternalId = all.ExternalId
if len(additionalProperties) > 0 {
o.AdditionalProperties = additionalProperties
}

return nil
}
Loading

0 comments on commit 6d60cbb

Please sign in to comment.