diff --git a/.apigentools-info b/.apigentools-info index 722c6f16dd68..ad30384a2f0a 100644 --- a/.apigentools-info +++ b/.apigentools-info @@ -4,13 +4,13 @@ "spec_versions": { "v1": { "apigentools_version": "1.6.6", - "regenerated": "2024-11-04 21:14:35.504551", - "spec_repo_commit": "08338fd1" + "regenerated": "2024-11-05 15:05:36.604829", + "spec_repo_commit": "8d63eae4" }, "v2": { "apigentools_version": "1.6.6", - "regenerated": "2024-11-04 21:14:35.522954", - "spec_repo_commit": "08338fd1" + "regenerated": "2024-11-05 15:05:36.623464", + "spec_repo_commit": "8d63eae4" } } } \ No newline at end of file diff --git a/.generator/schemas/v1/openapi.yaml b/.generator/schemas/v1/openapi.yaml index 7bd4ab4a9439..ce466a1c5dcf 100644 --- a/.generator/schemas/v1/openapi.yaml +++ b/.generator/schemas/v1/openapi.yaml @@ -14418,7 +14418,7 @@ components: $ref: '#/components/schemas/SyntheticsBatchResult' type: array status: - $ref: '#/components/schemas/SyntheticsStatus' + $ref: '#/components/schemas/SyntheticsBatchStatus' type: object SyntheticsBatchResult: description: Object with the results of a Synthetic batch. @@ -14442,7 +14442,7 @@ components: format: double type: number status: - $ref: '#/components/schemas/SyntheticsStatus' + $ref: '#/components/schemas/SyntheticsBatchStatus' test_name: description: Name of the test. type: string @@ -14452,6 +14452,17 @@ components: test_type: $ref: '#/components/schemas/SyntheticsTestDetailsType' type: object + SyntheticsBatchStatus: + description: Determines whether the batch has passed, failed, or is in progress. + enum: + - passed + - skipped + - failed + type: string + x-enum-varnames: + - PASSED + - SKIPPED + - FAILED SyntheticsBrowserError: description: Error response object for a browser test. properties: @@ -16210,18 +16221,6 @@ components: description: Subject Alternative Name associated with the certificate. type: string type: object - SyntheticsStatus: - description: Determines whether or not the batch has passed, failed, or is in - progress. - enum: - - passed - - skipped - - failed - type: string - x-enum-varnames: - - PASSED - - skipped - - failed SyntheticsStep: description: The steps used in a Synthetic browser test. properties: diff --git a/lib/datadog_api_client/inflector.rb b/lib/datadog_api_client/inflector.rb index d4a932395378..512f2e34deb5 100644 --- a/lib/datadog_api_client/inflector.rb +++ b/lib/datadog_api_client/inflector.rb @@ -588,6 +588,7 @@ def overrides "v1.synthetics_batch_details" => "SyntheticsBatchDetails", "v1.synthetics_batch_details_data" => "SyntheticsBatchDetailsData", "v1.synthetics_batch_result" => "SyntheticsBatchResult", + "v1.synthetics_batch_status" => "SyntheticsBatchStatus", "v1.synthetics_browser_error" => "SyntheticsBrowserError", "v1.synthetics_browser_error_type" => "SyntheticsBrowserErrorType", "v1.synthetics_browser_test" => "SyntheticsBrowserTest", @@ -670,7 +671,6 @@ def overrides "v1.synthetics_ssl_certificate" => "SyntheticsSSLCertificate", "v1.synthetics_ssl_certificate_issuer" => "SyntheticsSSLCertificateIssuer", "v1.synthetics_ssl_certificate_subject" => "SyntheticsSSLCertificateSubject", - "v1.synthetics_status" => "SyntheticsStatus", "v1.synthetics_step" => "SyntheticsStep", "v1.synthetics_step_detail" => "SyntheticsStepDetail", "v1.synthetics_step_detail_warning" => "SyntheticsStepDetailWarning", diff --git a/lib/datadog_api_client/v1/models/synthetics_batch_details_data.rb b/lib/datadog_api_client/v1/models/synthetics_batch_details_data.rb index 37cca7178799..116862a8b111 100644 --- a/lib/datadog_api_client/v1/models/synthetics_batch_details_data.rb +++ b/lib/datadog_api_client/v1/models/synthetics_batch_details_data.rb @@ -27,7 +27,7 @@ class SyntheticsBatchDetailsData # List of results for the batch. attr_accessor :results - # Determines whether or not the batch has passed, failed, or is in progress. + # Determines whether the batch has passed, failed, or is in progress. attr_accessor :status attr_accessor :additional_properties @@ -48,7 +48,7 @@ def self.openapi_types { :'metadata' => :'SyntheticsCIBatchMetadata', :'results' => :'Array', - :'status' => :'SyntheticsStatus' + :'status' => :'SyntheticsBatchStatus' } end diff --git a/lib/datadog_api_client/v1/models/synthetics_batch_result.rb b/lib/datadog_api_client/v1/models/synthetics_batch_result.rb index 87c110dcbe11..d4362d770e33 100644 --- a/lib/datadog_api_client/v1/models/synthetics_batch_result.rb +++ b/lib/datadog_api_client/v1/models/synthetics_batch_result.rb @@ -39,7 +39,7 @@ class SyntheticsBatchResult # Number of times this result has been retried. attr_accessor :retries - # Determines whether or not the batch has passed, failed, or is in progress. + # Determines whether the batch has passed, failed, or is in progress. attr_accessor :status # Name of the test. @@ -80,7 +80,7 @@ def self.openapi_types :'location' => :'String', :'result_id' => :'String', :'retries' => :'Float', - :'status' => :'SyntheticsStatus', + :'status' => :'SyntheticsBatchStatus', :'test_name' => :'String', :'test_public_id' => :'String', :'test_type' => :'SyntheticsTestDetailsType' diff --git a/lib/datadog_api_client/v1/models/synthetics_status.rb b/lib/datadog_api_client/v1/models/synthetics_batch_status.rb similarity index 78% rename from lib/datadog_api_client/v1/models/synthetics_status.rb rename to lib/datadog_api_client/v1/models/synthetics_batch_status.rb index 535f75e76978..315bbece0461 100644 --- a/lib/datadog_api_client/v1/models/synthetics_status.rb +++ b/lib/datadog_api_client/v1/models/synthetics_batch_status.rb @@ -17,12 +17,12 @@ require 'time' module DatadogAPIClient::V1 - # Determines whether or not the batch has passed, failed, or is in progress. - class SyntheticsStatus + # Determines whether the batch has passed, failed, or is in progress. + class SyntheticsBatchStatus include BaseEnumModel PASSED = "passed".freeze - skipped = "skipped".freeze - failed = "failed".freeze + SKIPPED = "skipped".freeze + FAILED = "failed".freeze end end