Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
32 changes: 22 additions & 10 deletions .generator/schemas/v2/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -35810,6 +35810,8 @@ components:
description: Name of the Custom Costs file.
example: "my_file.json"
type: string
preview_unavailable_reason:
$ref: "#/components/schemas/CustomCostsFilePreviewUnavailableReason"
provider_names:
description: Providers contained in the Custom Costs file.
items:
Expand Down Expand Up @@ -35841,6 +35843,15 @@ components:
description: Type of the Custom Costs file metadata.
type: string
type: object
CustomCostsFilePreviewUnavailableReason:
description: >-
Reason the content of the Custom Costs file is not returned. Only set when `content` is omitted.
enum:
- CHARGE_PERIOD_OUTSIDE_RETENTION_WINDOW
example: CHARGE_PERIOD_OUTSIDE_RETENTION_WINDOW
type: string
x-enum-varnames:
- CHARGE_PERIOD_OUTSIDE_RETENTION_WINDOW
CustomCostsFileUpdateAttributes:
description: Attributes of a Custom Costs file that can be updated.
properties:
Expand Down Expand Up @@ -35915,11 +35926,12 @@ components:
description: Metadata of the user that has uploaded the Custom Costs file.
properties:
email:
description: The name of the Custom Costs file.
description: >-
Handle of the user. This is usually the user's email address, but can be another identifier (for example, a UUID for a service account).
example: "email.test@datadohq.com"
type: string
icon:
description: The name of the Custom Costs file.
description: Icon of the user.
example: "icon.png"
type: string
name:
Expand Down Expand Up @@ -174136,13 +174148,13 @@ paths:
content:
application/json:
schema:
$ref: "#/components/schemas/APIErrorResponse"
$ref: "#/components/schemas/JSONAPIErrorResponse"
description: Bad Request
"403":
content:
application/json:
schema:
$ref: "#/components/schemas/APIErrorResponse"
$ref: "#/components/schemas/JSONAPIErrorResponse"
description: Forbidden
"429":
$ref: "#/components/responses/TooManyRequestsResponse"
Expand Down Expand Up @@ -174214,13 +174226,13 @@ paths:
content:
application/json:
schema:
$ref: "#/components/schemas/APIErrorResponse"
$ref: "#/components/schemas/JSONAPIErrorResponse"
description: Bad Request
"403":
content:
application/json:
schema:
$ref: "#/components/schemas/APIErrorResponse"
$ref: "#/components/schemas/JSONAPIErrorResponse"
description: Forbidden
"429":
$ref: "#/components/responses/TooManyRequestsResponse"
Expand Down Expand Up @@ -174249,13 +174261,13 @@ paths:
content:
application/json:
schema:
$ref: "#/components/schemas/APIErrorResponse"
$ref: "#/components/schemas/JSONAPIErrorResponse"
description: Forbidden
"404":
content:
application/json:
schema:
$ref: "#/components/schemas/APIErrorResponse"
$ref: "#/components/schemas/JSONAPIErrorResponse"
description: Not Found
"429":
$ref: "#/components/responses/TooManyRequestsResponse"
Expand Down Expand Up @@ -174309,13 +174321,13 @@ paths:
content:
application/json:
schema:
$ref: "#/components/schemas/APIErrorResponse"
$ref: "#/components/schemas/JSONAPIErrorResponse"
description: Forbidden
"404":
content:
application/json:
schema:
$ref: "#/components/schemas/APIErrorResponse"
$ref: "#/components/schemas/JSONAPIErrorResponse"
description: Not Found
"429":
$ref: "#/components/responses/TooManyRequestsResponse"
Expand Down
1 change: 1 addition & 0 deletions lib/datadog_api_client/inflector.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3170,6 +3170,7 @@ def overrides
"v2.custom_costs_file_metadata_high_level" => "CustomCostsFileMetadataHighLevel",
"v2.custom_costs_file_metadata_with_content" => "CustomCostsFileMetadataWithContent",
"v2.custom_costs_file_metadata_with_content_high_level" => "CustomCostsFileMetadataWithContentHighLevel",
"v2.custom_costs_file_preview_unavailable_reason" => "CustomCostsFilePreviewUnavailableReason",
"v2.custom_costs_file_update_attributes" => "CustomCostsFileUpdateAttributes",
"v2.custom_costs_file_update_data" => "CustomCostsFileUpdateData",
"v2.custom_costs_file_update_request" => "CustomCostsFileUpdateRequest",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,9 @@ class CustomCostsFileMetadataWithContent
# Name of the Custom Costs file.
attr_accessor :name

# Reason the content of the Custom Costs file is not returned. Only set when `content` is omitted.
attr_accessor :preview_unavailable_reason

# Providers contained in the Custom Costs file.
attr_accessor :provider_names

Expand All @@ -63,6 +66,7 @@ def self.attribute_map
:'charge_period' => :'charge_period',
:'content' => :'content',
:'name' => :'name',
:'preview_unavailable_reason' => :'preview_unavailable_reason',
:'provider_names' => :'provider_names',
:'status' => :'status',
:'uploaded_at' => :'uploaded_at',
Expand All @@ -80,6 +84,7 @@ def self.openapi_types
:'charge_period' => :'CustomCostsFileUsageChargePeriod',
:'content' => :'Array<CustomCostsFileLineItem>',
:'name' => :'String',
:'preview_unavailable_reason' => :'CustomCostsFilePreviewUnavailableReason',
:'provider_names' => :'Array<String>',
:'status' => :'String',
:'uploaded_at' => :'Float',
Expand Down Expand Up @@ -131,6 +136,10 @@ def initialize(attributes = {})
self.name = attributes[:'name']
end

if attributes.key?(:'preview_unavailable_reason')
self.preview_unavailable_reason = attributes[:'preview_unavailable_reason']
end

if attributes.key?(:'provider_names')
if (value = attributes[:'provider_names']).is_a?(Array)
self.provider_names = value
Expand Down Expand Up @@ -182,6 +191,7 @@ def ==(o)
charge_period == o.charge_period &&
content == o.content &&
name == o.name &&
preview_unavailable_reason == o.preview_unavailable_reason &&
provider_names == o.provider_names &&
status == o.status &&
uploaded_at == o.uploaded_at &&
Expand All @@ -193,7 +203,7 @@ def ==(o)
# @return [Integer] Hash code
# @!visibility private
def hash
[ai_provider, billed_cost, billing_currency, charge_period, content, name, provider_names, status, uploaded_at, uploaded_by, additional_properties].hash
[ai_provider, billed_cost, billing_currency, charge_period, content, name, preview_unavailable_reason, provider_names, status, uploaded_at, uploaded_by, additional_properties].hash
end
end
end
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
=begin
#Datadog API V2 Collection

#Collection of all Datadog Public endpoints.

The version of the OpenAPI document: 1.0
Contact: support@datadoghq.com
Generated by: https://github.com/DataDog/datadog-api-client-ruby/tree/master/.generator

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 2020-Present Datadog, Inc.

=end

require 'date'
require 'time'

module DatadogAPIClient::V2
# Reason the content of the Custom Costs file is not returned. Only set when `content` is omitted.
class CustomCostsFilePreviewUnavailableReason
include BaseEnumModel

CHARGE_PERIOD_OUTSIDE_RETENTION_WINDOW = "CHARGE_PERIOD_OUTSIDE_RETENTION_WINDOW".freeze
end
end
4 changes: 2 additions & 2 deletions lib/datadog_api_client/v2/models/custom_costs_user.rb
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,10 @@ module DatadogAPIClient::V2
class CustomCostsUser
include BaseGenericModel

# The name of the Custom Costs file.
# Handle of the user. This is usually the user's email address, but can be another identifier (for example, a UUID for a service account).
attr_accessor :email

# The name of the Custom Costs file.
# Icon of the user.
attr_accessor :icon

# Name of the user.
Expand Down
Loading