diff --git a/.generator/schemas/v2/openapi.yaml b/.generator/schemas/v2/openapi.yaml index c0368d657db4..9c52b0b526f3 100644 --- a/.generator/schemas/v2/openapi.yaml +++ b/.generator/schemas/v2/openapi.yaml @@ -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: @@ -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: @@ -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: @@ -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" @@ -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" @@ -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" @@ -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" diff --git a/lib/datadog_api_client/inflector.rb b/lib/datadog_api_client/inflector.rb index 36ab8f2db077..f34fac60dd1c 100644 --- a/lib/datadog_api_client/inflector.rb +++ b/lib/datadog_api_client/inflector.rb @@ -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", diff --git a/lib/datadog_api_client/v2/models/custom_costs_file_metadata_with_content.rb b/lib/datadog_api_client/v2/models/custom_costs_file_metadata_with_content.rb index bfa344893d96..bbb15c263598 100644 --- a/lib/datadog_api_client/v2/models/custom_costs_file_metadata_with_content.rb +++ b/lib/datadog_api_client/v2/models/custom_costs_file_metadata_with_content.rb @@ -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 @@ -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', @@ -80,6 +84,7 @@ def self.openapi_types :'charge_period' => :'CustomCostsFileUsageChargePeriod', :'content' => :'Array', :'name' => :'String', + :'preview_unavailable_reason' => :'CustomCostsFilePreviewUnavailableReason', :'provider_names' => :'Array', :'status' => :'String', :'uploaded_at' => :'Float', @@ -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 @@ -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 && @@ -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 diff --git a/lib/datadog_api_client/v2/models/custom_costs_file_preview_unavailable_reason.rb b/lib/datadog_api_client/v2/models/custom_costs_file_preview_unavailable_reason.rb new file mode 100644 index 000000000000..b59f303c3d67 --- /dev/null +++ b/lib/datadog_api_client/v2/models/custom_costs_file_preview_unavailable_reason.rb @@ -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 diff --git a/lib/datadog_api_client/v2/models/custom_costs_user.rb b/lib/datadog_api_client/v2/models/custom_costs_user.rb index b85cb06c38ad..63c80a3122b6 100644 --- a/lib/datadog_api_client/v2/models/custom_costs_user.rb +++ b/lib/datadog_api_client/v2/models/custom_costs_user.rb @@ -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.