From bf8280331104211be5ea0ae280a6e93817eedf41 Mon Sep 17 00:00:00 2001 From: "ci.datadog-api-spec" Date: Mon, 16 Nov 2026 23:01:09 +0000 Subject: [PATCH] Regenerate client from commit 9bf7f14 of spec repo --- .generator/schemas/v2/openapi.yaml | 927 ++++++++++++++++++ .../CreateNebiusCloudIntegrationAccount.py | 117 +++ .../DeleteNebiusCloudIntegrationAccount.py | 16 + .../GetNebiusCloudIntegrationAccount.py | 18 + .../ListNebiusCloudIntegrationAccounts.py | 16 + .../UpdateNebiusCloudIntegrationAccount.py | 118 +++ src/datadog_api_client/configuration.py | 5 + .../v2/api/nebius_cloud_integration_api.py | 224 +++++ src/datadog_api_client/v2/apis/__init__.py | 2 + ...collection_integration_dataflow_request.py | 62 ++ ...ollection_integration_dataflow_response.py | 58 ++ ...n_integration_dataflow_settings_request.py | 76 ++ ..._integration_dataflow_settings_response.py | 64 ++ ...egration_account_authentication_request.py | 52 + ...gration_account_authentication_response.py | 46 + ...tegration_account_authentication_update.py | 52 + ...d_integration_account_create_attributes.py | 95 ++ ...s_cloud_integration_account_create_data.py | 54 + ...loud_integration_account_create_request.py | 44 + ...egration_account_metrics_config_request.py | 40 + ...gration_account_metrics_config_response.py | 36 + ...tegration_account_metrics_config_update.py | 40 + ...bius_cloud_integration_account_response.py | 44 + ...integration_account_response_attributes.py | 92 ++ ...cloud_integration_account_response_data.py | 67 ++ ...on_account_service_account_auth_request.py | 85 ++ ...n_account_service_account_auth_response.py | 65 ++ ...ation_account_service_account_auth_type.py | 37 + ...ion_account_service_account_auth_update.py | 87 ++ ...ud_integration_account_settings_request.py | 70 ++ ...d_integration_account_settings_response.py | 66 ++ ...oud_integration_account_settings_update.py | 70 ++ ...d_integration_account_update_attributes.py | 99 ++ ...s_cloud_integration_account_update_data.py | 64 ++ ...loud_integration_account_update_request.py | 44 + ...ius_cloud_integration_accounts_response.py | 44 + ...ius_cloud_integration_dataflows_request.py | 98 ++ ...us_cloud_integration_dataflows_response.py | 94 ++ ...cloud_logs_integration_dataflow_request.py | 62 ++ ...loud_logs_integration_dataflow_response.py | 58 ++ ...s_integration_dataflow_settings_request.py | 52 + ..._integration_dataflow_settings_response.py | 36 + ...ius_cloud_logs_integration_service_name.py | 58 ++ ..._resources_integration_dataflow_request.py | 40 + ...resources_integration_dataflow_response.py | 36 + ...collection_integration_dataflow_request.py | 40 + ...ollection_integration_dataflow_response.py | 36 + src/datadog_api_client/v2/models/__init__.py | 148 +++ tests/v2/features/given.json | 12 + .../features/nebius_cloud_integration.feature | 148 +++ tests/v2/features/undo.json | 37 + 51 files changed, 4051 insertions(+) create mode 100644 examples/v2/nebius-cloud-integration/CreateNebiusCloudIntegrationAccount.py create mode 100644 examples/v2/nebius-cloud-integration/DeleteNebiusCloudIntegrationAccount.py create mode 100644 examples/v2/nebius-cloud-integration/GetNebiusCloudIntegrationAccount.py create mode 100644 examples/v2/nebius-cloud-integration/ListNebiusCloudIntegrationAccounts.py create mode 100644 examples/v2/nebius-cloud-integration/UpdateNebiusCloudIntegrationAccount.py create mode 100644 src/datadog_api_client/v2/api/nebius_cloud_integration_api.py create mode 100644 src/datadog_api_client/v2/model/nebius_cloud_cost_collection_integration_dataflow_request.py create mode 100644 src/datadog_api_client/v2/model/nebius_cloud_cost_collection_integration_dataflow_response.py create mode 100644 src/datadog_api_client/v2/model/nebius_cloud_cost_collection_integration_dataflow_settings_request.py create mode 100644 src/datadog_api_client/v2/model/nebius_cloud_cost_collection_integration_dataflow_settings_response.py create mode 100644 src/datadog_api_client/v2/model/nebius_cloud_integration_account_authentication_request.py create mode 100644 src/datadog_api_client/v2/model/nebius_cloud_integration_account_authentication_response.py create mode 100644 src/datadog_api_client/v2/model/nebius_cloud_integration_account_authentication_update.py create mode 100644 src/datadog_api_client/v2/model/nebius_cloud_integration_account_create_attributes.py create mode 100644 src/datadog_api_client/v2/model/nebius_cloud_integration_account_create_data.py create mode 100644 src/datadog_api_client/v2/model/nebius_cloud_integration_account_create_request.py create mode 100644 src/datadog_api_client/v2/model/nebius_cloud_integration_account_metrics_config_request.py create mode 100644 src/datadog_api_client/v2/model/nebius_cloud_integration_account_metrics_config_response.py create mode 100644 src/datadog_api_client/v2/model/nebius_cloud_integration_account_metrics_config_update.py create mode 100644 src/datadog_api_client/v2/model/nebius_cloud_integration_account_response.py create mode 100644 src/datadog_api_client/v2/model/nebius_cloud_integration_account_response_attributes.py create mode 100644 src/datadog_api_client/v2/model/nebius_cloud_integration_account_response_data.py create mode 100644 src/datadog_api_client/v2/model/nebius_cloud_integration_account_service_account_auth_request.py create mode 100644 src/datadog_api_client/v2/model/nebius_cloud_integration_account_service_account_auth_response.py create mode 100644 src/datadog_api_client/v2/model/nebius_cloud_integration_account_service_account_auth_type.py create mode 100644 src/datadog_api_client/v2/model/nebius_cloud_integration_account_service_account_auth_update.py create mode 100644 src/datadog_api_client/v2/model/nebius_cloud_integration_account_settings_request.py create mode 100644 src/datadog_api_client/v2/model/nebius_cloud_integration_account_settings_response.py create mode 100644 src/datadog_api_client/v2/model/nebius_cloud_integration_account_settings_update.py create mode 100644 src/datadog_api_client/v2/model/nebius_cloud_integration_account_update_attributes.py create mode 100644 src/datadog_api_client/v2/model/nebius_cloud_integration_account_update_data.py create mode 100644 src/datadog_api_client/v2/model/nebius_cloud_integration_account_update_request.py create mode 100644 src/datadog_api_client/v2/model/nebius_cloud_integration_accounts_response.py create mode 100644 src/datadog_api_client/v2/model/nebius_cloud_integration_dataflows_request.py create mode 100644 src/datadog_api_client/v2/model/nebius_cloud_integration_dataflows_response.py create mode 100644 src/datadog_api_client/v2/model/nebius_cloud_logs_integration_dataflow_request.py create mode 100644 src/datadog_api_client/v2/model/nebius_cloud_logs_integration_dataflow_response.py create mode 100644 src/datadog_api_client/v2/model/nebius_cloud_logs_integration_dataflow_settings_request.py create mode 100644 src/datadog_api_client/v2/model/nebius_cloud_logs_integration_dataflow_settings_response.py create mode 100644 src/datadog_api_client/v2/model/nebius_cloud_logs_integration_service_name.py create mode 100644 src/datadog_api_client/v2/model/nebius_cloud_resources_integration_dataflow_request.py create mode 100644 src/datadog_api_client/v2/model/nebius_cloud_resources_integration_dataflow_response.py create mode 100644 src/datadog_api_client/v2/model/nebius_cloud_service_quota_collection_integration_dataflow_request.py create mode 100644 src/datadog_api_client/v2/model/nebius_cloud_service_quota_collection_integration_dataflow_response.py create mode 100644 tests/v2/features/nebius_cloud_integration.feature diff --git a/.generator/schemas/v2/openapi.yaml b/.generator/schemas/v2/openapi.yaml index 681999b60b..7fe7873e65 100644 --- a/.generator/schemas/v2/openapi.yaml +++ b/.generator/schemas/v2/openapi.yaml @@ -92648,6 +92648,558 @@ components: type: string x-enum-varnames: - NDK + NebiusCloudCostCollectionIntegrationDataflowRequest: + additionalProperties: false + description: >- + Cloud cost data read from a Nebius Object Storage bucket export and used by [Cloud Cost Management](https://docs.datadoghq.com/cloud_cost_management/). Enabling it requires a bucket holding your cost export and a Nebius access key pair that can read it; a request that enables this dataflow without them is rejected with a `422` response. + properties: + enabled: + description: Whether Datadog collects this data. Defaults to `false`; set to `true` to start collection. + example: true + type: boolean + settings: + $ref: "#/components/schemas/NebiusCloudCostCollectionIntegrationDataflowSettingsRequest" + type: object + NebiusCloudCostCollectionIntegrationDataflowResponse: + description: >- + Cloud cost data read from a Nebius Object Storage bucket export and used by [Cloud Cost Management](https://docs.datadoghq.com/cloud_cost_management/). Requires a bucket holding your cost export and a Nebius access key pair that can read it; without both this dataflow collects no data. + properties: + enabled: + description: Whether Datadog collects this data. Absent when the dataflow has never been configured. + example: true + type: boolean + settings: + $ref: "#/components/schemas/NebiusCloudCostCollectionIntegrationDataflowSettingsResponse" + type: object + NebiusCloudCostCollectionIntegrationDataflowSettingsRequest: + additionalProperties: false + description: Settings of the Cloud Cost Management dataflow. Only the fields provided are changed. + properties: + access_key_id: + description: >- + ID of the Nebius Object Storage (S3-compatible) access key used to read the cost export bucket. Required when this dataflow is enabled. + example: AKID0123456789ABCDEF + type: string + access_key_secret: + description: >- + Secret access key for the access key ID. Required when this dataflow is enabled. Omit it on update to keep the stored one; an empty string is rejected with a `422` response. + example: wJalrXUtnFEMIstaticaccesskey + type: string + writeOnly: true + bucket_name: + description: >- + Name of the Nebius Object Storage bucket holding your cost export. Required when this dataflow is enabled; a request that enables it without the bucket fields and access keys is rejected with a `422` response. + example: nebius-cost-exports + type: string + bucket_prefix_path: + description: >- + Prefix path within the bucket that locates the cost export, combining the export name and path prefix. + example: cost-export/2026/ + type: string + bucket_region: + description: >- + Region of the Nebius Object Storage bucket, such as `eu-north1`. Required when this dataflow is enabled. + example: eu-north1 + type: string + type: object + NebiusCloudCostCollectionIntegrationDataflowSettingsResponse: + description: Settings of the Cloud Cost Management dataflow. + properties: + access_key_id: + description: ID of the Nebius Object Storage access key used to read the cost export bucket. + example: AKID0123456789ABCDEF + type: string + bucket_name: + description: Name of the Nebius Object Storage bucket holding the cost export. + example: nebius-cost-exports + type: string + bucket_prefix_path: + description: Prefix path within the bucket that locates the cost export. + example: cost-export/2026/ + type: string + bucket_region: + description: Region of the Nebius Object Storage bucket, such as `eu-north1`. + example: eu-north1 + type: string + type: object + NebiusCloudIntegrationAccountAuthenticationRequest: + description: Authentication for creating the Nebius Cloud integration account. Exactly one method is set. + oneOf: + - $ref: "#/components/schemas/NebiusCloudIntegrationAccountServiceAccountAuthRequest" + NebiusCloudIntegrationAccountAuthenticationResponse: + description: Authentication configured on the Nebius Cloud integration account. + oneOf: + - $ref: "#/components/schemas/NebiusCloudIntegrationAccountServiceAccountAuthResponse" + NebiusCloudIntegrationAccountAuthenticationUpdate: + description: Authentication for updating the Nebius Cloud integration account. Exactly one method is set. + oneOf: + - $ref: "#/components/schemas/NebiusCloudIntegrationAccountServiceAccountAuthUpdate" + NebiusCloudIntegrationAccountCreateAttributes: + description: Writable attributes used to create a Nebius Cloud integration account. + properties: + authentication: + $ref: "#/components/schemas/NebiusCloudIntegrationAccountAuthenticationRequest" + dataflows: + $ref: "#/components/schemas/NebiusCloudIntegrationDataflowsRequest" + name: + description: Human-readable name of the Nebius Cloud integration account. + example: nebius-prod + maxLength: 255 + type: string + settings: + $ref: "#/components/schemas/NebiusCloudIntegrationAccountSettingsRequest" + required: + - name + - authentication + - settings + type: object + NebiusCloudIntegrationAccountCreateData: + description: Data envelope for creating a Nebius Cloud integration account. + properties: + attributes: + $ref: "#/components/schemas/NebiusCloudIntegrationAccountCreateAttributes" + type: + $ref: "#/components/schemas/IntegrationAccountType" + required: + - type + - attributes + type: object + NebiusCloudIntegrationAccountCreateRequest: + description: Request payload to create a Nebius Cloud integration account. + properties: + data: + $ref: "#/components/schemas/NebiusCloudIntegrationAccountCreateData" + required: + - data + type: object + NebiusCloudIntegrationAccountMetricsConfigRequest: + additionalProperties: false + description: Configuration for metric collection from this Nebius Cloud account. + properties: + cluster_filters: + description: >- + Tag-filter rules limiting metric collection to matching Kubernetes clusters, for cost savings. Include rules (`key:value`) are combined with OR, exclusion rules (`!key:value`) are then applied with AND, and `?` and `*` are wildcards; for example `cluster:prod-*` collects only matching clusters and `!cluster:dev` excludes a cluster. Defaults to no filters: every cluster is collected. Only cluster-scoped metrics are filtered; billing and object storage metrics are always collected. + example: + - cluster:prod-* + - "!cluster:dev" + items: + type: string + type: array + type: object + NebiusCloudIntegrationAccountMetricsConfigResponse: + description: >- + Metric collection settings configured on the Nebius Cloud integration account. Absent when no filters are configured. + properties: + cluster_filters: + description: >- + Tag-filter rules limiting metric collection to matching Kubernetes clusters. + example: + - cluster:prod-* + - "!cluster:dev" + items: + type: string + type: array + type: object + NebiusCloudIntegrationAccountMetricsConfigUpdate: + additionalProperties: false + description: Configuration for metric collection. Only the fields provided are changed. + properties: + cluster_filters: + description: >- + Tag-filter rules limiting metric collection to matching Kubernetes clusters. Sending metrics_config replaces the stored object's cluster_filters list; omit it to keep the stored value. Include rules (`key:value`) are combined with OR, exclusion rules (`!key:value`) are then applied with AND, and `?` and `*` are wildcards. + example: + - cluster:prod-* + - "!cluster:dev" + items: + type: string + type: array + type: object + NebiusCloudIntegrationAccountResponse: + description: Response payload for a single Nebius Cloud integration account. + properties: + data: + $ref: "#/components/schemas/NebiusCloudIntegrationAccountResponseData" + required: + - data + type: object + NebiusCloudIntegrationAccountResponseAttributes: + description: Attributes of a Nebius Cloud integration account returned in responses. + properties: + authentication: + $ref: "#/components/schemas/NebiusCloudIntegrationAccountAuthenticationResponse" + dataflows: + $ref: "#/components/schemas/NebiusCloudIntegrationDataflowsResponse" + name: + description: Human-readable name of the Nebius Cloud integration account. + example: nebius-prod + type: string + settings: + $ref: "#/components/schemas/NebiusCloudIntegrationAccountSettingsResponse" + required: + - name + - settings + type: object + NebiusCloudIntegrationAccountResponseData: + description: Data envelope of a Nebius Cloud integration account, including server-assigned identity. + properties: + attributes: + $ref: "#/components/schemas/NebiusCloudIntegrationAccountResponseAttributes" + id: + description: Server-generated unique identifier of the Nebius Cloud integration account. + example: e5f6a7b8-c9d0-4e1f-8a2b-3c4d5e6f7081 + readOnly: true + type: string + type: + $ref: "#/components/schemas/IntegrationAccountType" + required: + - id + - attributes + - type + type: object + NebiusCloudIntegrationAccountServiceAccountAuthRequest: + additionalProperties: false + description: >- + Service-account key pair authentication, the only method Nebius Cloud integration accounts support. Create a service account in the Nebius console, add it to the admin group, upload an authorized key pair to it, and issue a static API key with the OBSERVABILITY scope through the Nebius CLI. + properties: + auth_type: + $ref: "#/components/schemas/NebiusCloudIntegrationAccountServiceAccountAuthType" + private_key: + description: >- + The private key of the authorized key pair, in PEM format. Required when log, resource, or service-quota collection is enabled; a request that enables one of them without it is rejected with a `422` response. + example: "-----BEGIN PRIVATE KEY-----\nMIIE...\n-----END PRIVATE KEY-----" + type: string + writeOnly: true + public_key_id: + description: >- + ID of the public key half of the authorized key pair, such as `publickey-xxxxxxxx`. Required when log, resource, or service-quota collection is enabled; a request that enables one of them without it is rejected with a `422` response. + example: publickey-yyyyyyyy + type: string + service_account_id: + description: Non-secret ID of the Nebius service account the account authenticates as. + example: serviceaccount-xxxxxxxx + type: string + static_api_key: + description: >- + Nebius static API key with the OBSERVABILITY scope, used to query logs. Required when log, resource, or service-quota collection is enabled; a request that enables one of them without it is rejected with a `422` response. + example: eyJhbGciOi...static-api-key + type: string + writeOnly: true + required: + - auth_type + - service_account_id + type: object + NebiusCloudIntegrationAccountServiceAccountAuthResponse: + description: The service-account key pair authentication method configured on the account. + properties: + auth_type: + $ref: "#/components/schemas/NebiusCloudIntegrationAccountServiceAccountAuthType" + public_key_id: + description: ID of the public key half of the authorized key pair. Omitted when unset. + example: publickey-yyyyyyyy + type: string + service_account_id: + description: ID of the Nebius service account the account authenticates as. + example: serviceaccount-xxxxxxxx + type: string + required: + - auth_type + - service_account_id + type: object + NebiusCloudIntegrationAccountServiceAccountAuthType: + default: nebius_service_account + description: The authentication method type. + enum: + - nebius_service_account + example: nebius_service_account + type: string + x-enum-varnames: + - NEBIUS_SERVICE_ACCOUNT + NebiusCloudIntegrationAccountServiceAccountAuthUpdate: + additionalProperties: false + description: >- + Service-account key pair authentication, the only method Nebius Cloud integration accounts support. Only the fields provided are changed; omit `private_key` and `static_api_key` to keep the stored ones. + properties: + auth_type: + $ref: "#/components/schemas/NebiusCloudIntegrationAccountServiceAccountAuthType" + private_key: + description: >- + The private key of the authorized key pair, in PEM format. Omit it to keep the stored one; an empty string is rejected with a `422` response. + example: "-----BEGIN PRIVATE KEY-----\nMIIE...\n-----END PRIVATE KEY-----" + type: string + writeOnly: true + public_key_id: + description: >- + ID of the public key half of the authorized key pair. Omit it to keep the stored public key ID, send `null` or an empty string to remove it, or send a value to replace it. Removing it is rejected with a `422` response while log, resource, or service-quota collection is enabled. + example: publickey-yyyyyyyy + nullable: true + type: string + service_account_id: + description: >- + Non-secret ID of the Nebius service account the account authenticates as. It cannot be cleared; sending `null` or an empty string is rejected with a `422` response. + example: serviceaccount-xxxxxxxx + type: string + static_api_key: + description: >- + Nebius static API key with the OBSERVABILITY scope. Omit it to keep the stored one; an empty string is rejected with a `422` response. + example: eyJhbGciOi...static-api-key + type: string + writeOnly: true + required: + - auth_type + type: object + NebiusCloudIntegrationAccountSettingsRequest: + additionalProperties: false + description: Settings for creating the Nebius Cloud integration account. + properties: + account_tags: + description: >- + Tags applied to all metrics, logs, and resources collected from this Nebius Cloud account. Defaults to no tags. + example: + - env:prod + - team:ai + items: + maxLength: 200 + type: string + type: array + metrics_config: + $ref: "#/components/schemas/NebiusCloudIntegrationAccountMetricsConfigRequest" + tenant_id: + description: >- + ID of the Nebius tenant to monitor, the organizational workspace identifier. Found in the Nebius console under Administration > Organization. + example: tenant-12345678 + type: string + required: + - tenant_id + type: object + NebiusCloudIntegrationAccountSettingsResponse: + description: Settings configured on the Nebius Cloud integration account. + properties: + account_tags: + description: Tags applied to all data collected from this Nebius Cloud account. + example: + - env:prod + - team:ai + items: + type: string + type: array + metrics_config: + $ref: "#/components/schemas/NebiusCloudIntegrationAccountMetricsConfigResponse" + tenant_id: + description: ID of the Nebius tenant being monitored. + example: tenant-12345678 + type: string + required: + - tenant_id + type: object + NebiusCloudIntegrationAccountSettingsUpdate: + additionalProperties: false + description: Settings for updating the Nebius Cloud integration account. Only the fields provided are changed. + properties: + account_tags: + description: >- + Tags applied to all metrics, logs, and resources collected from this Nebius Cloud account. Sending it replaces the whole list; send an empty array to remove all tags, or omit it to keep the stored list. + example: + - env:prod + - team:ai + items: + maxLength: 200 + type: string + type: array + metrics_config: + $ref: "#/components/schemas/NebiusCloudIntegrationAccountMetricsConfigUpdate" + tenant_id: + description: >- + ID of the Nebius tenant to monitor. An empty value is ignored and the stored tenant ID is kept. + example: tenant-12345678 + type: string + type: object + NebiusCloudIntegrationAccountUpdateAttributes: + description: >- + Writable attributes used to update a Nebius Cloud integration account. Every field is optional; only the fields provided are changed. When `dataflows` is provided, only the dataflow ids included in the request are modified; dataflows omitted from the map keep their current configuration, as do the settings of an included dataflow that provides only `enabled`. + properties: + authentication: + $ref: "#/components/schemas/NebiusCloudIntegrationAccountAuthenticationUpdate" + dataflows: + $ref: "#/components/schemas/NebiusCloudIntegrationDataflowsRequest" + name: + description: Human-readable name of the Nebius Cloud integration account. + example: nebius-prod + maxLength: 255 + type: string + settings: + $ref: "#/components/schemas/NebiusCloudIntegrationAccountSettingsUpdate" + type: object + NebiusCloudIntegrationAccountUpdateData: + description: Data envelope for updating a Nebius Cloud integration account. + properties: + attributes: + $ref: "#/components/schemas/NebiusCloudIntegrationAccountUpdateAttributes" + id: + description: Unique identifier of the Nebius Cloud integration account to update. + example: e5f6a7b8-c9d0-4e1f-8a2b-3c4d5e6f7081 + type: string + type: + $ref: "#/components/schemas/IntegrationAccountType" + required: + - id + - type + - attributes + type: object + NebiusCloudIntegrationAccountUpdateRequest: + description: Request payload to update a Nebius Cloud integration account. + properties: + data: + $ref: "#/components/schemas/NebiusCloudIntegrationAccountUpdateData" + required: + - data + type: object + NebiusCloudIntegrationAccountsResponse: + description: Response payload for a list of Nebius Cloud integration accounts. + properties: + data: + description: List of Nebius Cloud integration accounts. + items: + $ref: "#/components/schemas/NebiusCloudIntegrationAccountResponseData" + type: array + required: + - data + type: object + NebiusCloudIntegrationDataflowsRequest: + additionalProperties: false + description: >- + Data Datadog collects from Nebius Cloud, keyed by dataflow id. Each dataflow turns on a distinct kind of collection: set `enabled` to stop or start it, and use `settings` to configure what it collects. Defaults listed on each dataflow apply when the account is created; on update, omitted fields keep their current values. Every dataflow except `nebius-cloud-cost-collection` runs as the service account in `authentication`, using its authorized key pair and the static API key; enabling one of them without those keys is rejected with a `422` response, and one enabled with keys that later expire is stored but collects no data. + properties: + nebius-cloud-cost-collection: + $ref: "#/components/schemas/NebiusCloudCostCollectionIntegrationDataflowRequest" + nebius-cloud-logs: + $ref: "#/components/schemas/NebiusCloudLogsIntegrationDataflowRequest" + nebius-cloud-resources: + $ref: "#/components/schemas/NebiusCloudResourcesIntegrationDataflowRequest" + nebius-cloud-service-quota-collection: + $ref: "#/components/schemas/NebiusCloudServiceQuotaCollectionIntegrationDataflowRequest" + type: object + NebiusCloudIntegrationDataflowsResponse: + description: Data Datadog collects from Nebius Cloud, keyed by dataflow id. + properties: + nebius-cloud-cost-collection: + $ref: "#/components/schemas/NebiusCloudCostCollectionIntegrationDataflowResponse" + nebius-cloud-logs: + $ref: "#/components/schemas/NebiusCloudLogsIntegrationDataflowResponse" + nebius-cloud-resources: + $ref: "#/components/schemas/NebiusCloudResourcesIntegrationDataflowResponse" + nebius-cloud-service-quota-collection: + $ref: "#/components/schemas/NebiusCloudServiceQuotaCollectionIntegrationDataflowResponse" + type: object + NebiusCloudLogsIntegrationDataflowRequest: + additionalProperties: false + description: >- + Logs from your Nebius tenant: Kubernetes control plane and audit logs, tenant-level audit events, compute serial console logs, cloud apps and AI inference logs, PostgreSQL logs, and MLflow logs, collected from the services named in `settings.enabled_services`. `enabled_services` is the sole source of truth for what is collected; `enabled` set to `false` stops log collection, while `true` on its own changes nothing. Defaults to no services. + properties: + enabled: + description: >- + Whether Datadog collects logs. Defaults to `false`. Set to `false` to stop log collection; sending `true` on its own changes nothing, because `settings.enabled_services` is the sole source of truth. + example: true + type: boolean + settings: + $ref: "#/components/schemas/NebiusCloudLogsIntegrationDataflowSettingsRequest" + type: object + NebiusCloudLogsIntegrationDataflowResponse: + description: >- + Logs from your Nebius tenant: Kubernetes control plane and audit logs, tenant-level audit events, compute serial console logs, cloud apps and AI inference logs, PostgreSQL logs, and MLflow logs, collected from the services named in `settings.enabled_services`. + properties: + enabled: + description: >- + Whether Datadog collects logs. Absent when no service is enabled. + example: true + type: boolean + settings: + $ref: "#/components/schemas/NebiusCloudLogsIntegrationDataflowSettingsResponse" + type: object + NebiusCloudLogsIntegrationDataflowSettingsRequest: + additionalProperties: false + description: Settings of the logs dataflow. Only the fields provided are changed. + properties: + enabled_services: + description: >- + Nebius log integrations to collect. One of `nebius-cloud-compute`, `nebius-cloud-kubernetes`, `nebius-cloud-mlflow`, `nebius-cloud-postgresql`, `nebius-cloud-applications`, or `default` for the streams shared by every service. A non-empty list is the sole source of truth and replaces the stored list: those services are collected and any others stop. An empty list stops log collection entirely. Omit it to keep the stored list. + example: + - nebius-cloud-compute + - nebius-cloud-kubernetes + - default + items: + $ref: "#/components/schemas/NebiusCloudLogsIntegrationServiceName" + type: array + type: object + NebiusCloudLogsIntegrationDataflowSettingsResponse: + description: Settings of the logs dataflow. + properties: + enabled_services: + description: >- + Nebius log integrations collected, such as `nebius-cloud-compute` and `default`. Absent when no service is enabled. + example: + - nebius-cloud-compute + - nebius-cloud-kubernetes + - default + items: + type: string + type: array + type: object + NebiusCloudLogsIntegrationServiceName: + description: Nebius log integration whose streams are collected. + enum: + - nebius-cloud-compute + - nebius-cloud-kubernetes + - nebius-cloud-mlflow + - nebius-cloud-postgresql + - nebius-cloud-applications + - default + example: nebius-cloud-compute + type: string + x-enum-varnames: + - NEBIUS_CLOUD_COMPUTE + - NEBIUS_CLOUD_KUBERNETES + - NEBIUS_CLOUD_MLFLOW + - NEBIUS_CLOUD_POSTGRESQL + - NEBIUS_CLOUD_APPLICATIONS + - DEFAULT + NebiusCloudResourcesIntegrationDataflowRequest: + additionalProperties: false + description: >- + Metadata about resources in your Nebius tenant, such as compute instances and Kubernetes clusters. + properties: + enabled: + description: Whether Datadog collects this data. Defaults to `false`; set to `true` to start collection. + example: true + type: boolean + type: object + NebiusCloudResourcesIntegrationDataflowResponse: + description: >- + Metadata about resources in your Nebius tenant, such as compute instances and Kubernetes clusters. + properties: + enabled: + description: Whether Datadog collects this data. Absent when the dataflow has never been configured. + example: true + type: boolean + type: object + NebiusCloudServiceQuotaCollectionIntegrationDataflowRequest: + additionalProperties: false + description: >- + Usage metrics tracked against your Nebius service quotas, such as `nebius_cloud.servicequota.percentage_used` and `nebius_cloud.servicequota.limit`. + properties: + enabled: + description: Whether Datadog collects this data. Defaults to `false`; set to `true` to start collection. + example: true + type: boolean + type: object + NebiusCloudServiceQuotaCollectionIntegrationDataflowResponse: + description: >- + Usage metrics tracked against your Nebius service quotas, such as `nebius_cloud.servicequota.percentage_used` and `nebius_cloud.servicequota.limit`. + properties: + enabled: + description: Whether Datadog collects this data. Absent when the dataflow has never been configured. + example: true + type: boolean + type: object NodeType: additionalProperties: {} description: A tree-sitter node type definition for a given language, describing the node's structure, subtypes, and fields. @@ -201196,6 +201748,372 @@ paths: x-unstable: |- **Note**: This endpoint is in preview and is subject to change. If you have any feedback, contact [Datadog support](https://docs.datadoghq.com/help/). + /api/v2/integration-interfaces/nebius-cloud/accounts: + get: + description: List Nebius Cloud integration accounts. + operationId: ListNebiusCloudIntegrationAccounts + responses: + "200": + content: + application/json: + examples: + default: + value: + data: + - attributes: + authentication: + auth_type: nebius_service_account + public_key_id: publickey-yyyyyyyy + service_account_id: serviceaccount-xxxxxxxx + dataflows: + nebius-cloud-cost-collection: + enabled: true + settings: + access_key_id: AKID0123456789ABCDEF + bucket_name: nebius-cost-exports + bucket_prefix_path: cost-export/2026/ + bucket_region: eu-north1 + nebius-cloud-logs: + enabled: true + settings: + enabled_services: + - nebius-cloud-compute + - nebius-cloud-kubernetes + - default + nebius-cloud-resources: + enabled: true + nebius-cloud-service-quota-collection: + enabled: true + name: nebius-prod + settings: + account_tags: + - env:prod + - team:ai + tenant_id: tenant-12345678 + id: e5f6a7b8-c9d0-4e1f-8a2b-3c4d5e6f7081 + type: integration-account + schema: + $ref: "#/components/schemas/NebiusCloudIntegrationAccountsResponse" + description: OK + "400": + content: + application/json: + schema: + $ref: "#/components/schemas/JSONAPIErrorResponse" + description: Bad Request + "403": + content: + application/json: + schema: + $ref: "#/components/schemas/JSONAPIErrorResponse" + description: Forbidden + "404": + content: + application/json: + schema: + $ref: "#/components/schemas/JSONAPIErrorResponse" + description: Not Found + "429": + $ref: "#/components/responses/TooManyRequestsResponse" + summary: List Nebius Cloud integration accounts + tags: + - Nebius Cloud Integration + "x-permission": + operator: OR + permissions: + - integrations_read + x-unstable: |- + **Note**: This endpoint is in preview and is subject to change. + If you have any feedback, contact [Datadog support](https://docs.datadoghq.com/help/). + post: + description: Create a Nebius Cloud integration account. + operationId: CreateNebiusCloudIntegrationAccount + requestBody: + content: + application/json: + schema: + $ref: "#/components/schemas/NebiusCloudIntegrationAccountCreateRequest" + required: true + responses: + "201": + content: + application/json: + examples: + default: + value: + data: + attributes: + authentication: + auth_type: nebius_service_account + public_key_id: publickey-yyyyyyyy + service_account_id: serviceaccount-xxxxxxxx + dataflows: + nebius-cloud-cost-collection: + enabled: true + settings: + access_key_id: AKID0123456789ABCDEF + bucket_name: nebius-cost-exports + bucket_prefix_path: cost-export/2026/ + bucket_region: eu-north1 + nebius-cloud-logs: + enabled: true + settings: + enabled_services: + - nebius-cloud-compute + - nebius-cloud-kubernetes + - default + nebius-cloud-resources: + enabled: true + nebius-cloud-service-quota-collection: + enabled: true + name: nebius-prod + settings: + account_tags: + - env:prod + - team:ai + tenant_id: tenant-12345678 + id: e5f6a7b8-c9d0-4e1f-8a2b-3c4d5e6f7081 + type: integration-account + schema: + $ref: "#/components/schemas/NebiusCloudIntegrationAccountResponse" + description: Created + "400": + content: + application/json: + schema: + $ref: "#/components/schemas/JSONAPIErrorResponse" + description: Bad Request + "403": + content: + application/json: + schema: + $ref: "#/components/schemas/JSONAPIErrorResponse" + description: Forbidden + "404": + content: + application/json: + schema: + $ref: "#/components/schemas/JSONAPIErrorResponse" + description: Not Found + "422": + $ref: "#/components/responses/UnprocessableEntityResponse" + "429": + $ref: "#/components/responses/TooManyRequestsResponse" + summary: Create a Nebius Cloud integration account + tags: + - Nebius Cloud Integration + x-codegen-request-body-name: body + "x-permission": + operator: OR + permissions: + - manage_integrations + x-unstable: |- + **Note**: This endpoint is in preview and is subject to change. + If you have any feedback, contact [Datadog support](https://docs.datadoghq.com/help/). + /api/v2/integration-interfaces/nebius-cloud/accounts/{account_id}: + delete: + description: Delete a Nebius Cloud integration account. + operationId: DeleteNebiusCloudIntegrationAccount + parameters: + - $ref: "#/components/parameters/IntegrationAccountIdParameter" + responses: + "200": + description: OK + "400": + content: + application/json: + schema: + $ref: "#/components/schemas/JSONAPIErrorResponse" + description: Bad Request + "403": + content: + application/json: + schema: + $ref: "#/components/schemas/JSONAPIErrorResponse" + description: Forbidden + "404": + content: + application/json: + schema: + $ref: "#/components/schemas/JSONAPIErrorResponse" + description: Not Found + "429": + $ref: "#/components/responses/TooManyRequestsResponse" + summary: Delete a Nebius Cloud integration account + tags: + - Nebius Cloud Integration + "x-permission": + operator: OR + permissions: + - manage_integrations + x-unstable: |- + **Note**: This endpoint is in preview and is subject to change. + If you have any feedback, contact [Datadog support](https://docs.datadoghq.com/help/). + get: + description: Get a Nebius Cloud integration account. + operationId: GetNebiusCloudIntegrationAccount + parameters: + - $ref: "#/components/parameters/IntegrationAccountIdParameter" + responses: + "200": + content: + application/json: + examples: + default: + value: + data: + attributes: + authentication: + auth_type: nebius_service_account + public_key_id: publickey-yyyyyyyy + service_account_id: serviceaccount-xxxxxxxx + dataflows: + nebius-cloud-cost-collection: + enabled: true + settings: + access_key_id: AKID0123456789ABCDEF + bucket_name: nebius-cost-exports + bucket_prefix_path: cost-export/2026/ + bucket_region: eu-north1 + nebius-cloud-logs: + enabled: true + settings: + enabled_services: + - nebius-cloud-compute + - nebius-cloud-kubernetes + - default + nebius-cloud-resources: + enabled: true + nebius-cloud-service-quota-collection: + enabled: true + name: nebius-prod + settings: + account_tags: + - env:prod + - team:ai + tenant_id: tenant-12345678 + id: e5f6a7b8-c9d0-4e1f-8a2b-3c4d5e6f7081 + type: integration-account + schema: + $ref: "#/components/schemas/NebiusCloudIntegrationAccountResponse" + description: OK + "400": + content: + application/json: + schema: + $ref: "#/components/schemas/JSONAPIErrorResponse" + description: Bad Request + "403": + content: + application/json: + schema: + $ref: "#/components/schemas/JSONAPIErrorResponse" + description: Forbidden + "404": + content: + application/json: + schema: + $ref: "#/components/schemas/JSONAPIErrorResponse" + description: Not Found + "429": + $ref: "#/components/responses/TooManyRequestsResponse" + summary: Get a Nebius Cloud integration account + tags: + - Nebius Cloud Integration + "x-permission": + operator: OR + permissions: + - integrations_read + x-unstable: |- + **Note**: This endpoint is in preview and is subject to change. + If you have any feedback, contact [Datadog support](https://docs.datadoghq.com/help/). + patch: + description: Update a Nebius Cloud integration account. Only the fields provided are changed. + operationId: UpdateNebiusCloudIntegrationAccount + parameters: + - $ref: "#/components/parameters/IntegrationAccountIdParameter" + requestBody: + content: + application/json: + schema: + $ref: "#/components/schemas/NebiusCloudIntegrationAccountUpdateRequest" + required: true + responses: + "200": + content: + application/json: + examples: + default: + value: + data: + attributes: + authentication: + auth_type: nebius_service_account + public_key_id: publickey-yyyyyyyy + service_account_id: serviceaccount-xxxxxxxx + dataflows: + nebius-cloud-cost-collection: + enabled: true + settings: + access_key_id: AKID0123456789ABCDEF + bucket_name: nebius-cost-exports + bucket_prefix_path: cost-export/2026/ + bucket_region: eu-north1 + nebius-cloud-logs: + enabled: true + settings: + enabled_services: + - nebius-cloud-compute + - nebius-cloud-kubernetes + - default + nebius-cloud-resources: + enabled: true + nebius-cloud-service-quota-collection: + enabled: true + name: nebius-prod + settings: + account_tags: + - env:prod + - team:ai + tenant_id: tenant-12345678 + id: e5f6a7b8-c9d0-4e1f-8a2b-3c4d5e6f7081 + type: integration-account + schema: + $ref: "#/components/schemas/NebiusCloudIntegrationAccountResponse" + description: OK + "400": + content: + application/json: + schema: + $ref: "#/components/schemas/JSONAPIErrorResponse" + description: Bad Request + "403": + content: + application/json: + schema: + $ref: "#/components/schemas/JSONAPIErrorResponse" + description: Forbidden + "404": + content: + application/json: + schema: + $ref: "#/components/schemas/JSONAPIErrorResponse" + description: Not Found + "422": + $ref: "#/components/responses/UnprocessableEntityResponse" + "429": + $ref: "#/components/responses/TooManyRequestsResponse" + summary: Update a Nebius Cloud integration account + tags: + - Nebius Cloud Integration + x-codegen-request-body-name: body + "x-permission": + operator: OR + permissions: + - manage_integrations + x-unstable: |- + **Note**: This endpoint is in preview and is subject to change. + If you have any feedback, contact [Datadog support](https://docs.datadoghq.com/help/). /api/v2/integration-interfaces/snowflake/accounts: get: description: List Snowflake integration accounts. @@ -276192,6 +277110,15 @@ tags: description: Find out more at url: https://docs.datadoghq.com/monitors/create/types/ name: Monitors + - description: |- + Manage your Datadog Nebius Cloud integration accounts and account resources + directly through the Datadog API. See the + [Nebius Cloud integration page](https://docs.datadoghq.com/integrations/nebius_cloud/) for + more information. + externalDocs: + description: Nebius Cloud integration. + url: https://docs.datadoghq.com/integrations/nebius_cloud/ + name: Nebius Cloud Integration - description: |- The Network Device Monitoring API allows you to fetch devices and interfaces and their attributes. See the [Network Device Monitoring page](https://docs.datadoghq.com/network_monitoring/) for more information. name: Network Device Monitoring diff --git a/examples/v2/nebius-cloud-integration/CreateNebiusCloudIntegrationAccount.py b/examples/v2/nebius-cloud-integration/CreateNebiusCloudIntegrationAccount.py new file mode 100644 index 0000000000..9642ac5aa2 --- /dev/null +++ b/examples/v2/nebius-cloud-integration/CreateNebiusCloudIntegrationAccount.py @@ -0,0 +1,117 @@ +""" +Create a Nebius Cloud integration account returns "Created" response +""" + +from os import environ +from datadog_api_client import ApiClient, Configuration +from datadog_api_client.v2.api.nebius_cloud_integration_api import NebiusCloudIntegrationApi +from datadog_api_client.v2.model.integration_account_type import IntegrationAccountType +from datadog_api_client.v2.model.nebius_cloud_cost_collection_integration_dataflow_request import ( + NebiusCloudCostCollectionIntegrationDataflowRequest, +) +from datadog_api_client.v2.model.nebius_cloud_cost_collection_integration_dataflow_settings_request import ( + NebiusCloudCostCollectionIntegrationDataflowSettingsRequest, +) +from datadog_api_client.v2.model.nebius_cloud_integration_account_create_attributes import ( + NebiusCloudIntegrationAccountCreateAttributes, +) +from datadog_api_client.v2.model.nebius_cloud_integration_account_create_data import ( + NebiusCloudIntegrationAccountCreateData, +) +from datadog_api_client.v2.model.nebius_cloud_integration_account_create_request import ( + NebiusCloudIntegrationAccountCreateRequest, +) +from datadog_api_client.v2.model.nebius_cloud_integration_account_metrics_config_request import ( + NebiusCloudIntegrationAccountMetricsConfigRequest, +) +from datadog_api_client.v2.model.nebius_cloud_integration_account_service_account_auth_request import ( + NebiusCloudIntegrationAccountServiceAccountAuthRequest, +) +from datadog_api_client.v2.model.nebius_cloud_integration_account_service_account_auth_type import ( + NebiusCloudIntegrationAccountServiceAccountAuthType, +) +from datadog_api_client.v2.model.nebius_cloud_integration_account_settings_request import ( + NebiusCloudIntegrationAccountSettingsRequest, +) +from datadog_api_client.v2.model.nebius_cloud_integration_dataflows_request import ( + NebiusCloudIntegrationDataflowsRequest, +) +from datadog_api_client.v2.model.nebius_cloud_logs_integration_dataflow_request import ( + NebiusCloudLogsIntegrationDataflowRequest, +) +from datadog_api_client.v2.model.nebius_cloud_logs_integration_dataflow_settings_request import ( + NebiusCloudLogsIntegrationDataflowSettingsRequest, +) +from datadog_api_client.v2.model.nebius_cloud_logs_integration_service_name import NebiusCloudLogsIntegrationServiceName +from datadog_api_client.v2.model.nebius_cloud_resources_integration_dataflow_request import ( + NebiusCloudResourcesIntegrationDataflowRequest, +) +from datadog_api_client.v2.model.nebius_cloud_service_quota_collection_integration_dataflow_request import ( + NebiusCloudServiceQuotaCollectionIntegrationDataflowRequest, +) + +body = NebiusCloudIntegrationAccountCreateRequest( + data=NebiusCloudIntegrationAccountCreateData( + attributes=NebiusCloudIntegrationAccountCreateAttributes( + authentication=NebiusCloudIntegrationAccountServiceAccountAuthRequest( + auth_type=NebiusCloudIntegrationAccountServiceAccountAuthType.NEBIUS_SERVICE_ACCOUNT, + private_key="-----BEGIN PRIVATE KEY-----\nMIIE...\n-----END PRIVATE KEY-----", + public_key_id="publickey-yyyyyyyy", + service_account_id="serviceaccount-xxxxxxxx", + static_api_key="eyJhbGciOi...static-api-key", + ), + dataflows=NebiusCloudIntegrationDataflowsRequest( + nebius_cloud_cost_collection=NebiusCloudCostCollectionIntegrationDataflowRequest( + enabled=True, + settings=NebiusCloudCostCollectionIntegrationDataflowSettingsRequest( + access_key_id="AKID0123456789ABCDEF", + access_key_secret="wJalrXUtnFEMIstaticaccesskey", + bucket_name="nebius-cost-exports", + bucket_prefix_path="cost-export/2026/", + bucket_region="eu-north1", + ), + ), + nebius_cloud_logs=NebiusCloudLogsIntegrationDataflowRequest( + enabled=True, + settings=NebiusCloudLogsIntegrationDataflowSettingsRequest( + enabled_services=[ + NebiusCloudLogsIntegrationServiceName.NEBIUS_CLOUD_COMPUTE, + NebiusCloudLogsIntegrationServiceName.NEBIUS_CLOUD_KUBERNETES, + NebiusCloudLogsIntegrationServiceName.DEFAULT, + ], + ), + ), + nebius_cloud_resources=NebiusCloudResourcesIntegrationDataflowRequest( + enabled=True, + ), + nebius_cloud_service_quota_collection=NebiusCloudServiceQuotaCollectionIntegrationDataflowRequest( + enabled=True, + ), + ), + name="nebius-prod", + settings=NebiusCloudIntegrationAccountSettingsRequest( + account_tags=[ + "env:prod", + "team:ai", + ], + metrics_config=NebiusCloudIntegrationAccountMetricsConfigRequest( + cluster_filters=[ + "cluster:prod-*", + "!cluster:dev", + ], + ), + tenant_id="tenant-12345678", + ), + ), + type=IntegrationAccountType.INTEGRATION_ACCOUNT, + ), +) + +configuration = Configuration() +configuration.access_token = environ["DD_BEARER_TOKEN"] +configuration.unstable_operations["create_nebius_cloud_integration_account"] = True +with ApiClient(configuration) as api_client: + api_instance = NebiusCloudIntegrationApi(api_client) + response = api_instance.create_nebius_cloud_integration_account(body=body) + + print(response) diff --git a/examples/v2/nebius-cloud-integration/DeleteNebiusCloudIntegrationAccount.py b/examples/v2/nebius-cloud-integration/DeleteNebiusCloudIntegrationAccount.py new file mode 100644 index 0000000000..f0e193610f --- /dev/null +++ b/examples/v2/nebius-cloud-integration/DeleteNebiusCloudIntegrationAccount.py @@ -0,0 +1,16 @@ +""" +Delete a Nebius Cloud integration account returns "OK" response +""" + +from os import environ +from datadog_api_client import ApiClient, Configuration +from datadog_api_client.v2.api.nebius_cloud_integration_api import NebiusCloudIntegrationApi + +configuration = Configuration() +configuration.access_token = environ["DD_BEARER_TOKEN"] +configuration.unstable_operations["delete_nebius_cloud_integration_account"] = True +with ApiClient(configuration) as api_client: + api_instance = NebiusCloudIntegrationApi(api_client) + api_instance.delete_nebius_cloud_integration_account( + account_id="account_id", + ) diff --git a/examples/v2/nebius-cloud-integration/GetNebiusCloudIntegrationAccount.py b/examples/v2/nebius-cloud-integration/GetNebiusCloudIntegrationAccount.py new file mode 100644 index 0000000000..be945858a8 --- /dev/null +++ b/examples/v2/nebius-cloud-integration/GetNebiusCloudIntegrationAccount.py @@ -0,0 +1,18 @@ +""" +Get a Nebius Cloud integration account returns "OK" response +""" + +from os import environ +from datadog_api_client import ApiClient, Configuration +from datadog_api_client.v2.api.nebius_cloud_integration_api import NebiusCloudIntegrationApi + +configuration = Configuration() +configuration.access_token = environ["DD_BEARER_TOKEN"] +configuration.unstable_operations["get_nebius_cloud_integration_account"] = True +with ApiClient(configuration) as api_client: + api_instance = NebiusCloudIntegrationApi(api_client) + response = api_instance.get_nebius_cloud_integration_account( + account_id="account_id", + ) + + print(response) diff --git a/examples/v2/nebius-cloud-integration/ListNebiusCloudIntegrationAccounts.py b/examples/v2/nebius-cloud-integration/ListNebiusCloudIntegrationAccounts.py new file mode 100644 index 0000000000..fa0ae39ad0 --- /dev/null +++ b/examples/v2/nebius-cloud-integration/ListNebiusCloudIntegrationAccounts.py @@ -0,0 +1,16 @@ +""" +List Nebius Cloud integration accounts returns "OK" response +""" + +from os import environ +from datadog_api_client import ApiClient, Configuration +from datadog_api_client.v2.api.nebius_cloud_integration_api import NebiusCloudIntegrationApi + +configuration = Configuration() +configuration.access_token = environ["DD_BEARER_TOKEN"] +configuration.unstable_operations["list_nebius_cloud_integration_accounts"] = True +with ApiClient(configuration) as api_client: + api_instance = NebiusCloudIntegrationApi(api_client) + response = api_instance.list_nebius_cloud_integration_accounts() + + print(response) diff --git a/examples/v2/nebius-cloud-integration/UpdateNebiusCloudIntegrationAccount.py b/examples/v2/nebius-cloud-integration/UpdateNebiusCloudIntegrationAccount.py new file mode 100644 index 0000000000..f1ac0e0625 --- /dev/null +++ b/examples/v2/nebius-cloud-integration/UpdateNebiusCloudIntegrationAccount.py @@ -0,0 +1,118 @@ +""" +Update a Nebius Cloud integration account returns "OK" response +""" + +from os import environ +from datadog_api_client import ApiClient, Configuration +from datadog_api_client.v2.api.nebius_cloud_integration_api import NebiusCloudIntegrationApi +from datadog_api_client.v2.model.integration_account_type import IntegrationAccountType +from datadog_api_client.v2.model.nebius_cloud_cost_collection_integration_dataflow_request import ( + NebiusCloudCostCollectionIntegrationDataflowRequest, +) +from datadog_api_client.v2.model.nebius_cloud_cost_collection_integration_dataflow_settings_request import ( + NebiusCloudCostCollectionIntegrationDataflowSettingsRequest, +) +from datadog_api_client.v2.model.nebius_cloud_integration_account_metrics_config_update import ( + NebiusCloudIntegrationAccountMetricsConfigUpdate, +) +from datadog_api_client.v2.model.nebius_cloud_integration_account_service_account_auth_type import ( + NebiusCloudIntegrationAccountServiceAccountAuthType, +) +from datadog_api_client.v2.model.nebius_cloud_integration_account_service_account_auth_update import ( + NebiusCloudIntegrationAccountServiceAccountAuthUpdate, +) +from datadog_api_client.v2.model.nebius_cloud_integration_account_settings_update import ( + NebiusCloudIntegrationAccountSettingsUpdate, +) +from datadog_api_client.v2.model.nebius_cloud_integration_account_update_attributes import ( + NebiusCloudIntegrationAccountUpdateAttributes, +) +from datadog_api_client.v2.model.nebius_cloud_integration_account_update_data import ( + NebiusCloudIntegrationAccountUpdateData, +) +from datadog_api_client.v2.model.nebius_cloud_integration_account_update_request import ( + NebiusCloudIntegrationAccountUpdateRequest, +) +from datadog_api_client.v2.model.nebius_cloud_integration_dataflows_request import ( + NebiusCloudIntegrationDataflowsRequest, +) +from datadog_api_client.v2.model.nebius_cloud_logs_integration_dataflow_request import ( + NebiusCloudLogsIntegrationDataflowRequest, +) +from datadog_api_client.v2.model.nebius_cloud_logs_integration_dataflow_settings_request import ( + NebiusCloudLogsIntegrationDataflowSettingsRequest, +) +from datadog_api_client.v2.model.nebius_cloud_logs_integration_service_name import NebiusCloudLogsIntegrationServiceName +from datadog_api_client.v2.model.nebius_cloud_resources_integration_dataflow_request import ( + NebiusCloudResourcesIntegrationDataflowRequest, +) +from datadog_api_client.v2.model.nebius_cloud_service_quota_collection_integration_dataflow_request import ( + NebiusCloudServiceQuotaCollectionIntegrationDataflowRequest, +) + +body = NebiusCloudIntegrationAccountUpdateRequest( + data=NebiusCloudIntegrationAccountUpdateData( + attributes=NebiusCloudIntegrationAccountUpdateAttributes( + authentication=NebiusCloudIntegrationAccountServiceAccountAuthUpdate( + auth_type=NebiusCloudIntegrationAccountServiceAccountAuthType.NEBIUS_SERVICE_ACCOUNT, + private_key="-----BEGIN PRIVATE KEY-----\nMIIE...\n-----END PRIVATE KEY-----", + public_key_id="publickey-yyyyyyyy", + service_account_id="serviceaccount-xxxxxxxx", + static_api_key="eyJhbGciOi...static-api-key", + ), + dataflows=NebiusCloudIntegrationDataflowsRequest( + nebius_cloud_cost_collection=NebiusCloudCostCollectionIntegrationDataflowRequest( + enabled=True, + settings=NebiusCloudCostCollectionIntegrationDataflowSettingsRequest( + access_key_id="AKID0123456789ABCDEF", + access_key_secret="wJalrXUtnFEMIstaticaccesskey", + bucket_name="nebius-cost-exports", + bucket_prefix_path="cost-export/2026/", + bucket_region="eu-north1", + ), + ), + nebius_cloud_logs=NebiusCloudLogsIntegrationDataflowRequest( + enabled=True, + settings=NebiusCloudLogsIntegrationDataflowSettingsRequest( + enabled_services=[ + NebiusCloudLogsIntegrationServiceName.NEBIUS_CLOUD_COMPUTE, + NebiusCloudLogsIntegrationServiceName.NEBIUS_CLOUD_KUBERNETES, + NebiusCloudLogsIntegrationServiceName.DEFAULT, + ], + ), + ), + nebius_cloud_resources=NebiusCloudResourcesIntegrationDataflowRequest( + enabled=True, + ), + nebius_cloud_service_quota_collection=NebiusCloudServiceQuotaCollectionIntegrationDataflowRequest( + enabled=True, + ), + ), + name="nebius-prod", + settings=NebiusCloudIntegrationAccountSettingsUpdate( + account_tags=[ + "env:prod", + "team:ai", + ], + metrics_config=NebiusCloudIntegrationAccountMetricsConfigUpdate( + cluster_filters=[ + "cluster:prod-*", + "!cluster:dev", + ], + ), + tenant_id="tenant-12345678", + ), + ), + id="e5f6a7b8-c9d0-4e1f-8a2b-3c4d5e6f7081", + type=IntegrationAccountType.INTEGRATION_ACCOUNT, + ), +) + +configuration = Configuration() +configuration.access_token = environ["DD_BEARER_TOKEN"] +configuration.unstable_operations["update_nebius_cloud_integration_account"] = True +with ApiClient(configuration) as api_client: + api_instance = NebiusCloudIntegrationApi(api_client) + response = api_instance.update_nebius_cloud_integration_account(account_id="account_id", body=body) + + print(response) diff --git a/src/datadog_api_client/configuration.py b/src/datadog_api_client/configuration.py index 7d8f36b32b..b0179bd66c 100644 --- a/src/datadog_api_client/configuration.py +++ b/src/datadog_api_client/configuration.py @@ -743,6 +743,11 @@ def __init__( "v2.get_elastic_cloud_integration_account": False, "v2.list_elastic_cloud_integration_accounts": False, "v2.update_elastic_cloud_integration_account": False, + "v2.create_nebius_cloud_integration_account": False, + "v2.delete_nebius_cloud_integration_account": False, + "v2.get_nebius_cloud_integration_account": False, + "v2.list_nebius_cloud_integration_accounts": False, + "v2.update_nebius_cloud_integration_account": False, "v2.create_snowflake_integration_account": False, "v2.delete_snowflake_integration_account": False, "v2.get_snowflake_integration_account": False, diff --git a/src/datadog_api_client/v2/api/nebius_cloud_integration_api.py b/src/datadog_api_client/v2/api/nebius_cloud_integration_api.py new file mode 100644 index 0000000000..0b7cd0542c --- /dev/null +++ b/src/datadog_api_client/v2/api/nebius_cloud_integration_api.py @@ -0,0 +1,224 @@ +# 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. +from __future__ import annotations + +from typing import Any, Dict + +from datadog_api_client.api_client import ApiClient, Endpoint as _Endpoint +from datadog_api_client.configuration import Configuration +from datadog_api_client.v2.model.nebius_cloud_integration_accounts_response import ( + NebiusCloudIntegrationAccountsResponse, +) +from datadog_api_client.v2.model.nebius_cloud_integration_account_response import NebiusCloudIntegrationAccountResponse +from datadog_api_client.v2.model.nebius_cloud_integration_account_create_request import ( + NebiusCloudIntegrationAccountCreateRequest, +) +from datadog_api_client.v2.model.nebius_cloud_integration_account_update_request import ( + NebiusCloudIntegrationAccountUpdateRequest, +) + + +class NebiusCloudIntegrationApi: + """ + Manage your Datadog Nebius Cloud integration accounts and account resources + directly through the Datadog API. See the + `Nebius Cloud integration page `_ for + more information. + """ + + def __init__(self, api_client=None): + if api_client is None: + api_client = ApiClient(Configuration()) + self.api_client = api_client + + self._create_nebius_cloud_integration_account_endpoint = _Endpoint( + settings={ + "response_type": (NebiusCloudIntegrationAccountResponse,), + "auth": ["apiKeyAuth", "appKeyAuth", "AuthZ"], + "endpoint_path": "/api/v2/integration-interfaces/nebius-cloud/accounts", + "operation_id": "create_nebius_cloud_integration_account", + "http_method": "POST", + "version": "v2", + }, + params_map={ + "body": { + "required": True, + "openapi_types": (NebiusCloudIntegrationAccountCreateRequest,), + "location": "body", + }, + }, + headers_map={"accept": ["application/json"], "content_type": ["application/json"]}, + api_client=api_client, + ) + + self._delete_nebius_cloud_integration_account_endpoint = _Endpoint( + settings={ + "response_type": None, + "auth": ["apiKeyAuth", "appKeyAuth", "AuthZ"], + "endpoint_path": "/api/v2/integration-interfaces/nebius-cloud/accounts/{account_id}", + "operation_id": "delete_nebius_cloud_integration_account", + "http_method": "DELETE", + "version": "v2", + }, + params_map={ + "account_id": { + "required": True, + "openapi_types": (str,), + "attribute": "account_id", + "location": "path", + }, + }, + headers_map={ + "accept": ["*/*"], + }, + api_client=api_client, + ) + + self._get_nebius_cloud_integration_account_endpoint = _Endpoint( + settings={ + "response_type": (NebiusCloudIntegrationAccountResponse,), + "auth": ["apiKeyAuth", "appKeyAuth", "AuthZ"], + "endpoint_path": "/api/v2/integration-interfaces/nebius-cloud/accounts/{account_id}", + "operation_id": "get_nebius_cloud_integration_account", + "http_method": "GET", + "version": "v2", + }, + params_map={ + "account_id": { + "required": True, + "openapi_types": (str,), + "attribute": "account_id", + "location": "path", + }, + }, + headers_map={ + "accept": ["application/json"], + }, + api_client=api_client, + ) + + self._list_nebius_cloud_integration_accounts_endpoint = _Endpoint( + settings={ + "response_type": (NebiusCloudIntegrationAccountsResponse,), + "auth": ["apiKeyAuth", "appKeyAuth", "AuthZ"], + "endpoint_path": "/api/v2/integration-interfaces/nebius-cloud/accounts", + "operation_id": "list_nebius_cloud_integration_accounts", + "http_method": "GET", + "version": "v2", + }, + params_map={}, + headers_map={ + "accept": ["application/json"], + }, + api_client=api_client, + ) + + self._update_nebius_cloud_integration_account_endpoint = _Endpoint( + settings={ + "response_type": (NebiusCloudIntegrationAccountResponse,), + "auth": ["apiKeyAuth", "appKeyAuth", "AuthZ"], + "endpoint_path": "/api/v2/integration-interfaces/nebius-cloud/accounts/{account_id}", + "operation_id": "update_nebius_cloud_integration_account", + "http_method": "PATCH", + "version": "v2", + }, + params_map={ + "account_id": { + "required": True, + "openapi_types": (str,), + "attribute": "account_id", + "location": "path", + }, + "body": { + "required": True, + "openapi_types": (NebiusCloudIntegrationAccountUpdateRequest,), + "location": "body", + }, + }, + headers_map={"accept": ["application/json"], "content_type": ["application/json"]}, + api_client=api_client, + ) + + def create_nebius_cloud_integration_account( + self, + body: NebiusCloudIntegrationAccountCreateRequest, + ) -> NebiusCloudIntegrationAccountResponse: + """Create a Nebius Cloud integration account. + + Create a Nebius Cloud integration account. + + :type body: NebiusCloudIntegrationAccountCreateRequest + :rtype: NebiusCloudIntegrationAccountResponse + """ + kwargs: Dict[str, Any] = {} + kwargs["body"] = body + + return self._create_nebius_cloud_integration_account_endpoint.call_with_http_info(**kwargs) + + def delete_nebius_cloud_integration_account( + self, + account_id: str, + ) -> None: + """Delete a Nebius Cloud integration account. + + Delete a Nebius Cloud integration account. + + :param account_id: Unique identifier of the integration account. + :type account_id: str + :rtype: None + """ + kwargs: Dict[str, Any] = {} + kwargs["account_id"] = account_id + + return self._delete_nebius_cloud_integration_account_endpoint.call_with_http_info(**kwargs) + + def get_nebius_cloud_integration_account( + self, + account_id: str, + ) -> NebiusCloudIntegrationAccountResponse: + """Get a Nebius Cloud integration account. + + Get a Nebius Cloud integration account. + + :param account_id: Unique identifier of the integration account. + :type account_id: str + :rtype: NebiusCloudIntegrationAccountResponse + """ + kwargs: Dict[str, Any] = {} + kwargs["account_id"] = account_id + + return self._get_nebius_cloud_integration_account_endpoint.call_with_http_info(**kwargs) + + def list_nebius_cloud_integration_accounts( + self, + ) -> NebiusCloudIntegrationAccountsResponse: + """List Nebius Cloud integration accounts. + + List Nebius Cloud integration accounts. + + :rtype: NebiusCloudIntegrationAccountsResponse + """ + kwargs: Dict[str, Any] = {} + return self._list_nebius_cloud_integration_accounts_endpoint.call_with_http_info(**kwargs) + + def update_nebius_cloud_integration_account( + self, + account_id: str, + body: NebiusCloudIntegrationAccountUpdateRequest, + ) -> NebiusCloudIntegrationAccountResponse: + """Update a Nebius Cloud integration account. + + Update a Nebius Cloud integration account. Only the fields provided are changed. + + :param account_id: Unique identifier of the integration account. + :type account_id: str + :type body: NebiusCloudIntegrationAccountUpdateRequest + :rtype: NebiusCloudIntegrationAccountResponse + """ + kwargs: Dict[str, Any] = {} + kwargs["account_id"] = account_id + + kwargs["body"] = body + + return self._update_nebius_cloud_integration_account_endpoint.call_with_http_info(**kwargs) diff --git a/src/datadog_api_client/v2/apis/__init__.py b/src/datadog_api_client/v2/apis/__init__.py index e9da816e59..28c6499c2d 100644 --- a/src/datadog_api_client/v2/apis/__init__.py +++ b/src/datadog_api_client/v2/apis/__init__.py @@ -87,6 +87,7 @@ from datadog_api_client.v2.api.microsoft_teams_integration_api import MicrosoftTeamsIntegrationApi from datadog_api_client.v2.api.model_lab_api_api import ModelLabAPIApi from datadog_api_client.v2.api.monitors_api import MonitorsApi +from datadog_api_client.v2.api.nebius_cloud_integration_api import NebiusCloudIntegrationApi from datadog_api_client.v2.api.network_device_monitoring_api import NetworkDeviceMonitoringApi from datadog_api_client.v2.api.o_auth2_client_public_api import OAuth2ClientPublicApi from datadog_api_client.v2.api.oci_integration_api import OCIIntegrationApi @@ -249,6 +250,7 @@ "MicrosoftTeamsIntegrationApi", "ModelLabAPIApi", "MonitorsApi", + "NebiusCloudIntegrationApi", "NetworkDeviceMonitoringApi", "OAuth2ClientPublicApi", "OCIIntegrationApi", diff --git a/src/datadog_api_client/v2/model/nebius_cloud_cost_collection_integration_dataflow_request.py b/src/datadog_api_client/v2/model/nebius_cloud_cost_collection_integration_dataflow_request.py new file mode 100644 index 0000000000..89e5320408 --- /dev/null +++ b/src/datadog_api_client/v2/model/nebius_cloud_cost_collection_integration_dataflow_request.py @@ -0,0 +1,62 @@ +# 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. +from __future__ import annotations + +from typing import Union, TYPE_CHECKING + +from datadog_api_client.model_utils import ( + ModelNormal, + cached_property, + unset, + UnsetType, +) + + +if TYPE_CHECKING: + from datadog_api_client.v2.model.nebius_cloud_cost_collection_integration_dataflow_settings_request import ( + NebiusCloudCostCollectionIntegrationDataflowSettingsRequest, + ) + + +class NebiusCloudCostCollectionIntegrationDataflowRequest(ModelNormal): + @cached_property + def additional_properties_type(_): + return None + + @cached_property + def openapi_types(_): + from datadog_api_client.v2.model.nebius_cloud_cost_collection_integration_dataflow_settings_request import ( + NebiusCloudCostCollectionIntegrationDataflowSettingsRequest, + ) + + return { + "enabled": (bool,), + "settings": (NebiusCloudCostCollectionIntegrationDataflowSettingsRequest,), + } + + attribute_map = { + "enabled": "enabled", + "settings": "settings", + } + + def __init__( + self_, + enabled: Union[bool, UnsetType] = unset, + settings: Union[NebiusCloudCostCollectionIntegrationDataflowSettingsRequest, UnsetType] = unset, + **kwargs, + ): + """ + Cloud cost data read from a Nebius Object Storage bucket export and used by `Cloud Cost Management `_. Enabling it requires a bucket holding your cost export and a Nebius access key pair that can read it; a request that enables this dataflow without them is rejected with a ``422`` response. + + :param enabled: Whether Datadog collects this data. Defaults to ``false`` ; set to ``true`` to start collection. + :type enabled: bool, optional + + :param settings: Settings of the Cloud Cost Management dataflow. Only the fields provided are changed. + :type settings: NebiusCloudCostCollectionIntegrationDataflowSettingsRequest, optional + """ + if enabled is not unset: + kwargs["enabled"] = enabled + if settings is not unset: + kwargs["settings"] = settings + super().__init__(kwargs) diff --git a/src/datadog_api_client/v2/model/nebius_cloud_cost_collection_integration_dataflow_response.py b/src/datadog_api_client/v2/model/nebius_cloud_cost_collection_integration_dataflow_response.py new file mode 100644 index 0000000000..5561a0c2d2 --- /dev/null +++ b/src/datadog_api_client/v2/model/nebius_cloud_cost_collection_integration_dataflow_response.py @@ -0,0 +1,58 @@ +# 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. +from __future__ import annotations + +from typing import Union, TYPE_CHECKING + +from datadog_api_client.model_utils import ( + ModelNormal, + cached_property, + unset, + UnsetType, +) + + +if TYPE_CHECKING: + from datadog_api_client.v2.model.nebius_cloud_cost_collection_integration_dataflow_settings_response import ( + NebiusCloudCostCollectionIntegrationDataflowSettingsResponse, + ) + + +class NebiusCloudCostCollectionIntegrationDataflowResponse(ModelNormal): + @cached_property + def openapi_types(_): + from datadog_api_client.v2.model.nebius_cloud_cost_collection_integration_dataflow_settings_response import ( + NebiusCloudCostCollectionIntegrationDataflowSettingsResponse, + ) + + return { + "enabled": (bool,), + "settings": (NebiusCloudCostCollectionIntegrationDataflowSettingsResponse,), + } + + attribute_map = { + "enabled": "enabled", + "settings": "settings", + } + + def __init__( + self_, + enabled: Union[bool, UnsetType] = unset, + settings: Union[NebiusCloudCostCollectionIntegrationDataflowSettingsResponse, UnsetType] = unset, + **kwargs, + ): + """ + Cloud cost data read from a Nebius Object Storage bucket export and used by `Cloud Cost Management `_. Requires a bucket holding your cost export and a Nebius access key pair that can read it; without both this dataflow collects no data. + + :param enabled: Whether Datadog collects this data. Absent when the dataflow has never been configured. + :type enabled: bool, optional + + :param settings: Settings of the Cloud Cost Management dataflow. + :type settings: NebiusCloudCostCollectionIntegrationDataflowSettingsResponse, optional + """ + if enabled is not unset: + kwargs["enabled"] = enabled + if settings is not unset: + kwargs["settings"] = settings + super().__init__(kwargs) diff --git a/src/datadog_api_client/v2/model/nebius_cloud_cost_collection_integration_dataflow_settings_request.py b/src/datadog_api_client/v2/model/nebius_cloud_cost_collection_integration_dataflow_settings_request.py new file mode 100644 index 0000000000..d7c7f52e2b --- /dev/null +++ b/src/datadog_api_client/v2/model/nebius_cloud_cost_collection_integration_dataflow_settings_request.py @@ -0,0 +1,76 @@ +# 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. +from __future__ import annotations + +from typing import Union + +from datadog_api_client.model_utils import ( + ModelNormal, + cached_property, + unset, + UnsetType, +) + + +class NebiusCloudCostCollectionIntegrationDataflowSettingsRequest(ModelNormal): + @cached_property + def additional_properties_type(_): + return None + + @cached_property + def openapi_types(_): + return { + "access_key_id": (str,), + "access_key_secret": (str,), + "bucket_name": (str,), + "bucket_prefix_path": (str,), + "bucket_region": (str,), + } + + attribute_map = { + "access_key_id": "access_key_id", + "access_key_secret": "access_key_secret", + "bucket_name": "bucket_name", + "bucket_prefix_path": "bucket_prefix_path", + "bucket_region": "bucket_region", + } + + def __init__( + self_, + access_key_id: Union[str, UnsetType] = unset, + access_key_secret: Union[str, UnsetType] = unset, + bucket_name: Union[str, UnsetType] = unset, + bucket_prefix_path: Union[str, UnsetType] = unset, + bucket_region: Union[str, UnsetType] = unset, + **kwargs, + ): + """ + Settings of the Cloud Cost Management dataflow. Only the fields provided are changed. + + :param access_key_id: ID of the Nebius Object Storage (S3-compatible) access key used to read the cost export bucket. Required when this dataflow is enabled. + :type access_key_id: str, optional + + :param access_key_secret: Secret access key for the access key ID. Required when this dataflow is enabled. Omit it on update to keep the stored one; an empty string is rejected with a ``422`` response. + :type access_key_secret: str, optional + + :param bucket_name: Name of the Nebius Object Storage bucket holding your cost export. Required when this dataflow is enabled; a request that enables it without the bucket fields and access keys is rejected with a ``422`` response. + :type bucket_name: str, optional + + :param bucket_prefix_path: Prefix path within the bucket that locates the cost export, combining the export name and path prefix. + :type bucket_prefix_path: str, optional + + :param bucket_region: Region of the Nebius Object Storage bucket, such as ``eu-north1``. Required when this dataflow is enabled. + :type bucket_region: str, optional + """ + if access_key_id is not unset: + kwargs["access_key_id"] = access_key_id + if access_key_secret is not unset: + kwargs["access_key_secret"] = access_key_secret + if bucket_name is not unset: + kwargs["bucket_name"] = bucket_name + if bucket_prefix_path is not unset: + kwargs["bucket_prefix_path"] = bucket_prefix_path + if bucket_region is not unset: + kwargs["bucket_region"] = bucket_region + super().__init__(kwargs) diff --git a/src/datadog_api_client/v2/model/nebius_cloud_cost_collection_integration_dataflow_settings_response.py b/src/datadog_api_client/v2/model/nebius_cloud_cost_collection_integration_dataflow_settings_response.py new file mode 100644 index 0000000000..1968673195 --- /dev/null +++ b/src/datadog_api_client/v2/model/nebius_cloud_cost_collection_integration_dataflow_settings_response.py @@ -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. +from __future__ import annotations + +from typing import Union + +from datadog_api_client.model_utils import ( + ModelNormal, + cached_property, + unset, + UnsetType, +) + + +class NebiusCloudCostCollectionIntegrationDataflowSettingsResponse(ModelNormal): + @cached_property + def openapi_types(_): + return { + "access_key_id": (str,), + "bucket_name": (str,), + "bucket_prefix_path": (str,), + "bucket_region": (str,), + } + + attribute_map = { + "access_key_id": "access_key_id", + "bucket_name": "bucket_name", + "bucket_prefix_path": "bucket_prefix_path", + "bucket_region": "bucket_region", + } + + def __init__( + self_, + access_key_id: Union[str, UnsetType] = unset, + bucket_name: Union[str, UnsetType] = unset, + bucket_prefix_path: Union[str, UnsetType] = unset, + bucket_region: Union[str, UnsetType] = unset, + **kwargs, + ): + """ + Settings of the Cloud Cost Management dataflow. + + :param access_key_id: ID of the Nebius Object Storage access key used to read the cost export bucket. + :type access_key_id: str, optional + + :param bucket_name: Name of the Nebius Object Storage bucket holding the cost export. + :type bucket_name: str, optional + + :param bucket_prefix_path: Prefix path within the bucket that locates the cost export. + :type bucket_prefix_path: str, optional + + :param bucket_region: Region of the Nebius Object Storage bucket, such as ``eu-north1``. + :type bucket_region: str, optional + """ + if access_key_id is not unset: + kwargs["access_key_id"] = access_key_id + if bucket_name is not unset: + kwargs["bucket_name"] = bucket_name + if bucket_prefix_path is not unset: + kwargs["bucket_prefix_path"] = bucket_prefix_path + if bucket_region is not unset: + kwargs["bucket_region"] = bucket_region + super().__init__(kwargs) diff --git a/src/datadog_api_client/v2/model/nebius_cloud_integration_account_authentication_request.py b/src/datadog_api_client/v2/model/nebius_cloud_integration_account_authentication_request.py new file mode 100644 index 0000000000..331ce56a16 --- /dev/null +++ b/src/datadog_api_client/v2/model/nebius_cloud_integration_account_authentication_request.py @@ -0,0 +1,52 @@ +# 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. +from __future__ import annotations + + +from datadog_api_client.model_utils import ( + ModelComposed, + cached_property, +) + + +class NebiusCloudIntegrationAccountAuthenticationRequest(ModelComposed): + def __init__(self, **kwargs): + """ + Authentication for creating the Nebius Cloud integration account. Exactly one method is set. + + :param auth_type: The authentication method type. + :type auth_type: NebiusCloudIntegrationAccountServiceAccountAuthType + + :param private_key: The private key of the authorized key pair, in PEM format. Required when log, resource, or service-quota collection is enabled; a request that enables one of them without it is rejected with a `422` response. + :type private_key: str, optional + + :param public_key_id: ID of the public key half of the authorized key pair, such as `publickey-xxxxxxxx`. Required when log, resource, or service-quota collection is enabled; a request that enables one of them without it is rejected with a `422` response. + :type public_key_id: str, optional + + :param service_account_id: Non-secret ID of the Nebius service account the account authenticates as. + :type service_account_id: str + + :param static_api_key: Nebius static API key with the OBSERVABILITY scope, used to query logs. Required when log, resource, or service-quota collection is enabled; a request that enables one of them without it is rejected with a `422` response. + :type static_api_key: str, optional + """ + super().__init__(kwargs) + + @cached_property + def _composed_schemas(_): + # we need this here to make our import statements work + # we must store _composed_schemas in here so the code is only run + # when we invoke this method. If we kept this at the class + # level we would get an error because the class level + # code would be run when this module is imported, and these composed + # classes don't exist yet because their module has not finished + # loading + from datadog_api_client.v2.model.nebius_cloud_integration_account_service_account_auth_request import ( + NebiusCloudIntegrationAccountServiceAccountAuthRequest, + ) + + return { + "oneOf": [ + NebiusCloudIntegrationAccountServiceAccountAuthRequest, + ], + } diff --git a/src/datadog_api_client/v2/model/nebius_cloud_integration_account_authentication_response.py b/src/datadog_api_client/v2/model/nebius_cloud_integration_account_authentication_response.py new file mode 100644 index 0000000000..3adbbe6162 --- /dev/null +++ b/src/datadog_api_client/v2/model/nebius_cloud_integration_account_authentication_response.py @@ -0,0 +1,46 @@ +# 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. +from __future__ import annotations + + +from datadog_api_client.model_utils import ( + ModelComposed, + cached_property, +) + + +class NebiusCloudIntegrationAccountAuthenticationResponse(ModelComposed): + def __init__(self, **kwargs): + """ + Authentication configured on the Nebius Cloud integration account. + + :param auth_type: The authentication method type. + :type auth_type: NebiusCloudIntegrationAccountServiceAccountAuthType + + :param public_key_id: ID of the public key half of the authorized key pair. Omitted when unset. + :type public_key_id: str, optional + + :param service_account_id: ID of the Nebius service account the account authenticates as. + :type service_account_id: str + """ + super().__init__(kwargs) + + @cached_property + def _composed_schemas(_): + # we need this here to make our import statements work + # we must store _composed_schemas in here so the code is only run + # when we invoke this method. If we kept this at the class + # level we would get an error because the class level + # code would be run when this module is imported, and these composed + # classes don't exist yet because their module has not finished + # loading + from datadog_api_client.v2.model.nebius_cloud_integration_account_service_account_auth_response import ( + NebiusCloudIntegrationAccountServiceAccountAuthResponse, + ) + + return { + "oneOf": [ + NebiusCloudIntegrationAccountServiceAccountAuthResponse, + ], + } diff --git a/src/datadog_api_client/v2/model/nebius_cloud_integration_account_authentication_update.py b/src/datadog_api_client/v2/model/nebius_cloud_integration_account_authentication_update.py new file mode 100644 index 0000000000..21095c7814 --- /dev/null +++ b/src/datadog_api_client/v2/model/nebius_cloud_integration_account_authentication_update.py @@ -0,0 +1,52 @@ +# 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. +from __future__ import annotations + + +from datadog_api_client.model_utils import ( + ModelComposed, + cached_property, +) + + +class NebiusCloudIntegrationAccountAuthenticationUpdate(ModelComposed): + def __init__(self, **kwargs): + """ + Authentication for updating the Nebius Cloud integration account. Exactly one method is set. + + :param auth_type: The authentication method type. + :type auth_type: NebiusCloudIntegrationAccountServiceAccountAuthType + + :param private_key: The private key of the authorized key pair, in PEM format. Omit it to keep the stored one; an empty string is rejected with a `422` response. + :type private_key: str, optional + + :param public_key_id: ID of the public key half of the authorized key pair. Omit it to keep the stored public key ID, send `null` or an empty string to remove it, or send a value to replace it. Removing it is rejected with a `422` response while log, resource, or service-quota collection is enabled. + :type public_key_id: str, none_type, optional + + :param service_account_id: Non-secret ID of the Nebius service account the account authenticates as. It cannot be cleared; sending `null` or an empty string is rejected with a `422` response. + :type service_account_id: str, optional + + :param static_api_key: Nebius static API key with the OBSERVABILITY scope. Omit it to keep the stored one; an empty string is rejected with a `422` response. + :type static_api_key: str, optional + """ + super().__init__(kwargs) + + @cached_property + def _composed_schemas(_): + # we need this here to make our import statements work + # we must store _composed_schemas in here so the code is only run + # when we invoke this method. If we kept this at the class + # level we would get an error because the class level + # code would be run when this module is imported, and these composed + # classes don't exist yet because their module has not finished + # loading + from datadog_api_client.v2.model.nebius_cloud_integration_account_service_account_auth_update import ( + NebiusCloudIntegrationAccountServiceAccountAuthUpdate, + ) + + return { + "oneOf": [ + NebiusCloudIntegrationAccountServiceAccountAuthUpdate, + ], + } diff --git a/src/datadog_api_client/v2/model/nebius_cloud_integration_account_create_attributes.py b/src/datadog_api_client/v2/model/nebius_cloud_integration_account_create_attributes.py new file mode 100644 index 0000000000..2273fcf695 --- /dev/null +++ b/src/datadog_api_client/v2/model/nebius_cloud_integration_account_create_attributes.py @@ -0,0 +1,95 @@ +# 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. +from __future__ import annotations + +from typing import Union, TYPE_CHECKING + +from datadog_api_client.model_utils import ( + ModelNormal, + cached_property, + unset, + UnsetType, +) + + +if TYPE_CHECKING: + from datadog_api_client.v2.model.nebius_cloud_integration_account_authentication_request import ( + NebiusCloudIntegrationAccountAuthenticationRequest, + ) + from datadog_api_client.v2.model.nebius_cloud_integration_dataflows_request import ( + NebiusCloudIntegrationDataflowsRequest, + ) + from datadog_api_client.v2.model.nebius_cloud_integration_account_settings_request import ( + NebiusCloudIntegrationAccountSettingsRequest, + ) + from datadog_api_client.v2.model.nebius_cloud_integration_account_service_account_auth_request import ( + NebiusCloudIntegrationAccountServiceAccountAuthRequest, + ) + + +class NebiusCloudIntegrationAccountCreateAttributes(ModelNormal): + validations = { + "name": { + "max_length": 255, + }, + } + + @cached_property + def openapi_types(_): + from datadog_api_client.v2.model.nebius_cloud_integration_account_authentication_request import ( + NebiusCloudIntegrationAccountAuthenticationRequest, + ) + from datadog_api_client.v2.model.nebius_cloud_integration_dataflows_request import ( + NebiusCloudIntegrationDataflowsRequest, + ) + from datadog_api_client.v2.model.nebius_cloud_integration_account_settings_request import ( + NebiusCloudIntegrationAccountSettingsRequest, + ) + + return { + "authentication": (NebiusCloudIntegrationAccountAuthenticationRequest,), + "dataflows": (NebiusCloudIntegrationDataflowsRequest,), + "name": (str,), + "settings": (NebiusCloudIntegrationAccountSettingsRequest,), + } + + attribute_map = { + "authentication": "authentication", + "dataflows": "dataflows", + "name": "name", + "settings": "settings", + } + + def __init__( + self_, + authentication: Union[ + NebiusCloudIntegrationAccountAuthenticationRequest, NebiusCloudIntegrationAccountServiceAccountAuthRequest + ], + name: str, + settings: NebiusCloudIntegrationAccountSettingsRequest, + dataflows: Union[NebiusCloudIntegrationDataflowsRequest, UnsetType] = unset, + **kwargs, + ): + """ + Writable attributes used to create a Nebius Cloud integration account. + + :param authentication: Authentication for creating the Nebius Cloud integration account. Exactly one method is set. + :type authentication: NebiusCloudIntegrationAccountAuthenticationRequest + + :param dataflows: Data Datadog collects from Nebius Cloud, keyed by dataflow id. Each dataflow turns on a distinct kind of collection: set ``enabled`` to stop or start it, and use ``settings`` to configure what it collects. Defaults listed on each dataflow apply when the account is created; on update, omitted fields keep their current values. Every dataflow except ``nebius-cloud-cost-collection`` runs as the service account in ``authentication`` , using its authorized key pair and the static API key; enabling one of them without those keys is rejected with a ``422`` response, and one enabled with keys that later expire is stored but collects no data. + :type dataflows: NebiusCloudIntegrationDataflowsRequest, optional + + :param name: Human-readable name of the Nebius Cloud integration account. + :type name: str + + :param settings: Settings for creating the Nebius Cloud integration account. + :type settings: NebiusCloudIntegrationAccountSettingsRequest + """ + if dataflows is not unset: + kwargs["dataflows"] = dataflows + super().__init__(kwargs) + + self_.authentication = authentication + self_.name = name + self_.settings = settings diff --git a/src/datadog_api_client/v2/model/nebius_cloud_integration_account_create_data.py b/src/datadog_api_client/v2/model/nebius_cloud_integration_account_create_data.py new file mode 100644 index 0000000000..831fcb6d8f --- /dev/null +++ b/src/datadog_api_client/v2/model/nebius_cloud_integration_account_create_data.py @@ -0,0 +1,54 @@ +# 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. +from __future__ import annotations + +from typing import TYPE_CHECKING + +from datadog_api_client.model_utils import ( + ModelNormal, + cached_property, +) + + +if TYPE_CHECKING: + from datadog_api_client.v2.model.nebius_cloud_integration_account_create_attributes import ( + NebiusCloudIntegrationAccountCreateAttributes, + ) + from datadog_api_client.v2.model.integration_account_type import IntegrationAccountType + + +class NebiusCloudIntegrationAccountCreateData(ModelNormal): + @cached_property + def openapi_types(_): + from datadog_api_client.v2.model.nebius_cloud_integration_account_create_attributes import ( + NebiusCloudIntegrationAccountCreateAttributes, + ) + from datadog_api_client.v2.model.integration_account_type import IntegrationAccountType + + return { + "attributes": (NebiusCloudIntegrationAccountCreateAttributes,), + "type": (IntegrationAccountType,), + } + + attribute_map = { + "attributes": "attributes", + "type": "type", + } + + def __init__( + self_, attributes: NebiusCloudIntegrationAccountCreateAttributes, type: IntegrationAccountType, **kwargs + ): + """ + Data envelope for creating a Nebius Cloud integration account. + + :param attributes: Writable attributes used to create a Nebius Cloud integration account. + :type attributes: NebiusCloudIntegrationAccountCreateAttributes + + :param type: The type of the integration account resource. Always ``integration-account``. + :type type: IntegrationAccountType + """ + super().__init__(kwargs) + + self_.attributes = attributes + self_.type = type diff --git a/src/datadog_api_client/v2/model/nebius_cloud_integration_account_create_request.py b/src/datadog_api_client/v2/model/nebius_cloud_integration_account_create_request.py new file mode 100644 index 0000000000..511d18b7b0 --- /dev/null +++ b/src/datadog_api_client/v2/model/nebius_cloud_integration_account_create_request.py @@ -0,0 +1,44 @@ +# 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. +from __future__ import annotations + +from typing import TYPE_CHECKING + +from datadog_api_client.model_utils import ( + ModelNormal, + cached_property, +) + + +if TYPE_CHECKING: + from datadog_api_client.v2.model.nebius_cloud_integration_account_create_data import ( + NebiusCloudIntegrationAccountCreateData, + ) + + +class NebiusCloudIntegrationAccountCreateRequest(ModelNormal): + @cached_property + def openapi_types(_): + from datadog_api_client.v2.model.nebius_cloud_integration_account_create_data import ( + NebiusCloudIntegrationAccountCreateData, + ) + + return { + "data": (NebiusCloudIntegrationAccountCreateData,), + } + + attribute_map = { + "data": "data", + } + + def __init__(self_, data: NebiusCloudIntegrationAccountCreateData, **kwargs): + """ + Request payload to create a Nebius Cloud integration account. + + :param data: Data envelope for creating a Nebius Cloud integration account. + :type data: NebiusCloudIntegrationAccountCreateData + """ + super().__init__(kwargs) + + self_.data = data diff --git a/src/datadog_api_client/v2/model/nebius_cloud_integration_account_metrics_config_request.py b/src/datadog_api_client/v2/model/nebius_cloud_integration_account_metrics_config_request.py new file mode 100644 index 0000000000..8b0c983e15 --- /dev/null +++ b/src/datadog_api_client/v2/model/nebius_cloud_integration_account_metrics_config_request.py @@ -0,0 +1,40 @@ +# 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. +from __future__ import annotations + +from typing import List, Union + +from datadog_api_client.model_utils import ( + ModelNormal, + cached_property, + unset, + UnsetType, +) + + +class NebiusCloudIntegrationAccountMetricsConfigRequest(ModelNormal): + @cached_property + def additional_properties_type(_): + return None + + @cached_property + def openapi_types(_): + return { + "cluster_filters": ([str],), + } + + attribute_map = { + "cluster_filters": "cluster_filters", + } + + def __init__(self_, cluster_filters: Union[List[str], UnsetType] = unset, **kwargs): + """ + Configuration for metric collection from this Nebius Cloud account. + + :param cluster_filters: Tag-filter rules limiting metric collection to matching Kubernetes clusters, for cost savings. Include rules ( ``key:value`` ) are combined with OR, exclusion rules ( ``!key:value`` ) are then applied with AND, and ``?`` and ``*`` are wildcards; for example ``cluster:prod-*`` collects only matching clusters and ``!cluster:dev`` excludes a cluster. Defaults to no filters: every cluster is collected. Only cluster-scoped metrics are filtered; billing and object storage metrics are always collected. + :type cluster_filters: [str], optional + """ + if cluster_filters is not unset: + kwargs["cluster_filters"] = cluster_filters + super().__init__(kwargs) diff --git a/src/datadog_api_client/v2/model/nebius_cloud_integration_account_metrics_config_response.py b/src/datadog_api_client/v2/model/nebius_cloud_integration_account_metrics_config_response.py new file mode 100644 index 0000000000..a18680792c --- /dev/null +++ b/src/datadog_api_client/v2/model/nebius_cloud_integration_account_metrics_config_response.py @@ -0,0 +1,36 @@ +# 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. +from __future__ import annotations + +from typing import List, Union + +from datadog_api_client.model_utils import ( + ModelNormal, + cached_property, + unset, + UnsetType, +) + + +class NebiusCloudIntegrationAccountMetricsConfigResponse(ModelNormal): + @cached_property + def openapi_types(_): + return { + "cluster_filters": ([str],), + } + + attribute_map = { + "cluster_filters": "cluster_filters", + } + + def __init__(self_, cluster_filters: Union[List[str], UnsetType] = unset, **kwargs): + """ + Metric collection settings configured on the Nebius Cloud integration account. Absent when no filters are configured. + + :param cluster_filters: Tag-filter rules limiting metric collection to matching Kubernetes clusters. + :type cluster_filters: [str], optional + """ + if cluster_filters is not unset: + kwargs["cluster_filters"] = cluster_filters + super().__init__(kwargs) diff --git a/src/datadog_api_client/v2/model/nebius_cloud_integration_account_metrics_config_update.py b/src/datadog_api_client/v2/model/nebius_cloud_integration_account_metrics_config_update.py new file mode 100644 index 0000000000..76ca608a3a --- /dev/null +++ b/src/datadog_api_client/v2/model/nebius_cloud_integration_account_metrics_config_update.py @@ -0,0 +1,40 @@ +# 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. +from __future__ import annotations + +from typing import List, Union + +from datadog_api_client.model_utils import ( + ModelNormal, + cached_property, + unset, + UnsetType, +) + + +class NebiusCloudIntegrationAccountMetricsConfigUpdate(ModelNormal): + @cached_property + def additional_properties_type(_): + return None + + @cached_property + def openapi_types(_): + return { + "cluster_filters": ([str],), + } + + attribute_map = { + "cluster_filters": "cluster_filters", + } + + def __init__(self_, cluster_filters: Union[List[str], UnsetType] = unset, **kwargs): + """ + Configuration for metric collection. Only the fields provided are changed. + + :param cluster_filters: Tag-filter rules limiting metric collection to matching Kubernetes clusters. Sending metrics_config replaces the stored object's cluster_filters list; omit it to keep the stored value. Include rules ( ``key:value`` ) are combined with OR, exclusion rules ( ``!key:value`` ) are then applied with AND, and ``?`` and ``*`` are wildcards. + :type cluster_filters: [str], optional + """ + if cluster_filters is not unset: + kwargs["cluster_filters"] = cluster_filters + super().__init__(kwargs) diff --git a/src/datadog_api_client/v2/model/nebius_cloud_integration_account_response.py b/src/datadog_api_client/v2/model/nebius_cloud_integration_account_response.py new file mode 100644 index 0000000000..62d2369ad5 --- /dev/null +++ b/src/datadog_api_client/v2/model/nebius_cloud_integration_account_response.py @@ -0,0 +1,44 @@ +# 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. +from __future__ import annotations + +from typing import TYPE_CHECKING + +from datadog_api_client.model_utils import ( + ModelNormal, + cached_property, +) + + +if TYPE_CHECKING: + from datadog_api_client.v2.model.nebius_cloud_integration_account_response_data import ( + NebiusCloudIntegrationAccountResponseData, + ) + + +class NebiusCloudIntegrationAccountResponse(ModelNormal): + @cached_property + def openapi_types(_): + from datadog_api_client.v2.model.nebius_cloud_integration_account_response_data import ( + NebiusCloudIntegrationAccountResponseData, + ) + + return { + "data": (NebiusCloudIntegrationAccountResponseData,), + } + + attribute_map = { + "data": "data", + } + + def __init__(self_, data: NebiusCloudIntegrationAccountResponseData, **kwargs): + """ + Response payload for a single Nebius Cloud integration account. + + :param data: Data envelope of a Nebius Cloud integration account, including server-assigned identity. + :type data: NebiusCloudIntegrationAccountResponseData + """ + super().__init__(kwargs) + + self_.data = data diff --git a/src/datadog_api_client/v2/model/nebius_cloud_integration_account_response_attributes.py b/src/datadog_api_client/v2/model/nebius_cloud_integration_account_response_attributes.py new file mode 100644 index 0000000000..cfa9f764ba --- /dev/null +++ b/src/datadog_api_client/v2/model/nebius_cloud_integration_account_response_attributes.py @@ -0,0 +1,92 @@ +# 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. +from __future__ import annotations + +from typing import Union, TYPE_CHECKING + +from datadog_api_client.model_utils import ( + ModelNormal, + cached_property, + unset, + UnsetType, +) + + +if TYPE_CHECKING: + from datadog_api_client.v2.model.nebius_cloud_integration_account_authentication_response import ( + NebiusCloudIntegrationAccountAuthenticationResponse, + ) + from datadog_api_client.v2.model.nebius_cloud_integration_dataflows_response import ( + NebiusCloudIntegrationDataflowsResponse, + ) + from datadog_api_client.v2.model.nebius_cloud_integration_account_settings_response import ( + NebiusCloudIntegrationAccountSettingsResponse, + ) + from datadog_api_client.v2.model.nebius_cloud_integration_account_service_account_auth_response import ( + NebiusCloudIntegrationAccountServiceAccountAuthResponse, + ) + + +class NebiusCloudIntegrationAccountResponseAttributes(ModelNormal): + @cached_property + def openapi_types(_): + from datadog_api_client.v2.model.nebius_cloud_integration_account_authentication_response import ( + NebiusCloudIntegrationAccountAuthenticationResponse, + ) + from datadog_api_client.v2.model.nebius_cloud_integration_dataflows_response import ( + NebiusCloudIntegrationDataflowsResponse, + ) + from datadog_api_client.v2.model.nebius_cloud_integration_account_settings_response import ( + NebiusCloudIntegrationAccountSettingsResponse, + ) + + return { + "authentication": (NebiusCloudIntegrationAccountAuthenticationResponse,), + "dataflows": (NebiusCloudIntegrationDataflowsResponse,), + "name": (str,), + "settings": (NebiusCloudIntegrationAccountSettingsResponse,), + } + + attribute_map = { + "authentication": "authentication", + "dataflows": "dataflows", + "name": "name", + "settings": "settings", + } + + def __init__( + self_, + name: str, + settings: NebiusCloudIntegrationAccountSettingsResponse, + authentication: Union[ + NebiusCloudIntegrationAccountAuthenticationResponse, + NebiusCloudIntegrationAccountServiceAccountAuthResponse, + UnsetType, + ] = unset, + dataflows: Union[NebiusCloudIntegrationDataflowsResponse, UnsetType] = unset, + **kwargs, + ): + """ + Attributes of a Nebius Cloud integration account returned in responses. + + :param authentication: Authentication configured on the Nebius Cloud integration account. + :type authentication: NebiusCloudIntegrationAccountAuthenticationResponse, optional + + :param dataflows: Data Datadog collects from Nebius Cloud, keyed by dataflow id. + :type dataflows: NebiusCloudIntegrationDataflowsResponse, optional + + :param name: Human-readable name of the Nebius Cloud integration account. + :type name: str + + :param settings: Settings configured on the Nebius Cloud integration account. + :type settings: NebiusCloudIntegrationAccountSettingsResponse + """ + if authentication is not unset: + kwargs["authentication"] = authentication + if dataflows is not unset: + kwargs["dataflows"] = dataflows + super().__init__(kwargs) + + self_.name = name + self_.settings = settings diff --git a/src/datadog_api_client/v2/model/nebius_cloud_integration_account_response_data.py b/src/datadog_api_client/v2/model/nebius_cloud_integration_account_response_data.py new file mode 100644 index 0000000000..17e7048cac --- /dev/null +++ b/src/datadog_api_client/v2/model/nebius_cloud_integration_account_response_data.py @@ -0,0 +1,67 @@ +# 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. +from __future__ import annotations + +from typing import TYPE_CHECKING + +from datadog_api_client.model_utils import ( + ModelNormal, + cached_property, +) + + +if TYPE_CHECKING: + from datadog_api_client.v2.model.nebius_cloud_integration_account_response_attributes import ( + NebiusCloudIntegrationAccountResponseAttributes, + ) + from datadog_api_client.v2.model.integration_account_type import IntegrationAccountType + + +class NebiusCloudIntegrationAccountResponseData(ModelNormal): + @cached_property + def openapi_types(_): + from datadog_api_client.v2.model.nebius_cloud_integration_account_response_attributes import ( + NebiusCloudIntegrationAccountResponseAttributes, + ) + from datadog_api_client.v2.model.integration_account_type import IntegrationAccountType + + return { + "attributes": (NebiusCloudIntegrationAccountResponseAttributes,), + "id": (str,), + "type": (IntegrationAccountType,), + } + + attribute_map = { + "attributes": "attributes", + "id": "id", + "type": "type", + } + read_only_vars = { + "id", + } + + def __init__( + self_, + attributes: NebiusCloudIntegrationAccountResponseAttributes, + id: str, + type: IntegrationAccountType, + **kwargs, + ): + """ + Data envelope of a Nebius Cloud integration account, including server-assigned identity. + + :param attributes: Attributes of a Nebius Cloud integration account returned in responses. + :type attributes: NebiusCloudIntegrationAccountResponseAttributes + + :param id: Server-generated unique identifier of the Nebius Cloud integration account. + :type id: str + + :param type: The type of the integration account resource. Always ``integration-account``. + :type type: IntegrationAccountType + """ + super().__init__(kwargs) + + self_.attributes = attributes + self_.id = id + self_.type = type diff --git a/src/datadog_api_client/v2/model/nebius_cloud_integration_account_service_account_auth_request.py b/src/datadog_api_client/v2/model/nebius_cloud_integration_account_service_account_auth_request.py new file mode 100644 index 0000000000..4e35ea670b --- /dev/null +++ b/src/datadog_api_client/v2/model/nebius_cloud_integration_account_service_account_auth_request.py @@ -0,0 +1,85 @@ +# 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. +from __future__ import annotations + +from typing import Union, TYPE_CHECKING + +from datadog_api_client.model_utils import ( + ModelNormal, + cached_property, + unset, + UnsetType, +) + + +if TYPE_CHECKING: + from datadog_api_client.v2.model.nebius_cloud_integration_account_service_account_auth_type import ( + NebiusCloudIntegrationAccountServiceAccountAuthType, + ) + + +class NebiusCloudIntegrationAccountServiceAccountAuthRequest(ModelNormal): + @cached_property + def additional_properties_type(_): + return None + + @cached_property + def openapi_types(_): + from datadog_api_client.v2.model.nebius_cloud_integration_account_service_account_auth_type import ( + NebiusCloudIntegrationAccountServiceAccountAuthType, + ) + + return { + "auth_type": (NebiusCloudIntegrationAccountServiceAccountAuthType,), + "private_key": (str,), + "public_key_id": (str,), + "service_account_id": (str,), + "static_api_key": (str,), + } + + attribute_map = { + "auth_type": "auth_type", + "private_key": "private_key", + "public_key_id": "public_key_id", + "service_account_id": "service_account_id", + "static_api_key": "static_api_key", + } + + def __init__( + self_, + auth_type: NebiusCloudIntegrationAccountServiceAccountAuthType, + service_account_id: str, + private_key: Union[str, UnsetType] = unset, + public_key_id: Union[str, UnsetType] = unset, + static_api_key: Union[str, UnsetType] = unset, + **kwargs, + ): + """ + Service-account key pair authentication, the only method Nebius Cloud integration accounts support. Create a service account in the Nebius console, add it to the admin group, upload an authorized key pair to it, and issue a static API key with the OBSERVABILITY scope through the Nebius CLI. + + :param auth_type: The authentication method type. + :type auth_type: NebiusCloudIntegrationAccountServiceAccountAuthType + + :param private_key: The private key of the authorized key pair, in PEM format. Required when log, resource, or service-quota collection is enabled; a request that enables one of them without it is rejected with a ``422`` response. + :type private_key: str, optional + + :param public_key_id: ID of the public key half of the authorized key pair, such as ``publickey-xxxxxxxx``. Required when log, resource, or service-quota collection is enabled; a request that enables one of them without it is rejected with a ``422`` response. + :type public_key_id: str, optional + + :param service_account_id: Non-secret ID of the Nebius service account the account authenticates as. + :type service_account_id: str + + :param static_api_key: Nebius static API key with the OBSERVABILITY scope, used to query logs. Required when log, resource, or service-quota collection is enabled; a request that enables one of them without it is rejected with a ``422`` response. + :type static_api_key: str, optional + """ + if private_key is not unset: + kwargs["private_key"] = private_key + if public_key_id is not unset: + kwargs["public_key_id"] = public_key_id + if static_api_key is not unset: + kwargs["static_api_key"] = static_api_key + super().__init__(kwargs) + + self_.auth_type = auth_type + self_.service_account_id = service_account_id diff --git a/src/datadog_api_client/v2/model/nebius_cloud_integration_account_service_account_auth_response.py b/src/datadog_api_client/v2/model/nebius_cloud_integration_account_service_account_auth_response.py new file mode 100644 index 0000000000..21468ac38f --- /dev/null +++ b/src/datadog_api_client/v2/model/nebius_cloud_integration_account_service_account_auth_response.py @@ -0,0 +1,65 @@ +# 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. +from __future__ import annotations + +from typing import Union, TYPE_CHECKING + +from datadog_api_client.model_utils import ( + ModelNormal, + cached_property, + unset, + UnsetType, +) + + +if TYPE_CHECKING: + from datadog_api_client.v2.model.nebius_cloud_integration_account_service_account_auth_type import ( + NebiusCloudIntegrationAccountServiceAccountAuthType, + ) + + +class NebiusCloudIntegrationAccountServiceAccountAuthResponse(ModelNormal): + @cached_property + def openapi_types(_): + from datadog_api_client.v2.model.nebius_cloud_integration_account_service_account_auth_type import ( + NebiusCloudIntegrationAccountServiceAccountAuthType, + ) + + return { + "auth_type": (NebiusCloudIntegrationAccountServiceAccountAuthType,), + "public_key_id": (str,), + "service_account_id": (str,), + } + + attribute_map = { + "auth_type": "auth_type", + "public_key_id": "public_key_id", + "service_account_id": "service_account_id", + } + + def __init__( + self_, + auth_type: NebiusCloudIntegrationAccountServiceAccountAuthType, + service_account_id: str, + public_key_id: Union[str, UnsetType] = unset, + **kwargs, + ): + """ + The service-account key pair authentication method configured on the account. + + :param auth_type: The authentication method type. + :type auth_type: NebiusCloudIntegrationAccountServiceAccountAuthType + + :param public_key_id: ID of the public key half of the authorized key pair. Omitted when unset. + :type public_key_id: str, optional + + :param service_account_id: ID of the Nebius service account the account authenticates as. + :type service_account_id: str + """ + if public_key_id is not unset: + kwargs["public_key_id"] = public_key_id + super().__init__(kwargs) + + self_.auth_type = auth_type + self_.service_account_id = service_account_id diff --git a/src/datadog_api_client/v2/model/nebius_cloud_integration_account_service_account_auth_type.py b/src/datadog_api_client/v2/model/nebius_cloud_integration_account_service_account_auth_type.py new file mode 100644 index 0000000000..7c964ecb1c --- /dev/null +++ b/src/datadog_api_client/v2/model/nebius_cloud_integration_account_service_account_auth_type.py @@ -0,0 +1,37 @@ +# 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. +from __future__ import annotations + + +from datadog_api_client.model_utils import ( + ModelSimple, + cached_property, +) + +from typing import ClassVar + + +class NebiusCloudIntegrationAccountServiceAccountAuthType(ModelSimple): + """ + The authentication method type. + + :param value: If omitted defaults to "nebius_service_account". Must be one of ["nebius_service_account"]. + :type value: str + """ + + allowed_values = { + "nebius_service_account", + } + NEBIUS_SERVICE_ACCOUNT: ClassVar["NebiusCloudIntegrationAccountServiceAccountAuthType"] + + @cached_property + def openapi_types(_): + return { + "value": (str,), + } + + +NebiusCloudIntegrationAccountServiceAccountAuthType.NEBIUS_SERVICE_ACCOUNT = ( + NebiusCloudIntegrationAccountServiceAccountAuthType("nebius_service_account") +) diff --git a/src/datadog_api_client/v2/model/nebius_cloud_integration_account_service_account_auth_update.py b/src/datadog_api_client/v2/model/nebius_cloud_integration_account_service_account_auth_update.py new file mode 100644 index 0000000000..b6cdbb7154 --- /dev/null +++ b/src/datadog_api_client/v2/model/nebius_cloud_integration_account_service_account_auth_update.py @@ -0,0 +1,87 @@ +# 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. +from __future__ import annotations + +from typing import Union, TYPE_CHECKING + +from datadog_api_client.model_utils import ( + ModelNormal, + cached_property, + none_type, + unset, + UnsetType, +) + + +if TYPE_CHECKING: + from datadog_api_client.v2.model.nebius_cloud_integration_account_service_account_auth_type import ( + NebiusCloudIntegrationAccountServiceAccountAuthType, + ) + + +class NebiusCloudIntegrationAccountServiceAccountAuthUpdate(ModelNormal): + @cached_property + def additional_properties_type(_): + return None + + @cached_property + def openapi_types(_): + from datadog_api_client.v2.model.nebius_cloud_integration_account_service_account_auth_type import ( + NebiusCloudIntegrationAccountServiceAccountAuthType, + ) + + return { + "auth_type": (NebiusCloudIntegrationAccountServiceAccountAuthType,), + "private_key": (str,), + "public_key_id": (str, none_type), + "service_account_id": (str,), + "static_api_key": (str,), + } + + attribute_map = { + "auth_type": "auth_type", + "private_key": "private_key", + "public_key_id": "public_key_id", + "service_account_id": "service_account_id", + "static_api_key": "static_api_key", + } + + def __init__( + self_, + auth_type: NebiusCloudIntegrationAccountServiceAccountAuthType, + private_key: Union[str, UnsetType] = unset, + public_key_id: Union[str, none_type, UnsetType] = unset, + service_account_id: Union[str, UnsetType] = unset, + static_api_key: Union[str, UnsetType] = unset, + **kwargs, + ): + """ + Service-account key pair authentication, the only method Nebius Cloud integration accounts support. Only the fields provided are changed; omit ``private_key`` and ``static_api_key`` to keep the stored ones. + + :param auth_type: The authentication method type. + :type auth_type: NebiusCloudIntegrationAccountServiceAccountAuthType + + :param private_key: The private key of the authorized key pair, in PEM format. Omit it to keep the stored one; an empty string is rejected with a ``422`` response. + :type private_key: str, optional + + :param public_key_id: ID of the public key half of the authorized key pair. Omit it to keep the stored public key ID, send ``null`` or an empty string to remove it, or send a value to replace it. Removing it is rejected with a ``422`` response while log, resource, or service-quota collection is enabled. + :type public_key_id: str, none_type, optional + + :param service_account_id: Non-secret ID of the Nebius service account the account authenticates as. It cannot be cleared; sending ``null`` or an empty string is rejected with a ``422`` response. + :type service_account_id: str, optional + + :param static_api_key: Nebius static API key with the OBSERVABILITY scope. Omit it to keep the stored one; an empty string is rejected with a ``422`` response. + :type static_api_key: str, optional + """ + if private_key is not unset: + kwargs["private_key"] = private_key + if public_key_id is not unset: + kwargs["public_key_id"] = public_key_id + if service_account_id is not unset: + kwargs["service_account_id"] = service_account_id + if static_api_key is not unset: + kwargs["static_api_key"] = static_api_key + super().__init__(kwargs) + + self_.auth_type = auth_type diff --git a/src/datadog_api_client/v2/model/nebius_cloud_integration_account_settings_request.py b/src/datadog_api_client/v2/model/nebius_cloud_integration_account_settings_request.py new file mode 100644 index 0000000000..3b923f122d --- /dev/null +++ b/src/datadog_api_client/v2/model/nebius_cloud_integration_account_settings_request.py @@ -0,0 +1,70 @@ +# 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. +from __future__ import annotations + +from typing import List, Union, TYPE_CHECKING + +from datadog_api_client.model_utils import ( + ModelNormal, + cached_property, + unset, + UnsetType, +) + + +if TYPE_CHECKING: + from datadog_api_client.v2.model.nebius_cloud_integration_account_metrics_config_request import ( + NebiusCloudIntegrationAccountMetricsConfigRequest, + ) + + +class NebiusCloudIntegrationAccountSettingsRequest(ModelNormal): + @cached_property + def additional_properties_type(_): + return None + + @cached_property + def openapi_types(_): + from datadog_api_client.v2.model.nebius_cloud_integration_account_metrics_config_request import ( + NebiusCloudIntegrationAccountMetricsConfigRequest, + ) + + return { + "account_tags": ([str],), + "metrics_config": (NebiusCloudIntegrationAccountMetricsConfigRequest,), + "tenant_id": (str,), + } + + attribute_map = { + "account_tags": "account_tags", + "metrics_config": "metrics_config", + "tenant_id": "tenant_id", + } + + def __init__( + self_, + tenant_id: str, + account_tags: Union[List[str], UnsetType] = unset, + metrics_config: Union[NebiusCloudIntegrationAccountMetricsConfigRequest, UnsetType] = unset, + **kwargs, + ): + """ + Settings for creating the Nebius Cloud integration account. + + :param account_tags: Tags applied to all metrics, logs, and resources collected from this Nebius Cloud account. Defaults to no tags. + :type account_tags: [str], optional + + :param metrics_config: Configuration for metric collection from this Nebius Cloud account. + :type metrics_config: NebiusCloudIntegrationAccountMetricsConfigRequest, optional + + :param tenant_id: ID of the Nebius tenant to monitor, the organizational workspace identifier. Found in the Nebius console under Administration > Organization. + :type tenant_id: str + """ + if account_tags is not unset: + kwargs["account_tags"] = account_tags + if metrics_config is not unset: + kwargs["metrics_config"] = metrics_config + super().__init__(kwargs) + + self_.tenant_id = tenant_id diff --git a/src/datadog_api_client/v2/model/nebius_cloud_integration_account_settings_response.py b/src/datadog_api_client/v2/model/nebius_cloud_integration_account_settings_response.py new file mode 100644 index 0000000000..d101814da0 --- /dev/null +++ b/src/datadog_api_client/v2/model/nebius_cloud_integration_account_settings_response.py @@ -0,0 +1,66 @@ +# 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. +from __future__ import annotations + +from typing import List, Union, TYPE_CHECKING + +from datadog_api_client.model_utils import ( + ModelNormal, + cached_property, + unset, + UnsetType, +) + + +if TYPE_CHECKING: + from datadog_api_client.v2.model.nebius_cloud_integration_account_metrics_config_response import ( + NebiusCloudIntegrationAccountMetricsConfigResponse, + ) + + +class NebiusCloudIntegrationAccountSettingsResponse(ModelNormal): + @cached_property + def openapi_types(_): + from datadog_api_client.v2.model.nebius_cloud_integration_account_metrics_config_response import ( + NebiusCloudIntegrationAccountMetricsConfigResponse, + ) + + return { + "account_tags": ([str],), + "metrics_config": (NebiusCloudIntegrationAccountMetricsConfigResponse,), + "tenant_id": (str,), + } + + attribute_map = { + "account_tags": "account_tags", + "metrics_config": "metrics_config", + "tenant_id": "tenant_id", + } + + def __init__( + self_, + tenant_id: str, + account_tags: Union[List[str], UnsetType] = unset, + metrics_config: Union[NebiusCloudIntegrationAccountMetricsConfigResponse, UnsetType] = unset, + **kwargs, + ): + """ + Settings configured on the Nebius Cloud integration account. + + :param account_tags: Tags applied to all data collected from this Nebius Cloud account. + :type account_tags: [str], optional + + :param metrics_config: Metric collection settings configured on the Nebius Cloud integration account. Absent when no filters are configured. + :type metrics_config: NebiusCloudIntegrationAccountMetricsConfigResponse, optional + + :param tenant_id: ID of the Nebius tenant being monitored. + :type tenant_id: str + """ + if account_tags is not unset: + kwargs["account_tags"] = account_tags + if metrics_config is not unset: + kwargs["metrics_config"] = metrics_config + super().__init__(kwargs) + + self_.tenant_id = tenant_id diff --git a/src/datadog_api_client/v2/model/nebius_cloud_integration_account_settings_update.py b/src/datadog_api_client/v2/model/nebius_cloud_integration_account_settings_update.py new file mode 100644 index 0000000000..f24c6e81b0 --- /dev/null +++ b/src/datadog_api_client/v2/model/nebius_cloud_integration_account_settings_update.py @@ -0,0 +1,70 @@ +# 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. +from __future__ import annotations + +from typing import List, Union, TYPE_CHECKING + +from datadog_api_client.model_utils import ( + ModelNormal, + cached_property, + unset, + UnsetType, +) + + +if TYPE_CHECKING: + from datadog_api_client.v2.model.nebius_cloud_integration_account_metrics_config_update import ( + NebiusCloudIntegrationAccountMetricsConfigUpdate, + ) + + +class NebiusCloudIntegrationAccountSettingsUpdate(ModelNormal): + @cached_property + def additional_properties_type(_): + return None + + @cached_property + def openapi_types(_): + from datadog_api_client.v2.model.nebius_cloud_integration_account_metrics_config_update import ( + NebiusCloudIntegrationAccountMetricsConfigUpdate, + ) + + return { + "account_tags": ([str],), + "metrics_config": (NebiusCloudIntegrationAccountMetricsConfigUpdate,), + "tenant_id": (str,), + } + + attribute_map = { + "account_tags": "account_tags", + "metrics_config": "metrics_config", + "tenant_id": "tenant_id", + } + + def __init__( + self_, + account_tags: Union[List[str], UnsetType] = unset, + metrics_config: Union[NebiusCloudIntegrationAccountMetricsConfigUpdate, UnsetType] = unset, + tenant_id: Union[str, UnsetType] = unset, + **kwargs, + ): + """ + Settings for updating the Nebius Cloud integration account. Only the fields provided are changed. + + :param account_tags: Tags applied to all metrics, logs, and resources collected from this Nebius Cloud account. Sending it replaces the whole list; send an empty array to remove all tags, or omit it to keep the stored list. + :type account_tags: [str], optional + + :param metrics_config: Configuration for metric collection. Only the fields provided are changed. + :type metrics_config: NebiusCloudIntegrationAccountMetricsConfigUpdate, optional + + :param tenant_id: ID of the Nebius tenant to monitor. An empty value is ignored and the stored tenant ID is kept. + :type tenant_id: str, optional + """ + if account_tags is not unset: + kwargs["account_tags"] = account_tags + if metrics_config is not unset: + kwargs["metrics_config"] = metrics_config + if tenant_id is not unset: + kwargs["tenant_id"] = tenant_id + super().__init__(kwargs) diff --git a/src/datadog_api_client/v2/model/nebius_cloud_integration_account_update_attributes.py b/src/datadog_api_client/v2/model/nebius_cloud_integration_account_update_attributes.py new file mode 100644 index 0000000000..e57f0154f4 --- /dev/null +++ b/src/datadog_api_client/v2/model/nebius_cloud_integration_account_update_attributes.py @@ -0,0 +1,99 @@ +# 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. +from __future__ import annotations + +from typing import Union, TYPE_CHECKING + +from datadog_api_client.model_utils import ( + ModelNormal, + cached_property, + unset, + UnsetType, +) + + +if TYPE_CHECKING: + from datadog_api_client.v2.model.nebius_cloud_integration_account_authentication_update import ( + NebiusCloudIntegrationAccountAuthenticationUpdate, + ) + from datadog_api_client.v2.model.nebius_cloud_integration_dataflows_request import ( + NebiusCloudIntegrationDataflowsRequest, + ) + from datadog_api_client.v2.model.nebius_cloud_integration_account_settings_update import ( + NebiusCloudIntegrationAccountSettingsUpdate, + ) + from datadog_api_client.v2.model.nebius_cloud_integration_account_service_account_auth_update import ( + NebiusCloudIntegrationAccountServiceAccountAuthUpdate, + ) + + +class NebiusCloudIntegrationAccountUpdateAttributes(ModelNormal): + validations = { + "name": { + "max_length": 255, + }, + } + + @cached_property + def openapi_types(_): + from datadog_api_client.v2.model.nebius_cloud_integration_account_authentication_update import ( + NebiusCloudIntegrationAccountAuthenticationUpdate, + ) + from datadog_api_client.v2.model.nebius_cloud_integration_dataflows_request import ( + NebiusCloudIntegrationDataflowsRequest, + ) + from datadog_api_client.v2.model.nebius_cloud_integration_account_settings_update import ( + NebiusCloudIntegrationAccountSettingsUpdate, + ) + + return { + "authentication": (NebiusCloudIntegrationAccountAuthenticationUpdate,), + "dataflows": (NebiusCloudIntegrationDataflowsRequest,), + "name": (str,), + "settings": (NebiusCloudIntegrationAccountSettingsUpdate,), + } + + attribute_map = { + "authentication": "authentication", + "dataflows": "dataflows", + "name": "name", + "settings": "settings", + } + + def __init__( + self_, + authentication: Union[ + NebiusCloudIntegrationAccountAuthenticationUpdate, + NebiusCloudIntegrationAccountServiceAccountAuthUpdate, + UnsetType, + ] = unset, + dataflows: Union[NebiusCloudIntegrationDataflowsRequest, UnsetType] = unset, + name: Union[str, UnsetType] = unset, + settings: Union[NebiusCloudIntegrationAccountSettingsUpdate, UnsetType] = unset, + **kwargs, + ): + """ + Writable attributes used to update a Nebius Cloud integration account. Every field is optional; only the fields provided are changed. When ``dataflows`` is provided, only the dataflow ids included in the request are modified; dataflows omitted from the map keep their current configuration, as do the settings of an included dataflow that provides only ``enabled``. + + :param authentication: Authentication for updating the Nebius Cloud integration account. Exactly one method is set. + :type authentication: NebiusCloudIntegrationAccountAuthenticationUpdate, optional + + :param dataflows: Data Datadog collects from Nebius Cloud, keyed by dataflow id. Each dataflow turns on a distinct kind of collection: set ``enabled`` to stop or start it, and use ``settings`` to configure what it collects. Defaults listed on each dataflow apply when the account is created; on update, omitted fields keep their current values. Every dataflow except ``nebius-cloud-cost-collection`` runs as the service account in ``authentication`` , using its authorized key pair and the static API key; enabling one of them without those keys is rejected with a ``422`` response, and one enabled with keys that later expire is stored but collects no data. + :type dataflows: NebiusCloudIntegrationDataflowsRequest, optional + + :param name: Human-readable name of the Nebius Cloud integration account. + :type name: str, optional + + :param settings: Settings for updating the Nebius Cloud integration account. Only the fields provided are changed. + :type settings: NebiusCloudIntegrationAccountSettingsUpdate, optional + """ + if authentication is not unset: + kwargs["authentication"] = authentication + if dataflows is not unset: + kwargs["dataflows"] = dataflows + if name is not unset: + kwargs["name"] = name + if settings is not unset: + kwargs["settings"] = settings + super().__init__(kwargs) diff --git a/src/datadog_api_client/v2/model/nebius_cloud_integration_account_update_data.py b/src/datadog_api_client/v2/model/nebius_cloud_integration_account_update_data.py new file mode 100644 index 0000000000..33a9e72f2e --- /dev/null +++ b/src/datadog_api_client/v2/model/nebius_cloud_integration_account_update_data.py @@ -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. +from __future__ import annotations + +from typing import TYPE_CHECKING + +from datadog_api_client.model_utils import ( + ModelNormal, + cached_property, +) + + +if TYPE_CHECKING: + from datadog_api_client.v2.model.nebius_cloud_integration_account_update_attributes import ( + NebiusCloudIntegrationAccountUpdateAttributes, + ) + from datadog_api_client.v2.model.integration_account_type import IntegrationAccountType + + +class NebiusCloudIntegrationAccountUpdateData(ModelNormal): + @cached_property + def openapi_types(_): + from datadog_api_client.v2.model.nebius_cloud_integration_account_update_attributes import ( + NebiusCloudIntegrationAccountUpdateAttributes, + ) + from datadog_api_client.v2.model.integration_account_type import IntegrationAccountType + + return { + "attributes": (NebiusCloudIntegrationAccountUpdateAttributes,), + "id": (str,), + "type": (IntegrationAccountType,), + } + + attribute_map = { + "attributes": "attributes", + "id": "id", + "type": "type", + } + + def __init__( + self_, + attributes: NebiusCloudIntegrationAccountUpdateAttributes, + id: str, + type: IntegrationAccountType, + **kwargs, + ): + """ + Data envelope for updating a Nebius Cloud integration account. + + :param attributes: Writable attributes used to update a Nebius Cloud integration account. Every field is optional; only the fields provided are changed. When ``dataflows`` is provided, only the dataflow ids included in the request are modified; dataflows omitted from the map keep their current configuration, as do the settings of an included dataflow that provides only ``enabled``. + :type attributes: NebiusCloudIntegrationAccountUpdateAttributes + + :param id: Unique identifier of the Nebius Cloud integration account to update. + :type id: str + + :param type: The type of the integration account resource. Always ``integration-account``. + :type type: IntegrationAccountType + """ + super().__init__(kwargs) + + self_.attributes = attributes + self_.id = id + self_.type = type diff --git a/src/datadog_api_client/v2/model/nebius_cloud_integration_account_update_request.py b/src/datadog_api_client/v2/model/nebius_cloud_integration_account_update_request.py new file mode 100644 index 0000000000..c60aea3a5f --- /dev/null +++ b/src/datadog_api_client/v2/model/nebius_cloud_integration_account_update_request.py @@ -0,0 +1,44 @@ +# 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. +from __future__ import annotations + +from typing import TYPE_CHECKING + +from datadog_api_client.model_utils import ( + ModelNormal, + cached_property, +) + + +if TYPE_CHECKING: + from datadog_api_client.v2.model.nebius_cloud_integration_account_update_data import ( + NebiusCloudIntegrationAccountUpdateData, + ) + + +class NebiusCloudIntegrationAccountUpdateRequest(ModelNormal): + @cached_property + def openapi_types(_): + from datadog_api_client.v2.model.nebius_cloud_integration_account_update_data import ( + NebiusCloudIntegrationAccountUpdateData, + ) + + return { + "data": (NebiusCloudIntegrationAccountUpdateData,), + } + + attribute_map = { + "data": "data", + } + + def __init__(self_, data: NebiusCloudIntegrationAccountUpdateData, **kwargs): + """ + Request payload to update a Nebius Cloud integration account. + + :param data: Data envelope for updating a Nebius Cloud integration account. + :type data: NebiusCloudIntegrationAccountUpdateData + """ + super().__init__(kwargs) + + self_.data = data diff --git a/src/datadog_api_client/v2/model/nebius_cloud_integration_accounts_response.py b/src/datadog_api_client/v2/model/nebius_cloud_integration_accounts_response.py new file mode 100644 index 0000000000..de38f140c7 --- /dev/null +++ b/src/datadog_api_client/v2/model/nebius_cloud_integration_accounts_response.py @@ -0,0 +1,44 @@ +# 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. +from __future__ import annotations + +from typing import List, TYPE_CHECKING + +from datadog_api_client.model_utils import ( + ModelNormal, + cached_property, +) + + +if TYPE_CHECKING: + from datadog_api_client.v2.model.nebius_cloud_integration_account_response_data import ( + NebiusCloudIntegrationAccountResponseData, + ) + + +class NebiusCloudIntegrationAccountsResponse(ModelNormal): + @cached_property + def openapi_types(_): + from datadog_api_client.v2.model.nebius_cloud_integration_account_response_data import ( + NebiusCloudIntegrationAccountResponseData, + ) + + return { + "data": ([NebiusCloudIntegrationAccountResponseData],), + } + + attribute_map = { + "data": "data", + } + + def __init__(self_, data: List[NebiusCloudIntegrationAccountResponseData], **kwargs): + """ + Response payload for a list of Nebius Cloud integration accounts. + + :param data: List of Nebius Cloud integration accounts. + :type data: [NebiusCloudIntegrationAccountResponseData] + """ + super().__init__(kwargs) + + self_.data = data diff --git a/src/datadog_api_client/v2/model/nebius_cloud_integration_dataflows_request.py b/src/datadog_api_client/v2/model/nebius_cloud_integration_dataflows_request.py new file mode 100644 index 0000000000..91c9ce5394 --- /dev/null +++ b/src/datadog_api_client/v2/model/nebius_cloud_integration_dataflows_request.py @@ -0,0 +1,98 @@ +# 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. +from __future__ import annotations + +from typing import Union, TYPE_CHECKING + +from datadog_api_client.model_utils import ( + ModelNormal, + cached_property, + unset, + UnsetType, +) + + +if TYPE_CHECKING: + from datadog_api_client.v2.model.nebius_cloud_cost_collection_integration_dataflow_request import ( + NebiusCloudCostCollectionIntegrationDataflowRequest, + ) + from datadog_api_client.v2.model.nebius_cloud_logs_integration_dataflow_request import ( + NebiusCloudLogsIntegrationDataflowRequest, + ) + from datadog_api_client.v2.model.nebius_cloud_resources_integration_dataflow_request import ( + NebiusCloudResourcesIntegrationDataflowRequest, + ) + from datadog_api_client.v2.model.nebius_cloud_service_quota_collection_integration_dataflow_request import ( + NebiusCloudServiceQuotaCollectionIntegrationDataflowRequest, + ) + + +class NebiusCloudIntegrationDataflowsRequest(ModelNormal): + @cached_property + def additional_properties_type(_): + return None + + @cached_property + def openapi_types(_): + from datadog_api_client.v2.model.nebius_cloud_cost_collection_integration_dataflow_request import ( + NebiusCloudCostCollectionIntegrationDataflowRequest, + ) + from datadog_api_client.v2.model.nebius_cloud_logs_integration_dataflow_request import ( + NebiusCloudLogsIntegrationDataflowRequest, + ) + from datadog_api_client.v2.model.nebius_cloud_resources_integration_dataflow_request import ( + NebiusCloudResourcesIntegrationDataflowRequest, + ) + from datadog_api_client.v2.model.nebius_cloud_service_quota_collection_integration_dataflow_request import ( + NebiusCloudServiceQuotaCollectionIntegrationDataflowRequest, + ) + + return { + "nebius_cloud_cost_collection": (NebiusCloudCostCollectionIntegrationDataflowRequest,), + "nebius_cloud_logs": (NebiusCloudLogsIntegrationDataflowRequest,), + "nebius_cloud_resources": (NebiusCloudResourcesIntegrationDataflowRequest,), + "nebius_cloud_service_quota_collection": (NebiusCloudServiceQuotaCollectionIntegrationDataflowRequest,), + } + + attribute_map = { + "nebius_cloud_cost_collection": "nebius-cloud-cost-collection", + "nebius_cloud_logs": "nebius-cloud-logs", + "nebius_cloud_resources": "nebius-cloud-resources", + "nebius_cloud_service_quota_collection": "nebius-cloud-service-quota-collection", + } + + def __init__( + self_, + nebius_cloud_cost_collection: Union[NebiusCloudCostCollectionIntegrationDataflowRequest, UnsetType] = unset, + nebius_cloud_logs: Union[NebiusCloudLogsIntegrationDataflowRequest, UnsetType] = unset, + nebius_cloud_resources: Union[NebiusCloudResourcesIntegrationDataflowRequest, UnsetType] = unset, + nebius_cloud_service_quota_collection: Union[ + NebiusCloudServiceQuotaCollectionIntegrationDataflowRequest, UnsetType + ] = unset, + **kwargs, + ): + """ + Data Datadog collects from Nebius Cloud, keyed by dataflow id. Each dataflow turns on a distinct kind of collection: set ``enabled`` to stop or start it, and use ``settings`` to configure what it collects. Defaults listed on each dataflow apply when the account is created; on update, omitted fields keep their current values. Every dataflow except ``nebius-cloud-cost-collection`` runs as the service account in ``authentication`` , using its authorized key pair and the static API key; enabling one of them without those keys is rejected with a ``422`` response, and one enabled with keys that later expire is stored but collects no data. + + :param nebius_cloud_cost_collection: Cloud cost data read from a Nebius Object Storage bucket export and used by `Cloud Cost Management `_. Enabling it requires a bucket holding your cost export and a Nebius access key pair that can read it; a request that enables this dataflow without them is rejected with a ``422`` response. + :type nebius_cloud_cost_collection: NebiusCloudCostCollectionIntegrationDataflowRequest, optional + + :param nebius_cloud_logs: Logs from your Nebius tenant: Kubernetes control plane and audit logs, tenant-level audit events, compute serial console logs, cloud apps and AI inference logs, PostgreSQL logs, and MLflow logs, collected from the services named in ``settings.enabled_services``. ``enabled_services`` is the sole source of truth for what is collected; ``enabled`` set to ``false`` stops log collection, while ``true`` on its own changes nothing. Defaults to no services. + :type nebius_cloud_logs: NebiusCloudLogsIntegrationDataflowRequest, optional + + :param nebius_cloud_resources: Metadata about resources in your Nebius tenant, such as compute instances and Kubernetes clusters. + :type nebius_cloud_resources: NebiusCloudResourcesIntegrationDataflowRequest, optional + + :param nebius_cloud_service_quota_collection: Usage metrics tracked against your Nebius service quotas, such as ``nebius_cloud.servicequota.percentage_used`` and ``nebius_cloud.servicequota.limit``. + :type nebius_cloud_service_quota_collection: NebiusCloudServiceQuotaCollectionIntegrationDataflowRequest, optional + """ + if nebius_cloud_cost_collection is not unset: + kwargs["nebius_cloud_cost_collection"] = nebius_cloud_cost_collection + if nebius_cloud_logs is not unset: + kwargs["nebius_cloud_logs"] = nebius_cloud_logs + if nebius_cloud_resources is not unset: + kwargs["nebius_cloud_resources"] = nebius_cloud_resources + if nebius_cloud_service_quota_collection is not unset: + kwargs["nebius_cloud_service_quota_collection"] = nebius_cloud_service_quota_collection + super().__init__(kwargs) diff --git a/src/datadog_api_client/v2/model/nebius_cloud_integration_dataflows_response.py b/src/datadog_api_client/v2/model/nebius_cloud_integration_dataflows_response.py new file mode 100644 index 0000000000..3298fad5dd --- /dev/null +++ b/src/datadog_api_client/v2/model/nebius_cloud_integration_dataflows_response.py @@ -0,0 +1,94 @@ +# 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. +from __future__ import annotations + +from typing import Union, TYPE_CHECKING + +from datadog_api_client.model_utils import ( + ModelNormal, + cached_property, + unset, + UnsetType, +) + + +if TYPE_CHECKING: + from datadog_api_client.v2.model.nebius_cloud_cost_collection_integration_dataflow_response import ( + NebiusCloudCostCollectionIntegrationDataflowResponse, + ) + from datadog_api_client.v2.model.nebius_cloud_logs_integration_dataflow_response import ( + NebiusCloudLogsIntegrationDataflowResponse, + ) + from datadog_api_client.v2.model.nebius_cloud_resources_integration_dataflow_response import ( + NebiusCloudResourcesIntegrationDataflowResponse, + ) + from datadog_api_client.v2.model.nebius_cloud_service_quota_collection_integration_dataflow_response import ( + NebiusCloudServiceQuotaCollectionIntegrationDataflowResponse, + ) + + +class NebiusCloudIntegrationDataflowsResponse(ModelNormal): + @cached_property + def openapi_types(_): + from datadog_api_client.v2.model.nebius_cloud_cost_collection_integration_dataflow_response import ( + NebiusCloudCostCollectionIntegrationDataflowResponse, + ) + from datadog_api_client.v2.model.nebius_cloud_logs_integration_dataflow_response import ( + NebiusCloudLogsIntegrationDataflowResponse, + ) + from datadog_api_client.v2.model.nebius_cloud_resources_integration_dataflow_response import ( + NebiusCloudResourcesIntegrationDataflowResponse, + ) + from datadog_api_client.v2.model.nebius_cloud_service_quota_collection_integration_dataflow_response import ( + NebiusCloudServiceQuotaCollectionIntegrationDataflowResponse, + ) + + return { + "nebius_cloud_cost_collection": (NebiusCloudCostCollectionIntegrationDataflowResponse,), + "nebius_cloud_logs": (NebiusCloudLogsIntegrationDataflowResponse,), + "nebius_cloud_resources": (NebiusCloudResourcesIntegrationDataflowResponse,), + "nebius_cloud_service_quota_collection": (NebiusCloudServiceQuotaCollectionIntegrationDataflowResponse,), + } + + attribute_map = { + "nebius_cloud_cost_collection": "nebius-cloud-cost-collection", + "nebius_cloud_logs": "nebius-cloud-logs", + "nebius_cloud_resources": "nebius-cloud-resources", + "nebius_cloud_service_quota_collection": "nebius-cloud-service-quota-collection", + } + + def __init__( + self_, + nebius_cloud_cost_collection: Union[NebiusCloudCostCollectionIntegrationDataflowResponse, UnsetType] = unset, + nebius_cloud_logs: Union[NebiusCloudLogsIntegrationDataflowResponse, UnsetType] = unset, + nebius_cloud_resources: Union[NebiusCloudResourcesIntegrationDataflowResponse, UnsetType] = unset, + nebius_cloud_service_quota_collection: Union[ + NebiusCloudServiceQuotaCollectionIntegrationDataflowResponse, UnsetType + ] = unset, + **kwargs, + ): + """ + Data Datadog collects from Nebius Cloud, keyed by dataflow id. + + :param nebius_cloud_cost_collection: Cloud cost data read from a Nebius Object Storage bucket export and used by `Cloud Cost Management `_. Requires a bucket holding your cost export and a Nebius access key pair that can read it; without both this dataflow collects no data. + :type nebius_cloud_cost_collection: NebiusCloudCostCollectionIntegrationDataflowResponse, optional + + :param nebius_cloud_logs: Logs from your Nebius tenant: Kubernetes control plane and audit logs, tenant-level audit events, compute serial console logs, cloud apps and AI inference logs, PostgreSQL logs, and MLflow logs, collected from the services named in ``settings.enabled_services``. + :type nebius_cloud_logs: NebiusCloudLogsIntegrationDataflowResponse, optional + + :param nebius_cloud_resources: Metadata about resources in your Nebius tenant, such as compute instances and Kubernetes clusters. + :type nebius_cloud_resources: NebiusCloudResourcesIntegrationDataflowResponse, optional + + :param nebius_cloud_service_quota_collection: Usage metrics tracked against your Nebius service quotas, such as ``nebius_cloud.servicequota.percentage_used`` and ``nebius_cloud.servicequota.limit``. + :type nebius_cloud_service_quota_collection: NebiusCloudServiceQuotaCollectionIntegrationDataflowResponse, optional + """ + if nebius_cloud_cost_collection is not unset: + kwargs["nebius_cloud_cost_collection"] = nebius_cloud_cost_collection + if nebius_cloud_logs is not unset: + kwargs["nebius_cloud_logs"] = nebius_cloud_logs + if nebius_cloud_resources is not unset: + kwargs["nebius_cloud_resources"] = nebius_cloud_resources + if nebius_cloud_service_quota_collection is not unset: + kwargs["nebius_cloud_service_quota_collection"] = nebius_cloud_service_quota_collection + super().__init__(kwargs) diff --git a/src/datadog_api_client/v2/model/nebius_cloud_logs_integration_dataflow_request.py b/src/datadog_api_client/v2/model/nebius_cloud_logs_integration_dataflow_request.py new file mode 100644 index 0000000000..83aa3ba57f --- /dev/null +++ b/src/datadog_api_client/v2/model/nebius_cloud_logs_integration_dataflow_request.py @@ -0,0 +1,62 @@ +# 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. +from __future__ import annotations + +from typing import Union, TYPE_CHECKING + +from datadog_api_client.model_utils import ( + ModelNormal, + cached_property, + unset, + UnsetType, +) + + +if TYPE_CHECKING: + from datadog_api_client.v2.model.nebius_cloud_logs_integration_dataflow_settings_request import ( + NebiusCloudLogsIntegrationDataflowSettingsRequest, + ) + + +class NebiusCloudLogsIntegrationDataflowRequest(ModelNormal): + @cached_property + def additional_properties_type(_): + return None + + @cached_property + def openapi_types(_): + from datadog_api_client.v2.model.nebius_cloud_logs_integration_dataflow_settings_request import ( + NebiusCloudLogsIntegrationDataflowSettingsRequest, + ) + + return { + "enabled": (bool,), + "settings": (NebiusCloudLogsIntegrationDataflowSettingsRequest,), + } + + attribute_map = { + "enabled": "enabled", + "settings": "settings", + } + + def __init__( + self_, + enabled: Union[bool, UnsetType] = unset, + settings: Union[NebiusCloudLogsIntegrationDataflowSettingsRequest, UnsetType] = unset, + **kwargs, + ): + """ + Logs from your Nebius tenant: Kubernetes control plane and audit logs, tenant-level audit events, compute serial console logs, cloud apps and AI inference logs, PostgreSQL logs, and MLflow logs, collected from the services named in ``settings.enabled_services``. ``enabled_services`` is the sole source of truth for what is collected; ``enabled`` set to ``false`` stops log collection, while ``true`` on its own changes nothing. Defaults to no services. + + :param enabled: Whether Datadog collects logs. Defaults to ``false``. Set to ``false`` to stop log collection; sending ``true`` on its own changes nothing, because ``settings.enabled_services`` is the sole source of truth. + :type enabled: bool, optional + + :param settings: Settings of the logs dataflow. Only the fields provided are changed. + :type settings: NebiusCloudLogsIntegrationDataflowSettingsRequest, optional + """ + if enabled is not unset: + kwargs["enabled"] = enabled + if settings is not unset: + kwargs["settings"] = settings + super().__init__(kwargs) diff --git a/src/datadog_api_client/v2/model/nebius_cloud_logs_integration_dataflow_response.py b/src/datadog_api_client/v2/model/nebius_cloud_logs_integration_dataflow_response.py new file mode 100644 index 0000000000..9873645b87 --- /dev/null +++ b/src/datadog_api_client/v2/model/nebius_cloud_logs_integration_dataflow_response.py @@ -0,0 +1,58 @@ +# 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. +from __future__ import annotations + +from typing import Union, TYPE_CHECKING + +from datadog_api_client.model_utils import ( + ModelNormal, + cached_property, + unset, + UnsetType, +) + + +if TYPE_CHECKING: + from datadog_api_client.v2.model.nebius_cloud_logs_integration_dataflow_settings_response import ( + NebiusCloudLogsIntegrationDataflowSettingsResponse, + ) + + +class NebiusCloudLogsIntegrationDataflowResponse(ModelNormal): + @cached_property + def openapi_types(_): + from datadog_api_client.v2.model.nebius_cloud_logs_integration_dataflow_settings_response import ( + NebiusCloudLogsIntegrationDataflowSettingsResponse, + ) + + return { + "enabled": (bool,), + "settings": (NebiusCloudLogsIntegrationDataflowSettingsResponse,), + } + + attribute_map = { + "enabled": "enabled", + "settings": "settings", + } + + def __init__( + self_, + enabled: Union[bool, UnsetType] = unset, + settings: Union[NebiusCloudLogsIntegrationDataflowSettingsResponse, UnsetType] = unset, + **kwargs, + ): + """ + Logs from your Nebius tenant: Kubernetes control plane and audit logs, tenant-level audit events, compute serial console logs, cloud apps and AI inference logs, PostgreSQL logs, and MLflow logs, collected from the services named in ``settings.enabled_services``. + + :param enabled: Whether Datadog collects logs. Absent when no service is enabled. + :type enabled: bool, optional + + :param settings: Settings of the logs dataflow. + :type settings: NebiusCloudLogsIntegrationDataflowSettingsResponse, optional + """ + if enabled is not unset: + kwargs["enabled"] = enabled + if settings is not unset: + kwargs["settings"] = settings + super().__init__(kwargs) diff --git a/src/datadog_api_client/v2/model/nebius_cloud_logs_integration_dataflow_settings_request.py b/src/datadog_api_client/v2/model/nebius_cloud_logs_integration_dataflow_settings_request.py new file mode 100644 index 0000000000..4abdd5b2d8 --- /dev/null +++ b/src/datadog_api_client/v2/model/nebius_cloud_logs_integration_dataflow_settings_request.py @@ -0,0 +1,52 @@ +# 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. +from __future__ import annotations + +from typing import List, Union, TYPE_CHECKING + +from datadog_api_client.model_utils import ( + ModelNormal, + cached_property, + unset, + UnsetType, +) + + +if TYPE_CHECKING: + from datadog_api_client.v2.model.nebius_cloud_logs_integration_service_name import ( + NebiusCloudLogsIntegrationServiceName, + ) + + +class NebiusCloudLogsIntegrationDataflowSettingsRequest(ModelNormal): + @cached_property + def additional_properties_type(_): + return None + + @cached_property + def openapi_types(_): + from datadog_api_client.v2.model.nebius_cloud_logs_integration_service_name import ( + NebiusCloudLogsIntegrationServiceName, + ) + + return { + "enabled_services": ([NebiusCloudLogsIntegrationServiceName],), + } + + attribute_map = { + "enabled_services": "enabled_services", + } + + def __init__( + self_, enabled_services: Union[List[NebiusCloudLogsIntegrationServiceName], UnsetType] = unset, **kwargs + ): + """ + Settings of the logs dataflow. Only the fields provided are changed. + + :param enabled_services: Nebius log integrations to collect. One of ``nebius-cloud-compute`` , ``nebius-cloud-kubernetes`` , ``nebius-cloud-mlflow`` , ``nebius-cloud-postgresql`` , ``nebius-cloud-applications`` , or ``default`` for the streams shared by every service. A non-empty list is the sole source of truth and replaces the stored list: those services are collected and any others stop. An empty list stops log collection entirely. Omit it to keep the stored list. + :type enabled_services: [NebiusCloudLogsIntegrationServiceName], optional + """ + if enabled_services is not unset: + kwargs["enabled_services"] = enabled_services + super().__init__(kwargs) diff --git a/src/datadog_api_client/v2/model/nebius_cloud_logs_integration_dataflow_settings_response.py b/src/datadog_api_client/v2/model/nebius_cloud_logs_integration_dataflow_settings_response.py new file mode 100644 index 0000000000..0b46468f34 --- /dev/null +++ b/src/datadog_api_client/v2/model/nebius_cloud_logs_integration_dataflow_settings_response.py @@ -0,0 +1,36 @@ +# 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. +from __future__ import annotations + +from typing import List, Union + +from datadog_api_client.model_utils import ( + ModelNormal, + cached_property, + unset, + UnsetType, +) + + +class NebiusCloudLogsIntegrationDataflowSettingsResponse(ModelNormal): + @cached_property + def openapi_types(_): + return { + "enabled_services": ([str],), + } + + attribute_map = { + "enabled_services": "enabled_services", + } + + def __init__(self_, enabled_services: Union[List[str], UnsetType] = unset, **kwargs): + """ + Settings of the logs dataflow. + + :param enabled_services: Nebius log integrations collected, such as ``nebius-cloud-compute`` and ``default``. Absent when no service is enabled. + :type enabled_services: [str], optional + """ + if enabled_services is not unset: + kwargs["enabled_services"] = enabled_services + super().__init__(kwargs) diff --git a/src/datadog_api_client/v2/model/nebius_cloud_logs_integration_service_name.py b/src/datadog_api_client/v2/model/nebius_cloud_logs_integration_service_name.py new file mode 100644 index 0000000000..661886e5e3 --- /dev/null +++ b/src/datadog_api_client/v2/model/nebius_cloud_logs_integration_service_name.py @@ -0,0 +1,58 @@ +# 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. +from __future__ import annotations + + +from datadog_api_client.model_utils import ( + ModelSimple, + cached_property, +) + +from typing import ClassVar + + +class NebiusCloudLogsIntegrationServiceName(ModelSimple): + """ + Nebius log integration whose streams are collected. + + :param value: Must be one of ["nebius-cloud-compute", "nebius-cloud-kubernetes", "nebius-cloud-mlflow", "nebius-cloud-postgresql", "nebius-cloud-applications", "default"]. + :type value: str + """ + + allowed_values = { + "nebius-cloud-compute", + "nebius-cloud-kubernetes", + "nebius-cloud-mlflow", + "nebius-cloud-postgresql", + "nebius-cloud-applications", + "default", + } + NEBIUS_CLOUD_COMPUTE: ClassVar["NebiusCloudLogsIntegrationServiceName"] + NEBIUS_CLOUD_KUBERNETES: ClassVar["NebiusCloudLogsIntegrationServiceName"] + NEBIUS_CLOUD_MLFLOW: ClassVar["NebiusCloudLogsIntegrationServiceName"] + NEBIUS_CLOUD_POSTGRESQL: ClassVar["NebiusCloudLogsIntegrationServiceName"] + NEBIUS_CLOUD_APPLICATIONS: ClassVar["NebiusCloudLogsIntegrationServiceName"] + DEFAULT: ClassVar["NebiusCloudLogsIntegrationServiceName"] + + @cached_property + def openapi_types(_): + return { + "value": (str,), + } + + +NebiusCloudLogsIntegrationServiceName.NEBIUS_CLOUD_COMPUTE = NebiusCloudLogsIntegrationServiceName( + "nebius-cloud-compute" +) +NebiusCloudLogsIntegrationServiceName.NEBIUS_CLOUD_KUBERNETES = NebiusCloudLogsIntegrationServiceName( + "nebius-cloud-kubernetes" +) +NebiusCloudLogsIntegrationServiceName.NEBIUS_CLOUD_MLFLOW = NebiusCloudLogsIntegrationServiceName("nebius-cloud-mlflow") +NebiusCloudLogsIntegrationServiceName.NEBIUS_CLOUD_POSTGRESQL = NebiusCloudLogsIntegrationServiceName( + "nebius-cloud-postgresql" +) +NebiusCloudLogsIntegrationServiceName.NEBIUS_CLOUD_APPLICATIONS = NebiusCloudLogsIntegrationServiceName( + "nebius-cloud-applications" +) +NebiusCloudLogsIntegrationServiceName.DEFAULT = NebiusCloudLogsIntegrationServiceName("default") diff --git a/src/datadog_api_client/v2/model/nebius_cloud_resources_integration_dataflow_request.py b/src/datadog_api_client/v2/model/nebius_cloud_resources_integration_dataflow_request.py new file mode 100644 index 0000000000..f9ba82ff16 --- /dev/null +++ b/src/datadog_api_client/v2/model/nebius_cloud_resources_integration_dataflow_request.py @@ -0,0 +1,40 @@ +# 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. +from __future__ import annotations + +from typing import Union + +from datadog_api_client.model_utils import ( + ModelNormal, + cached_property, + unset, + UnsetType, +) + + +class NebiusCloudResourcesIntegrationDataflowRequest(ModelNormal): + @cached_property + def additional_properties_type(_): + return None + + @cached_property + def openapi_types(_): + return { + "enabled": (bool,), + } + + attribute_map = { + "enabled": "enabled", + } + + def __init__(self_, enabled: Union[bool, UnsetType] = unset, **kwargs): + """ + Metadata about resources in your Nebius tenant, such as compute instances and Kubernetes clusters. + + :param enabled: Whether Datadog collects this data. Defaults to ``false`` ; set to ``true`` to start collection. + :type enabled: bool, optional + """ + if enabled is not unset: + kwargs["enabled"] = enabled + super().__init__(kwargs) diff --git a/src/datadog_api_client/v2/model/nebius_cloud_resources_integration_dataflow_response.py b/src/datadog_api_client/v2/model/nebius_cloud_resources_integration_dataflow_response.py new file mode 100644 index 0000000000..ba02d769a7 --- /dev/null +++ b/src/datadog_api_client/v2/model/nebius_cloud_resources_integration_dataflow_response.py @@ -0,0 +1,36 @@ +# 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. +from __future__ import annotations + +from typing import Union + +from datadog_api_client.model_utils import ( + ModelNormal, + cached_property, + unset, + UnsetType, +) + + +class NebiusCloudResourcesIntegrationDataflowResponse(ModelNormal): + @cached_property + def openapi_types(_): + return { + "enabled": (bool,), + } + + attribute_map = { + "enabled": "enabled", + } + + def __init__(self_, enabled: Union[bool, UnsetType] = unset, **kwargs): + """ + Metadata about resources in your Nebius tenant, such as compute instances and Kubernetes clusters. + + :param enabled: Whether Datadog collects this data. Absent when the dataflow has never been configured. + :type enabled: bool, optional + """ + if enabled is not unset: + kwargs["enabled"] = enabled + super().__init__(kwargs) diff --git a/src/datadog_api_client/v2/model/nebius_cloud_service_quota_collection_integration_dataflow_request.py b/src/datadog_api_client/v2/model/nebius_cloud_service_quota_collection_integration_dataflow_request.py new file mode 100644 index 0000000000..f0d025ed0a --- /dev/null +++ b/src/datadog_api_client/v2/model/nebius_cloud_service_quota_collection_integration_dataflow_request.py @@ -0,0 +1,40 @@ +# 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. +from __future__ import annotations + +from typing import Union + +from datadog_api_client.model_utils import ( + ModelNormal, + cached_property, + unset, + UnsetType, +) + + +class NebiusCloudServiceQuotaCollectionIntegrationDataflowRequest(ModelNormal): + @cached_property + def additional_properties_type(_): + return None + + @cached_property + def openapi_types(_): + return { + "enabled": (bool,), + } + + attribute_map = { + "enabled": "enabled", + } + + def __init__(self_, enabled: Union[bool, UnsetType] = unset, **kwargs): + """ + Usage metrics tracked against your Nebius service quotas, such as ``nebius_cloud.servicequota.percentage_used`` and ``nebius_cloud.servicequota.limit``. + + :param enabled: Whether Datadog collects this data. Defaults to ``false`` ; set to ``true`` to start collection. + :type enabled: bool, optional + """ + if enabled is not unset: + kwargs["enabled"] = enabled + super().__init__(kwargs) diff --git a/src/datadog_api_client/v2/model/nebius_cloud_service_quota_collection_integration_dataflow_response.py b/src/datadog_api_client/v2/model/nebius_cloud_service_quota_collection_integration_dataflow_response.py new file mode 100644 index 0000000000..501fcd59fd --- /dev/null +++ b/src/datadog_api_client/v2/model/nebius_cloud_service_quota_collection_integration_dataflow_response.py @@ -0,0 +1,36 @@ +# 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. +from __future__ import annotations + +from typing import Union + +from datadog_api_client.model_utils import ( + ModelNormal, + cached_property, + unset, + UnsetType, +) + + +class NebiusCloudServiceQuotaCollectionIntegrationDataflowResponse(ModelNormal): + @cached_property + def openapi_types(_): + return { + "enabled": (bool,), + } + + attribute_map = { + "enabled": "enabled", + } + + def __init__(self_, enabled: Union[bool, UnsetType] = unset, **kwargs): + """ + Usage metrics tracked against your Nebius service quotas, such as ``nebius_cloud.servicequota.percentage_used`` and ``nebius_cloud.servicequota.limit``. + + :param enabled: Whether Datadog collects this data. Absent when the dataflow has never been configured. + :type enabled: bool, optional + """ + if enabled is not unset: + kwargs["enabled"] = enabled + super().__init__(kwargs) diff --git a/src/datadog_api_client/v2/models/__init__.py b/src/datadog_api_client/v2/models/__init__.py index e18d2b2442..d4546e272b 100644 --- a/src/datadog_api_client/v2/models/__init__.py +++ b/src/datadog_api_client/v2/models/__init__.py @@ -7369,6 +7369,116 @@ from datadog_api_client.v2.model.ndk_sourcemap_attributes import NDKSourcemapAttributes from datadog_api_client.v2.model.ndk_sourcemap_data import NDKSourcemapData from datadog_api_client.v2.model.ndk_sourcemap_map_kind import NDKSourcemapMapKind +from datadog_api_client.v2.model.nebius_cloud_cost_collection_integration_dataflow_request import ( + NebiusCloudCostCollectionIntegrationDataflowRequest, +) +from datadog_api_client.v2.model.nebius_cloud_cost_collection_integration_dataflow_response import ( + NebiusCloudCostCollectionIntegrationDataflowResponse, +) +from datadog_api_client.v2.model.nebius_cloud_cost_collection_integration_dataflow_settings_request import ( + NebiusCloudCostCollectionIntegrationDataflowSettingsRequest, +) +from datadog_api_client.v2.model.nebius_cloud_cost_collection_integration_dataflow_settings_response import ( + NebiusCloudCostCollectionIntegrationDataflowSettingsResponse, +) +from datadog_api_client.v2.model.nebius_cloud_integration_account_authentication_request import ( + NebiusCloudIntegrationAccountAuthenticationRequest, +) +from datadog_api_client.v2.model.nebius_cloud_integration_account_authentication_response import ( + NebiusCloudIntegrationAccountAuthenticationResponse, +) +from datadog_api_client.v2.model.nebius_cloud_integration_account_authentication_update import ( + NebiusCloudIntegrationAccountAuthenticationUpdate, +) +from datadog_api_client.v2.model.nebius_cloud_integration_account_create_attributes import ( + NebiusCloudIntegrationAccountCreateAttributes, +) +from datadog_api_client.v2.model.nebius_cloud_integration_account_create_data import ( + NebiusCloudIntegrationAccountCreateData, +) +from datadog_api_client.v2.model.nebius_cloud_integration_account_create_request import ( + NebiusCloudIntegrationAccountCreateRequest, +) +from datadog_api_client.v2.model.nebius_cloud_integration_account_metrics_config_request import ( + NebiusCloudIntegrationAccountMetricsConfigRequest, +) +from datadog_api_client.v2.model.nebius_cloud_integration_account_metrics_config_response import ( + NebiusCloudIntegrationAccountMetricsConfigResponse, +) +from datadog_api_client.v2.model.nebius_cloud_integration_account_metrics_config_update import ( + NebiusCloudIntegrationAccountMetricsConfigUpdate, +) +from datadog_api_client.v2.model.nebius_cloud_integration_account_response import NebiusCloudIntegrationAccountResponse +from datadog_api_client.v2.model.nebius_cloud_integration_account_response_attributes import ( + NebiusCloudIntegrationAccountResponseAttributes, +) +from datadog_api_client.v2.model.nebius_cloud_integration_account_response_data import ( + NebiusCloudIntegrationAccountResponseData, +) +from datadog_api_client.v2.model.nebius_cloud_integration_account_service_account_auth_request import ( + NebiusCloudIntegrationAccountServiceAccountAuthRequest, +) +from datadog_api_client.v2.model.nebius_cloud_integration_account_service_account_auth_response import ( + NebiusCloudIntegrationAccountServiceAccountAuthResponse, +) +from datadog_api_client.v2.model.nebius_cloud_integration_account_service_account_auth_type import ( + NebiusCloudIntegrationAccountServiceAccountAuthType, +) +from datadog_api_client.v2.model.nebius_cloud_integration_account_service_account_auth_update import ( + NebiusCloudIntegrationAccountServiceAccountAuthUpdate, +) +from datadog_api_client.v2.model.nebius_cloud_integration_account_settings_request import ( + NebiusCloudIntegrationAccountSettingsRequest, +) +from datadog_api_client.v2.model.nebius_cloud_integration_account_settings_response import ( + NebiusCloudIntegrationAccountSettingsResponse, +) +from datadog_api_client.v2.model.nebius_cloud_integration_account_settings_update import ( + NebiusCloudIntegrationAccountSettingsUpdate, +) +from datadog_api_client.v2.model.nebius_cloud_integration_account_update_attributes import ( + NebiusCloudIntegrationAccountUpdateAttributes, +) +from datadog_api_client.v2.model.nebius_cloud_integration_account_update_data import ( + NebiusCloudIntegrationAccountUpdateData, +) +from datadog_api_client.v2.model.nebius_cloud_integration_account_update_request import ( + NebiusCloudIntegrationAccountUpdateRequest, +) +from datadog_api_client.v2.model.nebius_cloud_integration_accounts_response import ( + NebiusCloudIntegrationAccountsResponse, +) +from datadog_api_client.v2.model.nebius_cloud_integration_dataflows_request import ( + NebiusCloudIntegrationDataflowsRequest, +) +from datadog_api_client.v2.model.nebius_cloud_integration_dataflows_response import ( + NebiusCloudIntegrationDataflowsResponse, +) +from datadog_api_client.v2.model.nebius_cloud_logs_integration_dataflow_request import ( + NebiusCloudLogsIntegrationDataflowRequest, +) +from datadog_api_client.v2.model.nebius_cloud_logs_integration_dataflow_response import ( + NebiusCloudLogsIntegrationDataflowResponse, +) +from datadog_api_client.v2.model.nebius_cloud_logs_integration_dataflow_settings_request import ( + NebiusCloudLogsIntegrationDataflowSettingsRequest, +) +from datadog_api_client.v2.model.nebius_cloud_logs_integration_dataflow_settings_response import ( + NebiusCloudLogsIntegrationDataflowSettingsResponse, +) +from datadog_api_client.v2.model.nebius_cloud_logs_integration_service_name import NebiusCloudLogsIntegrationServiceName +from datadog_api_client.v2.model.nebius_cloud_resources_integration_dataflow_request import ( + NebiusCloudResourcesIntegrationDataflowRequest, +) +from datadog_api_client.v2.model.nebius_cloud_resources_integration_dataflow_response import ( + NebiusCloudResourcesIntegrationDataflowResponse, +) +from datadog_api_client.v2.model.nebius_cloud_service_quota_collection_integration_dataflow_request import ( + NebiusCloudServiceQuotaCollectionIntegrationDataflowRequest, +) +from datadog_api_client.v2.model.nebius_cloud_service_quota_collection_integration_dataflow_response import ( + NebiusCloudServiceQuotaCollectionIntegrationDataflowResponse, +) from datadog_api_client.v2.model.node_type import NodeType from datadog_api_client.v2.model.node_types_response import NodeTypesResponse from datadog_api_client.v2.model.node_types_response_data import NodeTypesResponseData @@ -19239,6 +19349,44 @@ "NDKSourcemapAttributes", "NDKSourcemapData", "NDKSourcemapMapKind", + "NebiusCloudCostCollectionIntegrationDataflowRequest", + "NebiusCloudCostCollectionIntegrationDataflowResponse", + "NebiusCloudCostCollectionIntegrationDataflowSettingsRequest", + "NebiusCloudCostCollectionIntegrationDataflowSettingsResponse", + "NebiusCloudIntegrationAccountAuthenticationRequest", + "NebiusCloudIntegrationAccountAuthenticationResponse", + "NebiusCloudIntegrationAccountAuthenticationUpdate", + "NebiusCloudIntegrationAccountCreateAttributes", + "NebiusCloudIntegrationAccountCreateData", + "NebiusCloudIntegrationAccountCreateRequest", + "NebiusCloudIntegrationAccountMetricsConfigRequest", + "NebiusCloudIntegrationAccountMetricsConfigResponse", + "NebiusCloudIntegrationAccountMetricsConfigUpdate", + "NebiusCloudIntegrationAccountResponse", + "NebiusCloudIntegrationAccountResponseAttributes", + "NebiusCloudIntegrationAccountResponseData", + "NebiusCloudIntegrationAccountServiceAccountAuthRequest", + "NebiusCloudIntegrationAccountServiceAccountAuthResponse", + "NebiusCloudIntegrationAccountServiceAccountAuthType", + "NebiusCloudIntegrationAccountServiceAccountAuthUpdate", + "NebiusCloudIntegrationAccountSettingsRequest", + "NebiusCloudIntegrationAccountSettingsResponse", + "NebiusCloudIntegrationAccountSettingsUpdate", + "NebiusCloudIntegrationAccountUpdateAttributes", + "NebiusCloudIntegrationAccountUpdateData", + "NebiusCloudIntegrationAccountUpdateRequest", + "NebiusCloudIntegrationAccountsResponse", + "NebiusCloudIntegrationDataflowsRequest", + "NebiusCloudIntegrationDataflowsResponse", + "NebiusCloudLogsIntegrationDataflowRequest", + "NebiusCloudLogsIntegrationDataflowResponse", + "NebiusCloudLogsIntegrationDataflowSettingsRequest", + "NebiusCloudLogsIntegrationDataflowSettingsResponse", + "NebiusCloudLogsIntegrationServiceName", + "NebiusCloudResourcesIntegrationDataflowRequest", + "NebiusCloudResourcesIntegrationDataflowResponse", + "NebiusCloudServiceQuotaCollectionIntegrationDataflowRequest", + "NebiusCloudServiceQuotaCollectionIntegrationDataflowResponse", "NodeType", "NodeTypesResponse", "NodeTypesResponseData", diff --git a/tests/v2/features/given.json b/tests/v2/features/given.json index b33de98f6e..c7f6385fa8 100644 --- a/tests/v2/features/given.json +++ b/tests/v2/features/given.json @@ -910,6 +910,18 @@ "tag": "Incidents", "operationId": "CreateIncidentTodo" }, + { + "parameters": [ + { + "name": "body", + "value": "{\"data\": {\"type\": \"integration-account\", \"attributes\": {\"name\": \"nebius-{{ unique }}\", \"authentication\": {\"auth_type\": \"nebius_service_account\", \"service_account_id\": \"serviceaccount-xxxxxxxx\"}, \"settings\": {\"tenant_id\": \"tenant-12345678\"}}}}" + } + ], + "step": "there is a valid \"nebius_cloud_integration_account\" in the system", + "key": "nebius_cloud_integration_account", + "tag": "Nebius Cloud Integration", + "operationId": "CreateNebiusCloudIntegrationAccount" + }, { "step": "there is an integrated AWS test account for WIF", "key": "aws_wif_account_v2", diff --git a/tests/v2/features/nebius_cloud_integration.feature b/tests/v2/features/nebius_cloud_integration.feature new file mode 100644 index 0000000000..aaad053a71 --- /dev/null +++ b/tests/v2/features/nebius_cloud_integration.feature @@ -0,0 +1,148 @@ +@endpoint(nebius-cloud-integration) @endpoint(nebius-cloud-integration-v2) +Feature: Nebius Cloud Integration + Manage your Datadog Nebius Cloud integration accounts and account + resources directly through the Datadog API. See the [Nebius Cloud + integration page](https://docs.datadoghq.com/integrations/nebius_cloud/) + for more information. + + Background: + Given a valid "apiKeyAuth" key in the system + And a valid "appKeyAuth" key in the system + And an instance of "NebiusCloudIntegration" API + + @generated @skip @team:ddoghq/emerging-cloud-integrations + Scenario: Create a Nebius Cloud integration account returns "Bad Request" response + Given operation "CreateNebiusCloudIntegrationAccount" enabled + And new "CreateNebiusCloudIntegrationAccount" request + And body with value {"data": {"attributes": {"authentication": {"auth_type": "nebius_service_account", "private_key": "-----BEGIN PRIVATE KEY-----\nMIIE...\n-----END PRIVATE KEY-----", "public_key_id": "publickey-yyyyyyyy", "service_account_id": "serviceaccount-xxxxxxxx", "static_api_key": "eyJhbGciOi...static-api-key"}, "dataflows": {"nebius-cloud-cost-collection": {"enabled": true, "settings": {"access_key_id": "AKID0123456789ABCDEF", "access_key_secret": "wJalrXUtnFEMIstaticaccesskey", "bucket_name": "nebius-cost-exports", "bucket_prefix_path": "cost-export/2026/", "bucket_region": "eu-north1"}}, "nebius-cloud-logs": {"enabled": true, "settings": {"enabled_services": ["nebius-cloud-compute", "nebius-cloud-kubernetes", "default"]}}, "nebius-cloud-resources": {"enabled": true}, "nebius-cloud-service-quota-collection": {"enabled": true}}, "name": "nebius-prod", "settings": {"account_tags": ["env:prod", "team:ai"], "metrics_config": {"cluster_filters": ["cluster:prod-*", "!cluster:dev"]}, "tenant_id": "tenant-12345678"}}, "type": "integration-account"}} + When the request is sent + Then the response status is 400 Bad Request + + @generated @skip @team:ddoghq/emerging-cloud-integrations + Scenario: Create a Nebius Cloud integration account returns "Created" response + Given operation "CreateNebiusCloudIntegrationAccount" enabled + And new "CreateNebiusCloudIntegrationAccount" request + And body with value {"data": {"attributes": {"authentication": {"auth_type": "nebius_service_account", "private_key": "-----BEGIN PRIVATE KEY-----\nMIIE...\n-----END PRIVATE KEY-----", "public_key_id": "publickey-yyyyyyyy", "service_account_id": "serviceaccount-xxxxxxxx", "static_api_key": "eyJhbGciOi...static-api-key"}, "dataflows": {"nebius-cloud-cost-collection": {"enabled": true, "settings": {"access_key_id": "AKID0123456789ABCDEF", "access_key_secret": "wJalrXUtnFEMIstaticaccesskey", "bucket_name": "nebius-cost-exports", "bucket_prefix_path": "cost-export/2026/", "bucket_region": "eu-north1"}}, "nebius-cloud-logs": {"enabled": true, "settings": {"enabled_services": ["nebius-cloud-compute", "nebius-cloud-kubernetes", "default"]}}, "nebius-cloud-resources": {"enabled": true}, "nebius-cloud-service-quota-collection": {"enabled": true}}, "name": "nebius-prod", "settings": {"account_tags": ["env:prod", "team:ai"], "metrics_config": {"cluster_filters": ["cluster:prod-*", "!cluster:dev"]}, "tenant_id": "tenant-12345678"}}, "type": "integration-account"}} + When the request is sent + Then the response status is 201 Created + + @generated @skip @team:ddoghq/emerging-cloud-integrations + Scenario: Create a Nebius Cloud integration account returns "Not Found" response + Given operation "CreateNebiusCloudIntegrationAccount" enabled + And new "CreateNebiusCloudIntegrationAccount" request + And body with value {"data": {"attributes": {"authentication": {"auth_type": "nebius_service_account", "private_key": "-----BEGIN PRIVATE KEY-----\nMIIE...\n-----END PRIVATE KEY-----", "public_key_id": "publickey-yyyyyyyy", "service_account_id": "serviceaccount-xxxxxxxx", "static_api_key": "eyJhbGciOi...static-api-key"}, "dataflows": {"nebius-cloud-cost-collection": {"enabled": true, "settings": {"access_key_id": "AKID0123456789ABCDEF", "access_key_secret": "wJalrXUtnFEMIstaticaccesskey", "bucket_name": "nebius-cost-exports", "bucket_prefix_path": "cost-export/2026/", "bucket_region": "eu-north1"}}, "nebius-cloud-logs": {"enabled": true, "settings": {"enabled_services": ["nebius-cloud-compute", "nebius-cloud-kubernetes", "default"]}}, "nebius-cloud-resources": {"enabled": true}, "nebius-cloud-service-quota-collection": {"enabled": true}}, "name": "nebius-prod", "settings": {"account_tags": ["env:prod", "team:ai"], "metrics_config": {"cluster_filters": ["cluster:prod-*", "!cluster:dev"]}, "tenant_id": "tenant-12345678"}}, "type": "integration-account"}} + When the request is sent + Then the response status is 404 Not Found + + @generated @skip @team:ddoghq/emerging-cloud-integrations + Scenario: Create a Nebius Cloud integration account returns "The server cannot process the request because it contains invalid data." response + Given operation "CreateNebiusCloudIntegrationAccount" enabled + And new "CreateNebiusCloudIntegrationAccount" request + And body with value {"data": {"attributes": {"authentication": {"auth_type": "nebius_service_account", "private_key": "-----BEGIN PRIVATE KEY-----\nMIIE...\n-----END PRIVATE KEY-----", "public_key_id": "publickey-yyyyyyyy", "service_account_id": "serviceaccount-xxxxxxxx", "static_api_key": "eyJhbGciOi...static-api-key"}, "dataflows": {"nebius-cloud-cost-collection": {"enabled": true, "settings": {"access_key_id": "AKID0123456789ABCDEF", "access_key_secret": "wJalrXUtnFEMIstaticaccesskey", "bucket_name": "nebius-cost-exports", "bucket_prefix_path": "cost-export/2026/", "bucket_region": "eu-north1"}}, "nebius-cloud-logs": {"enabled": true, "settings": {"enabled_services": ["nebius-cloud-compute", "nebius-cloud-kubernetes", "default"]}}, "nebius-cloud-resources": {"enabled": true}, "nebius-cloud-service-quota-collection": {"enabled": true}}, "name": "nebius-prod", "settings": {"account_tags": ["env:prod", "team:ai"], "metrics_config": {"cluster_filters": ["cluster:prod-*", "!cluster:dev"]}, "tenant_id": "tenant-12345678"}}, "type": "integration-account"}} + When the request is sent + Then the response status is 422 The server cannot process the request because it contains invalid data. + + @generated @skip @team:ddoghq/emerging-cloud-integrations + Scenario: Delete a Nebius Cloud integration account returns "Bad Request" response + Given operation "DeleteNebiusCloudIntegrationAccount" enabled + And new "DeleteNebiusCloudIntegrationAccount" request + And request contains "account_id" parameter from "REPLACE.ME" + When the request is sent + Then the response status is 400 Bad Request + + @generated @skip @team:ddoghq/emerging-cloud-integrations + Scenario: Delete a Nebius Cloud integration account returns "Not Found" response + Given operation "DeleteNebiusCloudIntegrationAccount" enabled + And new "DeleteNebiusCloudIntegrationAccount" request + And request contains "account_id" parameter from "REPLACE.ME" + When the request is sent + Then the response status is 404 Not Found + + @generated @skip @team:ddoghq/emerging-cloud-integrations + Scenario: Delete a Nebius Cloud integration account returns "OK" response + Given operation "DeleteNebiusCloudIntegrationAccount" enabled + And new "DeleteNebiusCloudIntegrationAccount" request + And request contains "account_id" parameter from "REPLACE.ME" + When the request is sent + Then the response status is 200 OK + + @generated @skip @team:ddoghq/emerging-cloud-integrations + Scenario: Get a Nebius Cloud integration account returns "Bad Request" response + Given operation "GetNebiusCloudIntegrationAccount" enabled + And new "GetNebiusCloudIntegrationAccount" request + And request contains "account_id" parameter from "REPLACE.ME" + When the request is sent + Then the response status is 400 Bad Request + + @generated @skip @team:ddoghq/emerging-cloud-integrations + Scenario: Get a Nebius Cloud integration account returns "Not Found" response + Given operation "GetNebiusCloudIntegrationAccount" enabled + And new "GetNebiusCloudIntegrationAccount" request + And request contains "account_id" parameter from "REPLACE.ME" + When the request is sent + Then the response status is 404 Not Found + + @generated @skip @team:ddoghq/emerging-cloud-integrations + Scenario: Get a Nebius Cloud integration account returns "OK" response + Given operation "GetNebiusCloudIntegrationAccount" enabled + And new "GetNebiusCloudIntegrationAccount" request + And request contains "account_id" parameter from "REPLACE.ME" + When the request is sent + Then the response status is 200 OK + + @generated @skip @team:ddoghq/emerging-cloud-integrations + Scenario: List Nebius Cloud integration accounts returns "Bad Request" response + Given operation "ListNebiusCloudIntegrationAccounts" enabled + And new "ListNebiusCloudIntegrationAccounts" request + When the request is sent + Then the response status is 400 Bad Request + + @generated @skip @team:ddoghq/emerging-cloud-integrations + Scenario: List Nebius Cloud integration accounts returns "Not Found" response + Given operation "ListNebiusCloudIntegrationAccounts" enabled + And new "ListNebiusCloudIntegrationAccounts" request + When the request is sent + Then the response status is 404 Not Found + + @generated @skip @team:ddoghq/emerging-cloud-integrations + Scenario: List Nebius Cloud integration accounts returns "OK" response + Given operation "ListNebiusCloudIntegrationAccounts" enabled + And new "ListNebiusCloudIntegrationAccounts" request + When the request is sent + Then the response status is 200 OK + + @generated @skip @team:ddoghq/emerging-cloud-integrations + Scenario: Update a Nebius Cloud integration account returns "Bad Request" response + Given operation "UpdateNebiusCloudIntegrationAccount" enabled + And new "UpdateNebiusCloudIntegrationAccount" request + And request contains "account_id" parameter from "REPLACE.ME" + And body with value {"data": {"attributes": {"authentication": {"auth_type": "nebius_service_account", "private_key": "-----BEGIN PRIVATE KEY-----\nMIIE...\n-----END PRIVATE KEY-----", "public_key_id": "publickey-yyyyyyyy", "service_account_id": "serviceaccount-xxxxxxxx", "static_api_key": "eyJhbGciOi...static-api-key"}, "dataflows": {"nebius-cloud-cost-collection": {"enabled": true, "settings": {"access_key_id": "AKID0123456789ABCDEF", "access_key_secret": "wJalrXUtnFEMIstaticaccesskey", "bucket_name": "nebius-cost-exports", "bucket_prefix_path": "cost-export/2026/", "bucket_region": "eu-north1"}}, "nebius-cloud-logs": {"enabled": true, "settings": {"enabled_services": ["nebius-cloud-compute", "nebius-cloud-kubernetes", "default"]}}, "nebius-cloud-resources": {"enabled": true}, "nebius-cloud-service-quota-collection": {"enabled": true}}, "name": "nebius-prod", "settings": {"account_tags": ["env:prod", "team:ai"], "metrics_config": {"cluster_filters": ["cluster:prod-*", "!cluster:dev"]}, "tenant_id": "tenant-12345678"}}, "id": "e5f6a7b8-c9d0-4e1f-8a2b-3c4d5e6f7081", "type": "integration-account"}} + When the request is sent + Then the response status is 400 Bad Request + + @generated @skip @team:ddoghq/emerging-cloud-integrations + Scenario: Update a Nebius Cloud integration account returns "Not Found" response + Given operation "UpdateNebiusCloudIntegrationAccount" enabled + And new "UpdateNebiusCloudIntegrationAccount" request + And request contains "account_id" parameter from "REPLACE.ME" + And body with value {"data": {"attributes": {"authentication": {"auth_type": "nebius_service_account", "private_key": "-----BEGIN PRIVATE KEY-----\nMIIE...\n-----END PRIVATE KEY-----", "public_key_id": "publickey-yyyyyyyy", "service_account_id": "serviceaccount-xxxxxxxx", "static_api_key": "eyJhbGciOi...static-api-key"}, "dataflows": {"nebius-cloud-cost-collection": {"enabled": true, "settings": {"access_key_id": "AKID0123456789ABCDEF", "access_key_secret": "wJalrXUtnFEMIstaticaccesskey", "bucket_name": "nebius-cost-exports", "bucket_prefix_path": "cost-export/2026/", "bucket_region": "eu-north1"}}, "nebius-cloud-logs": {"enabled": true, "settings": {"enabled_services": ["nebius-cloud-compute", "nebius-cloud-kubernetes", "default"]}}, "nebius-cloud-resources": {"enabled": true}, "nebius-cloud-service-quota-collection": {"enabled": true}}, "name": "nebius-prod", "settings": {"account_tags": ["env:prod", "team:ai"], "metrics_config": {"cluster_filters": ["cluster:prod-*", "!cluster:dev"]}, "tenant_id": "tenant-12345678"}}, "id": "e5f6a7b8-c9d0-4e1f-8a2b-3c4d5e6f7081", "type": "integration-account"}} + When the request is sent + Then the response status is 404 Not Found + + @generated @skip @team:ddoghq/emerging-cloud-integrations + Scenario: Update a Nebius Cloud integration account returns "OK" response + Given operation "UpdateNebiusCloudIntegrationAccount" enabled + And new "UpdateNebiusCloudIntegrationAccount" request + And request contains "account_id" parameter from "REPLACE.ME" + And body with value {"data": {"attributes": {"authentication": {"auth_type": "nebius_service_account", "private_key": "-----BEGIN PRIVATE KEY-----\nMIIE...\n-----END PRIVATE KEY-----", "public_key_id": "publickey-yyyyyyyy", "service_account_id": "serviceaccount-xxxxxxxx", "static_api_key": "eyJhbGciOi...static-api-key"}, "dataflows": {"nebius-cloud-cost-collection": {"enabled": true, "settings": {"access_key_id": "AKID0123456789ABCDEF", "access_key_secret": "wJalrXUtnFEMIstaticaccesskey", "bucket_name": "nebius-cost-exports", "bucket_prefix_path": "cost-export/2026/", "bucket_region": "eu-north1"}}, "nebius-cloud-logs": {"enabled": true, "settings": {"enabled_services": ["nebius-cloud-compute", "nebius-cloud-kubernetes", "default"]}}, "nebius-cloud-resources": {"enabled": true}, "nebius-cloud-service-quota-collection": {"enabled": true}}, "name": "nebius-prod", "settings": {"account_tags": ["env:prod", "team:ai"], "metrics_config": {"cluster_filters": ["cluster:prod-*", "!cluster:dev"]}, "tenant_id": "tenant-12345678"}}, "id": "e5f6a7b8-c9d0-4e1f-8a2b-3c4d5e6f7081", "type": "integration-account"}} + When the request is sent + Then the response status is 200 OK + + @generated @skip @team:ddoghq/emerging-cloud-integrations + Scenario: Update a Nebius Cloud integration account returns "The server cannot process the request because it contains invalid data." response + Given operation "UpdateNebiusCloudIntegrationAccount" enabled + And new "UpdateNebiusCloudIntegrationAccount" request + And request contains "account_id" parameter from "REPLACE.ME" + And body with value {"data": {"attributes": {"authentication": {"auth_type": "nebius_service_account", "private_key": "-----BEGIN PRIVATE KEY-----\nMIIE...\n-----END PRIVATE KEY-----", "public_key_id": "publickey-yyyyyyyy", "service_account_id": "serviceaccount-xxxxxxxx", "static_api_key": "eyJhbGciOi...static-api-key"}, "dataflows": {"nebius-cloud-cost-collection": {"enabled": true, "settings": {"access_key_id": "AKID0123456789ABCDEF", "access_key_secret": "wJalrXUtnFEMIstaticaccesskey", "bucket_name": "nebius-cost-exports", "bucket_prefix_path": "cost-export/2026/", "bucket_region": "eu-north1"}}, "nebius-cloud-logs": {"enabled": true, "settings": {"enabled_services": ["nebius-cloud-compute", "nebius-cloud-kubernetes", "default"]}}, "nebius-cloud-resources": {"enabled": true}, "nebius-cloud-service-quota-collection": {"enabled": true}}, "name": "nebius-prod", "settings": {"account_tags": ["env:prod", "team:ai"], "metrics_config": {"cluster_filters": ["cluster:prod-*", "!cluster:dev"]}, "tenant_id": "tenant-12345678"}}, "id": "e5f6a7b8-c9d0-4e1f-8a2b-3c4d5e6f7081", "type": "integration-account"}} + When the request is sent + Then the response status is 422 The server cannot process the request because it contains invalid data. diff --git a/tests/v2/features/undo.json b/tests/v2/features/undo.json index 0d9b33aa46..4fb92fbf0c 100644 --- a/tests/v2/features/undo.json +++ b/tests/v2/features/undo.json @@ -4381,6 +4381,43 @@ "type": "idempotent" } }, + "ListNebiusCloudIntegrationAccounts": { + "tag": "Nebius Cloud Integration", + "undo": { + "type": "safe" + } + }, + "CreateNebiusCloudIntegrationAccount": { + "tag": "Nebius Cloud Integration", + "undo": { + "operationId": "DeleteNebiusCloudIntegrationAccount", + "parameters": [ + { + "name": "account_id", + "source": "data.id" + } + ], + "type": "unsafe" + } + }, + "DeleteNebiusCloudIntegrationAccount": { + "tag": "Nebius Cloud Integration", + "undo": { + "type": "idempotent" + } + }, + "GetNebiusCloudIntegrationAccount": { + "tag": "Nebius Cloud Integration", + "undo": { + "type": "safe" + } + }, + "UpdateNebiusCloudIntegrationAccount": { + "tag": "Nebius Cloud Integration", + "undo": { + "type": "idempotent" + } + }, "ListSnowflakeIntegrationAccounts": { "tag": "Snowflake Integration", "undo": {