diff --git a/.generator/schemas/v2/openapi.yaml b/.generator/schemas/v2/openapi.yaml index 37b23f3961d..ff64f3e097b 100644 --- a/.generator/schemas/v2/openapi.yaml +++ b/.generator/schemas/v2/openapi.yaml @@ -71370,6 +71370,10 @@ components: $ref: "#/components/schemas/SyntheticsApiMultistepSubtestData" type: array type: object + SyntheticsFastTestAssertionResult: + additionalProperties: {} + description: Result of a single assertion evaluated during a fast test run. + type: object SyntheticsFastTestResult: description: |- Fast test result response. Returns `null` if the result is not yet available @@ -71383,18 +71387,19 @@ components: description: Attributes of the fast test result. properties: device: - $ref: "#/components/schemas/SyntheticsTestResultDevice" + $ref: "#/components/schemas/SyntheticsFastTestResultDevice" location: - $ref: "#/components/schemas/SyntheticsTestResultLocation" + $ref: "#/components/schemas/SyntheticsFastTestResultLocation" result: $ref: "#/components/schemas/SyntheticsFastTestResultDetail" test_sub_type: $ref: "#/components/schemas/SyntheticsFastTestSubType" test_type: - $ref: "#/components/schemas/SyntheticsFastTestType" + description: The type of the Synthetic test that produced this result (for example, `api` or `browser`). + example: api + type: string test_version: description: Version of the test at the time the fast test was triggered. - example: 1 format: int64 type: integer type: object @@ -71418,47 +71423,48 @@ components: assertions: description: Results of each assertion evaluated during the test. items: - $ref: "#/components/schemas/SyntheticsTestResultAssertionResult" + $ref: "#/components/schemas/SyntheticsFastTestAssertionResult" type: array call_type: description: gRPC call type (for example, `unary`, `healthCheck`, or `reflection`). - example: unary type: string cert: - $ref: "#/components/schemas/SyntheticsTestResultCertificate" + additionalProperties: {} + description: TLS certificate details, present for SSL tests. + type: object duration: description: Total duration of the test in milliseconds. - example: 150.5 format: double type: number failure: - $ref: "#/components/schemas/SyntheticsTestResultFailure" + $ref: "#/components/schemas/SyntheticsFastTestResultFailure" finished_at: description: Unix timestamp (ms) of when the test finished. - example: 1679328001000 format: int64 type: integer id: description: The result ID. Set to the fast test UUID because no persistent result ID exists for fast tests. - example: abc12345-1234-1234-1234-abc123456789 type: string is_fast_retry: description: Whether this result is from an automatic fast retry. - example: false type: boolean request: - $ref: "#/components/schemas/SyntheticsTestResultRequestInfo" + additionalProperties: {} + description: Details of the outgoing request made during the test. + type: object resolved_ip: description: IP address resolved for the target host. example: "1.2.3.4" type: string response: - $ref: "#/components/schemas/SyntheticsTestResultResponseInfo" + additionalProperties: {} + description: Details of the response received during the test. + type: object run_type: - $ref: "#/components/schemas/SyntheticsTestResultRunType" + description: Run type indicating how this test was triggered (for example, `fast`). + type: string started_at: description: Unix timestamp (ms) of when the test started. - example: 1679328000000 format: int64 type: integer status: @@ -71468,34 +71474,67 @@ components: steps: description: Step results for multistep API tests. items: - $ref: "#/components/schemas/SyntheticsTestResultStep" + $ref: "#/components/schemas/SyntheticsFastTestStepResult" type: array timings: additionalProperties: {} description: Timing breakdown of the test request phases (for example, DNS, TCP, TLS, first byte). - example: - dns: 2.9 - download: 2.1 - firstByte: 95.2 - ssl: 187.9 - tcp: 92.6 - total: 380.7 type: object traceroute: description: Traceroute hop results, present for ICMP and TCP tests. items: - $ref: "#/components/schemas/SyntheticsTestResultTracerouteHop" + $ref: "#/components/schemas/SyntheticsFastTestTracerouteHop" type: array triggered_at: description: Unix timestamp (ms) of when the test was triggered. - example: 1679327999000 format: int64 type: integer tunnel: description: Whether the test was run through a Synthetics tunnel. - example: false type: boolean type: object + SyntheticsFastTestResultDevice: + description: Device information for browser-based fast tests. + properties: + id: + description: Device identifier. + example: chrome.laptop_large + type: string + name: + description: Display name of the device. + example: Laptop Large + type: string + type: object + SyntheticsFastTestResultFailure: + description: Failure details if the fast test did not pass. + properties: + code: + description: Error code identifying the failure type. + example: TIMEOUT + type: string + message: + description: Human-readable description of the failure. + example: Connection timed out + type: string + type: object + SyntheticsFastTestResultLocation: + description: Location from which the fast test was executed. + properties: + id: + description: ID of the location. + example: aws:us-east-1 + type: string + name: + description: Display name of the location. + example: N. Virginia (AWS) + type: string + version: + description: Agent version running at this location. + type: string + worker_id: + description: Identifier of the specific worker that ran the test. + type: string + type: object SyntheticsFastTestResultType: default: result description: JSON:API type for a fast test result. @@ -71505,6 +71544,10 @@ components: type: string x-enum-varnames: - RESULT + SyntheticsFastTestStepResult: + additionalProperties: {} + description: Result of a single step in a multistep fast test run. + type: object SyntheticsFastTestSubType: description: Subtype of the Synthetic test that produced this result. enum: @@ -71531,16 +71574,10 @@ components: - TCP - UDP - WEBSOCKET - SyntheticsFastTestType: - description: Type of the Synthetic fast test that produced this result. - enum: - - fast-api - - fast-browser - example: fast-api - type: string - x-enum-varnames: - - FAST_API - - FAST_BROWSER + SyntheticsFastTestTracerouteHop: + additionalProperties: {} + description: A single traceroute hop result from a fast test run. + type: object SyntheticsGlobalVariable: description: Synthetic global variable. properties: @@ -72025,20 +72062,6 @@ components: type: string x-enum-varnames: - NETWORK - SyntheticsPollTestResultsResponse: - description: Response object for polling Synthetic test results. - properties: - data: - description: Array of Synthetic test results. - items: - $ref: "#/components/schemas/SyntheticsTestResultData" - type: array - included: - description: Array of included related resources, such as the test definition. - items: - $ref: "#/components/schemas/SyntheticsTestResultIncludedItem" - type: array - type: object SyntheticsRestrictedRoles: deprecated: true description: A list of role identifiers that can be pulled from the Roles API, for restricting read and write access. This field is deprecated. Use the restriction policies API to manage permissions. @@ -72336,20 +72359,6 @@ components: multipart_presigned_urls_params: $ref: "#/components/schemas/SyntheticsTestFileMultipartPresignedUrlsParams" type: object - SyntheticsTestLatestResultsResponse: - description: Response object for a Synthetic test's latest result summaries. - properties: - data: - description: Array of Synthetic test result summaries. - items: - $ref: "#/components/schemas/SyntheticsTestResultSummaryData" - type: array - included: - description: Array of included related resources, such as the test definition. - items: - $ref: "#/components/schemas/SyntheticsTestResultIncludedItem" - type: array - type: object SyntheticsTestOptions: description: Object describing the extra options for a Synthetic test. properties: @@ -72560,1910 +72569,6 @@ components: x-enum-varnames: - LIVE - PAUSED - SyntheticsTestResultAssertionResult: - description: An individual assertion result from a Synthetic test. - properties: - actual: - description: Actual value observed during the test. Its type depends on the assertion type. - example: 200 - error_message: - description: Error message if the assertion failed. - example: "Assertion failed: expected 200 but got 500" - type: string - expected: - description: Expected value for the assertion. Its type depends on the assertion type. - example: "200" - operator: - description: Operator used for the assertion (for example, `is`, `contains`). - example: is - type: string - property: - description: Property targeted by the assertion, when applicable. - example: content-type - type: string - target: - description: Target value for the assertion. Its type depends on the assertion type. - example: 200 - target_path: - description: JSON path or XPath evaluated for the assertion. - example: $.url - type: string - target_path_operator: - description: Operator used for the target path assertion. - example: contains - type: string - type: - description: Type of the assertion (for example, `responseTime`, `statusCode`, `body`). - example: statusCode - type: string - valid: - description: Whether the assertion passed. - example: true - type: boolean - type: object - SyntheticsTestResultAttributes: - description: Attributes of a Synthetic test result. - properties: - batch: - $ref: "#/components/schemas/SyntheticsTestResultBatch" - ci: - $ref: "#/components/schemas/SyntheticsTestResultCI" - device: - $ref: "#/components/schemas/SyntheticsTestResultDevice" - git: - $ref: "#/components/schemas/SyntheticsTestResultGit" - location: - $ref: "#/components/schemas/SyntheticsTestResultLocation" - result: - $ref: "#/components/schemas/SyntheticsTestResultDetail" - test_sub_type: - $ref: "#/components/schemas/SyntheticsTestSubType" - test_type: - $ref: "#/components/schemas/SyntheticsTestType" - type: object - SyntheticsTestResultBatch: - description: Batch information for the test result. - properties: - id: - description: Batch identifier. - example: batch-abc-123 - type: string - type: object - SyntheticsTestResultBounds: - description: Bounding box of an element on the page. - properties: - height: - description: Height in pixels. - example: 37 - format: int64 - type: integer - width: - description: Width in pixels. - example: 343 - format: int64 - type: integer - x: - description: Horizontal position in pixels. - example: 16 - format: int64 - type: integer - y: - description: Vertical position in pixels. - example: 140 - format: int64 - type: integer - type: object - SyntheticsTestResultBrowserError: - description: A browser error captured during a browser test step. - properties: - description: - description: Error description. - example: Failed to fetch resource - type: string - method: - description: HTTP method associated with the error (for network errors). - example: GET - type: string - name: - description: Error name. - example: NetworkError - type: string - status: - description: HTTP status code associated with the error (for network errors). - example: 500 - format: int64 - type: integer - type: - description: Type of the browser error. - example: network - type: string - url: - additionalProperties: {} - description: URL associated with the error. - type: object - type: object - SyntheticsTestResultBucketKeys: - description: Storage bucket keys for artifacts produced during a step or test. - properties: - after_step_screenshot: - description: Key for the screenshot captured after the step (goal-based tests). - example: screenshots/after-step-1-1.png - type: string - after_turn_screenshot: - description: Key for the screenshot captured after the turn (goal-based tests). - example: screenshots/after-turn-1.png - type: string - artifacts: - description: Key for miscellaneous artifacts. - example: 2/e2e-tests/equ-jku-twc/results/6989498452827932222/edge.laptop_large/artifacts__1724521416257.json - type: string - before_step_screenshot: - description: Key for the screenshot captured before the step (goal-based tests). - example: screenshots/before-step-1-1.png - type: string - before_turn_screenshot: - description: Key for the screenshot captured before the turn (goal-based tests). - example: screenshots/before-turn-1.png - type: string - crash_report: - description: Key for a captured crash report. - example: 2/e2e-tests/d2z-32s-iax/results/1340718101990858549/synthetics:mobile:device:iphone_se_2020_ios_14/crash_report.log - type: string - device_logs: - description: Key for captured device logs. - example: 2/e2e-tests/d2z-32s-iax/results/1340718101990858549/synthetics:mobile:device:iphone_se_2020_ios_14/d2z-32s-iax_1340718101990858549_device_logs.log - type: string - email_messages: - description: Keys for email message payloads captured by the step. - items: - description: Storage bucket key for a captured email message. - type: string - type: array - screenshot: - description: Key for the captured screenshot. - example: 2/e2e-tests/equ-jku-twc/results/6989498452827932222/edge.laptop_large/step-0__1724521416269.jpeg - type: string - snapshot: - description: Key for the captured DOM snapshot. - example: 2/e2e-tests/equ-jku-twc/results/6989498452827932222/edge.laptop_large/snapshot.html - type: string - source: - description: Key for the page source or element source. - example: 2/e2e-tests/d2z-32s-iax/results/1340718101990858549/synthetics:mobile:device:iphone_se_2020_ios_14/step-0__1724445301832.xml - type: string - type: object - SyntheticsTestResultCI: - description: CI information associated with the test result. - properties: - pipeline: - $ref: "#/components/schemas/SyntheticsTestResultCIPipeline" - provider: - $ref: "#/components/schemas/SyntheticsTestResultCIProvider" - stage: - $ref: "#/components/schemas/SyntheticsTestResultCIStage" - workspace_path: - description: Path of the workspace that ran the CI job. - example: /home/runner/work/example - type: string - type: object - SyntheticsTestResultCIPipeline: - description: Details of the CI pipeline. - properties: - id: - description: Pipeline identifier. - example: pipeline-abc-123 - type: string - name: - description: Pipeline name. - example: build-and-test - type: string - number: - description: Pipeline number. - example: 42 - format: int64 - type: integer - url: - description: Pipeline URL. - example: https://github.com/DataDog/example/actions/runs/42 - type: string - type: object - SyntheticsTestResultCIProvider: - description: Details of the CI provider. - properties: - name: - description: Provider name. - example: github - type: string - type: object - SyntheticsTestResultCIStage: - description: Details of the CI stage. - properties: - name: - description: Stage name. - example: test - type: string - type: object - SyntheticsTestResultCdnCacheStatus: - description: Cache status reported by the CDN for the response. - properties: - cached: - description: Whether the response was served from the CDN cache. - example: true - type: boolean - status: - description: Raw cache status string reported by the CDN. - example: HIT - type: string - type: object - SyntheticsTestResultCdnProviderInfo: - description: CDN provider details inferred from response headers. - properties: - cache: - $ref: "#/components/schemas/SyntheticsTestResultCdnCacheStatus" - provider: - description: Name of the CDN provider. - example: google_cloud - type: string - type: object - SyntheticsTestResultCdnResource: - description: A CDN resource encountered while executing a browser step. - properties: - cdn: - $ref: "#/components/schemas/SyntheticsTestResultCdnProviderInfo" - resolved_ip: - description: Resolved IP address for the CDN resource. - example: 34.95.79.70 - type: string - timestamp: - description: Unix timestamp (ms) of when the resource was fetched. - example: 1724521406576 - format: int64 - type: integer - timings: - additionalProperties: {} - description: Timing breakdown for fetching the CDN resource. - example: - firstByte: 99.7 - tcp: 0.9 - type: object - type: object - SyntheticsTestResultCertificate: - description: SSL/TLS certificate information returned from an SSL test. - properties: - cipher: - description: Cipher used for the TLS connection. - example: TLS_AES_256_GCM_SHA384 - type: string - exponent: - description: RSA exponent of the certificate. - example: 65537 - format: int64 - type: integer - ext_key_usage: - description: Extended key usage extensions for the certificate. - example: - - 1.3.6.1.5.5.7.3.1 - items: - description: Extended key usage value. - type: string - type: array - fingerprint: - description: SHA-1 fingerprint of the certificate. - example: D6:03:5A:9F:93:E1:B7:28:EC:90:C5:9F:72:30:55:7C:74:5F:53:92 - type: string - fingerprint256: - description: SHA-256 fingerprint of the certificate. - example: 04:45:93:A9:4C:14:70:47:DB:3C:FC:05:F9:5A:50:4E:DA:DB:A1:C6:37:3D:15:C0:B2:7E:5D:93:5F:A2:02:C7 - type: string - issuer: - additionalProperties: - type: string - description: Certificate issuer details. - example: - C: US - CN: WE2 - O: Google Trust Services - type: object - modulus: - description: RSA modulus of the certificate. - example: C0FCE9F9... - type: string - protocol: - description: TLS protocol used (for example, `TLSv1.2`). - example: TLSv1.3 - type: string - serial_number: - description: Serial number of the certificate. - example: 7B584A1A6670A1EB0941A9A121569D60 - type: string - subject: - additionalProperties: - type: string - description: Certificate subject details. - example: - CN: "*.google.fr" - altName: "DNS:*.google.fr, DNS:google.fr" - type: object - tls_version: - description: TLS protocol version. - example: 1.3 - format: double - type: number - valid: - $ref: "#/components/schemas/SyntheticsTestResultCertificateValidity" - type: object - SyntheticsTestResultCertificateValidity: - description: Validity window of a certificate. - properties: - from: - description: Unix timestamp (ms) of when the certificate became valid. - example: 1742469686000 - format: int64 - type: integer - to: - description: Unix timestamp (ms) of when the certificate expires. - example: 1749727285000 - format: int64 - type: integer - type: object - SyntheticsTestResultData: - description: Wrapper object for a Synthetic test result. - properties: - attributes: - $ref: "#/components/schemas/SyntheticsTestResultAttributes" - id: - description: The result ID. - example: "5158904793181869365" - type: string - relationships: - $ref: "#/components/schemas/SyntheticsTestResultRelationships" - type: - $ref: "#/components/schemas/SyntheticsTestResultType" - type: object - SyntheticsTestResultDetail: - description: Full result details for a Synthetic test execution. - properties: - assertions: - description: Assertion results produced by the test. - items: - $ref: "#/components/schemas/SyntheticsTestResultAssertionResult" - type: array - bucket_keys: - $ref: "#/components/schemas/SyntheticsTestResultBucketKeys" - call_type: - description: gRPC call type (for example, `unary`, `healthCheck`, or `reflection`). - example: unary - type: string - cert: - $ref: "#/components/schemas/SyntheticsTestResultCertificate" - compressed_json_descriptor: - description: Compressed JSON descriptor for the test (internal format). - example: compressedJsonDescriptorValue - type: string - compressed_steps: - description: Compressed representation of the test steps (internal format). - example: eJzLSM3JyQcABiwCFQ== - type: string - connection_outcome: - description: Outcome of the connection attempt (for example, `established`, `refused`). - example: established - type: string - dns_resolution: - $ref: "#/components/schemas/SyntheticsTestResultDnsResolution" - duration: - description: Duration of the test execution (in milliseconds). - example: 380.7 - format: double - type: number - exited_on_step_success: - description: Whether the test exited early because a step marked with `exitIfSucceed` passed. - example: false - type: boolean - failure: - $ref: "#/components/schemas/SyntheticsTestResultFailure" - finished_at: - description: Timestamp of when the test finished (in milliseconds). - example: 1723782422760 - format: int64 - type: integer - handshake: - $ref: "#/components/schemas/SyntheticsTestResultHandshake" - id: - description: The unique identifier for this result. - example: "5158904793181869365" - type: string - initial_id: - description: The initial result ID before any retries. - example: "5158904793181869365" - type: string - is_fast_retry: - description: Whether this result is from a fast retry. - example: true - type: boolean - is_last_retry: - description: Whether this result is from the last retry. - example: true - type: boolean - netpath: - $ref: "#/components/schemas/SyntheticsTestResultNetpath" - netstats: - $ref: "#/components/schemas/SyntheticsTestResultNetstats" - ocsp: - $ref: "#/components/schemas/SyntheticsTestResultOCSPResponse" - ping: - $ref: "#/components/schemas/SyntheticsTestResultTracerouteHop" - received_email_count: - description: Number of emails received during the test (email tests). - example: 1 - format: int64 - type: integer - received_message: - description: Message received from the target (for WebSocket/TCP/UDP tests). - example: "UDP echo: b'Test message'" - type: string - request: - $ref: "#/components/schemas/SyntheticsTestResultRequestInfo" - resolved_ip: - description: IP address resolved for the target host. - example: "54.243.255.141" - type: string - response: - $ref: "#/components/schemas/SyntheticsTestResultResponseInfo" - run_type: - $ref: "#/components/schemas/SyntheticsTestResultRunType" - sent_message: - description: Message sent to the target (for WebSocket/TCP/UDP tests). - example: udp mess - type: string - start_url: - description: Start URL for the test (browser tests). - example: http://34.95.79.70/prototype - type: string - started_at: - description: Timestamp of when the test started (in milliseconds). - example: 1723782422750 - format: int64 - type: integer - status: - $ref: "#/components/schemas/SyntheticsTestResultStatus" - steps: - description: Step results (for browser, mobile, and multistep API tests). - items: - $ref: "#/components/schemas/SyntheticsTestResultStep" - type: array - time_to_interactive: - description: Time to interactive in milliseconds (browser tests). - example: 183 - format: int64 - type: integer - timings: - additionalProperties: {} - description: Timing breakdown of the test request phases (for example, DNS, TCP, TLS, first byte). - example: - dns: 2.9 - download: 2.1 - firstByte: 95.2 - ssl: 187.9 - tcp: 92.6 - total: 380.7 - type: object - trace: - $ref: "#/components/schemas/SyntheticsTestResultTrace" - traceroute: - description: Traceroute hop results (for network tests). - items: - $ref: "#/components/schemas/SyntheticsTestResultTracerouteHop" - type: array - triggered_at: - description: Timestamp of when the test was triggered (in milliseconds). - example: 1723782422715 - format: int64 - type: integer - tunnel: - description: Whether the test was executed through a tunnel. - example: false - type: boolean - turns: - description: Turns executed by a goal-based browser test. - items: - $ref: "#/components/schemas/SyntheticsTestResultTurn" - type: array - unhealthy: - description: Whether the test runner was unhealthy at the time of execution. - example: false - type: boolean - variables: - $ref: "#/components/schemas/SyntheticsTestResultVariables" - type: object - SyntheticsTestResultDevice: - description: Device information for the test result (browser and mobile tests). - properties: - browser: - $ref: "#/components/schemas/SyntheticsTestResultDeviceBrowser" - id: - description: Device identifier. - example: chrome.laptop_large - type: string - name: - description: Device name. - example: "Chrome - Laptop Large" - type: string - platform: - $ref: "#/components/schemas/SyntheticsTestResultDevicePlatform" - resolution: - $ref: "#/components/schemas/SyntheticsTestResultDeviceResolution" - type: - description: Device type. - example: browser - type: string - type: object - SyntheticsTestResultDeviceBrowser: - description: Browser information for the device used to run the test. - properties: - type: - description: Browser type (for example, `chrome`, `firefox`). - example: edge - type: string - user_agent: - description: User agent string reported by the browser. - example: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/90.0.4430.212 Safari/537.36 Edg/127.0.2651.105 DatadogSynthetics - type: string - version: - description: Browser version. - example: 127.0.2651.105 - type: string - type: object - SyntheticsTestResultDevicePlatform: - description: Platform information for the device used to run the test. - properties: - name: - description: Platform name (for example, `linux`, `macos`). - example: ios - type: string - version: - description: Platform version. - example: "14.8" - type: string - type: object - SyntheticsTestResultDeviceResolution: - description: Screen resolution of the device used to run the test. - properties: - height: - description: Viewport height in pixels. - example: 1100 - format: int64 - type: integer - pixel_ratio: - description: Device pixel ratio. - example: 2 - format: double - type: number - width: - description: Viewport width in pixels. - example: 1440 - format: int64 - type: integer - type: object - SyntheticsTestResultDnsRecord: - description: A DNS record returned in a DNS test response. - properties: - type: - description: DNS record type (for example, `A`, `AAAA`, `CNAME`). - example: A - type: string - values: - description: Values associated with the DNS record. - example: - - 213.186.33.19 - items: - description: DNS record value. - type: string - type: array - type: object - SyntheticsTestResultDnsResolution: - description: DNS resolution details recorded during the test execution. - properties: - attempts: - description: DNS resolution attempts made during the test. - items: - $ref: "#/components/schemas/SyntheticsTestResultDnsResolutionAttempt" - type: array - resolved_ip: - description: Resolved IP address for the target host. - example: 54.243.255.141 - type: string - resolved_port: - description: Resolved port for the target service. - example: "443" - type: string - server: - description: DNS server used for the resolution. - example: 8.8.4.4 - type: string - type: object - SyntheticsTestResultDnsResolutionAttempt: - additionalProperties: - type: string - description: A single DNS resolution attempt. Keys are provider-specific attempt fields. - type: object - SyntheticsTestResultDuration: - description: Total duration of a Synthetic test execution. - properties: - has_duration: - description: Whether a duration was recorded for this execution. - example: true - type: boolean - value: - description: Duration value in milliseconds. - example: 380 - format: int64 - type: integer - type: object - SyntheticsTestResultExecutionInfo: - description: Execution details for a Synthetic test result. - properties: - duration: - $ref: "#/components/schemas/SyntheticsTestResultDuration" - error_message: - description: Error message if the execution encountered an issue. - example: Connection timed out - type: string - is_fast_retry: - description: Whether this result is from a fast retry. - example: true - type: boolean - timings: - additionalProperties: {} - description: Timing breakdown of the test execution in milliseconds. - example: - dns: 2.9 - download: 2.1 - firstByte: 95.2 - ssl: 187.9 - tcp: 92.6 - total: 380.7 - type: object - tunnel: - description: Whether the test was executed through a tunnel. - example: false - type: boolean - unhealthy: - description: Whether the location was unhealthy during execution. - example: false - type: boolean - type: object - SyntheticsTestResultFailure: - description: Details about the failure of a Synthetic test. - properties: - code: - description: Error code for the failure. - example: TIMEOUT - type: string - internal_code: - description: Internal error code used for debugging. - example: INCORRECT_ASSERTION - type: string - internal_message: - description: Internal error message used for debugging. - example: Assertion failed on step 2 - type: string - message: - description: Error message for the failure. - example: Connection timed out - type: string - type: object - SyntheticsTestResultFileRef: - description: Reference to a file attached to a Synthetic test request. - properties: - bucket_key: - description: Storage bucket key where the file is stored. - example: api-upload-file/s3v-msw-tp3/2024-08-20T12:18:27.628081_f433c953-a58a-4296-834b-0669e32ba55f.json - type: string - encoding: - description: Encoding of the file contents. - example: base64 - type: string - name: - description: File name. - example: dd_logo_h_rgb.jpg - type: string - size: - description: File size in bytes. - example: 30294 - format: int64 - type: integer - type: - description: File MIME type. - example: image/jpeg - type: string - type: object - SyntheticsTestResultGit: - description: Git information associated with the test result. - properties: - branch: - description: Git branch name. - example: main - type: string - commit: - $ref: "#/components/schemas/SyntheticsTestResultGitCommit" - repository_url: - description: Git repository URL. - example: https://github.com/DataDog/example - type: string - type: object - SyntheticsTestResultGitCommit: - description: Details of the Git commit associated with the test result. - properties: - author: - $ref: "#/components/schemas/SyntheticsTestResultGitUser" - committer: - $ref: "#/components/schemas/SyntheticsTestResultGitUser" - message: - description: Commit message. - example: Fix bug in login flow - type: string - sha: - description: Commit SHA. - example: 9e107d9d372bb6826bd81d3542a419d6f0e1de56 - type: string - url: - description: URL of the commit. - example: https://github.com/DataDog/example/commit/9e107d9d372bb6826bd81d3542a419d6f0e1de56 - type: string - type: object - SyntheticsTestResultGitUser: - description: A Git user (author or committer). - properties: - date: - description: Timestamp of the commit action for this user. - example: "2024-08-15T14:23:00Z" - type: string - email: - description: Email address of the Git user. - example: jane.doe@example.com - type: string - name: - description: Name of the Git user. - example: Jane Doe - type: string - type: object - SyntheticsTestResultHandshake: - description: Handshake request and response for protocol-level tests. - properties: - request: - $ref: "#/components/schemas/SyntheticsTestResultRequestInfo" - response: - $ref: "#/components/schemas/SyntheticsTestResultResponseInfo" - type: object - SyntheticsTestResultHealthCheck: - description: Health check information returned from a gRPC health check call. - properties: - message: - additionalProperties: - type: string - description: Raw health check message payload. - type: object - status: - description: Health check status code. - example: 1 - format: int64 - type: integer - type: object - SyntheticsTestResultIncludedItem: - description: An included related resource. - properties: - attributes: - additionalProperties: {} - description: Attributes of the included resource. - type: object - id: - description: ID of the included resource. - example: abc-def-123 - type: string - type: - description: Type of the included resource. - example: test - type: string - type: object - SyntheticsTestResultLocation: - description: Location information for a Synthetic test result. - properties: - id: - description: Identifier of the location. - example: aws:us-east-1 - type: string - name: - description: Human-readable name of the location. - example: "N. Virginia (AWS)" - type: string - version: - description: Version of the worker that ran the test. - example: 1.0.0 - type: string - worker_id: - description: Identifier of the specific worker that ran the test. - example: worker-abc-123 - type: string - type: object - SyntheticsTestResultNetpath: - description: Network Path test result capturing the path between source and destination. - properties: - destination: - $ref: "#/components/schemas/SyntheticsTestResultNetpathDestination" - hops: - description: Hops along the network path. - items: - $ref: "#/components/schemas/SyntheticsTestResultNetpathHop" - type: array - origin: - description: Origin of the network path (for example, probe source). - example: synthetics - type: string - pathtrace_id: - description: Identifier of the path trace. - example: 5d3cb978-533b-41ce-85a4-3661c8dd6a0b - type: string - protocol: - description: Protocol used for the path trace (for example, `tcp`, `udp`, `icmp`). - example: TCP - type: string - source: - $ref: "#/components/schemas/SyntheticsTestResultNetpathEndpoint" - tags: - description: Tags associated with the network path measurement. - example: - - synthetics.test_id:nja-epx-mg8 - items: - description: Tag associated with the network path measurement. - type: string - type: array - timestamp: - description: Unix timestamp (ms) of the network path measurement. - example: 1744117822266 - format: int64 - type: integer - type: object - SyntheticsTestResultNetpathDestination: - description: Destination endpoint of a network path measurement. - properties: - hostname: - description: Hostname of the destination. - example: 34.95.79.70 - type: string - ip_address: - description: IP address of the destination. - example: 34.95.79.70 - type: string - port: - description: Port of the destination service. - example: 80 - format: int64 - type: integer - type: object - SyntheticsTestResultNetpathEndpoint: - description: Source endpoint of a network path measurement. - properties: - hostname: - description: Hostname of the endpoint. - example: edge-eu1.staging.dog - type: string - type: object - SyntheticsTestResultNetpathHop: - description: A single hop along a network path. - properties: - hostname: - description: Resolved hostname of the hop. - example: 70.79.95.34.bc.googleusercontent.com - type: string - ip_address: - description: IP address of the hop. - example: 10.240.134.15 - type: string - reachable: - description: Whether this hop was reachable. - example: true - type: boolean - rtt: - description: Round-trip time to this hop in milliseconds. - example: 0.000346599 - format: double - type: number - ttl: - description: Time-to-live value of the probe packet at this hop. - example: 2 - format: int64 - type: integer - type: object - SyntheticsTestResultNetstats: - description: Aggregated network statistics from the test execution. - properties: - hops: - $ref: "#/components/schemas/SyntheticsTestResultNetstatsHops" - jitter: - description: Network jitter in milliseconds. - example: 0.08 - format: double - type: number - latency: - $ref: "#/components/schemas/SyntheticsTestResultNetworkLatency" - packet_loss_percentage: - description: Percentage of probe packets lost. - example: 0.0 - format: double - type: number - packets_received: - description: Number of probe packets received. - example: 4 - format: int64 - type: integer - packets_sent: - description: Number of probe packets sent. - example: 4 - format: int64 - type: integer - type: object - SyntheticsTestResultNetstatsHops: - description: Statistics about the number of hops for a network test. - properties: - avg: - description: Average number of hops. - example: 11.0 - format: double - type: number - max: - description: Maximum number of hops. - example: 11 - format: int64 - type: integer - min: - description: Minimum number of hops. - example: 11 - format: int64 - type: integer - type: object - SyntheticsTestResultNetworkLatency: - description: Latency statistics for a network probe. - properties: - avg: - description: Average latency in milliseconds. - example: 1.8805 - format: double - type: number - max: - description: Maximum latency in milliseconds. - example: 1.97 - format: double - type: number - min: - description: Minimum latency in milliseconds. - example: 1.76 - format: double - type: number - type: object - SyntheticsTestResultOCSPCertificate: - description: Certificate details returned in an OCSP response. - properties: - revocation_reason: - description: Reason code for the revocation, when applicable. - example: unspecified - type: string - revocation_time: - description: Unix timestamp (ms) of the revocation. - example: 1749727285000 - format: int64 - type: integer - serial_number: - description: Serial number of the certificate. - example: 7B584A1A6670A1EB0941A9A121569D60 - type: string - type: object - SyntheticsTestResultOCSPResponse: - description: OCSP response received while validating a certificate. - properties: - certificate: - $ref: "#/components/schemas/SyntheticsTestResultOCSPCertificate" - status: - description: OCSP response status (for example, `good`, `revoked`, `unknown`). - example: good - type: string - updates: - $ref: "#/components/schemas/SyntheticsTestResultOCSPUpdates" - type: object - SyntheticsTestResultOCSPUpdates: - description: OCSP response update timestamps. - properties: - next_update: - description: Unix timestamp (ms) of the next expected OCSP update. - example: 1743074486000 - format: int64 - type: integer - produced_at: - description: Unix timestamp (ms) of when the OCSP response was produced. - example: 1742469686000 - format: int64 - type: integer - this_update: - description: Unix timestamp (ms) of this OCSP update. - example: 1742469686000 - format: int64 - type: integer - type: object - SyntheticsTestResultParentStep: - description: Reference to the parent step of a sub-step. - properties: - id: - description: Identifier of the parent step. - example: fkk-j2a-gmw - type: string - type: object - SyntheticsTestResultParentTest: - description: Reference to the parent test of a sub-step. - properties: - id: - description: Identifier of the parent test. - example: abc-def-123 - type: string - type: object - SyntheticsTestResultRedirect: - description: A redirect hop encountered while performing the request. - properties: - location: - description: Target location of the redirect. - example: https://example.com/new-location - type: string - status_code: - description: HTTP status code of the redirect response. - example: 301 - format: int64 - type: integer - type: object - SyntheticsTestResultRelationshipTest: - description: Relationship to the Synthetic test. - properties: - data: - $ref: "#/components/schemas/SyntheticsTestResultRelationshipTestData" - type: object - SyntheticsTestResultRelationshipTestData: - description: Data for the test relationship. - properties: - id: - description: The public ID of the test. - example: abc-def-123 - type: string - type: - description: Type of the related resource. - example: test - type: string - type: object - SyntheticsTestResultRelationships: - description: Relationships for a Synthetic test result. - properties: - test: - $ref: "#/components/schemas/SyntheticsTestResultRelationshipTest" - type: object - SyntheticsTestResultRequestInfo: - description: Details of the outgoing request made during the test execution. - properties: - allow_insecure: - description: Whether insecure certificates are allowed for this request. - example: false - type: boolean - body: - description: Body sent with the request. - example: '{"key":"value"}' - type: string - call_type: - description: gRPC call type (for example, `unary`, `healthCheck`, or `reflection`). - example: unary - type: string - destination_service: - description: Destination service for a Network Path test. - example: my-service - type: string - dns_server: - description: DNS server used to resolve the target host. - example: 8.8.8.8 - type: string - dns_server_port: - description: Port of the DNS server used for resolution. - example: 53 - format: int64 - type: integer - e2e_queries: - description: Number of end-to-end probe queries issued. - example: 4 - format: int64 - type: integer - files: - description: Files attached to the request. - items: - $ref: "#/components/schemas/SyntheticsTestResultFileRef" - type: array - headers: - additionalProperties: {} - description: Headers sent with the request. - example: - content-type: application/json - type: object - host: - description: Host targeted by the request. - example: grpcbin.test.k6.io - type: string - max_ttl: - description: Maximum TTL for network probe packets. - example: 64 - format: int64 - type: integer - message: - description: Message sent with the request (for WebSocket/TCP/UDP tests). - example: My message - type: string - method: - description: HTTP method used for the request. - example: GET - type: string - no_saving_response_body: - description: Whether the response body was not saved. - example: true - type: boolean - port: - description: Port targeted by the request. Can be a number or a string variable reference. - example: 9000 - service: - description: Service name targeted by the request (for gRPC tests). - example: addsvc.Add - type: string - source_service: - description: Source service for a Network Path test. - example: synthetics - type: string - timeout: - description: Request timeout in milliseconds. - example: 60 - format: int64 - type: integer - tool_name: - description: Name of the MCP tool called (MCP tests only). - example: search - type: string - traceroute_queries: - description: Number of traceroute probe queries issued. - example: 2 - format: int64 - type: integer - url: - description: URL targeted by the request. - example: https://httpbin.org/anything/lol valuehugo - type: string - type: object - SyntheticsTestResultResponse: - description: Response object for a Synthetic test result. - properties: - data: - $ref: "#/components/schemas/SyntheticsTestResultData" - included: - description: Array of included related resources, such as the test definition. - items: - $ref: "#/components/schemas/SyntheticsTestResultIncludedItem" - type: array - type: object - SyntheticsTestResultResponseInfo: - description: Details of the response received during the test execution. - properties: - body: - description: Body of the response. - example: '{"status":"ok"}' - type: string - body_compressed: - description: Compressed representation of the response body. - example: eJzLSM3JyQcABiwCFQ== - type: string - body_hashes: - description: Hashes computed over the response body. - example: 9e107d9d372bb6826bd81d3542a419d6 - type: string - body_size: - description: Size of the response body in bytes. - example: 793 - format: int64 - type: integer - cache_headers: - additionalProperties: - type: string - description: Cache-related response headers. - example: - server: gunicorn/19.9.0 - type: object - cdn: - $ref: "#/components/schemas/SyntheticsTestResultCdnProviderInfo" - close: - $ref: "#/components/schemas/SyntheticsTestResultWebSocketClose" - compressed_message: - description: Compressed representation of the response message. - example: eJzLSM3JyQcABiwCFQ== - type: string - headers: - additionalProperties: {} - description: Response headers. - example: - content-type: application/json - type: object - healthcheck: - $ref: "#/components/schemas/SyntheticsTestResultHealthCheck" - http_version: - description: HTTP version of the response. - example: "2.0" - type: string - is_body_truncated: - description: Whether the response body was truncated. - example: false - type: boolean - is_message_truncated: - description: Whether the response message was truncated. - example: false - type: boolean - message: - description: Message received in the response (for WebSocket/TCP/UDP tests). - example: '{"f_string":"concat-STATIC_HIDDEN_VALUE"}' - type: string - metadata: - additionalProperties: - type: string - description: Additional metadata returned with the response. - type: object - records: - description: DNS records returned in the response (DNS tests only). - items: - $ref: "#/components/schemas/SyntheticsTestResultDnsRecord" - type: array - redirects: - description: Redirect hops encountered while performing the request. - items: - $ref: "#/components/schemas/SyntheticsTestResultRedirect" - type: array - status_code: - description: HTTP status code of the response. - example: 200 - format: int64 - type: integer - type: object - SyntheticsTestResultRouter: - description: A router along the traceroute path. - properties: - ip: - description: IP address of the router. - example: 34.95.79.70 - type: string - resolved_host: - description: Resolved hostname of the router. - example: 70.79.95.34.bc.googleusercontent.com - type: string - type: object - SyntheticsTestResultRumContext: - description: RUM application context associated with a step or sub-test. - properties: - application_id: - description: RUM application identifier. - example: 00000000-0000-0000-0000-000000000000 - type: string - session_id: - description: RUM session identifier. - example: 11111111-1111-1111-1111-111111111111 - type: string - view_id: - description: RUM view identifier. - example: 22222222-2222-2222-2222-222222222222 - type: string - type: object - SyntheticsTestResultRunType: - description: The type of run for a Synthetic test result. - enum: - - scheduled - - fast - - ci - - triggered - example: scheduled - type: string - x-enum-varnames: - - SCHEDULED - - FAST - - CI - - TRIGGERED - SyntheticsTestResultStatus: - description: Status of a Synthetic test result. - enum: - - passed - - failed - - no_data - example: passed - type: string - x-enum-varnames: - - PASSED - - FAILED - - NO_DATA - SyntheticsTestResultStep: - description: A step result from a browser, mobile, or multistep API test. - properties: - allow_failure: - description: Whether the test continues when this step fails. - example: false - type: boolean - api_test: - additionalProperties: {} - description: Inner API test definition for browser `runApiTest` steps. - type: object - assertion_result: - $ref: "#/components/schemas/SyntheticsTestResultStepAssertionResult" - assertions: - description: Assertion results produced by the step. - items: - $ref: "#/components/schemas/SyntheticsTestResultAssertionResult" - type: array - blocked_requests_urls: - description: URLs of requests blocked during the step. - items: - description: Blocked request URL. - type: string - type: array - bounds: - $ref: "#/components/schemas/SyntheticsTestResultBounds" - browser_errors: - description: Browser errors captured during the step. - items: - $ref: "#/components/schemas/SyntheticsTestResultBrowserError" - type: array - bucket_keys: - $ref: "#/components/schemas/SyntheticsTestResultBucketKeys" - cdn_resources: - description: CDN resources encountered during the step. - items: - $ref: "#/components/schemas/SyntheticsTestResultCdnResource" - type: array - click_type: - description: Click type performed in a browser step. - example: primary - type: string - compressed_json_descriptor: - description: Compressed JSON descriptor for the step (internal format). - example: compressedJsonDescriptorValue - type: string - config: - additionalProperties: {} - description: Request configuration executed by this step (API test steps). - type: object - description: - description: Human-readable description of the step. - example: Navigate to start URL - type: string - duration: - description: Duration of the step in milliseconds. - example: 1015.0 - format: double - type: number - element_description: - description: Description of the element interacted with by the step. - example: '' - type: string - element_updates: - $ref: "#/components/schemas/SyntheticsTestResultStepElementUpdates" - extracted_value: - $ref: "#/components/schemas/SyntheticsTestResultVariable" - failure: - $ref: "#/components/schemas/SyntheticsTestResultFailure" - http_results: - description: HTTP results produced by an MCP step. - items: - $ref: "#/components/schemas/SyntheticsTestResultAssertionResult" - type: array - id: - description: Identifier of the step. - example: fkk-j2a-gmw - type: string - is_critical: - description: Whether this step is critical for the test outcome. - example: true - type: boolean - javascript_custom_assertion_code: - description: Whether the step uses a custom JavaScript assertion. - example: false - type: boolean - locate_element_duration: - description: Time taken to locate the element in milliseconds. - example: 845.0 - format: double - type: number - name: - description: Name of the step. - example: Extract variable from body - type: string - request: - $ref: "#/components/schemas/SyntheticsTestResultRequestInfo" - response: - $ref: "#/components/schemas/SyntheticsTestResultResponseInfo" - retries: - description: Retry results for the step. - items: - $ref: "#/components/schemas/SyntheticsTestResultStep" - type: array - retry_count: - description: Number of times this step was retried. - example: 0 - format: int64 - type: integer - rum_context: - $ref: "#/components/schemas/SyntheticsTestResultRumContext" - started_at: - description: Unix timestamp (ms) of when the step started. - example: 1724445283308 - format: int64 - type: integer - status: - description: Status of the step (for example, `passed`, `failed`). - example: passed - type: string - sub_step: - $ref: "#/components/schemas/SyntheticsTestResultSubStep" - sub_test: - $ref: "#/components/schemas/SyntheticsTestResultSubTest" - subtype: - description: Subtype of the step. - example: http - type: string - tabs: - description: Browser tabs involved in the step. - items: - $ref: "#/components/schemas/SyntheticsTestResultTab" - type: array - timings: - additionalProperties: {} - description: Timing breakdown of the step execution. - type: object - tunnel: - description: Whether the step was executed through a Synthetics tunnel. - example: false - type: boolean - type: - description: Type of the step (for example, `click`, `assertElementContent`, `runApiTest`). - example: click - type: string - url: - description: URL associated with the step (for navigation steps). - example: http://34.95.79.70/prototype - type: string - value: - description: Step value. Its type depends on the step type. - example: http://34.95.79.70/prototype - variables: - $ref: "#/components/schemas/SyntheticsTestResultVariables" - vitals_metrics: - description: Web vitals metrics captured during the step. - items: - $ref: "#/components/schemas/SyntheticsTestResultVitalsMetrics" - type: array - warnings: - description: Warnings emitted during the step. - items: - $ref: "#/components/schemas/SyntheticsTestResultWarning" - type: array - type: object - SyntheticsTestResultStepAssertionResult: - description: Assertion result for a browser or mobile step. - properties: - actual: - description: Actual value observed during the step assertion. Its type depends on the check type. - example: "True\ngood\ngood\ngood\ngood\nTrue" - check_type: - description: Type of the step assertion check. - example: contains - type: string - expected: - description: Expected value for the step assertion. Its type depends on the check type. - example: True good good good good True - has_secure_variables: - description: Whether the assertion involves secure variables. - example: false - type: boolean - type: object - SyntheticsTestResultStepElementUpdates: - description: Element locator updates produced during a step. - properties: - multi_locator: - additionalProperties: - type: string - description: Updated multi-locator definition. - type: object - target_outer_html: - description: Updated outer HTML of the targeted element. - example:

My website - v4

- type: string - version: - description: Version of the element locator definition. - example: 3 - format: int64 - type: integer - type: object - SyntheticsTestResultStepsInfo: - description: Step execution summary for a Synthetic test result. - properties: - completed: - description: Number of completed steps. - example: 6 - format: int64 - type: integer - errors: - description: Number of steps with errors. - example: 0 - format: int64 - type: integer - total: - description: Total number of steps. - example: 6 - format: int64 - type: integer - type: object - SyntheticsTestResultSubStep: - description: Information about a sub-step in a nested test execution. - properties: - level: - description: Depth of the sub-step in the execution tree. - example: 1 - format: int64 - type: integer - parent_step: - $ref: "#/components/schemas/SyntheticsTestResultParentStep" - parent_test: - $ref: "#/components/schemas/SyntheticsTestResultParentTest" - type: object - SyntheticsTestResultSubTest: - description: Information about a sub-test played from a parent browser test. - properties: - id: - description: Identifier of the sub-test. - example: abc-def-123 - type: string - playing_tab: - description: Index of the browser tab playing the sub-test. - example: 0 - format: int64 - type: integer - rum_context: - $ref: "#/components/schemas/SyntheticsTestResultRumContext" - type: object - SyntheticsTestResultSummaryAttributes: - description: Attributes of a Synthetic test result summary. - properties: - device: - $ref: "#/components/schemas/SyntheticsTestResultDevice" - execution_info: - $ref: "#/components/schemas/SyntheticsTestResultExecutionInfo" - finished_at: - description: Timestamp of when the test finished (in milliseconds). - format: int64 - type: integer - location: - $ref: "#/components/schemas/SyntheticsTestResultLocation" - run_type: - $ref: "#/components/schemas/SyntheticsTestResultRunType" - started_at: - description: Timestamp of when the test started (in milliseconds). - format: int64 - type: integer - status: - $ref: "#/components/schemas/SyntheticsTestResultStatus" - steps_info: - $ref: "#/components/schemas/SyntheticsTestResultStepsInfo" - test_sub_type: - $ref: "#/components/schemas/SyntheticsTestSubType" - test_type: - $ref: "#/components/schemas/SyntheticsTestType" - type: object - SyntheticsTestResultSummaryData: - description: Wrapper object for a Synthetic test result summary. - properties: - attributes: - $ref: "#/components/schemas/SyntheticsTestResultSummaryAttributes" - id: - description: The result ID. - example: "5158904793181869365" - type: string - relationships: - $ref: "#/components/schemas/SyntheticsTestResultRelationships" - type: - $ref: "#/components/schemas/SyntheticsTestResultSummaryType" - type: object - SyntheticsTestResultSummaryType: - default: "result_summary" - description: Type of the Synthetic test result summary resource, `result_summary`. - enum: - - result_summary - example: result_summary - type: string - x-enum-varnames: - - RESULT_SUMMARY - SyntheticsTestResultTab: - description: Information about a browser tab involved in a step. - properties: - focused: - description: Whether the tab was focused during the step. - example: true - type: boolean - title: - description: Title of the tab. - example: Team Browser mini-websites - type: string - url: - description: URL loaded in the tab. - example: http://34.95.79.70/prototype - type: string - type: object - SyntheticsTestResultTrace: - description: Trace identifiers associated with a Synthetic test result. - properties: - id: - description: Datadog APM trace identifier. - example: "5513046492231128177" - type: string - otel_id: - description: OpenTelemetry trace identifier. - example: d8ba00eb1507bdba8643ba8e7a1c022c - type: string - type: object - SyntheticsTestResultTracerouteHop: - description: A network probe result, used for traceroute hops and ping summaries. - properties: - host: - description: Target hostname. - example: 34.95.79.70 - type: string - latency: - $ref: "#/components/schemas/SyntheticsTestResultNetworkLatency" - packet_loss_percentage: - description: Percentage of probe packets lost. - example: 0.0 - format: double - type: number - packet_size: - description: Size of each probe packet in bytes. - example: 56 - format: int64 - type: integer - packets_received: - description: Number of probe packets received. - example: 4 - format: int64 - type: integer - packets_sent: - description: Number of probe packets sent. - example: 4 - format: int64 - type: integer - resolved_ip: - description: Resolved IP address for the target. - example: 34.95.79.70 - type: string - routers: - description: List of intermediate routers for the traceroute. - items: - $ref: "#/components/schemas/SyntheticsTestResultRouter" - type: array - type: object - SyntheticsTestResultTurn: - description: A turn in a goal-based browser test, grouping steps and reasoning. - properties: - bucket_keys: - $ref: "#/components/schemas/SyntheticsTestResultBucketKeys" - name: - description: Name of the turn. - example: Turn 1 - type: string - reasoning: - description: Agent reasoning produced for this turn. - example: I need to navigate to the chairs section - type: string - status: - description: Status of the turn (for example, `passed`, `failed`). - example: passed - type: string - steps: - description: Steps executed during the turn. - items: - $ref: "#/components/schemas/SyntheticsTestResultTurnStep" - type: array - turn_finished_at: - description: Unix timestamp (ms) of when the turn finished. - example: 1724521438800 - format: int64 - type: integer - turn_started_at: - description: Unix timestamp (ms) of when the turn started. - example: 1724521436800 - format: int64 - type: integer - type: object - SyntheticsTestResultTurnStep: - description: A step executed during a goal-based browser test turn. - properties: - bucket_keys: - $ref: "#/components/schemas/SyntheticsTestResultBucketKeys" - config: - additionalProperties: {} - description: Browser step configuration for this turn step. - example: - id: step-1 - name: Click on div "Chairs" - type: click - type: object - type: object - SyntheticsTestResultType: - default: "result" - description: Type of the Synthetic test result resource, `result`. - enum: - - result - example: result - type: string - x-enum-varnames: - - RESULT - SyntheticsTestResultVariable: - description: A variable used or extracted during a test. - properties: - err: - description: Error encountered when evaluating the variable. - example: LOCAL_VARIABLE_UNKNOWN - type: string - error_message: - description: Human-readable error message for variable evaluation. - example: Unknown variable name undefined. - type: string - example: - description: Example value for the variable. - example: lol value - type: string - id: - description: Variable identifier. - example: c896702c-1e34-4e62-a67b-432e8092d062 - type: string - name: - description: Variable name. - example: HEADER_VALUE - type: string - pattern: - description: Pattern used to extract the variable. - example: lol value - type: string - secure: - description: Whether the variable holds a secure value. - example: false - type: boolean - type: - description: Variable type. - example: text - type: string - val: - description: Evaluated value of the variable. - example: value-to-extract - type: string - value: - description: Current value of the variable. - example: lol value - type: string - type: object - SyntheticsTestResultVariables: - description: Variables captured during a test step. - properties: - config: - description: Variables defined in the test configuration. - items: - $ref: "#/components/schemas/SyntheticsTestResultVariable" - type: array - extracted: - description: Variables extracted during the test execution. - items: - $ref: "#/components/schemas/SyntheticsTestResultVariable" - type: array - type: object - SyntheticsTestResultVitalsMetrics: - description: Web vitals metrics captured during a browser test step. - properties: - cls: - description: Cumulative Layout Shift score. - example: 0.0 - format: double - type: number - fcp: - description: First Contentful Paint in milliseconds. - example: 120.3 - format: double - type: number - inp: - description: Interaction to Next Paint in milliseconds. - example: 85.0 - format: double - type: number - lcp: - description: Largest Contentful Paint in milliseconds. - example: 210.5 - format: double - type: number - ttfb: - description: Time To First Byte in milliseconds. - example: 95.2 - format: double - type: number - url: - description: URL that produced the metrics. - example: http://34.95.79.70/prototype - type: string - type: object - SyntheticsTestResultWarning: - description: A warning captured during a browser test step. - properties: - element_bounds: - description: Bounds of elements related to the warning. - items: - $ref: "#/components/schemas/SyntheticsTestResultBounds" - type: array - message: - description: Warning message. - example: Element is not visible in the viewport - type: string - type: - description: Type of the warning. - example: visibility - type: string - type: object - SyntheticsTestResultWebSocketClose: - description: WebSocket close frame information for WebSocket test responses. - properties: - reason: - description: Reason string received in the close frame. - example: Normal closure - type: string - status_code: - description: Status code received in the close frame. - example: 1000 - format: int64 - type: integer - type: object - SyntheticsTestSubType: - description: Subtype of the Synthetic test that produced this result. - enum: - - dns - - grpc - - http - - icmp - - mcp - - multi - - ssl - - tcp - - udp - - websocket - example: http - type: string - x-enum-varnames: - - DNS - - GRPC - - HTTP - - ICMP - - MCP - - MULTI - - SSL - - TCP - - UDP - - WEBSOCKET - SyntheticsTestType: - description: Type of the Synthetic test that produced this result. - enum: - - api - - browser - - mobile - - network - example: api - type: string - x-enum-varnames: - - API - - BROWSER - - MOBILE - - NETWORK SyntheticsTestVersionActionMetadata: description: Object containing metadata about a change action. properties: @@ -90975,11 +89080,11 @@ paths: - **PERCENT**: Allocates fixed percentages to specific tags. Requires: allocated_by (array of percentage allocations). **Filter Conditions:** - - Use **value** for single-value conditions: "is", "is not", "contains", "does not contain", "=", "!=", "like", "not like", "is all values", "is untagged" + - Use **value** for single-value conditions: "is", "is not", "contains", "=", "!=", "like", "not like" - Use **values** for multi-value conditions: "in", "not in" - Cannot use both value and values simultaneously. - **Supported operators**: is, is not, is all values, is untagged, contains, does not contain, in, not in, =, !=, like, not like + **Supported operators**: is, is not, contains, in, not in, =, !=, like, not like operationId: CreateCustomAllocationRule requestBody: content: @@ -91147,11 +89252,11 @@ paths: - **USAGE_METRIC**: Allocates based on usage metrics (implementation varies). **Filter Conditions:** - - Use **value** for single-value conditions: "is", "is not", "contains", "does not contain", "=", "!=", "like", "not like", "is all values", "is untagged" + - Use **value** for single-value conditions: "is", "is not", "contains", "=", "!=", "like", "not like" - Use **values** for multi-value conditions: "in", "not in" - Cannot use both value and values simultaneously. - **Supported operators**: is, is not, is all values, is untagged, contains, does not contain, in, not in, =, !=, like, not like + **Supported operators**: is, is not, contains, in, not in, =, !=, like, not like operationId: UpdateCustomAllocationRule parameters: - description: The unique identifier of the custom allocation rule @@ -127095,207 +125200,6 @@ paths: permissions: - synthetics_write - synthetics_create_edit_trigger - /api/v2/synthetics/tests/browser/{public_id}/results: - get: - description: Get the latest result summaries for a given Synthetic browser test. - operationId: ListSyntheticsBrowserTestLatestResults - parameters: - - description: The public ID of the Synthetic browser test for which to search results. - in: path - name: public_id - required: true - schema: - type: string - - description: Timestamp in milliseconds from which to start querying results. - in: query - name: from_ts - required: false - schema: - format: int64 - type: integer - - description: Timestamp in milliseconds up to which to query results. - in: query - name: to_ts - required: false - schema: - format: int64 - type: integer - - description: Filter results by status. - in: query - name: status - required: false - schema: - $ref: "#/components/schemas/SyntheticsTestResultStatus" - - description: Filter results by run type. - in: query - name: runType - required: false - schema: - $ref: "#/components/schemas/SyntheticsTestResultRunType" - - description: Locations for which to query results. - in: query - name: probe_dc - required: false - schema: - items: - type: string - type: array - - description: Device IDs for which to query results. - in: query - name: device_id - required: false - schema: - items: - type: string - type: array - responses: - "200": - content: - application/json: - examples: - default: - value: - data: - - attributes: - device: - id: chrome.laptop_large - name: "Chrome - Laptop Large" - type: browser - finished_at: 1679328005200 - location: - id: aws:eu-west-1 - name: "Ireland (AWS)" - run_type: scheduled - started_at: 1679328000000 - status: passed - test_type: browser - test_version: 2 - id: "7291038456723891045" - relationships: - test: - data: - id: xyz-abc-789 - type: test - type: result_summary - schema: - $ref: "#/components/schemas/SyntheticsTestLatestResultsResponse" - description: OK - "400": - content: - application/json: - schema: - $ref: "#/components/schemas/APIErrorResponse" - description: API error response. - "404": - content: - application/json: - schema: - $ref: "#/components/schemas/APIErrorResponse" - description: API error response. - "429": - $ref: "#/components/responses/TooManyRequestsResponse" - security: - - apiKeyAuth: [] - appKeyAuth: [] - - AuthZ: - - synthetics_read - summary: Get a browser test's latest results - tags: - - Synthetics - x-permission: - operator: OR - permissions: - - synthetics_read - /api/v2/synthetics/tests/browser/{public_id}/results/{result_id}: - get: - description: Get a specific full result from a given Synthetic browser test. - operationId: GetSyntheticsBrowserTestResult - parameters: - - description: The public ID of the Synthetic browser test to which the target result belongs. - in: path - name: public_id - required: true - schema: - type: string - - description: The ID of the result to get. - in: path - name: result_id - required: true - schema: - type: string - - description: The event ID used to look up the result in the event store. - in: query - name: event_id - required: false - schema: - type: string - - description: Timestamp in seconds to look up the result. - in: query - name: timestamp - required: false - schema: - format: int64 - type: integer - responses: - "200": - content: - application/json: - examples: - default: - value: - data: - attributes: - device: - id: chrome.laptop_large - name: "Chrome - Laptop Large" - type: browser - location: - id: aws:eu-west-1 - name: "Ireland (AWS)" - result: - duration: 5200.0 - finished_at: 1679328005200 - id: "7291038456723891045" - started_at: 1679328000000 - status: passed - test_type: browser - test_version: 2 - id: "7291038456723891045" - relationships: - test: - data: - id: xyz-abc-789 - type: test - type: result - schema: - $ref: "#/components/schemas/SyntheticsTestResultResponse" - description: OK - "400": - content: - application/json: - schema: - $ref: "#/components/schemas/APIErrorResponse" - description: API error response. - "404": - content: - application/json: - schema: - $ref: "#/components/schemas/APIErrorResponse" - description: API error response. - "429": - $ref: "#/components/responses/TooManyRequestsResponse" - security: - - apiKeyAuth: [] - appKeyAuth: [] - - AuthZ: - - synthetics_read - summary: Get a browser test result - tags: - - Synthetics - x-permission: - operator: OR - permissions: - - synthetics_read /api/v2/synthetics/tests/bulk-delete: post: operationId: DeleteSyntheticsTests @@ -127362,27 +125266,6 @@ paths: "200": content: application/json: - examples: - default: - value: - data: - attributes: - location: - id: aws:us-east-1 - name: "N. Virginia (AWS)" - result: - duration: 150.5 - finished_at: 1679328001000 - id: abc12345-1234-1234-1234-abc123456789 - resolved_ip: "1.2.3.4" - run_type: fast - started_at: 1679328000000 - status: passed - test_sub_type: http - test_type: api - test_version: 1 - id: abc12345-1234-1234-1234-abc123456789 - type: result schema: $ref: "#/components/schemas/SyntheticsFastTestResult" description: OK @@ -127628,77 +125511,6 @@ paths: permissions: - synthetics_write - synthetics_create_edit_trigger - /api/v2/synthetics/tests/poll_results: - get: - description: |- - Poll for test results given a list of result IDs. This is typically used after - triggering tests with CI/CD to retrieve results once they are available. - operationId: PollSyntheticsTestResults - parameters: - - description: A JSON-encoded array of result IDs to poll for. - example: '["id1","id2","id3"]' - in: query - name: result_ids - required: true - schema: - type: string - responses: - "200": - content: - application/json: - examples: - default: - value: - data: - - attributes: - location: - id: aws:us-east-1 - name: "N. Virginia (AWS)" - result: - duration: 150.5 - finished_at: 1679328001000 - id: "5158904793181869365" - started_at: 1679328000000 - status: passed - test_sub_type: http - test_type: api - test_version: 3 - id: "5158904793181869365" - relationships: - test: - data: - id: abc-def-123 - type: test - type: result - schema: - $ref: "#/components/schemas/SyntheticsPollTestResultsResponse" - description: OK - "400": - content: - application/json: - schema: - $ref: "#/components/schemas/APIErrorResponse" - description: API error response. - "404": - content: - application/json: - schema: - $ref: "#/components/schemas/APIErrorResponse" - description: API error response. - "429": - $ref: "#/components/responses/TooManyRequestsResponse" - security: - - apiKeyAuth: [] - appKeyAuth: [] - - AuthZ: - - synthetics_read - summary: Poll for test results - tags: - - Synthetics - x-permission: - operator: OR - permissions: - - synthetics_read /api/v2/synthetics/tests/{public_id}/files/download: post: description: |- @@ -127992,201 +125804,6 @@ paths: operator: OR permissions: - synthetics_read - /api/v2/synthetics/tests/{public_id}/results: - get: - description: Get the latest result summaries for a given Synthetic test. - operationId: ListSyntheticsTestLatestResults - parameters: - - description: The public ID of the Synthetic test for which to search results. - in: path - name: public_id - required: true - schema: - type: string - - description: Timestamp in milliseconds from which to start querying results. - in: query - name: from_ts - required: false - schema: - format: int64 - type: integer - - description: Timestamp in milliseconds up to which to query results. - in: query - name: to_ts - required: false - schema: - format: int64 - type: integer - - description: Filter results by status. - in: query - name: status - required: false - schema: - $ref: "#/components/schemas/SyntheticsTestResultStatus" - - description: Filter results by run type. - in: query - name: runType - required: false - schema: - $ref: "#/components/schemas/SyntheticsTestResultRunType" - - description: Locations for which to query results. - in: query - name: probe_dc - required: false - schema: - items: - type: string - type: array - - description: Device IDs for which to query results. - in: query - name: device_id - required: false - schema: - items: - type: string - type: array - responses: - "200": - content: - application/json: - examples: - default: - value: - data: - - attributes: - finished_at: 1679328001000 - location: - id: aws:us-east-1 - name: "N. Virginia (AWS)" - run_type: scheduled - started_at: 1679328000000 - status: passed - test_sub_type: http - test_type: api - test_version: 3 - id: "5158904793181869365" - relationships: - test: - data: - id: abc-def-123 - type: test - type: result_summary - schema: - $ref: "#/components/schemas/SyntheticsTestLatestResultsResponse" - description: OK - "400": - content: - application/json: - schema: - $ref: "#/components/schemas/APIErrorResponse" - description: API error response. - "404": - content: - application/json: - schema: - $ref: "#/components/schemas/APIErrorResponse" - description: API error response. - "429": - $ref: "#/components/responses/TooManyRequestsResponse" - security: - - apiKeyAuth: [] - appKeyAuth: [] - - AuthZ: - - synthetics_read - summary: Get a test's latest results - tags: - - Synthetics - x-permission: - operator: OR - permissions: - - synthetics_read - /api/v2/synthetics/tests/{public_id}/results/{result_id}: - get: - description: Get a specific full result from a given Synthetic test. - operationId: GetSyntheticsTestResult - parameters: - - description: The public ID of the Synthetic test to which the target result belongs. - in: path - name: public_id - required: true - schema: - type: string - - description: The ID of the result to get. - in: path - name: result_id - required: true - schema: - type: string - - description: The event ID used to look up the result in the event store. - in: query - name: event_id - required: false - schema: - type: string - - description: Timestamp in seconds to look up the result. - in: query - name: timestamp - required: false - schema: - format: int64 - type: integer - responses: - "200": - content: - application/json: - examples: - default: - value: - data: - attributes: - location: - id: aws:us-east-1 - name: "N. Virginia (AWS)" - result: - duration: 150.5 - finished_at: 1679328001000 - id: "5158904793181869365" - started_at: 1679328000000 - status: passed - test_sub_type: http - test_type: api - test_version: 3 - id: "5158904793181869365" - relationships: - test: - data: - id: abc-def-123 - type: test - type: result - schema: - $ref: "#/components/schemas/SyntheticsTestResultResponse" - description: OK - "400": - content: - application/json: - schema: - $ref: "#/components/schemas/APIErrorResponse" - description: API error response. - "404": - content: - application/json: - schema: - $ref: "#/components/schemas/APIErrorResponse" - description: API error response. - "429": - $ref: "#/components/responses/TooManyRequestsResponse" - security: - - apiKeyAuth: [] - appKeyAuth: [] - - AuthZ: - - synthetics_read - summary: Get a test result - tags: - - Synthetics - x-permission: - operator: OR - permissions: - - synthetics_read /api/v2/synthetics/tests/{public_id}/version_history: get: description: Get the paginated version history for a Synthetic test. diff --git a/examples/v2/synthetics/GetSyntheticsBrowserTestResult.java b/examples/v2/synthetics/GetSyntheticsBrowserTestResult.java deleted file mode 100644 index 27601263467..00000000000 --- a/examples/v2/synthetics/GetSyntheticsBrowserTestResult.java +++ /dev/null @@ -1,25 +0,0 @@ -// Get a browser test result returns "OK" response - -import com.datadog.api.client.ApiClient; -import com.datadog.api.client.ApiException; -import com.datadog.api.client.v2.api.SyntheticsApi; -import com.datadog.api.client.v2.model.SyntheticsTestResultResponse; - -public class Example { - public static void main(String[] args) { - ApiClient defaultClient = ApiClient.getDefaultApiClient(); - SyntheticsApi apiInstance = new SyntheticsApi(defaultClient); - - try { - SyntheticsTestResultResponse result = - apiInstance.getSyntheticsBrowserTestResult("public_id", "result_id"); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling SyntheticsApi#getSyntheticsBrowserTestResult"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); - } - } -} diff --git a/examples/v2/synthetics/GetSyntheticsTestResult.java b/examples/v2/synthetics/GetSyntheticsTestResult.java deleted file mode 100644 index 6eb6f6b9d94..00000000000 --- a/examples/v2/synthetics/GetSyntheticsTestResult.java +++ /dev/null @@ -1,25 +0,0 @@ -// Get a test result returns "OK" response - -import com.datadog.api.client.ApiClient; -import com.datadog.api.client.ApiException; -import com.datadog.api.client.v2.api.SyntheticsApi; -import com.datadog.api.client.v2.model.SyntheticsTestResultResponse; - -public class Example { - public static void main(String[] args) { - ApiClient defaultClient = ApiClient.getDefaultApiClient(); - SyntheticsApi apiInstance = new SyntheticsApi(defaultClient); - - try { - SyntheticsTestResultResponse result = - apiInstance.getSyntheticsTestResult("public_id", "result_id"); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling SyntheticsApi#getSyntheticsTestResult"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); - } - } -} diff --git a/examples/v2/synthetics/ListSyntheticsBrowserTestLatestResults.java b/examples/v2/synthetics/ListSyntheticsBrowserTestLatestResults.java deleted file mode 100644 index b1e69900174..00000000000 --- a/examples/v2/synthetics/ListSyntheticsBrowserTestLatestResults.java +++ /dev/null @@ -1,26 +0,0 @@ -// Get a browser test's latest results returns "OK" response - -import com.datadog.api.client.ApiClient; -import com.datadog.api.client.ApiException; -import com.datadog.api.client.v2.api.SyntheticsApi; -import com.datadog.api.client.v2.model.SyntheticsTestLatestResultsResponse; - -public class Example { - public static void main(String[] args) { - ApiClient defaultClient = ApiClient.getDefaultApiClient(); - SyntheticsApi apiInstance = new SyntheticsApi(defaultClient); - - try { - SyntheticsTestLatestResultsResponse result = - apiInstance.listSyntheticsBrowserTestLatestResults("public_id"); - System.out.println(result); - } catch (ApiException e) { - System.err.println( - "Exception when calling SyntheticsApi#listSyntheticsBrowserTestLatestResults"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); - } - } -} diff --git a/examples/v2/synthetics/ListSyntheticsTestLatestResults.java b/examples/v2/synthetics/ListSyntheticsTestLatestResults.java deleted file mode 100644 index a58ab55efca..00000000000 --- a/examples/v2/synthetics/ListSyntheticsTestLatestResults.java +++ /dev/null @@ -1,25 +0,0 @@ -// Get a test's latest results returns "OK" response - -import com.datadog.api.client.ApiClient; -import com.datadog.api.client.ApiException; -import com.datadog.api.client.v2.api.SyntheticsApi; -import com.datadog.api.client.v2.model.SyntheticsTestLatestResultsResponse; - -public class Example { - public static void main(String[] args) { - ApiClient defaultClient = ApiClient.getDefaultApiClient(); - SyntheticsApi apiInstance = new SyntheticsApi(defaultClient); - - try { - SyntheticsTestLatestResultsResponse result = - apiInstance.listSyntheticsTestLatestResults("public_id"); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling SyntheticsApi#listSyntheticsTestLatestResults"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); - } - } -} diff --git a/examples/v2/synthetics/PollSyntheticsTestResults.java b/examples/v2/synthetics/PollSyntheticsTestResults.java deleted file mode 100644 index 5c9dcc88e14..00000000000 --- a/examples/v2/synthetics/PollSyntheticsTestResults.java +++ /dev/null @@ -1,27 +0,0 @@ -// Poll for test results returns "OK" response - -import com.datadog.api.client.ApiClient; -import com.datadog.api.client.ApiException; -import com.datadog.api.client.v2.api.SyntheticsApi; -import com.datadog.api.client.v2.model.SyntheticsPollTestResultsResponse; - -public class Example { - public static void main(String[] args) { - ApiClient defaultClient = ApiClient.getDefaultApiClient(); - SyntheticsApi apiInstance = new SyntheticsApi(defaultClient); - - try { - SyntheticsPollTestResultsResponse result = - apiInstance.pollSyntheticsTestResults(""" -["id1","id2","id3"] -"""); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling SyntheticsApi#pollSyntheticsTestResults"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); - } - } -} diff --git a/src/main/java/com/datadog/api/client/v2/api/CloudCostManagementApi.java b/src/main/java/com/datadog/api/client/v2/api/CloudCostManagementApi.java index f67b87c1926..df20c0615f1 100644 --- a/src/main/java/com/datadog/api/client/v2/api/CloudCostManagementApi.java +++ b/src/main/java/com/datadog/api/client/v2/api/CloudCostManagementApi.java @@ -520,12 +520,12 @@ public CompletableFuture createCustomAllocationRuleAsync( * specific tags. Requires: allocated_by (array of percentage allocations). * *

Filter Conditions: - Use value for single-value - * conditions: "is", "is not", "contains", "does not contain", "=", "!=", "like", "not like", "is - * all values", "is untagged" - Use values for multi-value conditions: "in", "not - * in" - Cannot use both value and values simultaneously. + * conditions: "is", "is not", "contains", "=", "!=", "like", "not like" - Use + * values for multi-value conditions: "in", "not in" - Cannot use both value and + * values simultaneously. * - *

Supported operators: is, is not, is all values, is untagged, contains, does - * not contain, in, not in, =, !=, like, not like + *

Supported operators: is, is not, contains, in, not in, =, !=, like, not + * like * * @param body (required) * @return ApiResponse<ArbitraryRuleResponse> @@ -4383,12 +4383,12 @@ public CompletableFuture updateCustomAllocationRuleAsync( * USAGE_METRIC: Allocates based on usage metrics (implementation varies). * *

Filter Conditions: - Use value for single-value - * conditions: "is", "is not", "contains", "does not contain", "=", "!=", "like", "not like", "is - * all values", "is untagged" - Use values for multi-value conditions: "in", "not - * in" - Cannot use both value and values simultaneously. + * conditions: "is", "is not", "contains", "=", "!=", "like", "not like" - Use + * values for multi-value conditions: "in", "not in" - Cannot use both value and + * values simultaneously. * - *

Supported operators: is, is not, is all values, is untagged, contains, does - * not contain, in, not in, =, !=, like, not like + *

Supported operators: is, is not, contains, in, not in, =, !=, like, not + * like * * @param ruleId The unique identifier of the custom allocation rule (required) * @param body (required) diff --git a/src/main/java/com/datadog/api/client/v2/api/SyntheticsApi.java b/src/main/java/com/datadog/api/client/v2/api/SyntheticsApi.java index 98ff018816b..23eb383a827 100644 --- a/src/main/java/com/datadog/api/client/v2/api/SyntheticsApi.java +++ b/src/main/java/com/datadog/api/client/v2/api/SyntheticsApi.java @@ -19,7 +19,6 @@ import com.datadog.api.client.v2.model.SyntheticsFastTestResult; import com.datadog.api.client.v2.model.SyntheticsNetworkTestEditRequest; import com.datadog.api.client.v2.model.SyntheticsNetworkTestResponse; -import com.datadog.api.client.v2.model.SyntheticsPollTestResultsResponse; import com.datadog.api.client.v2.model.SyntheticsSuiteResponse; import com.datadog.api.client.v2.model.SyntheticsSuiteSearchResponse; import com.datadog.api.client.v2.model.SyntheticsTestFileAbortMultipartUploadRequest; @@ -28,11 +27,7 @@ import com.datadog.api.client.v2.model.SyntheticsTestFileDownloadResponse; import com.datadog.api.client.v2.model.SyntheticsTestFileMultipartPresignedUrlsRequest; import com.datadog.api.client.v2.model.SyntheticsTestFileMultipartPresignedUrlsResponse; -import com.datadog.api.client.v2.model.SyntheticsTestLatestResultsResponse; import com.datadog.api.client.v2.model.SyntheticsTestParentSuitesResponse; -import com.datadog.api.client.v2.model.SyntheticsTestResultResponse; -import com.datadog.api.client.v2.model.SyntheticsTestResultRunType; -import com.datadog.api.client.v2.model.SyntheticsTestResultStatus; import com.datadog.api.client.v2.model.SyntheticsTestVersionHistoryResponse; import com.datadog.api.client.v2.model.SyntheticsTestVersionResponse; import jakarta.ws.rs.client.Invocation; @@ -1467,266 +1462,6 @@ public ApiResponse getOnDemandConcurrencyCapWith new GenericType() {}); } - /** Manage optional parameters to getSyntheticsBrowserTestResult. */ - public static class GetSyntheticsBrowserTestResultOptionalParameters { - private String eventId; - private Long timestamp; - - /** - * Set eventId. - * - * @param eventId The event ID used to look up the result in the event store. (optional) - * @return GetSyntheticsBrowserTestResultOptionalParameters - */ - public GetSyntheticsBrowserTestResultOptionalParameters eventId(String eventId) { - this.eventId = eventId; - return this; - } - - /** - * Set timestamp. - * - * @param timestamp Timestamp in seconds to look up the result. (optional) - * @return GetSyntheticsBrowserTestResultOptionalParameters - */ - public GetSyntheticsBrowserTestResultOptionalParameters timestamp(Long timestamp) { - this.timestamp = timestamp; - return this; - } - } - - /** - * Get a browser test result. - * - *

See {@link #getSyntheticsBrowserTestResultWithHttpInfo}. - * - * @param publicId The public ID of the Synthetic browser test to which the target result belongs. - * (required) - * @param resultId The ID of the result to get. (required) - * @return SyntheticsTestResultResponse - * @throws ApiException if fails to make API call - */ - public SyntheticsTestResultResponse getSyntheticsBrowserTestResult( - String publicId, String resultId) throws ApiException { - return getSyntheticsBrowserTestResultWithHttpInfo( - publicId, resultId, new GetSyntheticsBrowserTestResultOptionalParameters()) - .getData(); - } - - /** - * Get a browser test result. - * - *

See {@link #getSyntheticsBrowserTestResultWithHttpInfoAsync}. - * - * @param publicId The public ID of the Synthetic browser test to which the target result belongs. - * (required) - * @param resultId The ID of the result to get. (required) - * @return CompletableFuture<SyntheticsTestResultResponse> - */ - public CompletableFuture getSyntheticsBrowserTestResultAsync( - String publicId, String resultId) { - return getSyntheticsBrowserTestResultWithHttpInfoAsync( - publicId, resultId, new GetSyntheticsBrowserTestResultOptionalParameters()) - .thenApply( - response -> { - return response.getData(); - }); - } - - /** - * Get a browser test result. - * - *

See {@link #getSyntheticsBrowserTestResultWithHttpInfo}. - * - * @param publicId The public ID of the Synthetic browser test to which the target result belongs. - * (required) - * @param resultId The ID of the result to get. (required) - * @param parameters Optional parameters for the request. - * @return SyntheticsTestResultResponse - * @throws ApiException if fails to make API call - */ - public SyntheticsTestResultResponse getSyntheticsBrowserTestResult( - String publicId, String resultId, GetSyntheticsBrowserTestResultOptionalParameters parameters) - throws ApiException { - return getSyntheticsBrowserTestResultWithHttpInfo(publicId, resultId, parameters).getData(); - } - - /** - * Get a browser test result. - * - *

See {@link #getSyntheticsBrowserTestResultWithHttpInfoAsync}. - * - * @param publicId The public ID of the Synthetic browser test to which the target result belongs. - * (required) - * @param resultId The ID of the result to get. (required) - * @param parameters Optional parameters for the request. - * @return CompletableFuture<SyntheticsTestResultResponse> - */ - public CompletableFuture getSyntheticsBrowserTestResultAsync( - String publicId, - String resultId, - GetSyntheticsBrowserTestResultOptionalParameters parameters) { - return getSyntheticsBrowserTestResultWithHttpInfoAsync(publicId, resultId, parameters) - .thenApply( - response -> { - return response.getData(); - }); - } - - /** - * Get a specific full result from a given Synthetic browser test. - * - * @param publicId The public ID of the Synthetic browser test to which the target result belongs. - * (required) - * @param resultId The ID of the result to get. (required) - * @param parameters Optional parameters for the request. - * @return ApiResponse<SyntheticsTestResultResponse> - * @throws ApiException if fails to make API call - * @http.response.details - * - * - * - * - * - * - * - *
Response details
Status Code Description Response Headers
200 OK -
400 API error response. -
404 API error response. -
429 Too many requests -
- */ - public ApiResponse getSyntheticsBrowserTestResultWithHttpInfo( - String publicId, String resultId, GetSyntheticsBrowserTestResultOptionalParameters parameters) - throws ApiException { - Object localVarPostBody = null; - - // verify the required parameter 'publicId' is set - if (publicId == null) { - throw new ApiException( - 400, - "Missing the required parameter 'publicId' when calling getSyntheticsBrowserTestResult"); - } - - // verify the required parameter 'resultId' is set - if (resultId == null) { - throw new ApiException( - 400, - "Missing the required parameter 'resultId' when calling getSyntheticsBrowserTestResult"); - } - String eventId = parameters.eventId; - Long timestamp = parameters.timestamp; - // create path and map variables - String localVarPath = - "/api/v2/synthetics/tests/browser/{public_id}/results/{result_id}" - .replaceAll("\\{" + "public_id" + "\\}", apiClient.escapeString(publicId.toString())) - .replaceAll("\\{" + "result_id" + "\\}", apiClient.escapeString(resultId.toString())); - - List localVarQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - - localVarQueryParams.addAll(apiClient.parameterToPairs("", "event_id", eventId)); - localVarQueryParams.addAll(apiClient.parameterToPairs("", "timestamp", timestamp)); - - Invocation.Builder builder = - apiClient.createBuilder( - "v2.SyntheticsApi.getSyntheticsBrowserTestResult", - localVarPath, - localVarQueryParams, - localVarHeaderParams, - new HashMap(), - new String[] {"application/json"}, - new String[] {"apiKeyAuth", "appKeyAuth", "AuthZ"}); - return apiClient.invokeAPI( - "GET", - builder, - localVarHeaderParams, - new String[] {}, - localVarPostBody, - new HashMap(), - false, - new GenericType() {}); - } - - /** - * Get a browser test result. - * - *

See {@link #getSyntheticsBrowserTestResultWithHttpInfo}. - * - * @param publicId The public ID of the Synthetic browser test to which the target result belongs. - * (required) - * @param resultId The ID of the result to get. (required) - * @param parameters Optional parameters for the request. - * @return CompletableFuture<ApiResponse<SyntheticsTestResultResponse>> - */ - public CompletableFuture> - getSyntheticsBrowserTestResultWithHttpInfoAsync( - String publicId, - String resultId, - GetSyntheticsBrowserTestResultOptionalParameters parameters) { - Object localVarPostBody = null; - - // verify the required parameter 'publicId' is set - if (publicId == null) { - CompletableFuture> result = - new CompletableFuture<>(); - result.completeExceptionally( - new ApiException( - 400, - "Missing the required parameter 'publicId' when calling" - + " getSyntheticsBrowserTestResult")); - return result; - } - - // verify the required parameter 'resultId' is set - if (resultId == null) { - CompletableFuture> result = - new CompletableFuture<>(); - result.completeExceptionally( - new ApiException( - 400, - "Missing the required parameter 'resultId' when calling" - + " getSyntheticsBrowserTestResult")); - return result; - } - String eventId = parameters.eventId; - Long timestamp = parameters.timestamp; - // create path and map variables - String localVarPath = - "/api/v2/synthetics/tests/browser/{public_id}/results/{result_id}" - .replaceAll("\\{" + "public_id" + "\\}", apiClient.escapeString(publicId.toString())) - .replaceAll("\\{" + "result_id" + "\\}", apiClient.escapeString(resultId.toString())); - - List localVarQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - - localVarQueryParams.addAll(apiClient.parameterToPairs("", "event_id", eventId)); - localVarQueryParams.addAll(apiClient.parameterToPairs("", "timestamp", timestamp)); - - Invocation.Builder builder; - try { - builder = - apiClient.createBuilder( - "v2.SyntheticsApi.getSyntheticsBrowserTestResult", - localVarPath, - localVarQueryParams, - localVarHeaderParams, - new HashMap(), - new String[] {"application/json"}, - new String[] {"apiKeyAuth", "appKeyAuth", "AuthZ"}); - } catch (ApiException ex) { - CompletableFuture> result = - new CompletableFuture<>(); - result.completeExceptionally(ex); - return result; - } - return apiClient.invokeAPIAsync( - "GET", - builder, - localVarHeaderParams, - new String[] {}, - localVarPostBody, - new HashMap(), - false, - new GenericType() {}); - } - /** * Get a fast test result. * @@ -2130,66 +1865,69 @@ public ApiResponse getSyntheticsSuiteWithHttpInfo(Strin new GenericType() {}); } - /** Manage optional parameters to getSyntheticsTestResult. */ - public static class GetSyntheticsTestResultOptionalParameters { - private String eventId; - private Long timestamp; + /** Manage optional parameters to getSyntheticsTestVersion. */ + public static class GetSyntheticsTestVersionOptionalParameters { + private Boolean includeChangeMetadata; + private Boolean onlyCheckExistence; /** - * Set eventId. + * Set includeChangeMetadata. * - * @param eventId The event ID used to look up the result in the event store. (optional) - * @return GetSyntheticsTestResultOptionalParameters + * @param includeChangeMetadata If true, include change metadata in the response. + * (optional) + * @return GetSyntheticsTestVersionOptionalParameters */ - public GetSyntheticsTestResultOptionalParameters eventId(String eventId) { - this.eventId = eventId; + public GetSyntheticsTestVersionOptionalParameters includeChangeMetadata( + Boolean includeChangeMetadata) { + this.includeChangeMetadata = includeChangeMetadata; return this; } /** - * Set timestamp. + * Set onlyCheckExistence. * - * @param timestamp Timestamp in seconds to look up the result. (optional) - * @return GetSyntheticsTestResultOptionalParameters + * @param onlyCheckExistence If true, only check whether the version exists without + * returning its full payload. Returns an empty object if the version exists, or 404 if not. + * (optional) + * @return GetSyntheticsTestVersionOptionalParameters */ - public GetSyntheticsTestResultOptionalParameters timestamp(Long timestamp) { - this.timestamp = timestamp; + public GetSyntheticsTestVersionOptionalParameters onlyCheckExistence( + Boolean onlyCheckExistence) { + this.onlyCheckExistence = onlyCheckExistence; return this; } } /** - * Get a test result. + * Get a specific version of a test. * - *

See {@link #getSyntheticsTestResultWithHttpInfo}. + *

See {@link #getSyntheticsTestVersionWithHttpInfo}. * - * @param publicId The public ID of the Synthetic test to which the target result belongs. - * (required) - * @param resultId The ID of the result to get. (required) - * @return SyntheticsTestResultResponse + * @param publicId The public ID of the Synthetic test. (required) + * @param versionNumber The version number to retrieve. (required) + * @return SyntheticsTestVersionResponse * @throws ApiException if fails to make API call */ - public SyntheticsTestResultResponse getSyntheticsTestResult(String publicId, String resultId) + public SyntheticsTestVersionResponse getSyntheticsTestVersion(String publicId, Long versionNumber) throws ApiException { - return getSyntheticsTestResultWithHttpInfo( - publicId, resultId, new GetSyntheticsTestResultOptionalParameters()) + return getSyntheticsTestVersionWithHttpInfo( + publicId, versionNumber, new GetSyntheticsTestVersionOptionalParameters()) .getData(); } /** - * Get a test result. + * Get a specific version of a test. * - *

See {@link #getSyntheticsTestResultWithHttpInfoAsync}. + *

See {@link #getSyntheticsTestVersionWithHttpInfoAsync}. * - * @param publicId The public ID of the Synthetic test to which the target result belongs. - * (required) - * @param resultId The ID of the result to get. (required) - * @return CompletableFuture<SyntheticsTestResultResponse> + * @param publicId The public ID of the Synthetic test. (required) + * @param versionNumber The version number to retrieve. (required) + * @return CompletableFuture<SyntheticsTestVersionResponse> */ - public CompletableFuture getSyntheticsTestResultAsync( - String publicId, String resultId) { - return getSyntheticsTestResultWithHttpInfoAsync( - publicId, resultId, new GetSyntheticsTestResultOptionalParameters()) + public CompletableFuture getSyntheticsTestVersionAsync( + String publicId, Long versionNumber) { + return getSyntheticsTestVersionWithHttpInfoAsync( + publicId, versionNumber, new GetSyntheticsTestVersionOptionalParameters()) .thenApply( response -> { return response.getData(); @@ -2197,37 +1935,35 @@ publicId, resultId, new GetSyntheticsTestResultOptionalParameters()) } /** - * Get a test result. + * Get a specific version of a test. * - *

See {@link #getSyntheticsTestResultWithHttpInfo}. + *

See {@link #getSyntheticsTestVersionWithHttpInfo}. * - * @param publicId The public ID of the Synthetic test to which the target result belongs. - * (required) - * @param resultId The ID of the result to get. (required) + * @param publicId The public ID of the Synthetic test. (required) + * @param versionNumber The version number to retrieve. (required) * @param parameters Optional parameters for the request. - * @return SyntheticsTestResultResponse + * @return SyntheticsTestVersionResponse * @throws ApiException if fails to make API call */ - public SyntheticsTestResultResponse getSyntheticsTestResult( - String publicId, String resultId, GetSyntheticsTestResultOptionalParameters parameters) + public SyntheticsTestVersionResponse getSyntheticsTestVersion( + String publicId, Long versionNumber, GetSyntheticsTestVersionOptionalParameters parameters) throws ApiException { - return getSyntheticsTestResultWithHttpInfo(publicId, resultId, parameters).getData(); + return getSyntheticsTestVersionWithHttpInfo(publicId, versionNumber, parameters).getData(); } /** - * Get a test result. + * Get a specific version of a test. * - *

See {@link #getSyntheticsTestResultWithHttpInfoAsync}. + *

See {@link #getSyntheticsTestVersionWithHttpInfoAsync}. * - * @param publicId The public ID of the Synthetic test to which the target result belongs. - * (required) - * @param resultId The ID of the result to get. (required) + * @param publicId The public ID of the Synthetic test. (required) + * @param versionNumber The version number to retrieve. (required) * @param parameters Optional parameters for the request. - * @return CompletableFuture<SyntheticsTestResultResponse> + * @return CompletableFuture<SyntheticsTestVersionResponse> */ - public CompletableFuture getSyntheticsTestResultAsync( - String publicId, String resultId, GetSyntheticsTestResultOptionalParameters parameters) { - return getSyntheticsTestResultWithHttpInfoAsync(publicId, resultId, parameters) + public CompletableFuture getSyntheticsTestVersionAsync( + String publicId, Long versionNumber, GetSyntheticsTestVersionOptionalParameters parameters) { + return getSyntheticsTestVersionWithHttpInfoAsync(publicId, versionNumber, parameters) .thenApply( response -> { return response.getData(); @@ -2235,57 +1971,59 @@ public CompletableFuture getSyntheticsTestResultAs } /** - * Get a specific full result from a given Synthetic test. + * Get a specific version of a Synthetic test by its version number. * - * @param publicId The public ID of the Synthetic test to which the target result belongs. - * (required) - * @param resultId The ID of the result to get. (required) + * @param publicId The public ID of the Synthetic test. (required) + * @param versionNumber The version number to retrieve. (required) * @param parameters Optional parameters for the request. - * @return ApiResponse<SyntheticsTestResultResponse> + * @return ApiResponse<SyntheticsTestVersionResponse> * @throws ApiException if fails to make API call * @http.response.details * * * * - * * * *
Response details
Status Code Description Response Headers
200 OK -
400 API error response. -
404 API error response. -
429 Too many requests -
*/ - public ApiResponse getSyntheticsTestResultWithHttpInfo( - String publicId, String resultId, GetSyntheticsTestResultOptionalParameters parameters) + public ApiResponse getSyntheticsTestVersionWithHttpInfo( + String publicId, Long versionNumber, GetSyntheticsTestVersionOptionalParameters parameters) throws ApiException { Object localVarPostBody = null; // verify the required parameter 'publicId' is set if (publicId == null) { throw new ApiException( - 400, "Missing the required parameter 'publicId' when calling getSyntheticsTestResult"); + 400, "Missing the required parameter 'publicId' when calling getSyntheticsTestVersion"); } - // verify the required parameter 'resultId' is set - if (resultId == null) { + // verify the required parameter 'versionNumber' is set + if (versionNumber == null) { throw new ApiException( - 400, "Missing the required parameter 'resultId' when calling getSyntheticsTestResult"); + 400, + "Missing the required parameter 'versionNumber' when calling getSyntheticsTestVersion"); } - String eventId = parameters.eventId; - Long timestamp = parameters.timestamp; + Boolean includeChangeMetadata = parameters.includeChangeMetadata; + Boolean onlyCheckExistence = parameters.onlyCheckExistence; // create path and map variables String localVarPath = - "/api/v2/synthetics/tests/{public_id}/results/{result_id}" + "/api/v2/synthetics/tests/{public_id}/version_history/{version_number}" .replaceAll("\\{" + "public_id" + "\\}", apiClient.escapeString(publicId.toString())) - .replaceAll("\\{" + "result_id" + "\\}", apiClient.escapeString(resultId.toString())); + .replaceAll( + "\\{" + "version_number" + "\\}", apiClient.escapeString(versionNumber.toString())); List localVarQueryParams = new ArrayList(); Map localVarHeaderParams = new HashMap(); - localVarQueryParams.addAll(apiClient.parameterToPairs("", "event_id", eventId)); - localVarQueryParams.addAll(apiClient.parameterToPairs("", "timestamp", timestamp)); + localVarQueryParams.addAll( + apiClient.parameterToPairs("", "include_change_metadata", includeChangeMetadata)); + localVarQueryParams.addAll( + apiClient.parameterToPairs("", "only_check_existence", onlyCheckExistence)); Invocation.Builder builder = apiClient.createBuilder( - "v2.SyntheticsApi.getSyntheticsTestResult", + "v2.SyntheticsApi.getSyntheticsTestVersion", localVarPath, localVarQueryParams, localVarHeaderParams, @@ -2300,308 +2038,53 @@ public ApiResponse getSyntheticsTestResultWithHttp localVarPostBody, new HashMap(), false, - new GenericType() {}); + new GenericType() {}); } /** - * Get a test result. + * Get a specific version of a test. * - *

See {@link #getSyntheticsTestResultWithHttpInfo}. + *

See {@link #getSyntheticsTestVersionWithHttpInfo}. * - * @param publicId The public ID of the Synthetic test to which the target result belongs. - * (required) - * @param resultId The ID of the result to get. (required) + * @param publicId The public ID of the Synthetic test. (required) + * @param versionNumber The version number to retrieve. (required) * @param parameters Optional parameters for the request. - * @return CompletableFuture<ApiResponse<SyntheticsTestResultResponse>> + * @return CompletableFuture<ApiResponse<SyntheticsTestVersionResponse>> */ - public CompletableFuture> - getSyntheticsTestResultWithHttpInfoAsync( - String publicId, String resultId, GetSyntheticsTestResultOptionalParameters parameters) { + public CompletableFuture> + getSyntheticsTestVersionWithHttpInfoAsync( + String publicId, + Long versionNumber, + GetSyntheticsTestVersionOptionalParameters parameters) { Object localVarPostBody = null; // verify the required parameter 'publicId' is set if (publicId == null) { - CompletableFuture> result = + CompletableFuture> result = new CompletableFuture<>(); result.completeExceptionally( new ApiException( 400, - "Missing the required parameter 'publicId' when calling getSyntheticsTestResult")); + "Missing the required parameter 'publicId' when calling getSyntheticsTestVersion")); return result; } - // verify the required parameter 'resultId' is set - if (resultId == null) { - CompletableFuture> result = + // verify the required parameter 'versionNumber' is set + if (versionNumber == null) { + CompletableFuture> result = new CompletableFuture<>(); result.completeExceptionally( new ApiException( 400, - "Missing the required parameter 'resultId' when calling getSyntheticsTestResult")); + "Missing the required parameter 'versionNumber' when calling" + + " getSyntheticsTestVersion")); return result; } - String eventId = parameters.eventId; - Long timestamp = parameters.timestamp; + Boolean includeChangeMetadata = parameters.includeChangeMetadata; + Boolean onlyCheckExistence = parameters.onlyCheckExistence; // create path and map variables String localVarPath = - "/api/v2/synthetics/tests/{public_id}/results/{result_id}" - .replaceAll("\\{" + "public_id" + "\\}", apiClient.escapeString(publicId.toString())) - .replaceAll("\\{" + "result_id" + "\\}", apiClient.escapeString(resultId.toString())); - - List localVarQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - - localVarQueryParams.addAll(apiClient.parameterToPairs("", "event_id", eventId)); - localVarQueryParams.addAll(apiClient.parameterToPairs("", "timestamp", timestamp)); - - Invocation.Builder builder; - try { - builder = - apiClient.createBuilder( - "v2.SyntheticsApi.getSyntheticsTestResult", - localVarPath, - localVarQueryParams, - localVarHeaderParams, - new HashMap(), - new String[] {"application/json"}, - new String[] {"apiKeyAuth", "appKeyAuth", "AuthZ"}); - } catch (ApiException ex) { - CompletableFuture> result = - new CompletableFuture<>(); - result.completeExceptionally(ex); - return result; - } - return apiClient.invokeAPIAsync( - "GET", - builder, - localVarHeaderParams, - new String[] {}, - localVarPostBody, - new HashMap(), - false, - new GenericType() {}); - } - - /** Manage optional parameters to getSyntheticsTestVersion. */ - public static class GetSyntheticsTestVersionOptionalParameters { - private Boolean includeChangeMetadata; - private Boolean onlyCheckExistence; - - /** - * Set includeChangeMetadata. - * - * @param includeChangeMetadata If true, include change metadata in the response. - * (optional) - * @return GetSyntheticsTestVersionOptionalParameters - */ - public GetSyntheticsTestVersionOptionalParameters includeChangeMetadata( - Boolean includeChangeMetadata) { - this.includeChangeMetadata = includeChangeMetadata; - return this; - } - - /** - * Set onlyCheckExistence. - * - * @param onlyCheckExistence If true, only check whether the version exists without - * returning its full payload. Returns an empty object if the version exists, or 404 if not. - * (optional) - * @return GetSyntheticsTestVersionOptionalParameters - */ - public GetSyntheticsTestVersionOptionalParameters onlyCheckExistence( - Boolean onlyCheckExistence) { - this.onlyCheckExistence = onlyCheckExistence; - return this; - } - } - - /** - * Get a specific version of a test. - * - *

See {@link #getSyntheticsTestVersionWithHttpInfo}. - * - * @param publicId The public ID of the Synthetic test. (required) - * @param versionNumber The version number to retrieve. (required) - * @return SyntheticsTestVersionResponse - * @throws ApiException if fails to make API call - */ - public SyntheticsTestVersionResponse getSyntheticsTestVersion(String publicId, Long versionNumber) - throws ApiException { - return getSyntheticsTestVersionWithHttpInfo( - publicId, versionNumber, new GetSyntheticsTestVersionOptionalParameters()) - .getData(); - } - - /** - * Get a specific version of a test. - * - *

See {@link #getSyntheticsTestVersionWithHttpInfoAsync}. - * - * @param publicId The public ID of the Synthetic test. (required) - * @param versionNumber The version number to retrieve. (required) - * @return CompletableFuture<SyntheticsTestVersionResponse> - */ - public CompletableFuture getSyntheticsTestVersionAsync( - String publicId, Long versionNumber) { - return getSyntheticsTestVersionWithHttpInfoAsync( - publicId, versionNumber, new GetSyntheticsTestVersionOptionalParameters()) - .thenApply( - response -> { - return response.getData(); - }); - } - - /** - * Get a specific version of a test. - * - *

See {@link #getSyntheticsTestVersionWithHttpInfo}. - * - * @param publicId The public ID of the Synthetic test. (required) - * @param versionNumber The version number to retrieve. (required) - * @param parameters Optional parameters for the request. - * @return SyntheticsTestVersionResponse - * @throws ApiException if fails to make API call - */ - public SyntheticsTestVersionResponse getSyntheticsTestVersion( - String publicId, Long versionNumber, GetSyntheticsTestVersionOptionalParameters parameters) - throws ApiException { - return getSyntheticsTestVersionWithHttpInfo(publicId, versionNumber, parameters).getData(); - } - - /** - * Get a specific version of a test. - * - *

See {@link #getSyntheticsTestVersionWithHttpInfoAsync}. - * - * @param publicId The public ID of the Synthetic test. (required) - * @param versionNumber The version number to retrieve. (required) - * @param parameters Optional parameters for the request. - * @return CompletableFuture<SyntheticsTestVersionResponse> - */ - public CompletableFuture getSyntheticsTestVersionAsync( - String publicId, Long versionNumber, GetSyntheticsTestVersionOptionalParameters parameters) { - return getSyntheticsTestVersionWithHttpInfoAsync(publicId, versionNumber, parameters) - .thenApply( - response -> { - return response.getData(); - }); - } - - /** - * Get a specific version of a Synthetic test by its version number. - * - * @param publicId The public ID of the Synthetic test. (required) - * @param versionNumber The version number to retrieve. (required) - * @param parameters Optional parameters for the request. - * @return ApiResponse<SyntheticsTestVersionResponse> - * @throws ApiException if fails to make API call - * @http.response.details - * - * - * - * - * - * - *
Response details
Status Code Description Response Headers
200 OK -
404 API error response. -
429 Too many requests -
- */ - public ApiResponse getSyntheticsTestVersionWithHttpInfo( - String publicId, Long versionNumber, GetSyntheticsTestVersionOptionalParameters parameters) - throws ApiException { - Object localVarPostBody = null; - - // verify the required parameter 'publicId' is set - if (publicId == null) { - throw new ApiException( - 400, "Missing the required parameter 'publicId' when calling getSyntheticsTestVersion"); - } - - // verify the required parameter 'versionNumber' is set - if (versionNumber == null) { - throw new ApiException( - 400, - "Missing the required parameter 'versionNumber' when calling getSyntheticsTestVersion"); - } - Boolean includeChangeMetadata = parameters.includeChangeMetadata; - Boolean onlyCheckExistence = parameters.onlyCheckExistence; - // create path and map variables - String localVarPath = - "/api/v2/synthetics/tests/{public_id}/version_history/{version_number}" - .replaceAll("\\{" + "public_id" + "\\}", apiClient.escapeString(publicId.toString())) - .replaceAll( - "\\{" + "version_number" + "\\}", apiClient.escapeString(versionNumber.toString())); - - List localVarQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - - localVarQueryParams.addAll( - apiClient.parameterToPairs("", "include_change_metadata", includeChangeMetadata)); - localVarQueryParams.addAll( - apiClient.parameterToPairs("", "only_check_existence", onlyCheckExistence)); - - Invocation.Builder builder = - apiClient.createBuilder( - "v2.SyntheticsApi.getSyntheticsTestVersion", - localVarPath, - localVarQueryParams, - localVarHeaderParams, - new HashMap(), - new String[] {"application/json"}, - new String[] {"apiKeyAuth", "appKeyAuth", "AuthZ"}); - return apiClient.invokeAPI( - "GET", - builder, - localVarHeaderParams, - new String[] {}, - localVarPostBody, - new HashMap(), - false, - new GenericType() {}); - } - - /** - * Get a specific version of a test. - * - *

See {@link #getSyntheticsTestVersionWithHttpInfo}. - * - * @param publicId The public ID of the Synthetic test. (required) - * @param versionNumber The version number to retrieve. (required) - * @param parameters Optional parameters for the request. - * @return CompletableFuture<ApiResponse<SyntheticsTestVersionResponse>> - */ - public CompletableFuture> - getSyntheticsTestVersionWithHttpInfoAsync( - String publicId, - Long versionNumber, - GetSyntheticsTestVersionOptionalParameters parameters) { - Object localVarPostBody = null; - - // verify the required parameter 'publicId' is set - if (publicId == null) { - CompletableFuture> result = - new CompletableFuture<>(); - result.completeExceptionally( - new ApiException( - 400, - "Missing the required parameter 'publicId' when calling getSyntheticsTestVersion")); - return result; - } - - // verify the required parameter 'versionNumber' is set - if (versionNumber == null) { - CompletableFuture> result = - new CompletableFuture<>(); - result.completeExceptionally( - new ApiException( - 400, - "Missing the required parameter 'versionNumber' when calling" - + " getSyntheticsTestVersion")); - return result; - } - Boolean includeChangeMetadata = parameters.includeChangeMetadata; - Boolean onlyCheckExistence = parameters.onlyCheckExistence; - // create path and map variables - String localVarPath = - "/api/v2/synthetics/tests/{public_id}/version_history/{version_number}" + "/api/v2/synthetics/tests/{public_id}/version_history/{version_number}" .replaceAll("\\{" + "public_id" + "\\}", apiClient.escapeString(publicId.toString())) .replaceAll( "\\{" + "version_number" + "\\}", apiClient.escapeString(versionNumber.toString())); @@ -2887,675 +2370,122 @@ public SyntheticsTestFileMultipartPresignedUrlsResponse getTestFileMultipartPres Invocation.Builder builder = apiClient.createBuilder( - "v2.SyntheticsApi.getTestFileMultipartPresignedUrls", - localVarPath, - new ArrayList(), - localVarHeaderParams, - new HashMap(), - new String[] {"application/json"}, - new String[] {"apiKeyAuth", "appKeyAuth", "AuthZ"}); - return apiClient.invokeAPI( - "POST", - builder, - localVarHeaderParams, - new String[] {"application/json"}, - localVarPostBody, - new HashMap(), - false, - new GenericType() {}); - } - - /** - * Get presigned URLs for uploading a test file. - * - *

See {@link #getTestFileMultipartPresignedUrlsWithHttpInfo}. - * - * @param publicId The public ID of the Synthetic test. (required) - * @param body (required) - * @return - * CompletableFuture<ApiResponse<SyntheticsTestFileMultipartPresignedUrlsResponse>> - */ - public CompletableFuture> - getTestFileMultipartPresignedUrlsWithHttpInfoAsync( - String publicId, SyntheticsTestFileMultipartPresignedUrlsRequest body) { - Object localVarPostBody = body; - - // verify the required parameter 'publicId' is set - if (publicId == null) { - CompletableFuture> result = - new CompletableFuture<>(); - result.completeExceptionally( - new ApiException( - 400, - "Missing the required parameter 'publicId' when calling" - + " getTestFileMultipartPresignedUrls")); - return result; - } - - // verify the required parameter 'body' is set - if (body == null) { - CompletableFuture> result = - new CompletableFuture<>(); - result.completeExceptionally( - new ApiException( - 400, - "Missing the required parameter 'body' when calling" - + " getTestFileMultipartPresignedUrls")); - return result; - } - // create path and map variables - String localVarPath = - "/api/v2/synthetics/tests/{public_id}/files/multipart-presigned-urls" - .replaceAll("\\{" + "public_id" + "\\}", apiClient.escapeString(publicId.toString())); - - Map localVarHeaderParams = new HashMap(); - - Invocation.Builder builder; - try { - builder = - apiClient.createBuilder( - "v2.SyntheticsApi.getTestFileMultipartPresignedUrls", - localVarPath, - new ArrayList(), - localVarHeaderParams, - new HashMap(), - new String[] {"application/json"}, - new String[] {"apiKeyAuth", "appKeyAuth", "AuthZ"}); - } catch (ApiException ex) { - CompletableFuture> result = - new CompletableFuture<>(); - result.completeExceptionally(ex); - return result; - } - return apiClient.invokeAPIAsync( - "POST", - builder, - localVarHeaderParams, - new String[] {"application/json"}, - localVarPostBody, - new HashMap(), - false, - new GenericType() {}); - } - - /** - * Get parent suites for a test. - * - *

See {@link #getTestParentSuitesWithHttpInfo}. - * - * @param publicId The public ID of the Synthetic test. (required) - * @return SyntheticsTestParentSuitesResponse - * @throws ApiException if fails to make API call - */ - public SyntheticsTestParentSuitesResponse getTestParentSuites(String publicId) - throws ApiException { - return getTestParentSuitesWithHttpInfo(publicId).getData(); - } - - /** - * Get parent suites for a test. - * - *

See {@link #getTestParentSuitesWithHttpInfoAsync}. - * - * @param publicId The public ID of the Synthetic test. (required) - * @return CompletableFuture<SyntheticsTestParentSuitesResponse> - */ - public CompletableFuture getTestParentSuitesAsync( - String publicId) { - return getTestParentSuitesWithHttpInfoAsync(publicId) - .thenApply( - response -> { - return response.getData(); - }); - } - - /** - * Get the list of parent suites and their status for a given Synthetic test. - * - * @param publicId The public ID of the Synthetic test. (required) - * @return ApiResponse<SyntheticsTestParentSuitesResponse> - * @throws ApiException if fails to make API call - * @http.response.details - * - * - * - * - * - * - *
Response details
Status Code Description Response Headers
200 OK -
404 API error response. -
429 Too many requests -
- */ - public ApiResponse getTestParentSuitesWithHttpInfo( - String publicId) throws ApiException { - Object localVarPostBody = null; - - // verify the required parameter 'publicId' is set - if (publicId == null) { - throw new ApiException( - 400, "Missing the required parameter 'publicId' when calling getTestParentSuites"); - } - // create path and map variables - String localVarPath = - "/api/v2/synthetics/tests/{public_id}/parent-suites" - .replaceAll("\\{" + "public_id" + "\\}", apiClient.escapeString(publicId.toString())); - - Map localVarHeaderParams = new HashMap(); - - Invocation.Builder builder = - apiClient.createBuilder( - "v2.SyntheticsApi.getTestParentSuites", - localVarPath, - new ArrayList(), - localVarHeaderParams, - new HashMap(), - new String[] {"application/json"}, - new String[] {"apiKeyAuth", "appKeyAuth", "AuthZ"}); - return apiClient.invokeAPI( - "GET", - builder, - localVarHeaderParams, - new String[] {}, - localVarPostBody, - new HashMap(), - false, - new GenericType() {}); - } - - /** - * Get parent suites for a test. - * - *

See {@link #getTestParentSuitesWithHttpInfo}. - * - * @param publicId The public ID of the Synthetic test. (required) - * @return CompletableFuture<ApiResponse<SyntheticsTestParentSuitesResponse>> - */ - public CompletableFuture> - getTestParentSuitesWithHttpInfoAsync(String publicId) { - Object localVarPostBody = null; - - // verify the required parameter 'publicId' is set - if (publicId == null) { - CompletableFuture> result = - new CompletableFuture<>(); - result.completeExceptionally( - new ApiException( - 400, "Missing the required parameter 'publicId' when calling getTestParentSuites")); - return result; - } - // create path and map variables - String localVarPath = - "/api/v2/synthetics/tests/{public_id}/parent-suites" - .replaceAll("\\{" + "public_id" + "\\}", apiClient.escapeString(publicId.toString())); - - Map localVarHeaderParams = new HashMap(); - - Invocation.Builder builder; - try { - builder = - apiClient.createBuilder( - "v2.SyntheticsApi.getTestParentSuites", - localVarPath, - new ArrayList(), - localVarHeaderParams, - new HashMap(), - new String[] {"application/json"}, - new String[] {"apiKeyAuth", "appKeyAuth", "AuthZ"}); - } catch (ApiException ex) { - CompletableFuture> result = - new CompletableFuture<>(); - result.completeExceptionally(ex); - return result; - } - return apiClient.invokeAPIAsync( - "GET", - builder, - localVarHeaderParams, - new String[] {}, - localVarPostBody, - new HashMap(), - false, - new GenericType() {}); - } - - /** Manage optional parameters to listSyntheticsBrowserTestLatestResults. */ - public static class ListSyntheticsBrowserTestLatestResultsOptionalParameters { - private Long fromTs; - private Long toTs; - private SyntheticsTestResultStatus status; - private SyntheticsTestResultRunType runType; - private List probeDc; - private List deviceId; - - /** - * Set fromTs. - * - * @param fromTs Timestamp in milliseconds from which to start querying results. (optional) - * @return ListSyntheticsBrowserTestLatestResultsOptionalParameters - */ - public ListSyntheticsBrowserTestLatestResultsOptionalParameters fromTs(Long fromTs) { - this.fromTs = fromTs; - return this; - } - - /** - * Set toTs. - * - * @param toTs Timestamp in milliseconds up to which to query results. (optional) - * @return ListSyntheticsBrowserTestLatestResultsOptionalParameters - */ - public ListSyntheticsBrowserTestLatestResultsOptionalParameters toTs(Long toTs) { - this.toTs = toTs; - return this; - } - - /** - * Set status. - * - * @param status Filter results by status. (optional) - * @return ListSyntheticsBrowserTestLatestResultsOptionalParameters - */ - public ListSyntheticsBrowserTestLatestResultsOptionalParameters status( - SyntheticsTestResultStatus status) { - this.status = status; - return this; - } - - /** - * Set runType. - * - * @param runType Filter results by run type. (optional) - * @return ListSyntheticsBrowserTestLatestResultsOptionalParameters - */ - public ListSyntheticsBrowserTestLatestResultsOptionalParameters runType( - SyntheticsTestResultRunType runType) { - this.runType = runType; - return this; - } - - /** - * Set probeDc. - * - * @param probeDc Locations for which to query results. (optional) - * @return ListSyntheticsBrowserTestLatestResultsOptionalParameters - */ - public ListSyntheticsBrowserTestLatestResultsOptionalParameters probeDc(List probeDc) { - this.probeDc = probeDc; - return this; - } - - /** - * Set deviceId. - * - * @param deviceId Device IDs for which to query results. (optional) - * @return ListSyntheticsBrowserTestLatestResultsOptionalParameters - */ - public ListSyntheticsBrowserTestLatestResultsOptionalParameters deviceId( - List deviceId) { - this.deviceId = deviceId; - return this; - } - } - - /** - * Get a browser test's latest results. - * - *

See {@link #listSyntheticsBrowserTestLatestResultsWithHttpInfo}. - * - * @param publicId The public ID of the Synthetic browser test for which to search results. - * (required) - * @return SyntheticsTestLatestResultsResponse - * @throws ApiException if fails to make API call - */ - public SyntheticsTestLatestResultsResponse listSyntheticsBrowserTestLatestResults(String publicId) - throws ApiException { - return listSyntheticsBrowserTestLatestResultsWithHttpInfo( - publicId, new ListSyntheticsBrowserTestLatestResultsOptionalParameters()) - .getData(); - } - - /** - * Get a browser test's latest results. - * - *

See {@link #listSyntheticsBrowserTestLatestResultsWithHttpInfoAsync}. - * - * @param publicId The public ID of the Synthetic browser test for which to search results. - * (required) - * @return CompletableFuture<SyntheticsTestLatestResultsResponse> - */ - public CompletableFuture - listSyntheticsBrowserTestLatestResultsAsync(String publicId) { - return listSyntheticsBrowserTestLatestResultsWithHttpInfoAsync( - publicId, new ListSyntheticsBrowserTestLatestResultsOptionalParameters()) - .thenApply( - response -> { - return response.getData(); - }); - } - - /** - * Get a browser test's latest results. - * - *

See {@link #listSyntheticsBrowserTestLatestResultsWithHttpInfo}. - * - * @param publicId The public ID of the Synthetic browser test for which to search results. - * (required) - * @param parameters Optional parameters for the request. - * @return SyntheticsTestLatestResultsResponse - * @throws ApiException if fails to make API call - */ - public SyntheticsTestLatestResultsResponse listSyntheticsBrowserTestLatestResults( - String publicId, ListSyntheticsBrowserTestLatestResultsOptionalParameters parameters) - throws ApiException { - return listSyntheticsBrowserTestLatestResultsWithHttpInfo(publicId, parameters).getData(); - } - - /** - * Get a browser test's latest results. - * - *

See {@link #listSyntheticsBrowserTestLatestResultsWithHttpInfoAsync}. - * - * @param publicId The public ID of the Synthetic browser test for which to search results. - * (required) - * @param parameters Optional parameters for the request. - * @return CompletableFuture<SyntheticsTestLatestResultsResponse> - */ - public CompletableFuture - listSyntheticsBrowserTestLatestResultsAsync( - String publicId, ListSyntheticsBrowserTestLatestResultsOptionalParameters parameters) { - return listSyntheticsBrowserTestLatestResultsWithHttpInfoAsync(publicId, parameters) - .thenApply( - response -> { - return response.getData(); - }); - } - - /** - * Get the latest result summaries for a given Synthetic browser test. - * - * @param publicId The public ID of the Synthetic browser test for which to search results. - * (required) - * @param parameters Optional parameters for the request. - * @return ApiResponse<SyntheticsTestLatestResultsResponse> - * @throws ApiException if fails to make API call - * @http.response.details - * - * - * - * - * - * - * - *
Response details
Status Code Description Response Headers
200 OK -
400 API error response. -
404 API error response. -
429 Too many requests -
- */ - public ApiResponse - listSyntheticsBrowserTestLatestResultsWithHttpInfo( - String publicId, ListSyntheticsBrowserTestLatestResultsOptionalParameters parameters) - throws ApiException { - Object localVarPostBody = null; - - // verify the required parameter 'publicId' is set - if (publicId == null) { - throw new ApiException( - 400, - "Missing the required parameter 'publicId' when calling" - + " listSyntheticsBrowserTestLatestResults"); - } - Long fromTs = parameters.fromTs; - Long toTs = parameters.toTs; - SyntheticsTestResultStatus status = parameters.status; - SyntheticsTestResultRunType runType = parameters.runType; - List probeDc = parameters.probeDc; - List deviceId = parameters.deviceId; - // create path and map variables - String localVarPath = - "/api/v2/synthetics/tests/browser/{public_id}/results" - .replaceAll("\\{" + "public_id" + "\\}", apiClient.escapeString(publicId.toString())); - - List localVarQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - - localVarQueryParams.addAll(apiClient.parameterToPairs("", "from_ts", fromTs)); - localVarQueryParams.addAll(apiClient.parameterToPairs("", "to_ts", toTs)); - localVarQueryParams.addAll(apiClient.parameterToPairs("", "status", status)); - localVarQueryParams.addAll(apiClient.parameterToPairs("", "runType", runType)); - localVarQueryParams.addAll(apiClient.parameterToPairs("multi", "probe_dc", probeDc)); - localVarQueryParams.addAll(apiClient.parameterToPairs("multi", "device_id", deviceId)); - - Invocation.Builder builder = - apiClient.createBuilder( - "v2.SyntheticsApi.listSyntheticsBrowserTestLatestResults", + "v2.SyntheticsApi.getTestFileMultipartPresignedUrls", localVarPath, - localVarQueryParams, + new ArrayList(), localVarHeaderParams, new HashMap(), new String[] {"application/json"}, new String[] {"apiKeyAuth", "appKeyAuth", "AuthZ"}); return apiClient.invokeAPI( - "GET", + "POST", builder, localVarHeaderParams, - new String[] {}, + new String[] {"application/json"}, localVarPostBody, new HashMap(), false, - new GenericType() {}); + new GenericType() {}); } /** - * Get a browser test's latest results. + * Get presigned URLs for uploading a test file. * - *

See {@link #listSyntheticsBrowserTestLatestResultsWithHttpInfo}. + *

See {@link #getTestFileMultipartPresignedUrlsWithHttpInfo}. * - * @param publicId The public ID of the Synthetic browser test for which to search results. - * (required) - * @param parameters Optional parameters for the request. - * @return CompletableFuture<ApiResponse<SyntheticsTestLatestResultsResponse>> + * @param publicId The public ID of the Synthetic test. (required) + * @param body (required) + * @return + * CompletableFuture<ApiResponse<SyntheticsTestFileMultipartPresignedUrlsResponse>> */ - public CompletableFuture> - listSyntheticsBrowserTestLatestResultsWithHttpInfoAsync( - String publicId, ListSyntheticsBrowserTestLatestResultsOptionalParameters parameters) { - Object localVarPostBody = null; + public CompletableFuture> + getTestFileMultipartPresignedUrlsWithHttpInfoAsync( + String publicId, SyntheticsTestFileMultipartPresignedUrlsRequest body) { + Object localVarPostBody = body; // verify the required parameter 'publicId' is set if (publicId == null) { - CompletableFuture> result = + CompletableFuture> result = new CompletableFuture<>(); result.completeExceptionally( new ApiException( 400, "Missing the required parameter 'publicId' when calling" - + " listSyntheticsBrowserTestLatestResults")); + + " getTestFileMultipartPresignedUrls")); + return result; + } + + // verify the required parameter 'body' is set + if (body == null) { + CompletableFuture> result = + new CompletableFuture<>(); + result.completeExceptionally( + new ApiException( + 400, + "Missing the required parameter 'body' when calling" + + " getTestFileMultipartPresignedUrls")); return result; } - Long fromTs = parameters.fromTs; - Long toTs = parameters.toTs; - SyntheticsTestResultStatus status = parameters.status; - SyntheticsTestResultRunType runType = parameters.runType; - List probeDc = parameters.probeDc; - List deviceId = parameters.deviceId; // create path and map variables String localVarPath = - "/api/v2/synthetics/tests/browser/{public_id}/results" + "/api/v2/synthetics/tests/{public_id}/files/multipart-presigned-urls" .replaceAll("\\{" + "public_id" + "\\}", apiClient.escapeString(publicId.toString())); - List localVarQueryParams = new ArrayList(); Map localVarHeaderParams = new HashMap(); - localVarQueryParams.addAll(apiClient.parameterToPairs("", "from_ts", fromTs)); - localVarQueryParams.addAll(apiClient.parameterToPairs("", "to_ts", toTs)); - localVarQueryParams.addAll(apiClient.parameterToPairs("", "status", status)); - localVarQueryParams.addAll(apiClient.parameterToPairs("", "runType", runType)); - localVarQueryParams.addAll(apiClient.parameterToPairs("multi", "probe_dc", probeDc)); - localVarQueryParams.addAll(apiClient.parameterToPairs("multi", "device_id", deviceId)); - Invocation.Builder builder; try { builder = apiClient.createBuilder( - "v2.SyntheticsApi.listSyntheticsBrowserTestLatestResults", + "v2.SyntheticsApi.getTestFileMultipartPresignedUrls", localVarPath, - localVarQueryParams, + new ArrayList(), localVarHeaderParams, new HashMap(), new String[] {"application/json"}, new String[] {"apiKeyAuth", "appKeyAuth", "AuthZ"}); } catch (ApiException ex) { - CompletableFuture> result = + CompletableFuture> result = new CompletableFuture<>(); result.completeExceptionally(ex); return result; } return apiClient.invokeAPIAsync( - "GET", + "POST", builder, localVarHeaderParams, - new String[] {}, + new String[] {"application/json"}, localVarPostBody, new HashMap(), false, - new GenericType() {}); - } - - /** Manage optional parameters to listSyntheticsTestLatestResults. */ - public static class ListSyntheticsTestLatestResultsOptionalParameters { - private Long fromTs; - private Long toTs; - private SyntheticsTestResultStatus status; - private SyntheticsTestResultRunType runType; - private List probeDc; - private List deviceId; - - /** - * Set fromTs. - * - * @param fromTs Timestamp in milliseconds from which to start querying results. (optional) - * @return ListSyntheticsTestLatestResultsOptionalParameters - */ - public ListSyntheticsTestLatestResultsOptionalParameters fromTs(Long fromTs) { - this.fromTs = fromTs; - return this; - } - - /** - * Set toTs. - * - * @param toTs Timestamp in milliseconds up to which to query results. (optional) - * @return ListSyntheticsTestLatestResultsOptionalParameters - */ - public ListSyntheticsTestLatestResultsOptionalParameters toTs(Long toTs) { - this.toTs = toTs; - return this; - } - - /** - * Set status. - * - * @param status Filter results by status. (optional) - * @return ListSyntheticsTestLatestResultsOptionalParameters - */ - public ListSyntheticsTestLatestResultsOptionalParameters status( - SyntheticsTestResultStatus status) { - this.status = status; - return this; - } - - /** - * Set runType. - * - * @param runType Filter results by run type. (optional) - * @return ListSyntheticsTestLatestResultsOptionalParameters - */ - public ListSyntheticsTestLatestResultsOptionalParameters runType( - SyntheticsTestResultRunType runType) { - this.runType = runType; - return this; - } - - /** - * Set probeDc. - * - * @param probeDc Locations for which to query results. (optional) - * @return ListSyntheticsTestLatestResultsOptionalParameters - */ - public ListSyntheticsTestLatestResultsOptionalParameters probeDc(List probeDc) { - this.probeDc = probeDc; - return this; - } - - /** - * Set deviceId. - * - * @param deviceId Device IDs for which to query results. (optional) - * @return ListSyntheticsTestLatestResultsOptionalParameters - */ - public ListSyntheticsTestLatestResultsOptionalParameters deviceId(List deviceId) { - this.deviceId = deviceId; - return this; - } - } - - /** - * Get a test's latest results. - * - *

See {@link #listSyntheticsTestLatestResultsWithHttpInfo}. - * - * @param publicId The public ID of the Synthetic test for which to search results. (required) - * @return SyntheticsTestLatestResultsResponse - * @throws ApiException if fails to make API call - */ - public SyntheticsTestLatestResultsResponse listSyntheticsTestLatestResults(String publicId) - throws ApiException { - return listSyntheticsTestLatestResultsWithHttpInfo( - publicId, new ListSyntheticsTestLatestResultsOptionalParameters()) - .getData(); - } - - /** - * Get a test's latest results. - * - *

See {@link #listSyntheticsTestLatestResultsWithHttpInfoAsync}. - * - * @param publicId The public ID of the Synthetic test for which to search results. (required) - * @return CompletableFuture<SyntheticsTestLatestResultsResponse> - */ - public CompletableFuture - listSyntheticsTestLatestResultsAsync(String publicId) { - return listSyntheticsTestLatestResultsWithHttpInfoAsync( - publicId, new ListSyntheticsTestLatestResultsOptionalParameters()) - .thenApply( - response -> { - return response.getData(); - }); + new GenericType() {}); } /** - * Get a test's latest results. + * Get parent suites for a test. * - *

See {@link #listSyntheticsTestLatestResultsWithHttpInfo}. + *

See {@link #getTestParentSuitesWithHttpInfo}. * - * @param publicId The public ID of the Synthetic test for which to search results. (required) - * @param parameters Optional parameters for the request. - * @return SyntheticsTestLatestResultsResponse + * @param publicId The public ID of the Synthetic test. (required) + * @return SyntheticsTestParentSuitesResponse * @throws ApiException if fails to make API call */ - public SyntheticsTestLatestResultsResponse listSyntheticsTestLatestResults( - String publicId, ListSyntheticsTestLatestResultsOptionalParameters parameters) + public SyntheticsTestParentSuitesResponse getTestParentSuites(String publicId) throws ApiException { - return listSyntheticsTestLatestResultsWithHttpInfo(publicId, parameters).getData(); + return getTestParentSuitesWithHttpInfo(publicId).getData(); } /** - * Get a test's latest results. + * Get parent suites for a test. * - *

See {@link #listSyntheticsTestLatestResultsWithHttpInfoAsync}. + *

See {@link #getTestParentSuitesWithHttpInfoAsync}. * - * @param publicId The public ID of the Synthetic test for which to search results. (required) - * @param parameters Optional parameters for the request. - * @return CompletableFuture<SyntheticsTestLatestResultsResponse> + * @param publicId The public ID of the Synthetic test. (required) + * @return CompletableFuture<SyntheticsTestParentSuitesResponse> */ - public CompletableFuture - listSyntheticsTestLatestResultsAsync( - String publicId, ListSyntheticsTestLatestResultsOptionalParameters parameters) { - return listSyntheticsTestLatestResultsWithHttpInfoAsync(publicId, parameters) + public CompletableFuture getTestParentSuitesAsync( + String publicId) { + return getTestParentSuitesWithHttpInfoAsync(publicId) .thenApply( response -> { return response.getData(); @@ -3563,60 +2493,41 @@ public SyntheticsTestLatestResultsResponse listSyntheticsTestLatestResults( } /** - * Get the latest result summaries for a given Synthetic test. + * Get the list of parent suites and their status for a given Synthetic test. * - * @param publicId The public ID of the Synthetic test for which to search results. (required) - * @param parameters Optional parameters for the request. - * @return ApiResponse<SyntheticsTestLatestResultsResponse> + * @param publicId The public ID of the Synthetic test. (required) + * @return ApiResponse<SyntheticsTestParentSuitesResponse> * @throws ApiException if fails to make API call * @http.response.details * * * * - * * * *
Response details
Status Code Description Response Headers
200 OK -
400 API error response. -
404 API error response. -
429 Too many requests -
*/ - public ApiResponse - listSyntheticsTestLatestResultsWithHttpInfo( - String publicId, ListSyntheticsTestLatestResultsOptionalParameters parameters) - throws ApiException { + public ApiResponse getTestParentSuitesWithHttpInfo( + String publicId) throws ApiException { Object localVarPostBody = null; // verify the required parameter 'publicId' is set if (publicId == null) { throw new ApiException( - 400, - "Missing the required parameter 'publicId' when calling listSyntheticsTestLatestResults"); + 400, "Missing the required parameter 'publicId' when calling getTestParentSuites"); } - Long fromTs = parameters.fromTs; - Long toTs = parameters.toTs; - SyntheticsTestResultStatus status = parameters.status; - SyntheticsTestResultRunType runType = parameters.runType; - List probeDc = parameters.probeDc; - List deviceId = parameters.deviceId; // create path and map variables String localVarPath = - "/api/v2/synthetics/tests/{public_id}/results" + "/api/v2/synthetics/tests/{public_id}/parent-suites" .replaceAll("\\{" + "public_id" + "\\}", apiClient.escapeString(publicId.toString())); - List localVarQueryParams = new ArrayList(); Map localVarHeaderParams = new HashMap(); - localVarQueryParams.addAll(apiClient.parameterToPairs("", "from_ts", fromTs)); - localVarQueryParams.addAll(apiClient.parameterToPairs("", "to_ts", toTs)); - localVarQueryParams.addAll(apiClient.parameterToPairs("", "status", status)); - localVarQueryParams.addAll(apiClient.parameterToPairs("", "runType", runType)); - localVarQueryParams.addAll(apiClient.parameterToPairs("multi", "probe_dc", probeDc)); - localVarQueryParams.addAll(apiClient.parameterToPairs("multi", "device_id", deviceId)); - Invocation.Builder builder = apiClient.createBuilder( - "v2.SyntheticsApi.listSyntheticsTestLatestResults", + "v2.SyntheticsApi.getTestParentSuites", localVarPath, - localVarQueryParams, + new ArrayList(), localVarHeaderParams, new HashMap(), new String[] {"application/json"}, @@ -3629,68 +2540,50 @@ public SyntheticsTestLatestResultsResponse listSyntheticsTestLatestResults( localVarPostBody, new HashMap(), false, - new GenericType() {}); + new GenericType() {}); } /** - * Get a test's latest results. + * Get parent suites for a test. * - *

See {@link #listSyntheticsTestLatestResultsWithHttpInfo}. + *

See {@link #getTestParentSuitesWithHttpInfo}. * - * @param publicId The public ID of the Synthetic test for which to search results. (required) - * @param parameters Optional parameters for the request. - * @return CompletableFuture<ApiResponse<SyntheticsTestLatestResultsResponse>> + * @param publicId The public ID of the Synthetic test. (required) + * @return CompletableFuture<ApiResponse<SyntheticsTestParentSuitesResponse>> */ - public CompletableFuture> - listSyntheticsTestLatestResultsWithHttpInfoAsync( - String publicId, ListSyntheticsTestLatestResultsOptionalParameters parameters) { + public CompletableFuture> + getTestParentSuitesWithHttpInfoAsync(String publicId) { Object localVarPostBody = null; // verify the required parameter 'publicId' is set if (publicId == null) { - CompletableFuture> result = + CompletableFuture> result = new CompletableFuture<>(); result.completeExceptionally( new ApiException( - 400, - "Missing the required parameter 'publicId' when calling" - + " listSyntheticsTestLatestResults")); + 400, "Missing the required parameter 'publicId' when calling getTestParentSuites")); return result; } - Long fromTs = parameters.fromTs; - Long toTs = parameters.toTs; - SyntheticsTestResultStatus status = parameters.status; - SyntheticsTestResultRunType runType = parameters.runType; - List probeDc = parameters.probeDc; - List deviceId = parameters.deviceId; // create path and map variables String localVarPath = - "/api/v2/synthetics/tests/{public_id}/results" + "/api/v2/synthetics/tests/{public_id}/parent-suites" .replaceAll("\\{" + "public_id" + "\\}", apiClient.escapeString(publicId.toString())); - List localVarQueryParams = new ArrayList(); Map localVarHeaderParams = new HashMap(); - localVarQueryParams.addAll(apiClient.parameterToPairs("", "from_ts", fromTs)); - localVarQueryParams.addAll(apiClient.parameterToPairs("", "to_ts", toTs)); - localVarQueryParams.addAll(apiClient.parameterToPairs("", "status", status)); - localVarQueryParams.addAll(apiClient.parameterToPairs("", "runType", runType)); - localVarQueryParams.addAll(apiClient.parameterToPairs("multi", "probe_dc", probeDc)); - localVarQueryParams.addAll(apiClient.parameterToPairs("multi", "device_id", deviceId)); - Invocation.Builder builder; try { builder = apiClient.createBuilder( - "v2.SyntheticsApi.listSyntheticsTestLatestResults", + "v2.SyntheticsApi.getTestParentSuites", localVarPath, - localVarQueryParams, + new ArrayList(), localVarHeaderParams, new HashMap(), new String[] {"application/json"}, new String[] {"apiKeyAuth", "appKeyAuth", "AuthZ"}); } catch (ApiException ex) { - CompletableFuture> result = + CompletableFuture> result = new CompletableFuture<>(); result.completeExceptionally(ex); return result; @@ -3703,7 +2596,7 @@ public SyntheticsTestLatestResultsResponse listSyntheticsTestLatestResults( localVarPostBody, new HashMap(), false, - new GenericType() {}); + new GenericType() {}); } /** Manage optional parameters to listSyntheticsTestVersions. */ @@ -4256,149 +3149,6 @@ public CompletableFuture> patchTestSuiteWit new GenericType() {}); } - /** - * Poll for test results. - * - *

See {@link #pollSyntheticsTestResultsWithHttpInfo}. - * - * @param resultIds A JSON-encoded array of result IDs to poll for. (required) - * @return SyntheticsPollTestResultsResponse - * @throws ApiException if fails to make API call - */ - public SyntheticsPollTestResultsResponse pollSyntheticsTestResults(String resultIds) - throws ApiException { - return pollSyntheticsTestResultsWithHttpInfo(resultIds).getData(); - } - - /** - * Poll for test results. - * - *

See {@link #pollSyntheticsTestResultsWithHttpInfoAsync}. - * - * @param resultIds A JSON-encoded array of result IDs to poll for. (required) - * @return CompletableFuture<SyntheticsPollTestResultsResponse> - */ - public CompletableFuture pollSyntheticsTestResultsAsync( - String resultIds) { - return pollSyntheticsTestResultsWithHttpInfoAsync(resultIds) - .thenApply( - response -> { - return response.getData(); - }); - } - - /** - * Poll for test results given a list of result IDs. This is typically used after triggering tests - * with CI/CD to retrieve results once they are available. - * - * @param resultIds A JSON-encoded array of result IDs to poll for. (required) - * @return ApiResponse<SyntheticsPollTestResultsResponse> - * @throws ApiException if fails to make API call - * @http.response.details - * - * - * - * - * - * - * - *
Response details
Status Code Description Response Headers
200 OK -
400 API error response. -
404 API error response. -
429 Too many requests -
- */ - public ApiResponse pollSyntheticsTestResultsWithHttpInfo( - String resultIds) throws ApiException { - Object localVarPostBody = null; - - // verify the required parameter 'resultIds' is set - if (resultIds == null) { - throw new ApiException( - 400, "Missing the required parameter 'resultIds' when calling pollSyntheticsTestResults"); - } - // create path and map variables - String localVarPath = "/api/v2/synthetics/tests/poll_results"; - - List localVarQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - - localVarQueryParams.addAll(apiClient.parameterToPairs("", "result_ids", resultIds)); - - Invocation.Builder builder = - apiClient.createBuilder( - "v2.SyntheticsApi.pollSyntheticsTestResults", - localVarPath, - localVarQueryParams, - localVarHeaderParams, - new HashMap(), - new String[] {"application/json"}, - new String[] {"apiKeyAuth", "appKeyAuth", "AuthZ"}); - return apiClient.invokeAPI( - "GET", - builder, - localVarHeaderParams, - new String[] {}, - localVarPostBody, - new HashMap(), - false, - new GenericType() {}); - } - - /** - * Poll for test results. - * - *

See {@link #pollSyntheticsTestResultsWithHttpInfo}. - * - * @param resultIds A JSON-encoded array of result IDs to poll for. (required) - * @return CompletableFuture<ApiResponse<SyntheticsPollTestResultsResponse>> - */ - public CompletableFuture> - pollSyntheticsTestResultsWithHttpInfoAsync(String resultIds) { - Object localVarPostBody = null; - - // verify the required parameter 'resultIds' is set - if (resultIds == null) { - CompletableFuture> result = - new CompletableFuture<>(); - result.completeExceptionally( - new ApiException( - 400, - "Missing the required parameter 'resultIds' when calling pollSyntheticsTestResults")); - return result; - } - // create path and map variables - String localVarPath = "/api/v2/synthetics/tests/poll_results"; - - List localVarQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - - localVarQueryParams.addAll(apiClient.parameterToPairs("", "result_ids", resultIds)); - - Invocation.Builder builder; - try { - builder = - apiClient.createBuilder( - "v2.SyntheticsApi.pollSyntheticsTestResults", - localVarPath, - localVarQueryParams, - localVarHeaderParams, - new HashMap(), - new String[] {"application/json"}, - new String[] {"apiKeyAuth", "appKeyAuth", "AuthZ"}); - } catch (ApiException ex) { - CompletableFuture> result = - new CompletableFuture<>(); - result.completeExceptionally(ex); - return result; - } - return apiClient.invokeAPIAsync( - "GET", - builder, - localVarHeaderParams, - new String[] {}, - localVarPostBody, - new HashMap(), - false, - new GenericType() {}); - } - /** Manage optional parameters to searchSuites. */ public static class SearchSuitesOptionalParameters { private String query; diff --git a/src/main/java/com/datadog/api/client/v2/model/SyntheticsFastTestResultAttributes.java b/src/main/java/com/datadog/api/client/v2/model/SyntheticsFastTestResultAttributes.java index 14466835737..86beddf8673 100644 --- a/src/main/java/com/datadog/api/client/v2/model/SyntheticsFastTestResultAttributes.java +++ b/src/main/java/com/datadog/api/client/v2/model/SyntheticsFastTestResultAttributes.java @@ -30,10 +30,10 @@ public class SyntheticsFastTestResultAttributes { @JsonIgnore public boolean unparsed = false; public static final String JSON_PROPERTY_DEVICE = "device"; - private SyntheticsTestResultDevice device; + private SyntheticsFastTestResultDevice device; public static final String JSON_PROPERTY_LOCATION = "location"; - private SyntheticsTestResultLocation location; + private SyntheticsFastTestResultLocation location; public static final String JSON_PROPERTY_RESULT = "result"; private SyntheticsFastTestResultDetail result; @@ -42,52 +42,52 @@ public class SyntheticsFastTestResultAttributes { private SyntheticsFastTestSubType testSubType; public static final String JSON_PROPERTY_TEST_TYPE = "test_type"; - private SyntheticsFastTestType testType; + private String testType; public static final String JSON_PROPERTY_TEST_VERSION = "test_version"; private Long testVersion; - public SyntheticsFastTestResultAttributes device(SyntheticsTestResultDevice device) { + public SyntheticsFastTestResultAttributes device(SyntheticsFastTestResultDevice device) { this.device = device; this.unparsed |= device.unparsed; return this; } /** - * Device information for the test result (browser and mobile tests). + * Device information for browser-based fast tests. * * @return device */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_DEVICE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public SyntheticsTestResultDevice getDevice() { + public SyntheticsFastTestResultDevice getDevice() { return device; } - public void setDevice(SyntheticsTestResultDevice device) { + public void setDevice(SyntheticsFastTestResultDevice device) { this.device = device; } - public SyntheticsFastTestResultAttributes location(SyntheticsTestResultLocation location) { + public SyntheticsFastTestResultAttributes location(SyntheticsFastTestResultLocation location) { this.location = location; this.unparsed |= location.unparsed; return this; } /** - * Location information for a Synthetic test result. + * Location from which the fast test was executed. * * @return location */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_LOCATION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public SyntheticsTestResultLocation getLocation() { + public SyntheticsFastTestResultLocation getLocation() { return location; } - public void setLocation(SyntheticsTestResultLocation location) { + public void setLocation(SyntheticsFastTestResultLocation location) { this.location = location; } @@ -139,28 +139,25 @@ public void setTestSubType(SyntheticsFastTestSubType testSubType) { this.testSubType = testSubType; } - public SyntheticsFastTestResultAttributes testType(SyntheticsFastTestType testType) { + public SyntheticsFastTestResultAttributes testType(String testType) { this.testType = testType; - this.unparsed |= !testType.isValid(); return this; } /** - * Type of the Synthetic fast test that produced this result. + * The type of the Synthetic test that produced this result (for example, api or + * browser). * * @return testType */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_TEST_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public SyntheticsFastTestType getTestType() { + public String getTestType() { return testType; } - public void setTestType(SyntheticsFastTestType testType) { - if (!testType.isValid()) { - this.unparsed = true; - } + public void setTestType(String testType) { this.testType = testType; } diff --git a/src/main/java/com/datadog/api/client/v2/model/SyntheticsFastTestResultDetail.java b/src/main/java/com/datadog/api/client/v2/model/SyntheticsFastTestResultDetail.java index 08a49321d69..11dbe63bf8e 100644 --- a/src/main/java/com/datadog/api/client/v2/model/SyntheticsFastTestResultDetail.java +++ b/src/main/java/com/datadog/api/client/v2/model/SyntheticsFastTestResultDetail.java @@ -48,19 +48,19 @@ public class SyntheticsFastTestResultDetail { @JsonIgnore public boolean unparsed = false; public static final String JSON_PROPERTY_ASSERTIONS = "assertions"; - private List assertions = null; + private List> assertions = null; public static final String JSON_PROPERTY_CALL_TYPE = "call_type"; private String callType; public static final String JSON_PROPERTY_CERT = "cert"; - private SyntheticsTestResultCertificate cert; + private Map cert = null; public static final String JSON_PROPERTY_DURATION = "duration"; private Double duration; public static final String JSON_PROPERTY_FAILURE = "failure"; - private SyntheticsTestResultFailure failure; + private SyntheticsFastTestResultFailure failure; public static final String JSON_PROPERTY_FINISHED_AT = "finished_at"; private Long finishedAt; @@ -72,16 +72,16 @@ public class SyntheticsFastTestResultDetail { private Boolean isFastRetry; public static final String JSON_PROPERTY_REQUEST = "request"; - private SyntheticsTestResultRequestInfo request; + private Map request = null; public static final String JSON_PROPERTY_RESOLVED_IP = "resolved_ip"; private String resolvedIp; public static final String JSON_PROPERTY_RESPONSE = "response"; - private SyntheticsTestResultResponseInfo response; + private Map response = null; public static final String JSON_PROPERTY_RUN_TYPE = "run_type"; - private SyntheticsTestResultRunType runType; + private String runType; public static final String JSON_PROPERTY_STARTED_AT = "started_at"; private Long startedAt; @@ -90,13 +90,13 @@ public class SyntheticsFastTestResultDetail { private String status; public static final String JSON_PROPERTY_STEPS = "steps"; - private List steps = null; + private List> steps = null; public static final String JSON_PROPERTY_TIMINGS = "timings"; private Map timings = null; public static final String JSON_PROPERTY_TRACEROUTE = "traceroute"; - private List traceroute = null; + private List> traceroute = null; public static final String JSON_PROPERTY_TRIGGERED_AT = "triggered_at"; private Long triggeredAt; @@ -104,22 +104,16 @@ public class SyntheticsFastTestResultDetail { public static final String JSON_PROPERTY_TUNNEL = "tunnel"; private Boolean tunnel; - public SyntheticsFastTestResultDetail assertions( - List assertions) { + public SyntheticsFastTestResultDetail assertions(List> assertions) { this.assertions = assertions; - for (SyntheticsTestResultAssertionResult item : assertions) { - this.unparsed |= item.unparsed; - } return this; } - public SyntheticsFastTestResultDetail addAssertionsItem( - SyntheticsTestResultAssertionResult assertionsItem) { + public SyntheticsFastTestResultDetail addAssertionsItem(Map assertionsItem) { if (this.assertions == null) { this.assertions = new ArrayList<>(); } this.assertions.add(assertionsItem); - this.unparsed |= assertionsItem.unparsed; return this; } @@ -131,11 +125,11 @@ public SyntheticsFastTestResultDetail addAssertionsItem( @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_ASSERTIONS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public List getAssertions() { + public List> getAssertions() { return assertions; } - public void setAssertions(List assertions) { + public void setAssertions(List> assertions) { this.assertions = assertions; } @@ -161,25 +155,32 @@ public void setCallType(String callType) { this.callType = callType; } - public SyntheticsFastTestResultDetail cert(SyntheticsTestResultCertificate cert) { + public SyntheticsFastTestResultDetail cert(Map cert) { this.cert = cert; - this.unparsed |= cert.unparsed; + return this; + } + + public SyntheticsFastTestResultDetail putCertItem(String key, Object certItem) { + if (this.cert == null) { + this.cert = new HashMap<>(); + } + this.cert.put(key, certItem); return this; } /** - * SSL/TLS certificate information returned from an SSL test. + * TLS certificate details, present for SSL tests. * * @return cert */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_CERT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public SyntheticsTestResultCertificate getCert() { + public Map getCert() { return cert; } - public void setCert(SyntheticsTestResultCertificate cert) { + public void setCert(Map cert) { this.cert = cert; } @@ -204,25 +205,25 @@ public void setDuration(Double duration) { this.duration = duration; } - public SyntheticsFastTestResultDetail failure(SyntheticsTestResultFailure failure) { + public SyntheticsFastTestResultDetail failure(SyntheticsFastTestResultFailure failure) { this.failure = failure; this.unparsed |= failure.unparsed; return this; } /** - * Details about the failure of a Synthetic test. + * Failure details if the fast test did not pass. * * @return failure */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_FAILURE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public SyntheticsTestResultFailure getFailure() { + public SyntheticsFastTestResultFailure getFailure() { return failure; } - public void setFailure(SyntheticsTestResultFailure failure) { + public void setFailure(SyntheticsFastTestResultFailure failure) { this.failure = failure; } @@ -289,25 +290,32 @@ public void setIsFastRetry(Boolean isFastRetry) { this.isFastRetry = isFastRetry; } - public SyntheticsFastTestResultDetail request(SyntheticsTestResultRequestInfo request) { + public SyntheticsFastTestResultDetail request(Map request) { this.request = request; - this.unparsed |= request.unparsed; + return this; + } + + public SyntheticsFastTestResultDetail putRequestItem(String key, Object requestItem) { + if (this.request == null) { + this.request = new HashMap<>(); + } + this.request.put(key, requestItem); return this; } /** - * Details of the outgoing request made during the test execution. + * Details of the outgoing request made during the test. * * @return request */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_REQUEST) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public SyntheticsTestResultRequestInfo getRequest() { + public Map getRequest() { return request; } - public void setRequest(SyntheticsTestResultRequestInfo request) { + public void setRequest(Map request) { this.request = request; } @@ -332,50 +340,53 @@ public void setResolvedIp(String resolvedIp) { this.resolvedIp = resolvedIp; } - public SyntheticsFastTestResultDetail response(SyntheticsTestResultResponseInfo response) { + public SyntheticsFastTestResultDetail response(Map response) { this.response = response; - this.unparsed |= response.unparsed; + return this; + } + + public SyntheticsFastTestResultDetail putResponseItem(String key, Object responseItem) { + if (this.response == null) { + this.response = new HashMap<>(); + } + this.response.put(key, responseItem); return this; } /** - * Details of the response received during the test execution. + * Details of the response received during the test. * * @return response */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_RESPONSE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public SyntheticsTestResultResponseInfo getResponse() { + public Map getResponse() { return response; } - public void setResponse(SyntheticsTestResultResponseInfo response) { + public void setResponse(Map response) { this.response = response; } - public SyntheticsFastTestResultDetail runType(SyntheticsTestResultRunType runType) { + public SyntheticsFastTestResultDetail runType(String runType) { this.runType = runType; - this.unparsed |= !runType.isValid(); return this; } /** - * The type of run for a Synthetic test result. + * Run type indicating how this test was triggered (for example, fast). * * @return runType */ @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_RUN_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public SyntheticsTestResultRunType getRunType() { + public String getRunType() { return runType; } - public void setRunType(SyntheticsTestResultRunType runType) { - if (!runType.isValid()) { - this.unparsed = true; - } + public void setRunType(String runType) { this.runType = runType; } @@ -421,20 +432,16 @@ public void setStatus(String status) { this.status = status; } - public SyntheticsFastTestResultDetail steps(List steps) { + public SyntheticsFastTestResultDetail steps(List> steps) { this.steps = steps; - for (SyntheticsTestResultStep item : steps) { - this.unparsed |= item.unparsed; - } return this; } - public SyntheticsFastTestResultDetail addStepsItem(SyntheticsTestResultStep stepsItem) { + public SyntheticsFastTestResultDetail addStepsItem(Map stepsItem) { if (this.steps == null) { this.steps = new ArrayList<>(); } this.steps.add(stepsItem); - this.unparsed |= stepsItem.unparsed; return this; } @@ -446,11 +453,11 @@ public SyntheticsFastTestResultDetail addStepsItem(SyntheticsTestResultStep step @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_STEPS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public List getSteps() { + public List> getSteps() { return steps; } - public void setSteps(List steps) { + public void setSteps(List> steps) { this.steps = steps; } @@ -483,22 +490,16 @@ public void setTimings(Map timings) { this.timings = timings; } - public SyntheticsFastTestResultDetail traceroute( - List traceroute) { + public SyntheticsFastTestResultDetail traceroute(List> traceroute) { this.traceroute = traceroute; - for (SyntheticsTestResultTracerouteHop item : traceroute) { - this.unparsed |= item.unparsed; - } return this; } - public SyntheticsFastTestResultDetail addTracerouteItem( - SyntheticsTestResultTracerouteHop tracerouteItem) { + public SyntheticsFastTestResultDetail addTracerouteItem(Map tracerouteItem) { if (this.traceroute == null) { this.traceroute = new ArrayList<>(); } this.traceroute.add(tracerouteItem); - this.unparsed |= tracerouteItem.unparsed; return this; } @@ -510,11 +511,11 @@ public SyntheticsFastTestResultDetail addTracerouteItem( @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_TRACEROUTE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public List getTraceroute() { + public List> getTraceroute() { return traceroute; } - public void setTraceroute(List traceroute) { + public void setTraceroute(List> traceroute) { this.traceroute = traceroute; } diff --git a/src/main/java/com/datadog/api/client/v2/model/SyntheticsTestResultTrace.java b/src/main/java/com/datadog/api/client/v2/model/SyntheticsFastTestResultDevice.java similarity index 71% rename from src/main/java/com/datadog/api/client/v2/model/SyntheticsTestResultTrace.java rename to src/main/java/com/datadog/api/client/v2/model/SyntheticsFastTestResultDevice.java index 1f64fddda49..afb539704a9 100644 --- a/src/main/java/com/datadog/api/client/v2/model/SyntheticsTestResultTrace.java +++ b/src/main/java/com/datadog/api/client/v2/model/SyntheticsFastTestResultDevice.java @@ -16,28 +16,28 @@ import java.util.Map; import java.util.Objects; -/** Trace identifiers associated with a Synthetic test result. */ +/** Device information for browser-based fast tests. */ @JsonPropertyOrder({ - SyntheticsTestResultTrace.JSON_PROPERTY_ID, - SyntheticsTestResultTrace.JSON_PROPERTY_OTEL_ID + SyntheticsFastTestResultDevice.JSON_PROPERTY_ID, + SyntheticsFastTestResultDevice.JSON_PROPERTY_NAME }) @jakarta.annotation.Generated( value = "https://github.com/DataDog/datadog-api-client-java/blob/master/.generator") -public class SyntheticsTestResultTrace { +public class SyntheticsFastTestResultDevice { @JsonIgnore public boolean unparsed = false; public static final String JSON_PROPERTY_ID = "id"; private String id; - public static final String JSON_PROPERTY_OTEL_ID = "otel_id"; - private String otelId; + public static final String JSON_PROPERTY_NAME = "name"; + private String name; - public SyntheticsTestResultTrace id(String id) { + public SyntheticsFastTestResultDevice id(String id) { this.id = id; return this; } /** - * Datadog APM trace identifier. + * Device identifier. * * @return id */ @@ -52,25 +52,25 @@ public void setId(String id) { this.id = id; } - public SyntheticsTestResultTrace otelId(String otelId) { - this.otelId = otelId; + public SyntheticsFastTestResultDevice name(String name) { + this.name = name; return this; } /** - * OpenTelemetry trace identifier. + * Display name of the device. * - * @return otelId + * @return name */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_OTEL_ID) + @JsonProperty(JSON_PROPERTY_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getOtelId() { - return otelId; + public String getName() { + return name; } - public void setOtelId(String otelId) { - this.otelId = otelId; + public void setName(String name) { + this.name = name; } /** @@ -85,10 +85,10 @@ public void setOtelId(String otelId) { * * @param key The arbitrary key to set * @param value The associated value - * @return SyntheticsTestResultTrace + * @return SyntheticsFastTestResultDevice */ @JsonAnySetter - public SyntheticsTestResultTrace putAdditionalProperty(String key, Object value) { + public SyntheticsFastTestResultDevice putAdditionalProperty(String key, Object value) { if (this.additionalProperties == null) { this.additionalProperties = new HashMap(); } @@ -119,7 +119,7 @@ public Object getAdditionalProperty(String key) { return this.additionalProperties.get(key); } - /** Return true if this SyntheticsTestResultTrace object is equal to o. */ + /** Return true if this SyntheticsFastTestResultDevice object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -128,24 +128,25 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) { return false; } - SyntheticsTestResultTrace syntheticsTestResultTrace = (SyntheticsTestResultTrace) o; - return Objects.equals(this.id, syntheticsTestResultTrace.id) - && Objects.equals(this.otelId, syntheticsTestResultTrace.otelId) + SyntheticsFastTestResultDevice syntheticsFastTestResultDevice = + (SyntheticsFastTestResultDevice) o; + return Objects.equals(this.id, syntheticsFastTestResultDevice.id) + && Objects.equals(this.name, syntheticsFastTestResultDevice.name) && Objects.equals( - this.additionalProperties, syntheticsTestResultTrace.additionalProperties); + this.additionalProperties, syntheticsFastTestResultDevice.additionalProperties); } @Override public int hashCode() { - return Objects.hash(id, otelId, additionalProperties); + return Objects.hash(id, name, additionalProperties); } @Override public String toString() { StringBuilder sb = new StringBuilder(); - sb.append("class SyntheticsTestResultTrace {\n"); + sb.append("class SyntheticsFastTestResultDevice {\n"); sb.append(" id: ").append(toIndentedString(id)).append("\n"); - sb.append(" otelId: ").append(toIndentedString(otelId)).append("\n"); + sb.append(" name: ").append(toIndentedString(name)).append("\n"); sb.append(" additionalProperties: ") .append(toIndentedString(additionalProperties)) .append("\n"); diff --git a/src/main/java/com/datadog/api/client/v2/model/SyntheticsTestResultHealthCheck.java b/src/main/java/com/datadog/api/client/v2/model/SyntheticsFastTestResultFailure.java similarity index 65% rename from src/main/java/com/datadog/api/client/v2/model/SyntheticsTestResultHealthCheck.java rename to src/main/java/com/datadog/api/client/v2/model/SyntheticsFastTestResultFailure.java index 625fa36fade..5a441142d0c 100644 --- a/src/main/java/com/datadog/api/client/v2/model/SyntheticsTestResultHealthCheck.java +++ b/src/main/java/com/datadog/api/client/v2/model/SyntheticsFastTestResultFailure.java @@ -16,69 +16,61 @@ import java.util.Map; import java.util.Objects; -/** Health check information returned from a gRPC health check call. */ +/** Failure details if the fast test did not pass. */ @JsonPropertyOrder({ - SyntheticsTestResultHealthCheck.JSON_PROPERTY_MESSAGE, - SyntheticsTestResultHealthCheck.JSON_PROPERTY_STATUS + SyntheticsFastTestResultFailure.JSON_PROPERTY_CODE, + SyntheticsFastTestResultFailure.JSON_PROPERTY_MESSAGE }) @jakarta.annotation.Generated( value = "https://github.com/DataDog/datadog-api-client-java/blob/master/.generator") -public class SyntheticsTestResultHealthCheck { +public class SyntheticsFastTestResultFailure { @JsonIgnore public boolean unparsed = false; - public static final String JSON_PROPERTY_MESSAGE = "message"; - private Map message = null; - - public static final String JSON_PROPERTY_STATUS = "status"; - private Long status; + public static final String JSON_PROPERTY_CODE = "code"; + private String code; - public SyntheticsTestResultHealthCheck message(Map message) { - this.message = message; - return this; - } + public static final String JSON_PROPERTY_MESSAGE = "message"; + private String message; - public SyntheticsTestResultHealthCheck putMessageItem(String key, String messageItem) { - if (this.message == null) { - this.message = new HashMap<>(); - } - this.message.put(key, messageItem); + public SyntheticsFastTestResultFailure code(String code) { + this.code = code; return this; } /** - * Raw health check message payload. + * Error code identifying the failure type. * - * @return message + * @return code */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_MESSAGE) + @JsonProperty(JSON_PROPERTY_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public Map getMessage() { - return message; + public String getCode() { + return code; } - public void setMessage(Map message) { - this.message = message; + public void setCode(String code) { + this.code = code; } - public SyntheticsTestResultHealthCheck status(Long status) { - this.status = status; + public SyntheticsFastTestResultFailure message(String message) { + this.message = message; return this; } /** - * Health check status code. + * Human-readable description of the failure. * - * @return status + * @return message */ @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_STATUS) + @JsonProperty(JSON_PROPERTY_MESSAGE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public Long getStatus() { - return status; + public String getMessage() { + return message; } - public void setStatus(Long status) { - this.status = status; + public void setMessage(String message) { + this.message = message; } /** @@ -93,10 +85,10 @@ public void setStatus(Long status) { * * @param key The arbitrary key to set * @param value The associated value - * @return SyntheticsTestResultHealthCheck + * @return SyntheticsFastTestResultFailure */ @JsonAnySetter - public SyntheticsTestResultHealthCheck putAdditionalProperty(String key, Object value) { + public SyntheticsFastTestResultFailure putAdditionalProperty(String key, Object value) { if (this.additionalProperties == null) { this.additionalProperties = new HashMap(); } @@ -127,7 +119,7 @@ public Object getAdditionalProperty(String key) { return this.additionalProperties.get(key); } - /** Return true if this SyntheticsTestResultHealthCheck object is equal to o. */ + /** Return true if this SyntheticsFastTestResultFailure object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -136,25 +128,25 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) { return false; } - SyntheticsTestResultHealthCheck syntheticsTestResultHealthCheck = - (SyntheticsTestResultHealthCheck) o; - return Objects.equals(this.message, syntheticsTestResultHealthCheck.message) - && Objects.equals(this.status, syntheticsTestResultHealthCheck.status) + SyntheticsFastTestResultFailure syntheticsFastTestResultFailure = + (SyntheticsFastTestResultFailure) o; + return Objects.equals(this.code, syntheticsFastTestResultFailure.code) + && Objects.equals(this.message, syntheticsFastTestResultFailure.message) && Objects.equals( - this.additionalProperties, syntheticsTestResultHealthCheck.additionalProperties); + this.additionalProperties, syntheticsFastTestResultFailure.additionalProperties); } @Override public int hashCode() { - return Objects.hash(message, status, additionalProperties); + return Objects.hash(code, message, additionalProperties); } @Override public String toString() { StringBuilder sb = new StringBuilder(); - sb.append("class SyntheticsTestResultHealthCheck {\n"); + sb.append("class SyntheticsFastTestResultFailure {\n"); + sb.append(" code: ").append(toIndentedString(code)).append("\n"); sb.append(" message: ").append(toIndentedString(message)).append("\n"); - sb.append(" status: ").append(toIndentedString(status)).append("\n"); sb.append(" additionalProperties: ") .append(toIndentedString(additionalProperties)) .append("\n"); diff --git a/src/main/java/com/datadog/api/client/v2/model/SyntheticsTestResultLocation.java b/src/main/java/com/datadog/api/client/v2/model/SyntheticsFastTestResultLocation.java similarity index 77% rename from src/main/java/com/datadog/api/client/v2/model/SyntheticsTestResultLocation.java rename to src/main/java/com/datadog/api/client/v2/model/SyntheticsFastTestResultLocation.java index 1cbea8d35e1..3af01e80ae3 100644 --- a/src/main/java/com/datadog/api/client/v2/model/SyntheticsTestResultLocation.java +++ b/src/main/java/com/datadog/api/client/v2/model/SyntheticsFastTestResultLocation.java @@ -16,16 +16,16 @@ import java.util.Map; import java.util.Objects; -/** Location information for a Synthetic test result. */ +/** Location from which the fast test was executed. */ @JsonPropertyOrder({ - SyntheticsTestResultLocation.JSON_PROPERTY_ID, - SyntheticsTestResultLocation.JSON_PROPERTY_NAME, - SyntheticsTestResultLocation.JSON_PROPERTY_VERSION, - SyntheticsTestResultLocation.JSON_PROPERTY_WORKER_ID + SyntheticsFastTestResultLocation.JSON_PROPERTY_ID, + SyntheticsFastTestResultLocation.JSON_PROPERTY_NAME, + SyntheticsFastTestResultLocation.JSON_PROPERTY_VERSION, + SyntheticsFastTestResultLocation.JSON_PROPERTY_WORKER_ID }) @jakarta.annotation.Generated( value = "https://github.com/DataDog/datadog-api-client-java/blob/master/.generator") -public class SyntheticsTestResultLocation { +public class SyntheticsFastTestResultLocation { @JsonIgnore public boolean unparsed = false; public static final String JSON_PROPERTY_ID = "id"; private String id; @@ -39,13 +39,13 @@ public class SyntheticsTestResultLocation { public static final String JSON_PROPERTY_WORKER_ID = "worker_id"; private String workerId; - public SyntheticsTestResultLocation id(String id) { + public SyntheticsFastTestResultLocation id(String id) { this.id = id; return this; } /** - * Identifier of the location. + * ID of the location. * * @return id */ @@ -60,13 +60,13 @@ public void setId(String id) { this.id = id; } - public SyntheticsTestResultLocation name(String name) { + public SyntheticsFastTestResultLocation name(String name) { this.name = name; return this; } /** - * Human-readable name of the location. + * Display name of the location. * * @return name */ @@ -81,13 +81,13 @@ public void setName(String name) { this.name = name; } - public SyntheticsTestResultLocation version(String version) { + public SyntheticsFastTestResultLocation version(String version) { this.version = version; return this; } /** - * Version of the worker that ran the test. + * Agent version running at this location. * * @return version */ @@ -102,7 +102,7 @@ public void setVersion(String version) { this.version = version; } - public SyntheticsTestResultLocation workerId(String workerId) { + public SyntheticsFastTestResultLocation workerId(String workerId) { this.workerId = workerId; return this; } @@ -135,10 +135,10 @@ public void setWorkerId(String workerId) { * * @param key The arbitrary key to set * @param value The associated value - * @return SyntheticsTestResultLocation + * @return SyntheticsFastTestResultLocation */ @JsonAnySetter - public SyntheticsTestResultLocation putAdditionalProperty(String key, Object value) { + public SyntheticsFastTestResultLocation putAdditionalProperty(String key, Object value) { if (this.additionalProperties == null) { this.additionalProperties = new HashMap(); } @@ -169,7 +169,7 @@ public Object getAdditionalProperty(String key) { return this.additionalProperties.get(key); } - /** Return true if this SyntheticsTestResultLocation object is equal to o. */ + /** Return true if this SyntheticsFastTestResultLocation object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { @@ -178,13 +178,14 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) { return false; } - SyntheticsTestResultLocation syntheticsTestResultLocation = (SyntheticsTestResultLocation) o; - return Objects.equals(this.id, syntheticsTestResultLocation.id) - && Objects.equals(this.name, syntheticsTestResultLocation.name) - && Objects.equals(this.version, syntheticsTestResultLocation.version) - && Objects.equals(this.workerId, syntheticsTestResultLocation.workerId) + SyntheticsFastTestResultLocation syntheticsFastTestResultLocation = + (SyntheticsFastTestResultLocation) o; + return Objects.equals(this.id, syntheticsFastTestResultLocation.id) + && Objects.equals(this.name, syntheticsFastTestResultLocation.name) + && Objects.equals(this.version, syntheticsFastTestResultLocation.version) + && Objects.equals(this.workerId, syntheticsFastTestResultLocation.workerId) && Objects.equals( - this.additionalProperties, syntheticsTestResultLocation.additionalProperties); + this.additionalProperties, syntheticsFastTestResultLocation.additionalProperties); } @Override @@ -195,7 +196,7 @@ public int hashCode() { @Override public String toString() { StringBuilder sb = new StringBuilder(); - sb.append("class SyntheticsTestResultLocation {\n"); + sb.append("class SyntheticsFastTestResultLocation {\n"); sb.append(" id: ").append(toIndentedString(id)).append("\n"); sb.append(" name: ").append(toIndentedString(name)).append("\n"); sb.append(" version: ").append(toIndentedString(version)).append("\n"); diff --git a/src/main/java/com/datadog/api/client/v2/model/SyntheticsFastTestType.java b/src/main/java/com/datadog/api/client/v2/model/SyntheticsFastTestType.java deleted file mode 100644 index dcd9a95b1f3..00000000000 --- a/src/main/java/com/datadog/api/client/v2/model/SyntheticsFastTestType.java +++ /dev/null @@ -1,58 +0,0 @@ -/* - * 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. - */ - -package com.datadog.api.client.v2.model; - -import com.datadog.api.client.ModelEnum; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.core.JsonGenerator; -import com.fasterxml.jackson.core.JsonProcessingException; -import com.fasterxml.jackson.databind.SerializerProvider; -import com.fasterxml.jackson.databind.annotation.JsonSerialize; -import com.fasterxml.jackson.databind.ser.std.StdSerializer; -import java.io.IOException; -import java.util.Arrays; -import java.util.HashSet; -import java.util.Set; - -/** Type of the Synthetic fast test that produced this result. */ -@JsonSerialize(using = SyntheticsFastTestType.SyntheticsFastTestTypeSerializer.class) -public class SyntheticsFastTestType extends ModelEnum { - - private static final Set allowedValues = - new HashSet(Arrays.asList("fast-api", "fast-browser")); - - public static final SyntheticsFastTestType FAST_API = new SyntheticsFastTestType("fast-api"); - public static final SyntheticsFastTestType FAST_BROWSER = - new SyntheticsFastTestType("fast-browser"); - - SyntheticsFastTestType(String value) { - super(value, allowedValues); - } - - public static class SyntheticsFastTestTypeSerializer - extends StdSerializer { - public SyntheticsFastTestTypeSerializer(Class t) { - super(t); - } - - public SyntheticsFastTestTypeSerializer() { - this(null); - } - - @Override - public void serialize( - SyntheticsFastTestType value, JsonGenerator jgen, SerializerProvider provider) - throws IOException, JsonProcessingException { - jgen.writeObject(value.value); - } - } - - @JsonCreator - public static SyntheticsFastTestType fromValue(String value) { - return new SyntheticsFastTestType(value); - } -} diff --git a/src/main/java/com/datadog/api/client/v2/model/SyntheticsPollTestResultsResponse.java b/src/main/java/com/datadog/api/client/v2/model/SyntheticsPollTestResultsResponse.java deleted file mode 100644 index 66d64ec4465..00000000000 --- a/src/main/java/com/datadog/api/client/v2/model/SyntheticsPollTestResultsResponse.java +++ /dev/null @@ -1,194 +0,0 @@ -/* - * 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. - */ - -package com.datadog.api.client.v2.model; - -import com.fasterxml.jackson.annotation.JsonAnyGetter; -import com.fasterxml.jackson.annotation.JsonAnySetter; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import java.util.ArrayList; -import java.util.HashMap; -import java.util.List; -import java.util.Map; -import java.util.Objects; - -/** Response object for polling Synthetic test results. */ -@JsonPropertyOrder({ - SyntheticsPollTestResultsResponse.JSON_PROPERTY_DATA, - SyntheticsPollTestResultsResponse.JSON_PROPERTY_INCLUDED -}) -@jakarta.annotation.Generated( - value = "https://github.com/DataDog/datadog-api-client-java/blob/master/.generator") -public class SyntheticsPollTestResultsResponse { - @JsonIgnore public boolean unparsed = false; - public static final String JSON_PROPERTY_DATA = "data"; - private List data = null; - - public static final String JSON_PROPERTY_INCLUDED = "included"; - private List included = null; - - public SyntheticsPollTestResultsResponse data(List data) { - this.data = data; - for (SyntheticsTestResultData item : data) { - this.unparsed |= item.unparsed; - } - return this; - } - - public SyntheticsPollTestResultsResponse addDataItem(SyntheticsTestResultData dataItem) { - if (this.data == null) { - this.data = new ArrayList<>(); - } - this.data.add(dataItem); - this.unparsed |= dataItem.unparsed; - return this; - } - - /** - * Array of Synthetic test results. - * - * @return data - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_DATA) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public List getData() { - return data; - } - - public void setData(List data) { - this.data = data; - } - - public SyntheticsPollTestResultsResponse included( - List included) { - this.included = included; - for (SyntheticsTestResultIncludedItem item : included) { - this.unparsed |= item.unparsed; - } - return this; - } - - public SyntheticsPollTestResultsResponse addIncludedItem( - SyntheticsTestResultIncludedItem includedItem) { - if (this.included == null) { - this.included = new ArrayList<>(); - } - this.included.add(includedItem); - this.unparsed |= includedItem.unparsed; - return this; - } - - /** - * Array of included related resources, such as the test definition. - * - * @return included - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_INCLUDED) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public List getIncluded() { - return included; - } - - public void setIncluded(List included) { - this.included = included; - } - - /** - * A container for additional, undeclared properties. This is a holder for any undeclared - * properties as specified with the 'additionalProperties' keyword in the OAS document. - */ - private Map additionalProperties; - - /** - * Set the additional (undeclared) property with the specified name and value. If the property - * does not already exist, create it otherwise replace it. - * - * @param key The arbitrary key to set - * @param value The associated value - * @return SyntheticsPollTestResultsResponse - */ - @JsonAnySetter - public SyntheticsPollTestResultsResponse putAdditionalProperty(String key, Object value) { - if (this.additionalProperties == null) { - this.additionalProperties = new HashMap(); - } - this.additionalProperties.put(key, value); - return this; - } - - /** - * Return the additional (undeclared) property. - * - * @return The additional properties - */ - @JsonAnyGetter - public Map getAdditionalProperties() { - return additionalProperties; - } - - /** - * Return the additional (undeclared) property with the specified name. - * - * @param key The arbitrary key to get - * @return The specific additional property for the given key - */ - public Object getAdditionalProperty(String key) { - if (this.additionalProperties == null) { - return null; - } - return this.additionalProperties.get(key); - } - - /** Return true if this SyntheticsPollTestResultsResponse object is equal to o. */ - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - SyntheticsPollTestResultsResponse syntheticsPollTestResultsResponse = - (SyntheticsPollTestResultsResponse) o; - return Objects.equals(this.data, syntheticsPollTestResultsResponse.data) - && Objects.equals(this.included, syntheticsPollTestResultsResponse.included) - && Objects.equals( - this.additionalProperties, syntheticsPollTestResultsResponse.additionalProperties); - } - - @Override - public int hashCode() { - return Objects.hash(data, included, additionalProperties); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class SyntheticsPollTestResultsResponse {\n"); - sb.append(" data: ").append(toIndentedString(data)).append("\n"); - sb.append(" included: ").append(toIndentedString(included)).append("\n"); - sb.append(" additionalProperties: ") - .append(toIndentedString(additionalProperties)) - .append("\n"); - sb.append('}'); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } -} diff --git a/src/main/java/com/datadog/api/client/v2/model/SyntheticsTestLatestResultsResponse.java b/src/main/java/com/datadog/api/client/v2/model/SyntheticsTestLatestResultsResponse.java deleted file mode 100644 index 38b872b4dd0..00000000000 --- a/src/main/java/com/datadog/api/client/v2/model/SyntheticsTestLatestResultsResponse.java +++ /dev/null @@ -1,194 +0,0 @@ -/* - * 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. - */ - -package com.datadog.api.client.v2.model; - -import com.fasterxml.jackson.annotation.JsonAnyGetter; -import com.fasterxml.jackson.annotation.JsonAnySetter; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import java.util.ArrayList; -import java.util.HashMap; -import java.util.List; -import java.util.Map; -import java.util.Objects; - -/** Response object for a Synthetic test's latest result summaries. */ -@JsonPropertyOrder({ - SyntheticsTestLatestResultsResponse.JSON_PROPERTY_DATA, - SyntheticsTestLatestResultsResponse.JSON_PROPERTY_INCLUDED -}) -@jakarta.annotation.Generated( - value = "https://github.com/DataDog/datadog-api-client-java/blob/master/.generator") -public class SyntheticsTestLatestResultsResponse { - @JsonIgnore public boolean unparsed = false; - public static final String JSON_PROPERTY_DATA = "data"; - private List data = null; - - public static final String JSON_PROPERTY_INCLUDED = "included"; - private List included = null; - - public SyntheticsTestLatestResultsResponse data(List data) { - this.data = data; - for (SyntheticsTestResultSummaryData item : data) { - this.unparsed |= item.unparsed; - } - return this; - } - - public SyntheticsTestLatestResultsResponse addDataItem(SyntheticsTestResultSummaryData dataItem) { - if (this.data == null) { - this.data = new ArrayList<>(); - } - this.data.add(dataItem); - this.unparsed |= dataItem.unparsed; - return this; - } - - /** - * Array of Synthetic test result summaries. - * - * @return data - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_DATA) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public List getData() { - return data; - } - - public void setData(List data) { - this.data = data; - } - - public SyntheticsTestLatestResultsResponse included( - List included) { - this.included = included; - for (SyntheticsTestResultIncludedItem item : included) { - this.unparsed |= item.unparsed; - } - return this; - } - - public SyntheticsTestLatestResultsResponse addIncludedItem( - SyntheticsTestResultIncludedItem includedItem) { - if (this.included == null) { - this.included = new ArrayList<>(); - } - this.included.add(includedItem); - this.unparsed |= includedItem.unparsed; - return this; - } - - /** - * Array of included related resources, such as the test definition. - * - * @return included - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_INCLUDED) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public List getIncluded() { - return included; - } - - public void setIncluded(List included) { - this.included = included; - } - - /** - * A container for additional, undeclared properties. This is a holder for any undeclared - * properties as specified with the 'additionalProperties' keyword in the OAS document. - */ - private Map additionalProperties; - - /** - * Set the additional (undeclared) property with the specified name and value. If the property - * does not already exist, create it otherwise replace it. - * - * @param key The arbitrary key to set - * @param value The associated value - * @return SyntheticsTestLatestResultsResponse - */ - @JsonAnySetter - public SyntheticsTestLatestResultsResponse putAdditionalProperty(String key, Object value) { - if (this.additionalProperties == null) { - this.additionalProperties = new HashMap(); - } - this.additionalProperties.put(key, value); - return this; - } - - /** - * Return the additional (undeclared) property. - * - * @return The additional properties - */ - @JsonAnyGetter - public Map getAdditionalProperties() { - return additionalProperties; - } - - /** - * Return the additional (undeclared) property with the specified name. - * - * @param key The arbitrary key to get - * @return The specific additional property for the given key - */ - public Object getAdditionalProperty(String key) { - if (this.additionalProperties == null) { - return null; - } - return this.additionalProperties.get(key); - } - - /** Return true if this SyntheticsTestLatestResultsResponse object is equal to o. */ - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - SyntheticsTestLatestResultsResponse syntheticsTestLatestResultsResponse = - (SyntheticsTestLatestResultsResponse) o; - return Objects.equals(this.data, syntheticsTestLatestResultsResponse.data) - && Objects.equals(this.included, syntheticsTestLatestResultsResponse.included) - && Objects.equals( - this.additionalProperties, syntheticsTestLatestResultsResponse.additionalProperties); - } - - @Override - public int hashCode() { - return Objects.hash(data, included, additionalProperties); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class SyntheticsTestLatestResultsResponse {\n"); - sb.append(" data: ").append(toIndentedString(data)).append("\n"); - sb.append(" included: ").append(toIndentedString(included)).append("\n"); - sb.append(" additionalProperties: ") - .append(toIndentedString(additionalProperties)) - .append("\n"); - sb.append('}'); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } -} diff --git a/src/main/java/com/datadog/api/client/v2/model/SyntheticsTestResultAssertionResult.java b/src/main/java/com/datadog/api/client/v2/model/SyntheticsTestResultAssertionResult.java deleted file mode 100644 index 869e2c07708..00000000000 --- a/src/main/java/com/datadog/api/client/v2/model/SyntheticsTestResultAssertionResult.java +++ /dev/null @@ -1,395 +0,0 @@ -/* - * 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. - */ - -package com.datadog.api.client.v2.model; - -import com.fasterxml.jackson.annotation.JsonAnyGetter; -import com.fasterxml.jackson.annotation.JsonAnySetter; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; - -/** An individual assertion result from a Synthetic test. */ -@JsonPropertyOrder({ - SyntheticsTestResultAssertionResult.JSON_PROPERTY_ACTUAL, - SyntheticsTestResultAssertionResult.JSON_PROPERTY_ERROR_MESSAGE, - SyntheticsTestResultAssertionResult.JSON_PROPERTY_EXPECTED, - SyntheticsTestResultAssertionResult.JSON_PROPERTY_OPERATOR, - SyntheticsTestResultAssertionResult.JSON_PROPERTY_PROPERTY, - SyntheticsTestResultAssertionResult.JSON_PROPERTY_TARGET, - SyntheticsTestResultAssertionResult.JSON_PROPERTY_TARGET_PATH, - SyntheticsTestResultAssertionResult.JSON_PROPERTY_TARGET_PATH_OPERATOR, - SyntheticsTestResultAssertionResult.JSON_PROPERTY_TYPE, - SyntheticsTestResultAssertionResult.JSON_PROPERTY_VALID -}) -@jakarta.annotation.Generated( - value = "https://github.com/DataDog/datadog-api-client-java/blob/master/.generator") -public class SyntheticsTestResultAssertionResult { - @JsonIgnore public boolean unparsed = false; - public static final String JSON_PROPERTY_ACTUAL = "actual"; - private Object actual = null; - - public static final String JSON_PROPERTY_ERROR_MESSAGE = "error_message"; - private String errorMessage; - - public static final String JSON_PROPERTY_EXPECTED = "expected"; - private Object expected = null; - - public static final String JSON_PROPERTY_OPERATOR = "operator"; - private String operator; - - public static final String JSON_PROPERTY_PROPERTY = "property"; - private String property; - - public static final String JSON_PROPERTY_TARGET = "target"; - private Object target = null; - - public static final String JSON_PROPERTY_TARGET_PATH = "target_path"; - private String targetPath; - - public static final String JSON_PROPERTY_TARGET_PATH_OPERATOR = "target_path_operator"; - private String targetPathOperator; - - public static final String JSON_PROPERTY_TYPE = "type"; - private String type; - - public static final String JSON_PROPERTY_VALID = "valid"; - private Boolean valid; - - public SyntheticsTestResultAssertionResult actual(Object actual) { - this.actual = actual; - return this; - } - - /** - * Actual value observed during the test. Its type depends on the assertion type. - * - * @return actual - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ACTUAL) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public Object getActual() { - return actual; - } - - public void setActual(Object actual) { - this.actual = actual; - } - - public SyntheticsTestResultAssertionResult errorMessage(String errorMessage) { - this.errorMessage = errorMessage; - return this; - } - - /** - * Error message if the assertion failed. - * - * @return errorMessage - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ERROR_MESSAGE) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getErrorMessage() { - return errorMessage; - } - - public void setErrorMessage(String errorMessage) { - this.errorMessage = errorMessage; - } - - public SyntheticsTestResultAssertionResult expected(Object expected) { - this.expected = expected; - return this; - } - - /** - * Expected value for the assertion. Its type depends on the assertion type. - * - * @return expected - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_EXPECTED) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public Object getExpected() { - return expected; - } - - public void setExpected(Object expected) { - this.expected = expected; - } - - public SyntheticsTestResultAssertionResult operator(String operator) { - this.operator = operator; - return this; - } - - /** - * Operator used for the assertion (for example, is, contains). - * - * @return operator - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_OPERATOR) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getOperator() { - return operator; - } - - public void setOperator(String operator) { - this.operator = operator; - } - - public SyntheticsTestResultAssertionResult property(String property) { - this.property = property; - return this; - } - - /** - * Property targeted by the assertion, when applicable. - * - * @return property - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_PROPERTY) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getProperty() { - return property; - } - - public void setProperty(String property) { - this.property = property; - } - - public SyntheticsTestResultAssertionResult target(Object target) { - this.target = target; - return this; - } - - /** - * Target value for the assertion. Its type depends on the assertion type. - * - * @return target - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_TARGET) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public Object getTarget() { - return target; - } - - public void setTarget(Object target) { - this.target = target; - } - - public SyntheticsTestResultAssertionResult targetPath(String targetPath) { - this.targetPath = targetPath; - return this; - } - - /** - * JSON path or XPath evaluated for the assertion. - * - * @return targetPath - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_TARGET_PATH) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getTargetPath() { - return targetPath; - } - - public void setTargetPath(String targetPath) { - this.targetPath = targetPath; - } - - public SyntheticsTestResultAssertionResult targetPathOperator(String targetPathOperator) { - this.targetPathOperator = targetPathOperator; - return this; - } - - /** - * Operator used for the target path assertion. - * - * @return targetPathOperator - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_TARGET_PATH_OPERATOR) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getTargetPathOperator() { - return targetPathOperator; - } - - public void setTargetPathOperator(String targetPathOperator) { - this.targetPathOperator = targetPathOperator; - } - - public SyntheticsTestResultAssertionResult type(String type) { - this.type = type; - return this; - } - - /** - * Type of the assertion (for example, responseTime, statusCode, - * body). - * - * @return type - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_TYPE) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getType() { - return type; - } - - public void setType(String type) { - this.type = type; - } - - public SyntheticsTestResultAssertionResult valid(Boolean valid) { - this.valid = valid; - return this; - } - - /** - * Whether the assertion passed. - * - * @return valid - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_VALID) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public Boolean getValid() { - return valid; - } - - public void setValid(Boolean valid) { - this.valid = valid; - } - - /** - * A container for additional, undeclared properties. This is a holder for any undeclared - * properties as specified with the 'additionalProperties' keyword in the OAS document. - */ - private Map additionalProperties; - - /** - * Set the additional (undeclared) property with the specified name and value. If the property - * does not already exist, create it otherwise replace it. - * - * @param key The arbitrary key to set - * @param value The associated value - * @return SyntheticsTestResultAssertionResult - */ - @JsonAnySetter - public SyntheticsTestResultAssertionResult putAdditionalProperty(String key, Object value) { - if (this.additionalProperties == null) { - this.additionalProperties = new HashMap(); - } - this.additionalProperties.put(key, value); - return this; - } - - /** - * Return the additional (undeclared) property. - * - * @return The additional properties - */ - @JsonAnyGetter - public Map getAdditionalProperties() { - return additionalProperties; - } - - /** - * Return the additional (undeclared) property with the specified name. - * - * @param key The arbitrary key to get - * @return The specific additional property for the given key - */ - public Object getAdditionalProperty(String key) { - if (this.additionalProperties == null) { - return null; - } - return this.additionalProperties.get(key); - } - - /** Return true if this SyntheticsTestResultAssertionResult object is equal to o. */ - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - SyntheticsTestResultAssertionResult syntheticsTestResultAssertionResult = - (SyntheticsTestResultAssertionResult) o; - return Objects.equals(this.actual, syntheticsTestResultAssertionResult.actual) - && Objects.equals(this.errorMessage, syntheticsTestResultAssertionResult.errorMessage) - && Objects.equals(this.expected, syntheticsTestResultAssertionResult.expected) - && Objects.equals(this.operator, syntheticsTestResultAssertionResult.operator) - && Objects.equals(this.property, syntheticsTestResultAssertionResult.property) - && Objects.equals(this.target, syntheticsTestResultAssertionResult.target) - && Objects.equals(this.targetPath, syntheticsTestResultAssertionResult.targetPath) - && Objects.equals( - this.targetPathOperator, syntheticsTestResultAssertionResult.targetPathOperator) - && Objects.equals(this.type, syntheticsTestResultAssertionResult.type) - && Objects.equals(this.valid, syntheticsTestResultAssertionResult.valid) - && Objects.equals( - this.additionalProperties, syntheticsTestResultAssertionResult.additionalProperties); - } - - @Override - public int hashCode() { - return Objects.hash( - actual, - errorMessage, - expected, - operator, - property, - target, - targetPath, - targetPathOperator, - type, - valid, - additionalProperties); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class SyntheticsTestResultAssertionResult {\n"); - sb.append(" actual: ").append(toIndentedString(actual)).append("\n"); - sb.append(" errorMessage: ").append(toIndentedString(errorMessage)).append("\n"); - sb.append(" expected: ").append(toIndentedString(expected)).append("\n"); - sb.append(" operator: ").append(toIndentedString(operator)).append("\n"); - sb.append(" property: ").append(toIndentedString(property)).append("\n"); - sb.append(" target: ").append(toIndentedString(target)).append("\n"); - sb.append(" targetPath: ").append(toIndentedString(targetPath)).append("\n"); - sb.append(" targetPathOperator: ").append(toIndentedString(targetPathOperator)).append("\n"); - sb.append(" type: ").append(toIndentedString(type)).append("\n"); - sb.append(" valid: ").append(toIndentedString(valid)).append("\n"); - sb.append(" additionalProperties: ") - .append(toIndentedString(additionalProperties)) - .append("\n"); - sb.append('}'); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } -} diff --git a/src/main/java/com/datadog/api/client/v2/model/SyntheticsTestResultAttributes.java b/src/main/java/com/datadog/api/client/v2/model/SyntheticsTestResultAttributes.java deleted file mode 100644 index 6b6b1378492..00000000000 --- a/src/main/java/com/datadog/api/client/v2/model/SyntheticsTestResultAttributes.java +++ /dev/null @@ -1,343 +0,0 @@ -/* - * 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. - */ - -package com.datadog.api.client.v2.model; - -import com.fasterxml.jackson.annotation.JsonAnyGetter; -import com.fasterxml.jackson.annotation.JsonAnySetter; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; - -/** Attributes of a Synthetic test result. */ -@JsonPropertyOrder({ - SyntheticsTestResultAttributes.JSON_PROPERTY_BATCH, - SyntheticsTestResultAttributes.JSON_PROPERTY_CI, - SyntheticsTestResultAttributes.JSON_PROPERTY_DEVICE, - SyntheticsTestResultAttributes.JSON_PROPERTY_GIT, - SyntheticsTestResultAttributes.JSON_PROPERTY_LOCATION, - SyntheticsTestResultAttributes.JSON_PROPERTY_RESULT, - SyntheticsTestResultAttributes.JSON_PROPERTY_TEST_SUB_TYPE, - SyntheticsTestResultAttributes.JSON_PROPERTY_TEST_TYPE -}) -@jakarta.annotation.Generated( - value = "https://github.com/DataDog/datadog-api-client-java/blob/master/.generator") -public class SyntheticsTestResultAttributes { - @JsonIgnore public boolean unparsed = false; - public static final String JSON_PROPERTY_BATCH = "batch"; - private SyntheticsTestResultBatch batch; - - public static final String JSON_PROPERTY_CI = "ci"; - private SyntheticsTestResultCI ci; - - public static final String JSON_PROPERTY_DEVICE = "device"; - private SyntheticsTestResultDevice device; - - public static final String JSON_PROPERTY_GIT = "git"; - private SyntheticsTestResultGit git; - - public static final String JSON_PROPERTY_LOCATION = "location"; - private SyntheticsTestResultLocation location; - - public static final String JSON_PROPERTY_RESULT = "result"; - private SyntheticsTestResultDetail result; - - public static final String JSON_PROPERTY_TEST_SUB_TYPE = "test_sub_type"; - private SyntheticsTestSubType testSubType; - - public static final String JSON_PROPERTY_TEST_TYPE = "test_type"; - private SyntheticsTestType testType; - - public SyntheticsTestResultAttributes batch(SyntheticsTestResultBatch batch) { - this.batch = batch; - this.unparsed |= batch.unparsed; - return this; - } - - /** - * Batch information for the test result. - * - * @return batch - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_BATCH) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public SyntheticsTestResultBatch getBatch() { - return batch; - } - - public void setBatch(SyntheticsTestResultBatch batch) { - this.batch = batch; - } - - public SyntheticsTestResultAttributes ci(SyntheticsTestResultCI ci) { - this.ci = ci; - this.unparsed |= ci.unparsed; - return this; - } - - /** - * CI information associated with the test result. - * - * @return ci - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_CI) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public SyntheticsTestResultCI getCi() { - return ci; - } - - public void setCi(SyntheticsTestResultCI ci) { - this.ci = ci; - } - - public SyntheticsTestResultAttributes device(SyntheticsTestResultDevice device) { - this.device = device; - this.unparsed |= device.unparsed; - return this; - } - - /** - * Device information for the test result (browser and mobile tests). - * - * @return device - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_DEVICE) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public SyntheticsTestResultDevice getDevice() { - return device; - } - - public void setDevice(SyntheticsTestResultDevice device) { - this.device = device; - } - - public SyntheticsTestResultAttributes git(SyntheticsTestResultGit git) { - this.git = git; - this.unparsed |= git.unparsed; - return this; - } - - /** - * Git information associated with the test result. - * - * @return git - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_GIT) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public SyntheticsTestResultGit getGit() { - return git; - } - - public void setGit(SyntheticsTestResultGit git) { - this.git = git; - } - - public SyntheticsTestResultAttributes location(SyntheticsTestResultLocation location) { - this.location = location; - this.unparsed |= location.unparsed; - return this; - } - - /** - * Location information for a Synthetic test result. - * - * @return location - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_LOCATION) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public SyntheticsTestResultLocation getLocation() { - return location; - } - - public void setLocation(SyntheticsTestResultLocation location) { - this.location = location; - } - - public SyntheticsTestResultAttributes result(SyntheticsTestResultDetail result) { - this.result = result; - this.unparsed |= result.unparsed; - return this; - } - - /** - * Full result details for a Synthetic test execution. - * - * @return result - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_RESULT) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public SyntheticsTestResultDetail getResult() { - return result; - } - - public void setResult(SyntheticsTestResultDetail result) { - this.result = result; - } - - public SyntheticsTestResultAttributes testSubType(SyntheticsTestSubType testSubType) { - this.testSubType = testSubType; - this.unparsed |= !testSubType.isValid(); - return this; - } - - /** - * Subtype of the Synthetic test that produced this result. - * - * @return testSubType - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_TEST_SUB_TYPE) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public SyntheticsTestSubType getTestSubType() { - return testSubType; - } - - public void setTestSubType(SyntheticsTestSubType testSubType) { - if (!testSubType.isValid()) { - this.unparsed = true; - } - this.testSubType = testSubType; - } - - public SyntheticsTestResultAttributes testType(SyntheticsTestType testType) { - this.testType = testType; - this.unparsed |= !testType.isValid(); - return this; - } - - /** - * Type of the Synthetic test that produced this result. - * - * @return testType - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_TEST_TYPE) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public SyntheticsTestType getTestType() { - return testType; - } - - public void setTestType(SyntheticsTestType testType) { - if (!testType.isValid()) { - this.unparsed = true; - } - this.testType = testType; - } - - /** - * A container for additional, undeclared properties. This is a holder for any undeclared - * properties as specified with the 'additionalProperties' keyword in the OAS document. - */ - private Map additionalProperties; - - /** - * Set the additional (undeclared) property with the specified name and value. If the property - * does not already exist, create it otherwise replace it. - * - * @param key The arbitrary key to set - * @param value The associated value - * @return SyntheticsTestResultAttributes - */ - @JsonAnySetter - public SyntheticsTestResultAttributes putAdditionalProperty(String key, Object value) { - if (this.additionalProperties == null) { - this.additionalProperties = new HashMap(); - } - this.additionalProperties.put(key, value); - return this; - } - - /** - * Return the additional (undeclared) property. - * - * @return The additional properties - */ - @JsonAnyGetter - public Map getAdditionalProperties() { - return additionalProperties; - } - - /** - * Return the additional (undeclared) property with the specified name. - * - * @param key The arbitrary key to get - * @return The specific additional property for the given key - */ - public Object getAdditionalProperty(String key) { - if (this.additionalProperties == null) { - return null; - } - return this.additionalProperties.get(key); - } - - /** Return true if this SyntheticsTestResultAttributes object is equal to o. */ - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - SyntheticsTestResultAttributes syntheticsTestResultAttributes = - (SyntheticsTestResultAttributes) o; - return Objects.equals(this.batch, syntheticsTestResultAttributes.batch) - && Objects.equals(this.ci, syntheticsTestResultAttributes.ci) - && Objects.equals(this.device, syntheticsTestResultAttributes.device) - && Objects.equals(this.git, syntheticsTestResultAttributes.git) - && Objects.equals(this.location, syntheticsTestResultAttributes.location) - && Objects.equals(this.result, syntheticsTestResultAttributes.result) - && Objects.equals(this.testSubType, syntheticsTestResultAttributes.testSubType) - && Objects.equals(this.testType, syntheticsTestResultAttributes.testType) - && Objects.equals( - this.additionalProperties, syntheticsTestResultAttributes.additionalProperties); - } - - @Override - public int hashCode() { - return Objects.hash( - batch, ci, device, git, location, result, testSubType, testType, additionalProperties); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class SyntheticsTestResultAttributes {\n"); - sb.append(" batch: ").append(toIndentedString(batch)).append("\n"); - sb.append(" ci: ").append(toIndentedString(ci)).append("\n"); - sb.append(" device: ").append(toIndentedString(device)).append("\n"); - sb.append(" git: ").append(toIndentedString(git)).append("\n"); - sb.append(" location: ").append(toIndentedString(location)).append("\n"); - sb.append(" result: ").append(toIndentedString(result)).append("\n"); - sb.append(" testSubType: ").append(toIndentedString(testSubType)).append("\n"); - sb.append(" testType: ").append(toIndentedString(testType)).append("\n"); - sb.append(" additionalProperties: ") - .append(toIndentedString(additionalProperties)) - .append("\n"); - sb.append('}'); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } -} diff --git a/src/main/java/com/datadog/api/client/v2/model/SyntheticsTestResultBatch.java b/src/main/java/com/datadog/api/client/v2/model/SyntheticsTestResultBatch.java deleted file mode 100644 index 23aaf6cc92d..00000000000 --- a/src/main/java/com/datadog/api/client/v2/model/SyntheticsTestResultBatch.java +++ /dev/null @@ -1,136 +0,0 @@ -/* - * 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. - */ - -package com.datadog.api.client.v2.model; - -import com.fasterxml.jackson.annotation.JsonAnyGetter; -import com.fasterxml.jackson.annotation.JsonAnySetter; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; - -/** Batch information for the test result. */ -@JsonPropertyOrder({SyntheticsTestResultBatch.JSON_PROPERTY_ID}) -@jakarta.annotation.Generated( - value = "https://github.com/DataDog/datadog-api-client-java/blob/master/.generator") -public class SyntheticsTestResultBatch { - @JsonIgnore public boolean unparsed = false; - public static final String JSON_PROPERTY_ID = "id"; - private String id; - - public SyntheticsTestResultBatch id(String id) { - this.id = id; - return this; - } - - /** - * Batch identifier. - * - * @return id - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ID) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getId() { - return id; - } - - public void setId(String id) { - this.id = id; - } - - /** - * A container for additional, undeclared properties. This is a holder for any undeclared - * properties as specified with the 'additionalProperties' keyword in the OAS document. - */ - private Map additionalProperties; - - /** - * Set the additional (undeclared) property with the specified name and value. If the property - * does not already exist, create it otherwise replace it. - * - * @param key The arbitrary key to set - * @param value The associated value - * @return SyntheticsTestResultBatch - */ - @JsonAnySetter - public SyntheticsTestResultBatch putAdditionalProperty(String key, Object value) { - if (this.additionalProperties == null) { - this.additionalProperties = new HashMap(); - } - this.additionalProperties.put(key, value); - return this; - } - - /** - * Return the additional (undeclared) property. - * - * @return The additional properties - */ - @JsonAnyGetter - public Map getAdditionalProperties() { - return additionalProperties; - } - - /** - * Return the additional (undeclared) property with the specified name. - * - * @param key The arbitrary key to get - * @return The specific additional property for the given key - */ - public Object getAdditionalProperty(String key) { - if (this.additionalProperties == null) { - return null; - } - return this.additionalProperties.get(key); - } - - /** Return true if this SyntheticsTestResultBatch object is equal to o. */ - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - SyntheticsTestResultBatch syntheticsTestResultBatch = (SyntheticsTestResultBatch) o; - return Objects.equals(this.id, syntheticsTestResultBatch.id) - && Objects.equals( - this.additionalProperties, syntheticsTestResultBatch.additionalProperties); - } - - @Override - public int hashCode() { - return Objects.hash(id, additionalProperties); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class SyntheticsTestResultBatch {\n"); - sb.append(" id: ").append(toIndentedString(id)).append("\n"); - sb.append(" additionalProperties: ") - .append(toIndentedString(additionalProperties)) - .append("\n"); - sb.append('}'); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } -} diff --git a/src/main/java/com/datadog/api/client/v2/model/SyntheticsTestResultBounds.java b/src/main/java/com/datadog/api/client/v2/model/SyntheticsTestResultBounds.java deleted file mode 100644 index a7729f7d831..00000000000 --- a/src/main/java/com/datadog/api/client/v2/model/SyntheticsTestResultBounds.java +++ /dev/null @@ -1,219 +0,0 @@ -/* - * 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. - */ - -package com.datadog.api.client.v2.model; - -import com.fasterxml.jackson.annotation.JsonAnyGetter; -import com.fasterxml.jackson.annotation.JsonAnySetter; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; - -/** Bounding box of an element on the page. */ -@JsonPropertyOrder({ - SyntheticsTestResultBounds.JSON_PROPERTY_HEIGHT, - SyntheticsTestResultBounds.JSON_PROPERTY_WIDTH, - SyntheticsTestResultBounds.JSON_PROPERTY_X, - SyntheticsTestResultBounds.JSON_PROPERTY_Y -}) -@jakarta.annotation.Generated( - value = "https://github.com/DataDog/datadog-api-client-java/blob/master/.generator") -public class SyntheticsTestResultBounds { - @JsonIgnore public boolean unparsed = false; - public static final String JSON_PROPERTY_HEIGHT = "height"; - private Long height; - - public static final String JSON_PROPERTY_WIDTH = "width"; - private Long width; - - public static final String JSON_PROPERTY_X = "x"; - private Long x; - - public static final String JSON_PROPERTY_Y = "y"; - private Long y; - - public SyntheticsTestResultBounds height(Long height) { - this.height = height; - return this; - } - - /** - * Height in pixels. - * - * @return height - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_HEIGHT) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public Long getHeight() { - return height; - } - - public void setHeight(Long height) { - this.height = height; - } - - public SyntheticsTestResultBounds width(Long width) { - this.width = width; - return this; - } - - /** - * Width in pixels. - * - * @return width - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_WIDTH) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public Long getWidth() { - return width; - } - - public void setWidth(Long width) { - this.width = width; - } - - public SyntheticsTestResultBounds x(Long x) { - this.x = x; - return this; - } - - /** - * Horizontal position in pixels. - * - * @return x - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_X) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public Long getX() { - return x; - } - - public void setX(Long x) { - this.x = x; - } - - public SyntheticsTestResultBounds y(Long y) { - this.y = y; - return this; - } - - /** - * Vertical position in pixels. - * - * @return y - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_Y) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public Long getY() { - return y; - } - - public void setY(Long y) { - this.y = y; - } - - /** - * A container for additional, undeclared properties. This is a holder for any undeclared - * properties as specified with the 'additionalProperties' keyword in the OAS document. - */ - private Map additionalProperties; - - /** - * Set the additional (undeclared) property with the specified name and value. If the property - * does not already exist, create it otherwise replace it. - * - * @param key The arbitrary key to set - * @param value The associated value - * @return SyntheticsTestResultBounds - */ - @JsonAnySetter - public SyntheticsTestResultBounds putAdditionalProperty(String key, Object value) { - if (this.additionalProperties == null) { - this.additionalProperties = new HashMap(); - } - this.additionalProperties.put(key, value); - return this; - } - - /** - * Return the additional (undeclared) property. - * - * @return The additional properties - */ - @JsonAnyGetter - public Map getAdditionalProperties() { - return additionalProperties; - } - - /** - * Return the additional (undeclared) property with the specified name. - * - * @param key The arbitrary key to get - * @return The specific additional property for the given key - */ - public Object getAdditionalProperty(String key) { - if (this.additionalProperties == null) { - return null; - } - return this.additionalProperties.get(key); - } - - /** Return true if this SyntheticsTestResultBounds object is equal to o. */ - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - SyntheticsTestResultBounds syntheticsTestResultBounds = (SyntheticsTestResultBounds) o; - return Objects.equals(this.height, syntheticsTestResultBounds.height) - && Objects.equals(this.width, syntheticsTestResultBounds.width) - && Objects.equals(this.x, syntheticsTestResultBounds.x) - && Objects.equals(this.y, syntheticsTestResultBounds.y) - && Objects.equals( - this.additionalProperties, syntheticsTestResultBounds.additionalProperties); - } - - @Override - public int hashCode() { - return Objects.hash(height, width, x, y, additionalProperties); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class SyntheticsTestResultBounds {\n"); - sb.append(" height: ").append(toIndentedString(height)).append("\n"); - sb.append(" width: ").append(toIndentedString(width)).append("\n"); - sb.append(" x: ").append(toIndentedString(x)).append("\n"); - sb.append(" y: ").append(toIndentedString(y)).append("\n"); - sb.append(" additionalProperties: ") - .append(toIndentedString(additionalProperties)) - .append("\n"); - sb.append('}'); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } -} diff --git a/src/main/java/com/datadog/api/client/v2/model/SyntheticsTestResultBrowserError.java b/src/main/java/com/datadog/api/client/v2/model/SyntheticsTestResultBrowserError.java deleted file mode 100644 index 2b9ca964f42..00000000000 --- a/src/main/java/com/datadog/api/client/v2/model/SyntheticsTestResultBrowserError.java +++ /dev/null @@ -1,282 +0,0 @@ -/* - * 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. - */ - -package com.datadog.api.client.v2.model; - -import com.fasterxml.jackson.annotation.JsonAnyGetter; -import com.fasterxml.jackson.annotation.JsonAnySetter; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; - -/** A browser error captured during a browser test step. */ -@JsonPropertyOrder({ - SyntheticsTestResultBrowserError.JSON_PROPERTY_DESCRIPTION, - SyntheticsTestResultBrowserError.JSON_PROPERTY_METHOD, - SyntheticsTestResultBrowserError.JSON_PROPERTY_NAME, - SyntheticsTestResultBrowserError.JSON_PROPERTY_STATUS, - SyntheticsTestResultBrowserError.JSON_PROPERTY_TYPE, - SyntheticsTestResultBrowserError.JSON_PROPERTY_URL -}) -@jakarta.annotation.Generated( - value = "https://github.com/DataDog/datadog-api-client-java/blob/master/.generator") -public class SyntheticsTestResultBrowserError { - @JsonIgnore public boolean unparsed = false; - public static final String JSON_PROPERTY_DESCRIPTION = "description"; - private String description; - - public static final String JSON_PROPERTY_METHOD = "method"; - private String method; - - public static final String JSON_PROPERTY_NAME = "name"; - private String name; - - public static final String JSON_PROPERTY_STATUS = "status"; - private Long status; - - public static final String JSON_PROPERTY_TYPE = "type"; - private String type; - - public static final String JSON_PROPERTY_URL = "url"; - private Map url = null; - - public SyntheticsTestResultBrowserError description(String description) { - this.description = description; - return this; - } - - /** - * Error description. - * - * @return description - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_DESCRIPTION) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getDescription() { - return description; - } - - public void setDescription(String description) { - this.description = description; - } - - public SyntheticsTestResultBrowserError method(String method) { - this.method = method; - return this; - } - - /** - * HTTP method associated with the error (for network errors). - * - * @return method - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_METHOD) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getMethod() { - return method; - } - - public void setMethod(String method) { - this.method = method; - } - - public SyntheticsTestResultBrowserError name(String name) { - this.name = name; - return this; - } - - /** - * Error name. - * - * @return name - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_NAME) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getName() { - return name; - } - - public void setName(String name) { - this.name = name; - } - - public SyntheticsTestResultBrowserError status(Long status) { - this.status = status; - return this; - } - - /** - * HTTP status code associated with the error (for network errors). - * - * @return status - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_STATUS) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public Long getStatus() { - return status; - } - - public void setStatus(Long status) { - this.status = status; - } - - public SyntheticsTestResultBrowserError type(String type) { - this.type = type; - return this; - } - - /** - * Type of the browser error. - * - * @return type - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_TYPE) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getType() { - return type; - } - - public void setType(String type) { - this.type = type; - } - - public SyntheticsTestResultBrowserError url(Map url) { - this.url = url; - return this; - } - - public SyntheticsTestResultBrowserError putUrlItem(String key, Object urlItem) { - if (this.url == null) { - this.url = new HashMap<>(); - } - this.url.put(key, urlItem); - return this; - } - - /** - * URL associated with the error. - * - * @return url - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_URL) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public Map getUrl() { - return url; - } - - public void setUrl(Map url) { - this.url = url; - } - - /** - * A container for additional, undeclared properties. This is a holder for any undeclared - * properties as specified with the 'additionalProperties' keyword in the OAS document. - */ - private Map additionalProperties; - - /** - * Set the additional (undeclared) property with the specified name and value. If the property - * does not already exist, create it otherwise replace it. - * - * @param key The arbitrary key to set - * @param value The associated value - * @return SyntheticsTestResultBrowserError - */ - @JsonAnySetter - public SyntheticsTestResultBrowserError putAdditionalProperty(String key, Object value) { - if (this.additionalProperties == null) { - this.additionalProperties = new HashMap(); - } - this.additionalProperties.put(key, value); - return this; - } - - /** - * Return the additional (undeclared) property. - * - * @return The additional properties - */ - @JsonAnyGetter - public Map getAdditionalProperties() { - return additionalProperties; - } - - /** - * Return the additional (undeclared) property with the specified name. - * - * @param key The arbitrary key to get - * @return The specific additional property for the given key - */ - public Object getAdditionalProperty(String key) { - if (this.additionalProperties == null) { - return null; - } - return this.additionalProperties.get(key); - } - - /** Return true if this SyntheticsTestResultBrowserError object is equal to o. */ - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - SyntheticsTestResultBrowserError syntheticsTestResultBrowserError = - (SyntheticsTestResultBrowserError) o; - return Objects.equals(this.description, syntheticsTestResultBrowserError.description) - && Objects.equals(this.method, syntheticsTestResultBrowserError.method) - && Objects.equals(this.name, syntheticsTestResultBrowserError.name) - && Objects.equals(this.status, syntheticsTestResultBrowserError.status) - && Objects.equals(this.type, syntheticsTestResultBrowserError.type) - && Objects.equals(this.url, syntheticsTestResultBrowserError.url) - && Objects.equals( - this.additionalProperties, syntheticsTestResultBrowserError.additionalProperties); - } - - @Override - public int hashCode() { - return Objects.hash(description, method, name, status, type, url, additionalProperties); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class SyntheticsTestResultBrowserError {\n"); - sb.append(" description: ").append(toIndentedString(description)).append("\n"); - sb.append(" method: ").append(toIndentedString(method)).append("\n"); - sb.append(" name: ").append(toIndentedString(name)).append("\n"); - sb.append(" status: ").append(toIndentedString(status)).append("\n"); - sb.append(" type: ").append(toIndentedString(type)).append("\n"); - sb.append(" url: ").append(toIndentedString(url)).append("\n"); - sb.append(" additionalProperties: ") - .append(toIndentedString(additionalProperties)) - .append("\n"); - sb.append('}'); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } -} diff --git a/src/main/java/com/datadog/api/client/v2/model/SyntheticsTestResultBucketKeys.java b/src/main/java/com/datadog/api/client/v2/model/SyntheticsTestResultBucketKeys.java deleted file mode 100644 index 3803cecf0eb..00000000000 --- a/src/main/java/com/datadog/api/client/v2/model/SyntheticsTestResultBucketKeys.java +++ /dev/null @@ -1,443 +0,0 @@ -/* - * 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. - */ - -package com.datadog.api.client.v2.model; - -import com.fasterxml.jackson.annotation.JsonAnyGetter; -import com.fasterxml.jackson.annotation.JsonAnySetter; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import java.util.ArrayList; -import java.util.HashMap; -import java.util.List; -import java.util.Map; -import java.util.Objects; - -/** Storage bucket keys for artifacts produced during a step or test. */ -@JsonPropertyOrder({ - SyntheticsTestResultBucketKeys.JSON_PROPERTY_AFTER_STEP_SCREENSHOT, - SyntheticsTestResultBucketKeys.JSON_PROPERTY_AFTER_TURN_SCREENSHOT, - SyntheticsTestResultBucketKeys.JSON_PROPERTY_ARTIFACTS, - SyntheticsTestResultBucketKeys.JSON_PROPERTY_BEFORE_STEP_SCREENSHOT, - SyntheticsTestResultBucketKeys.JSON_PROPERTY_BEFORE_TURN_SCREENSHOT, - SyntheticsTestResultBucketKeys.JSON_PROPERTY_CRASH_REPORT, - SyntheticsTestResultBucketKeys.JSON_PROPERTY_DEVICE_LOGS, - SyntheticsTestResultBucketKeys.JSON_PROPERTY_EMAIL_MESSAGES, - SyntheticsTestResultBucketKeys.JSON_PROPERTY_SCREENSHOT, - SyntheticsTestResultBucketKeys.JSON_PROPERTY_SNAPSHOT, - SyntheticsTestResultBucketKeys.JSON_PROPERTY_SOURCE -}) -@jakarta.annotation.Generated( - value = "https://github.com/DataDog/datadog-api-client-java/blob/master/.generator") -public class SyntheticsTestResultBucketKeys { - @JsonIgnore public boolean unparsed = false; - public static final String JSON_PROPERTY_AFTER_STEP_SCREENSHOT = "after_step_screenshot"; - private String afterStepScreenshot; - - public static final String JSON_PROPERTY_AFTER_TURN_SCREENSHOT = "after_turn_screenshot"; - private String afterTurnScreenshot; - - public static final String JSON_PROPERTY_ARTIFACTS = "artifacts"; - private String artifacts; - - public static final String JSON_PROPERTY_BEFORE_STEP_SCREENSHOT = "before_step_screenshot"; - private String beforeStepScreenshot; - - public static final String JSON_PROPERTY_BEFORE_TURN_SCREENSHOT = "before_turn_screenshot"; - private String beforeTurnScreenshot; - - public static final String JSON_PROPERTY_CRASH_REPORT = "crash_report"; - private String crashReport; - - public static final String JSON_PROPERTY_DEVICE_LOGS = "device_logs"; - private String deviceLogs; - - public static final String JSON_PROPERTY_EMAIL_MESSAGES = "email_messages"; - private List emailMessages = null; - - public static final String JSON_PROPERTY_SCREENSHOT = "screenshot"; - private String screenshot; - - public static final String JSON_PROPERTY_SNAPSHOT = "snapshot"; - private String snapshot; - - public static final String JSON_PROPERTY_SOURCE = "source"; - private String source; - - public SyntheticsTestResultBucketKeys afterStepScreenshot(String afterStepScreenshot) { - this.afterStepScreenshot = afterStepScreenshot; - return this; - } - - /** - * Key for the screenshot captured after the step (goal-based tests). - * - * @return afterStepScreenshot - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_AFTER_STEP_SCREENSHOT) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getAfterStepScreenshot() { - return afterStepScreenshot; - } - - public void setAfterStepScreenshot(String afterStepScreenshot) { - this.afterStepScreenshot = afterStepScreenshot; - } - - public SyntheticsTestResultBucketKeys afterTurnScreenshot(String afterTurnScreenshot) { - this.afterTurnScreenshot = afterTurnScreenshot; - return this; - } - - /** - * Key for the screenshot captured after the turn (goal-based tests). - * - * @return afterTurnScreenshot - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_AFTER_TURN_SCREENSHOT) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getAfterTurnScreenshot() { - return afterTurnScreenshot; - } - - public void setAfterTurnScreenshot(String afterTurnScreenshot) { - this.afterTurnScreenshot = afterTurnScreenshot; - } - - public SyntheticsTestResultBucketKeys artifacts(String artifacts) { - this.artifacts = artifacts; - return this; - } - - /** - * Key for miscellaneous artifacts. - * - * @return artifacts - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ARTIFACTS) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getArtifacts() { - return artifacts; - } - - public void setArtifacts(String artifacts) { - this.artifacts = artifacts; - } - - public SyntheticsTestResultBucketKeys beforeStepScreenshot(String beforeStepScreenshot) { - this.beforeStepScreenshot = beforeStepScreenshot; - return this; - } - - /** - * Key for the screenshot captured before the step (goal-based tests). - * - * @return beforeStepScreenshot - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_BEFORE_STEP_SCREENSHOT) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getBeforeStepScreenshot() { - return beforeStepScreenshot; - } - - public void setBeforeStepScreenshot(String beforeStepScreenshot) { - this.beforeStepScreenshot = beforeStepScreenshot; - } - - public SyntheticsTestResultBucketKeys beforeTurnScreenshot(String beforeTurnScreenshot) { - this.beforeTurnScreenshot = beforeTurnScreenshot; - return this; - } - - /** - * Key for the screenshot captured before the turn (goal-based tests). - * - * @return beforeTurnScreenshot - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_BEFORE_TURN_SCREENSHOT) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getBeforeTurnScreenshot() { - return beforeTurnScreenshot; - } - - public void setBeforeTurnScreenshot(String beforeTurnScreenshot) { - this.beforeTurnScreenshot = beforeTurnScreenshot; - } - - public SyntheticsTestResultBucketKeys crashReport(String crashReport) { - this.crashReport = crashReport; - return this; - } - - /** - * Key for a captured crash report. - * - * @return crashReport - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_CRASH_REPORT) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getCrashReport() { - return crashReport; - } - - public void setCrashReport(String crashReport) { - this.crashReport = crashReport; - } - - public SyntheticsTestResultBucketKeys deviceLogs(String deviceLogs) { - this.deviceLogs = deviceLogs; - return this; - } - - /** - * Key for captured device logs. - * - * @return deviceLogs - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_DEVICE_LOGS) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getDeviceLogs() { - return deviceLogs; - } - - public void setDeviceLogs(String deviceLogs) { - this.deviceLogs = deviceLogs; - } - - public SyntheticsTestResultBucketKeys emailMessages(List emailMessages) { - this.emailMessages = emailMessages; - return this; - } - - public SyntheticsTestResultBucketKeys addEmailMessagesItem(String emailMessagesItem) { - if (this.emailMessages == null) { - this.emailMessages = new ArrayList<>(); - } - this.emailMessages.add(emailMessagesItem); - return this; - } - - /** - * Keys for email message payloads captured by the step. - * - * @return emailMessages - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_EMAIL_MESSAGES) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public List getEmailMessages() { - return emailMessages; - } - - public void setEmailMessages(List emailMessages) { - this.emailMessages = emailMessages; - } - - public SyntheticsTestResultBucketKeys screenshot(String screenshot) { - this.screenshot = screenshot; - return this; - } - - /** - * Key for the captured screenshot. - * - * @return screenshot - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_SCREENSHOT) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getScreenshot() { - return screenshot; - } - - public void setScreenshot(String screenshot) { - this.screenshot = screenshot; - } - - public SyntheticsTestResultBucketKeys snapshot(String snapshot) { - this.snapshot = snapshot; - return this; - } - - /** - * Key for the captured DOM snapshot. - * - * @return snapshot - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_SNAPSHOT) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getSnapshot() { - return snapshot; - } - - public void setSnapshot(String snapshot) { - this.snapshot = snapshot; - } - - public SyntheticsTestResultBucketKeys source(String source) { - this.source = source; - return this; - } - - /** - * Key for the page source or element source. - * - * @return source - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_SOURCE) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getSource() { - return source; - } - - public void setSource(String source) { - this.source = source; - } - - /** - * A container for additional, undeclared properties. This is a holder for any undeclared - * properties as specified with the 'additionalProperties' keyword in the OAS document. - */ - private Map additionalProperties; - - /** - * Set the additional (undeclared) property with the specified name and value. If the property - * does not already exist, create it otherwise replace it. - * - * @param key The arbitrary key to set - * @param value The associated value - * @return SyntheticsTestResultBucketKeys - */ - @JsonAnySetter - public SyntheticsTestResultBucketKeys putAdditionalProperty(String key, Object value) { - if (this.additionalProperties == null) { - this.additionalProperties = new HashMap(); - } - this.additionalProperties.put(key, value); - return this; - } - - /** - * Return the additional (undeclared) property. - * - * @return The additional properties - */ - @JsonAnyGetter - public Map getAdditionalProperties() { - return additionalProperties; - } - - /** - * Return the additional (undeclared) property with the specified name. - * - * @param key The arbitrary key to get - * @return The specific additional property for the given key - */ - public Object getAdditionalProperty(String key) { - if (this.additionalProperties == null) { - return null; - } - return this.additionalProperties.get(key); - } - - /** Return true if this SyntheticsTestResultBucketKeys object is equal to o. */ - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - SyntheticsTestResultBucketKeys syntheticsTestResultBucketKeys = - (SyntheticsTestResultBucketKeys) o; - return Objects.equals( - this.afterStepScreenshot, syntheticsTestResultBucketKeys.afterStepScreenshot) - && Objects.equals( - this.afterTurnScreenshot, syntheticsTestResultBucketKeys.afterTurnScreenshot) - && Objects.equals(this.artifacts, syntheticsTestResultBucketKeys.artifacts) - && Objects.equals( - this.beforeStepScreenshot, syntheticsTestResultBucketKeys.beforeStepScreenshot) - && Objects.equals( - this.beforeTurnScreenshot, syntheticsTestResultBucketKeys.beforeTurnScreenshot) - && Objects.equals(this.crashReport, syntheticsTestResultBucketKeys.crashReport) - && Objects.equals(this.deviceLogs, syntheticsTestResultBucketKeys.deviceLogs) - && Objects.equals(this.emailMessages, syntheticsTestResultBucketKeys.emailMessages) - && Objects.equals(this.screenshot, syntheticsTestResultBucketKeys.screenshot) - && Objects.equals(this.snapshot, syntheticsTestResultBucketKeys.snapshot) - && Objects.equals(this.source, syntheticsTestResultBucketKeys.source) - && Objects.equals( - this.additionalProperties, syntheticsTestResultBucketKeys.additionalProperties); - } - - @Override - public int hashCode() { - return Objects.hash( - afterStepScreenshot, - afterTurnScreenshot, - artifacts, - beforeStepScreenshot, - beforeTurnScreenshot, - crashReport, - deviceLogs, - emailMessages, - screenshot, - snapshot, - source, - additionalProperties); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class SyntheticsTestResultBucketKeys {\n"); - sb.append(" afterStepScreenshot: ") - .append(toIndentedString(afterStepScreenshot)) - .append("\n"); - sb.append(" afterTurnScreenshot: ") - .append(toIndentedString(afterTurnScreenshot)) - .append("\n"); - sb.append(" artifacts: ").append(toIndentedString(artifacts)).append("\n"); - sb.append(" beforeStepScreenshot: ") - .append(toIndentedString(beforeStepScreenshot)) - .append("\n"); - sb.append(" beforeTurnScreenshot: ") - .append(toIndentedString(beforeTurnScreenshot)) - .append("\n"); - sb.append(" crashReport: ").append(toIndentedString(crashReport)).append("\n"); - sb.append(" deviceLogs: ").append(toIndentedString(deviceLogs)).append("\n"); - sb.append(" emailMessages: ").append(toIndentedString(emailMessages)).append("\n"); - sb.append(" screenshot: ").append(toIndentedString(screenshot)).append("\n"); - sb.append(" snapshot: ").append(toIndentedString(snapshot)).append("\n"); - sb.append(" source: ").append(toIndentedString(source)).append("\n"); - sb.append(" additionalProperties: ") - .append(toIndentedString(additionalProperties)) - .append("\n"); - sb.append('}'); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } -} diff --git a/src/main/java/com/datadog/api/client/v2/model/SyntheticsTestResultCI.java b/src/main/java/com/datadog/api/client/v2/model/SyntheticsTestResultCI.java deleted file mode 100644 index 5f158dbe444..00000000000 --- a/src/main/java/com/datadog/api/client/v2/model/SyntheticsTestResultCI.java +++ /dev/null @@ -1,221 +0,0 @@ -/* - * 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. - */ - -package com.datadog.api.client.v2.model; - -import com.fasterxml.jackson.annotation.JsonAnyGetter; -import com.fasterxml.jackson.annotation.JsonAnySetter; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; - -/** CI information associated with the test result. */ -@JsonPropertyOrder({ - SyntheticsTestResultCI.JSON_PROPERTY_PIPELINE, - SyntheticsTestResultCI.JSON_PROPERTY_PROVIDER, - SyntheticsTestResultCI.JSON_PROPERTY_STAGE, - SyntheticsTestResultCI.JSON_PROPERTY_WORKSPACE_PATH -}) -@jakarta.annotation.Generated( - value = "https://github.com/DataDog/datadog-api-client-java/blob/master/.generator") -public class SyntheticsTestResultCI { - @JsonIgnore public boolean unparsed = false; - public static final String JSON_PROPERTY_PIPELINE = "pipeline"; - private SyntheticsTestResultCIPipeline pipeline; - - public static final String JSON_PROPERTY_PROVIDER = "provider"; - private SyntheticsTestResultCIProvider provider; - - public static final String JSON_PROPERTY_STAGE = "stage"; - private SyntheticsTestResultCIStage stage; - - public static final String JSON_PROPERTY_WORKSPACE_PATH = "workspace_path"; - private String workspacePath; - - public SyntheticsTestResultCI pipeline(SyntheticsTestResultCIPipeline pipeline) { - this.pipeline = pipeline; - this.unparsed |= pipeline.unparsed; - return this; - } - - /** - * Details of the CI pipeline. - * - * @return pipeline - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_PIPELINE) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public SyntheticsTestResultCIPipeline getPipeline() { - return pipeline; - } - - public void setPipeline(SyntheticsTestResultCIPipeline pipeline) { - this.pipeline = pipeline; - } - - public SyntheticsTestResultCI provider(SyntheticsTestResultCIProvider provider) { - this.provider = provider; - this.unparsed |= provider.unparsed; - return this; - } - - /** - * Details of the CI provider. - * - * @return provider - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_PROVIDER) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public SyntheticsTestResultCIProvider getProvider() { - return provider; - } - - public void setProvider(SyntheticsTestResultCIProvider provider) { - this.provider = provider; - } - - public SyntheticsTestResultCI stage(SyntheticsTestResultCIStage stage) { - this.stage = stage; - this.unparsed |= stage.unparsed; - return this; - } - - /** - * Details of the CI stage. - * - * @return stage - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_STAGE) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public SyntheticsTestResultCIStage getStage() { - return stage; - } - - public void setStage(SyntheticsTestResultCIStage stage) { - this.stage = stage; - } - - public SyntheticsTestResultCI workspacePath(String workspacePath) { - this.workspacePath = workspacePath; - return this; - } - - /** - * Path of the workspace that ran the CI job. - * - * @return workspacePath - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_WORKSPACE_PATH) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getWorkspacePath() { - return workspacePath; - } - - public void setWorkspacePath(String workspacePath) { - this.workspacePath = workspacePath; - } - - /** - * A container for additional, undeclared properties. This is a holder for any undeclared - * properties as specified with the 'additionalProperties' keyword in the OAS document. - */ - private Map additionalProperties; - - /** - * Set the additional (undeclared) property with the specified name and value. If the property - * does not already exist, create it otherwise replace it. - * - * @param key The arbitrary key to set - * @param value The associated value - * @return SyntheticsTestResultCI - */ - @JsonAnySetter - public SyntheticsTestResultCI putAdditionalProperty(String key, Object value) { - if (this.additionalProperties == null) { - this.additionalProperties = new HashMap(); - } - this.additionalProperties.put(key, value); - return this; - } - - /** - * Return the additional (undeclared) property. - * - * @return The additional properties - */ - @JsonAnyGetter - public Map getAdditionalProperties() { - return additionalProperties; - } - - /** - * Return the additional (undeclared) property with the specified name. - * - * @param key The arbitrary key to get - * @return The specific additional property for the given key - */ - public Object getAdditionalProperty(String key) { - if (this.additionalProperties == null) { - return null; - } - return this.additionalProperties.get(key); - } - - /** Return true if this SyntheticsTestResultCI object is equal to o. */ - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - SyntheticsTestResultCI syntheticsTestResultCi = (SyntheticsTestResultCI) o; - return Objects.equals(this.pipeline, syntheticsTestResultCi.pipeline) - && Objects.equals(this.provider, syntheticsTestResultCi.provider) - && Objects.equals(this.stage, syntheticsTestResultCi.stage) - && Objects.equals(this.workspacePath, syntheticsTestResultCi.workspacePath) - && Objects.equals(this.additionalProperties, syntheticsTestResultCi.additionalProperties); - } - - @Override - public int hashCode() { - return Objects.hash(pipeline, provider, stage, workspacePath, additionalProperties); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class SyntheticsTestResultCI {\n"); - sb.append(" pipeline: ").append(toIndentedString(pipeline)).append("\n"); - sb.append(" provider: ").append(toIndentedString(provider)).append("\n"); - sb.append(" stage: ").append(toIndentedString(stage)).append("\n"); - sb.append(" workspacePath: ").append(toIndentedString(workspacePath)).append("\n"); - sb.append(" additionalProperties: ") - .append(toIndentedString(additionalProperties)) - .append("\n"); - sb.append('}'); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } -} diff --git a/src/main/java/com/datadog/api/client/v2/model/SyntheticsTestResultCIPipeline.java b/src/main/java/com/datadog/api/client/v2/model/SyntheticsTestResultCIPipeline.java deleted file mode 100644 index c424ca7a8ae..00000000000 --- a/src/main/java/com/datadog/api/client/v2/model/SyntheticsTestResultCIPipeline.java +++ /dev/null @@ -1,220 +0,0 @@ -/* - * 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. - */ - -package com.datadog.api.client.v2.model; - -import com.fasterxml.jackson.annotation.JsonAnyGetter; -import com.fasterxml.jackson.annotation.JsonAnySetter; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; - -/** Details of the CI pipeline. */ -@JsonPropertyOrder({ - SyntheticsTestResultCIPipeline.JSON_PROPERTY_ID, - SyntheticsTestResultCIPipeline.JSON_PROPERTY_NAME, - SyntheticsTestResultCIPipeline.JSON_PROPERTY_NUMBER, - SyntheticsTestResultCIPipeline.JSON_PROPERTY_URL -}) -@jakarta.annotation.Generated( - value = "https://github.com/DataDog/datadog-api-client-java/blob/master/.generator") -public class SyntheticsTestResultCIPipeline { - @JsonIgnore public boolean unparsed = false; - public static final String JSON_PROPERTY_ID = "id"; - private String id; - - public static final String JSON_PROPERTY_NAME = "name"; - private String name; - - public static final String JSON_PROPERTY_NUMBER = "number"; - private Long number; - - public static final String JSON_PROPERTY_URL = "url"; - private String url; - - public SyntheticsTestResultCIPipeline id(String id) { - this.id = id; - return this; - } - - /** - * Pipeline identifier. - * - * @return id - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ID) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getId() { - return id; - } - - public void setId(String id) { - this.id = id; - } - - public SyntheticsTestResultCIPipeline name(String name) { - this.name = name; - return this; - } - - /** - * Pipeline name. - * - * @return name - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_NAME) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getName() { - return name; - } - - public void setName(String name) { - this.name = name; - } - - public SyntheticsTestResultCIPipeline number(Long number) { - this.number = number; - return this; - } - - /** - * Pipeline number. - * - * @return number - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_NUMBER) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public Long getNumber() { - return number; - } - - public void setNumber(Long number) { - this.number = number; - } - - public SyntheticsTestResultCIPipeline url(String url) { - this.url = url; - return this; - } - - /** - * Pipeline URL. - * - * @return url - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_URL) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getUrl() { - return url; - } - - public void setUrl(String url) { - this.url = url; - } - - /** - * A container for additional, undeclared properties. This is a holder for any undeclared - * properties as specified with the 'additionalProperties' keyword in the OAS document. - */ - private Map additionalProperties; - - /** - * Set the additional (undeclared) property with the specified name and value. If the property - * does not already exist, create it otherwise replace it. - * - * @param key The arbitrary key to set - * @param value The associated value - * @return SyntheticsTestResultCIPipeline - */ - @JsonAnySetter - public SyntheticsTestResultCIPipeline putAdditionalProperty(String key, Object value) { - if (this.additionalProperties == null) { - this.additionalProperties = new HashMap(); - } - this.additionalProperties.put(key, value); - return this; - } - - /** - * Return the additional (undeclared) property. - * - * @return The additional properties - */ - @JsonAnyGetter - public Map getAdditionalProperties() { - return additionalProperties; - } - - /** - * Return the additional (undeclared) property with the specified name. - * - * @param key The arbitrary key to get - * @return The specific additional property for the given key - */ - public Object getAdditionalProperty(String key) { - if (this.additionalProperties == null) { - return null; - } - return this.additionalProperties.get(key); - } - - /** Return true if this SyntheticsTestResultCIPipeline object is equal to o. */ - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - SyntheticsTestResultCIPipeline syntheticsTestResultCiPipeline = - (SyntheticsTestResultCIPipeline) o; - return Objects.equals(this.id, syntheticsTestResultCiPipeline.id) - && Objects.equals(this.name, syntheticsTestResultCiPipeline.name) - && Objects.equals(this.number, syntheticsTestResultCiPipeline.number) - && Objects.equals(this.url, syntheticsTestResultCiPipeline.url) - && Objects.equals( - this.additionalProperties, syntheticsTestResultCiPipeline.additionalProperties); - } - - @Override - public int hashCode() { - return Objects.hash(id, name, number, url, additionalProperties); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class SyntheticsTestResultCIPipeline {\n"); - sb.append(" id: ").append(toIndentedString(id)).append("\n"); - sb.append(" name: ").append(toIndentedString(name)).append("\n"); - sb.append(" number: ").append(toIndentedString(number)).append("\n"); - sb.append(" url: ").append(toIndentedString(url)).append("\n"); - sb.append(" additionalProperties: ") - .append(toIndentedString(additionalProperties)) - .append("\n"); - sb.append('}'); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } -} diff --git a/src/main/java/com/datadog/api/client/v2/model/SyntheticsTestResultCIProvider.java b/src/main/java/com/datadog/api/client/v2/model/SyntheticsTestResultCIProvider.java deleted file mode 100644 index ed0bd2ed972..00000000000 --- a/src/main/java/com/datadog/api/client/v2/model/SyntheticsTestResultCIProvider.java +++ /dev/null @@ -1,137 +0,0 @@ -/* - * 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. - */ - -package com.datadog.api.client.v2.model; - -import com.fasterxml.jackson.annotation.JsonAnyGetter; -import com.fasterxml.jackson.annotation.JsonAnySetter; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; - -/** Details of the CI provider. */ -@JsonPropertyOrder({SyntheticsTestResultCIProvider.JSON_PROPERTY_NAME}) -@jakarta.annotation.Generated( - value = "https://github.com/DataDog/datadog-api-client-java/blob/master/.generator") -public class SyntheticsTestResultCIProvider { - @JsonIgnore public boolean unparsed = false; - public static final String JSON_PROPERTY_NAME = "name"; - private String name; - - public SyntheticsTestResultCIProvider name(String name) { - this.name = name; - return this; - } - - /** - * Provider name. - * - * @return name - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_NAME) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getName() { - return name; - } - - public void setName(String name) { - this.name = name; - } - - /** - * A container for additional, undeclared properties. This is a holder for any undeclared - * properties as specified with the 'additionalProperties' keyword in the OAS document. - */ - private Map additionalProperties; - - /** - * Set the additional (undeclared) property with the specified name and value. If the property - * does not already exist, create it otherwise replace it. - * - * @param key The arbitrary key to set - * @param value The associated value - * @return SyntheticsTestResultCIProvider - */ - @JsonAnySetter - public SyntheticsTestResultCIProvider putAdditionalProperty(String key, Object value) { - if (this.additionalProperties == null) { - this.additionalProperties = new HashMap(); - } - this.additionalProperties.put(key, value); - return this; - } - - /** - * Return the additional (undeclared) property. - * - * @return The additional properties - */ - @JsonAnyGetter - public Map getAdditionalProperties() { - return additionalProperties; - } - - /** - * Return the additional (undeclared) property with the specified name. - * - * @param key The arbitrary key to get - * @return The specific additional property for the given key - */ - public Object getAdditionalProperty(String key) { - if (this.additionalProperties == null) { - return null; - } - return this.additionalProperties.get(key); - } - - /** Return true if this SyntheticsTestResultCIProvider object is equal to o. */ - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - SyntheticsTestResultCIProvider syntheticsTestResultCiProvider = - (SyntheticsTestResultCIProvider) o; - return Objects.equals(this.name, syntheticsTestResultCiProvider.name) - && Objects.equals( - this.additionalProperties, syntheticsTestResultCiProvider.additionalProperties); - } - - @Override - public int hashCode() { - return Objects.hash(name, additionalProperties); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class SyntheticsTestResultCIProvider {\n"); - sb.append(" name: ").append(toIndentedString(name)).append("\n"); - sb.append(" additionalProperties: ") - .append(toIndentedString(additionalProperties)) - .append("\n"); - sb.append('}'); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } -} diff --git a/src/main/java/com/datadog/api/client/v2/model/SyntheticsTestResultCIStage.java b/src/main/java/com/datadog/api/client/v2/model/SyntheticsTestResultCIStage.java deleted file mode 100644 index b50e23957f9..00000000000 --- a/src/main/java/com/datadog/api/client/v2/model/SyntheticsTestResultCIStage.java +++ /dev/null @@ -1,136 +0,0 @@ -/* - * 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. - */ - -package com.datadog.api.client.v2.model; - -import com.fasterxml.jackson.annotation.JsonAnyGetter; -import com.fasterxml.jackson.annotation.JsonAnySetter; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; - -/** Details of the CI stage. */ -@JsonPropertyOrder({SyntheticsTestResultCIStage.JSON_PROPERTY_NAME}) -@jakarta.annotation.Generated( - value = "https://github.com/DataDog/datadog-api-client-java/blob/master/.generator") -public class SyntheticsTestResultCIStage { - @JsonIgnore public boolean unparsed = false; - public static final String JSON_PROPERTY_NAME = "name"; - private String name; - - public SyntheticsTestResultCIStage name(String name) { - this.name = name; - return this; - } - - /** - * Stage name. - * - * @return name - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_NAME) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getName() { - return name; - } - - public void setName(String name) { - this.name = name; - } - - /** - * A container for additional, undeclared properties. This is a holder for any undeclared - * properties as specified with the 'additionalProperties' keyword in the OAS document. - */ - private Map additionalProperties; - - /** - * Set the additional (undeclared) property with the specified name and value. If the property - * does not already exist, create it otherwise replace it. - * - * @param key The arbitrary key to set - * @param value The associated value - * @return SyntheticsTestResultCIStage - */ - @JsonAnySetter - public SyntheticsTestResultCIStage putAdditionalProperty(String key, Object value) { - if (this.additionalProperties == null) { - this.additionalProperties = new HashMap(); - } - this.additionalProperties.put(key, value); - return this; - } - - /** - * Return the additional (undeclared) property. - * - * @return The additional properties - */ - @JsonAnyGetter - public Map getAdditionalProperties() { - return additionalProperties; - } - - /** - * Return the additional (undeclared) property with the specified name. - * - * @param key The arbitrary key to get - * @return The specific additional property for the given key - */ - public Object getAdditionalProperty(String key) { - if (this.additionalProperties == null) { - return null; - } - return this.additionalProperties.get(key); - } - - /** Return true if this SyntheticsTestResultCIStage object is equal to o. */ - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - SyntheticsTestResultCIStage syntheticsTestResultCiStage = (SyntheticsTestResultCIStage) o; - return Objects.equals(this.name, syntheticsTestResultCiStage.name) - && Objects.equals( - this.additionalProperties, syntheticsTestResultCiStage.additionalProperties); - } - - @Override - public int hashCode() { - return Objects.hash(name, additionalProperties); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class SyntheticsTestResultCIStage {\n"); - sb.append(" name: ").append(toIndentedString(name)).append("\n"); - sb.append(" additionalProperties: ") - .append(toIndentedString(additionalProperties)) - .append("\n"); - sb.append('}'); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } -} diff --git a/src/main/java/com/datadog/api/client/v2/model/SyntheticsTestResultCdnCacheStatus.java b/src/main/java/com/datadog/api/client/v2/model/SyntheticsTestResultCdnCacheStatus.java deleted file mode 100644 index d73a257f072..00000000000 --- a/src/main/java/com/datadog/api/client/v2/model/SyntheticsTestResultCdnCacheStatus.java +++ /dev/null @@ -1,166 +0,0 @@ -/* - * 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. - */ - -package com.datadog.api.client.v2.model; - -import com.fasterxml.jackson.annotation.JsonAnyGetter; -import com.fasterxml.jackson.annotation.JsonAnySetter; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; - -/** Cache status reported by the CDN for the response. */ -@JsonPropertyOrder({ - SyntheticsTestResultCdnCacheStatus.JSON_PROPERTY_CACHED, - SyntheticsTestResultCdnCacheStatus.JSON_PROPERTY_STATUS -}) -@jakarta.annotation.Generated( - value = "https://github.com/DataDog/datadog-api-client-java/blob/master/.generator") -public class SyntheticsTestResultCdnCacheStatus { - @JsonIgnore public boolean unparsed = false; - public static final String JSON_PROPERTY_CACHED = "cached"; - private Boolean cached; - - public static final String JSON_PROPERTY_STATUS = "status"; - private String status; - - public SyntheticsTestResultCdnCacheStatus cached(Boolean cached) { - this.cached = cached; - return this; - } - - /** - * Whether the response was served from the CDN cache. - * - * @return cached - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_CACHED) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public Boolean getCached() { - return cached; - } - - public void setCached(Boolean cached) { - this.cached = cached; - } - - public SyntheticsTestResultCdnCacheStatus status(String status) { - this.status = status; - return this; - } - - /** - * Raw cache status string reported by the CDN. - * - * @return status - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_STATUS) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getStatus() { - return status; - } - - public void setStatus(String status) { - this.status = status; - } - - /** - * A container for additional, undeclared properties. This is a holder for any undeclared - * properties as specified with the 'additionalProperties' keyword in the OAS document. - */ - private Map additionalProperties; - - /** - * Set the additional (undeclared) property with the specified name and value. If the property - * does not already exist, create it otherwise replace it. - * - * @param key The arbitrary key to set - * @param value The associated value - * @return SyntheticsTestResultCdnCacheStatus - */ - @JsonAnySetter - public SyntheticsTestResultCdnCacheStatus putAdditionalProperty(String key, Object value) { - if (this.additionalProperties == null) { - this.additionalProperties = new HashMap(); - } - this.additionalProperties.put(key, value); - return this; - } - - /** - * Return the additional (undeclared) property. - * - * @return The additional properties - */ - @JsonAnyGetter - public Map getAdditionalProperties() { - return additionalProperties; - } - - /** - * Return the additional (undeclared) property with the specified name. - * - * @param key The arbitrary key to get - * @return The specific additional property for the given key - */ - public Object getAdditionalProperty(String key) { - if (this.additionalProperties == null) { - return null; - } - return this.additionalProperties.get(key); - } - - /** Return true if this SyntheticsTestResultCdnCacheStatus object is equal to o. */ - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - SyntheticsTestResultCdnCacheStatus syntheticsTestResultCdnCacheStatus = - (SyntheticsTestResultCdnCacheStatus) o; - return Objects.equals(this.cached, syntheticsTestResultCdnCacheStatus.cached) - && Objects.equals(this.status, syntheticsTestResultCdnCacheStatus.status) - && Objects.equals( - this.additionalProperties, syntheticsTestResultCdnCacheStatus.additionalProperties); - } - - @Override - public int hashCode() { - return Objects.hash(cached, status, additionalProperties); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class SyntheticsTestResultCdnCacheStatus {\n"); - sb.append(" cached: ").append(toIndentedString(cached)).append("\n"); - sb.append(" status: ").append(toIndentedString(status)).append("\n"); - sb.append(" additionalProperties: ") - .append(toIndentedString(additionalProperties)) - .append("\n"); - sb.append('}'); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } -} diff --git a/src/main/java/com/datadog/api/client/v2/model/SyntheticsTestResultCdnProviderInfo.java b/src/main/java/com/datadog/api/client/v2/model/SyntheticsTestResultCdnProviderInfo.java deleted file mode 100644 index b1e151d7fc0..00000000000 --- a/src/main/java/com/datadog/api/client/v2/model/SyntheticsTestResultCdnProviderInfo.java +++ /dev/null @@ -1,167 +0,0 @@ -/* - * 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. - */ - -package com.datadog.api.client.v2.model; - -import com.fasterxml.jackson.annotation.JsonAnyGetter; -import com.fasterxml.jackson.annotation.JsonAnySetter; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; - -/** CDN provider details inferred from response headers. */ -@JsonPropertyOrder({ - SyntheticsTestResultCdnProviderInfo.JSON_PROPERTY_CACHE, - SyntheticsTestResultCdnProviderInfo.JSON_PROPERTY_PROVIDER -}) -@jakarta.annotation.Generated( - value = "https://github.com/DataDog/datadog-api-client-java/blob/master/.generator") -public class SyntheticsTestResultCdnProviderInfo { - @JsonIgnore public boolean unparsed = false; - public static final String JSON_PROPERTY_CACHE = "cache"; - private SyntheticsTestResultCdnCacheStatus cache; - - public static final String JSON_PROPERTY_PROVIDER = "provider"; - private String provider; - - public SyntheticsTestResultCdnProviderInfo cache(SyntheticsTestResultCdnCacheStatus cache) { - this.cache = cache; - this.unparsed |= cache.unparsed; - return this; - } - - /** - * Cache status reported by the CDN for the response. - * - * @return cache - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_CACHE) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public SyntheticsTestResultCdnCacheStatus getCache() { - return cache; - } - - public void setCache(SyntheticsTestResultCdnCacheStatus cache) { - this.cache = cache; - } - - public SyntheticsTestResultCdnProviderInfo provider(String provider) { - this.provider = provider; - return this; - } - - /** - * Name of the CDN provider. - * - * @return provider - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_PROVIDER) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getProvider() { - return provider; - } - - public void setProvider(String provider) { - this.provider = provider; - } - - /** - * A container for additional, undeclared properties. This is a holder for any undeclared - * properties as specified with the 'additionalProperties' keyword in the OAS document. - */ - private Map additionalProperties; - - /** - * Set the additional (undeclared) property with the specified name and value. If the property - * does not already exist, create it otherwise replace it. - * - * @param key The arbitrary key to set - * @param value The associated value - * @return SyntheticsTestResultCdnProviderInfo - */ - @JsonAnySetter - public SyntheticsTestResultCdnProviderInfo putAdditionalProperty(String key, Object value) { - if (this.additionalProperties == null) { - this.additionalProperties = new HashMap(); - } - this.additionalProperties.put(key, value); - return this; - } - - /** - * Return the additional (undeclared) property. - * - * @return The additional properties - */ - @JsonAnyGetter - public Map getAdditionalProperties() { - return additionalProperties; - } - - /** - * Return the additional (undeclared) property with the specified name. - * - * @param key The arbitrary key to get - * @return The specific additional property for the given key - */ - public Object getAdditionalProperty(String key) { - if (this.additionalProperties == null) { - return null; - } - return this.additionalProperties.get(key); - } - - /** Return true if this SyntheticsTestResultCdnProviderInfo object is equal to o. */ - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - SyntheticsTestResultCdnProviderInfo syntheticsTestResultCdnProviderInfo = - (SyntheticsTestResultCdnProviderInfo) o; - return Objects.equals(this.cache, syntheticsTestResultCdnProviderInfo.cache) - && Objects.equals(this.provider, syntheticsTestResultCdnProviderInfo.provider) - && Objects.equals( - this.additionalProperties, syntheticsTestResultCdnProviderInfo.additionalProperties); - } - - @Override - public int hashCode() { - return Objects.hash(cache, provider, additionalProperties); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class SyntheticsTestResultCdnProviderInfo {\n"); - sb.append(" cache: ").append(toIndentedString(cache)).append("\n"); - sb.append(" provider: ").append(toIndentedString(provider)).append("\n"); - sb.append(" additionalProperties: ") - .append(toIndentedString(additionalProperties)) - .append("\n"); - sb.append('}'); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } -} diff --git a/src/main/java/com/datadog/api/client/v2/model/SyntheticsTestResultCdnResource.java b/src/main/java/com/datadog/api/client/v2/model/SyntheticsTestResultCdnResource.java deleted file mode 100644 index e6483c68d62..00000000000 --- a/src/main/java/com/datadog/api/client/v2/model/SyntheticsTestResultCdnResource.java +++ /dev/null @@ -1,229 +0,0 @@ -/* - * 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. - */ - -package com.datadog.api.client.v2.model; - -import com.fasterxml.jackson.annotation.JsonAnyGetter; -import com.fasterxml.jackson.annotation.JsonAnySetter; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; - -/** A CDN resource encountered while executing a browser step. */ -@JsonPropertyOrder({ - SyntheticsTestResultCdnResource.JSON_PROPERTY_CDN, - SyntheticsTestResultCdnResource.JSON_PROPERTY_RESOLVED_IP, - SyntheticsTestResultCdnResource.JSON_PROPERTY_TIMESTAMP, - SyntheticsTestResultCdnResource.JSON_PROPERTY_TIMINGS -}) -@jakarta.annotation.Generated( - value = "https://github.com/DataDog/datadog-api-client-java/blob/master/.generator") -public class SyntheticsTestResultCdnResource { - @JsonIgnore public boolean unparsed = false; - public static final String JSON_PROPERTY_CDN = "cdn"; - private SyntheticsTestResultCdnProviderInfo cdn; - - public static final String JSON_PROPERTY_RESOLVED_IP = "resolved_ip"; - private String resolvedIp; - - public static final String JSON_PROPERTY_TIMESTAMP = "timestamp"; - private Long timestamp; - - public static final String JSON_PROPERTY_TIMINGS = "timings"; - private Map timings = null; - - public SyntheticsTestResultCdnResource cdn(SyntheticsTestResultCdnProviderInfo cdn) { - this.cdn = cdn; - this.unparsed |= cdn.unparsed; - return this; - } - - /** - * CDN provider details inferred from response headers. - * - * @return cdn - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_CDN) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public SyntheticsTestResultCdnProviderInfo getCdn() { - return cdn; - } - - public void setCdn(SyntheticsTestResultCdnProviderInfo cdn) { - this.cdn = cdn; - } - - public SyntheticsTestResultCdnResource resolvedIp(String resolvedIp) { - this.resolvedIp = resolvedIp; - return this; - } - - /** - * Resolved IP address for the CDN resource. - * - * @return resolvedIp - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_RESOLVED_IP) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getResolvedIp() { - return resolvedIp; - } - - public void setResolvedIp(String resolvedIp) { - this.resolvedIp = resolvedIp; - } - - public SyntheticsTestResultCdnResource timestamp(Long timestamp) { - this.timestamp = timestamp; - return this; - } - - /** - * Unix timestamp (ms) of when the resource was fetched. - * - * @return timestamp - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_TIMESTAMP) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public Long getTimestamp() { - return timestamp; - } - - public void setTimestamp(Long timestamp) { - this.timestamp = timestamp; - } - - public SyntheticsTestResultCdnResource timings(Map timings) { - this.timings = timings; - return this; - } - - public SyntheticsTestResultCdnResource putTimingsItem(String key, Object timingsItem) { - if (this.timings == null) { - this.timings = new HashMap<>(); - } - this.timings.put(key, timingsItem); - return this; - } - - /** - * Timing breakdown for fetching the CDN resource. - * - * @return timings - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_TIMINGS) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public Map getTimings() { - return timings; - } - - public void setTimings(Map timings) { - this.timings = timings; - } - - /** - * A container for additional, undeclared properties. This is a holder for any undeclared - * properties as specified with the 'additionalProperties' keyword in the OAS document. - */ - private Map additionalProperties; - - /** - * Set the additional (undeclared) property with the specified name and value. If the property - * does not already exist, create it otherwise replace it. - * - * @param key The arbitrary key to set - * @param value The associated value - * @return SyntheticsTestResultCdnResource - */ - @JsonAnySetter - public SyntheticsTestResultCdnResource putAdditionalProperty(String key, Object value) { - if (this.additionalProperties == null) { - this.additionalProperties = new HashMap(); - } - this.additionalProperties.put(key, value); - return this; - } - - /** - * Return the additional (undeclared) property. - * - * @return The additional properties - */ - @JsonAnyGetter - public Map getAdditionalProperties() { - return additionalProperties; - } - - /** - * Return the additional (undeclared) property with the specified name. - * - * @param key The arbitrary key to get - * @return The specific additional property for the given key - */ - public Object getAdditionalProperty(String key) { - if (this.additionalProperties == null) { - return null; - } - return this.additionalProperties.get(key); - } - - /** Return true if this SyntheticsTestResultCdnResource object is equal to o. */ - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - SyntheticsTestResultCdnResource syntheticsTestResultCdnResource = - (SyntheticsTestResultCdnResource) o; - return Objects.equals(this.cdn, syntheticsTestResultCdnResource.cdn) - && Objects.equals(this.resolvedIp, syntheticsTestResultCdnResource.resolvedIp) - && Objects.equals(this.timestamp, syntheticsTestResultCdnResource.timestamp) - && Objects.equals(this.timings, syntheticsTestResultCdnResource.timings) - && Objects.equals( - this.additionalProperties, syntheticsTestResultCdnResource.additionalProperties); - } - - @Override - public int hashCode() { - return Objects.hash(cdn, resolvedIp, timestamp, timings, additionalProperties); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class SyntheticsTestResultCdnResource {\n"); - sb.append(" cdn: ").append(toIndentedString(cdn)).append("\n"); - sb.append(" resolvedIp: ").append(toIndentedString(resolvedIp)).append("\n"); - sb.append(" timestamp: ").append(toIndentedString(timestamp)).append("\n"); - sb.append(" timings: ").append(toIndentedString(timings)).append("\n"); - sb.append(" additionalProperties: ") - .append(toIndentedString(additionalProperties)) - .append("\n"); - sb.append('}'); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } -} diff --git a/src/main/java/com/datadog/api/client/v2/model/SyntheticsTestResultCertificate.java b/src/main/java/com/datadog/api/client/v2/model/SyntheticsTestResultCertificate.java deleted file mode 100644 index 0037c08342b..00000000000 --- a/src/main/java/com/datadog/api/client/v2/model/SyntheticsTestResultCertificate.java +++ /dev/null @@ -1,476 +0,0 @@ -/* - * 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. - */ - -package com.datadog.api.client.v2.model; - -import com.fasterxml.jackson.annotation.JsonAnyGetter; -import com.fasterxml.jackson.annotation.JsonAnySetter; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import java.util.ArrayList; -import java.util.HashMap; -import java.util.List; -import java.util.Map; -import java.util.Objects; - -/** SSL/TLS certificate information returned from an SSL test. */ -@JsonPropertyOrder({ - SyntheticsTestResultCertificate.JSON_PROPERTY_CIPHER, - SyntheticsTestResultCertificate.JSON_PROPERTY_EXPONENT, - SyntheticsTestResultCertificate.JSON_PROPERTY_EXT_KEY_USAGE, - SyntheticsTestResultCertificate.JSON_PROPERTY_FINGERPRINT, - SyntheticsTestResultCertificate.JSON_PROPERTY_FINGERPRINT256, - SyntheticsTestResultCertificate.JSON_PROPERTY_ISSUER, - SyntheticsTestResultCertificate.JSON_PROPERTY_MODULUS, - SyntheticsTestResultCertificate.JSON_PROPERTY_PROTOCOL, - SyntheticsTestResultCertificate.JSON_PROPERTY_SERIAL_NUMBER, - SyntheticsTestResultCertificate.JSON_PROPERTY_SUBJECT, - SyntheticsTestResultCertificate.JSON_PROPERTY_TLS_VERSION, - SyntheticsTestResultCertificate.JSON_PROPERTY_VALID -}) -@jakarta.annotation.Generated( - value = "https://github.com/DataDog/datadog-api-client-java/blob/master/.generator") -public class SyntheticsTestResultCertificate { - @JsonIgnore public boolean unparsed = false; - public static final String JSON_PROPERTY_CIPHER = "cipher"; - private String cipher; - - public static final String JSON_PROPERTY_EXPONENT = "exponent"; - private Long exponent; - - public static final String JSON_PROPERTY_EXT_KEY_USAGE = "ext_key_usage"; - private List extKeyUsage = null; - - public static final String JSON_PROPERTY_FINGERPRINT = "fingerprint"; - private String fingerprint; - - public static final String JSON_PROPERTY_FINGERPRINT256 = "fingerprint256"; - private String fingerprint256; - - public static final String JSON_PROPERTY_ISSUER = "issuer"; - private Map issuer = null; - - public static final String JSON_PROPERTY_MODULUS = "modulus"; - private String modulus; - - public static final String JSON_PROPERTY_PROTOCOL = "protocol"; - private String protocol; - - public static final String JSON_PROPERTY_SERIAL_NUMBER = "serial_number"; - private String serialNumber; - - public static final String JSON_PROPERTY_SUBJECT = "subject"; - private Map subject = null; - - public static final String JSON_PROPERTY_TLS_VERSION = "tls_version"; - private Double tlsVersion; - - public static final String JSON_PROPERTY_VALID = "valid"; - private SyntheticsTestResultCertificateValidity valid; - - public SyntheticsTestResultCertificate cipher(String cipher) { - this.cipher = cipher; - return this; - } - - /** - * Cipher used for the TLS connection. - * - * @return cipher - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_CIPHER) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getCipher() { - return cipher; - } - - public void setCipher(String cipher) { - this.cipher = cipher; - } - - public SyntheticsTestResultCertificate exponent(Long exponent) { - this.exponent = exponent; - return this; - } - - /** - * RSA exponent of the certificate. - * - * @return exponent - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_EXPONENT) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public Long getExponent() { - return exponent; - } - - public void setExponent(Long exponent) { - this.exponent = exponent; - } - - public SyntheticsTestResultCertificate extKeyUsage(List extKeyUsage) { - this.extKeyUsage = extKeyUsage; - return this; - } - - public SyntheticsTestResultCertificate addExtKeyUsageItem(String extKeyUsageItem) { - if (this.extKeyUsage == null) { - this.extKeyUsage = new ArrayList<>(); - } - this.extKeyUsage.add(extKeyUsageItem); - return this; - } - - /** - * Extended key usage extensions for the certificate. - * - * @return extKeyUsage - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_EXT_KEY_USAGE) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public List getExtKeyUsage() { - return extKeyUsage; - } - - public void setExtKeyUsage(List extKeyUsage) { - this.extKeyUsage = extKeyUsage; - } - - public SyntheticsTestResultCertificate fingerprint(String fingerprint) { - this.fingerprint = fingerprint; - return this; - } - - /** - * SHA-1 fingerprint of the certificate. - * - * @return fingerprint - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_FINGERPRINT) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getFingerprint() { - return fingerprint; - } - - public void setFingerprint(String fingerprint) { - this.fingerprint = fingerprint; - } - - public SyntheticsTestResultCertificate fingerprint256(String fingerprint256) { - this.fingerprint256 = fingerprint256; - return this; - } - - /** - * SHA-256 fingerprint of the certificate. - * - * @return fingerprint256 - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_FINGERPRINT256) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getFingerprint256() { - return fingerprint256; - } - - public void setFingerprint256(String fingerprint256) { - this.fingerprint256 = fingerprint256; - } - - public SyntheticsTestResultCertificate issuer(Map issuer) { - this.issuer = issuer; - return this; - } - - public SyntheticsTestResultCertificate putIssuerItem(String key, String issuerItem) { - if (this.issuer == null) { - this.issuer = new HashMap<>(); - } - this.issuer.put(key, issuerItem); - return this; - } - - /** - * Certificate issuer details. - * - * @return issuer - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ISSUER) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public Map getIssuer() { - return issuer; - } - - public void setIssuer(Map issuer) { - this.issuer = issuer; - } - - public SyntheticsTestResultCertificate modulus(String modulus) { - this.modulus = modulus; - return this; - } - - /** - * RSA modulus of the certificate. - * - * @return modulus - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_MODULUS) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getModulus() { - return modulus; - } - - public void setModulus(String modulus) { - this.modulus = modulus; - } - - public SyntheticsTestResultCertificate protocol(String protocol) { - this.protocol = protocol; - return this; - } - - /** - * TLS protocol used (for example, TLSv1.2). - * - * @return protocol - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_PROTOCOL) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getProtocol() { - return protocol; - } - - public void setProtocol(String protocol) { - this.protocol = protocol; - } - - public SyntheticsTestResultCertificate serialNumber(String serialNumber) { - this.serialNumber = serialNumber; - return this; - } - - /** - * Serial number of the certificate. - * - * @return serialNumber - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_SERIAL_NUMBER) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getSerialNumber() { - return serialNumber; - } - - public void setSerialNumber(String serialNumber) { - this.serialNumber = serialNumber; - } - - public SyntheticsTestResultCertificate subject(Map subject) { - this.subject = subject; - return this; - } - - public SyntheticsTestResultCertificate putSubjectItem(String key, String subjectItem) { - if (this.subject == null) { - this.subject = new HashMap<>(); - } - this.subject.put(key, subjectItem); - return this; - } - - /** - * Certificate subject details. - * - * @return subject - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_SUBJECT) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public Map getSubject() { - return subject; - } - - public void setSubject(Map subject) { - this.subject = subject; - } - - public SyntheticsTestResultCertificate tlsVersion(Double tlsVersion) { - this.tlsVersion = tlsVersion; - return this; - } - - /** - * TLS protocol version. - * - * @return tlsVersion - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_TLS_VERSION) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public Double getTlsVersion() { - return tlsVersion; - } - - public void setTlsVersion(Double tlsVersion) { - this.tlsVersion = tlsVersion; - } - - public SyntheticsTestResultCertificate valid(SyntheticsTestResultCertificateValidity valid) { - this.valid = valid; - this.unparsed |= valid.unparsed; - return this; - } - - /** - * Validity window of a certificate. - * - * @return valid - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_VALID) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public SyntheticsTestResultCertificateValidity getValid() { - return valid; - } - - public void setValid(SyntheticsTestResultCertificateValidity valid) { - this.valid = valid; - } - - /** - * A container for additional, undeclared properties. This is a holder for any undeclared - * properties as specified with the 'additionalProperties' keyword in the OAS document. - */ - private Map additionalProperties; - - /** - * Set the additional (undeclared) property with the specified name and value. If the property - * does not already exist, create it otherwise replace it. - * - * @param key The arbitrary key to set - * @param value The associated value - * @return SyntheticsTestResultCertificate - */ - @JsonAnySetter - public SyntheticsTestResultCertificate putAdditionalProperty(String key, Object value) { - if (this.additionalProperties == null) { - this.additionalProperties = new HashMap(); - } - this.additionalProperties.put(key, value); - return this; - } - - /** - * Return the additional (undeclared) property. - * - * @return The additional properties - */ - @JsonAnyGetter - public Map getAdditionalProperties() { - return additionalProperties; - } - - /** - * Return the additional (undeclared) property with the specified name. - * - * @param key The arbitrary key to get - * @return The specific additional property for the given key - */ - public Object getAdditionalProperty(String key) { - if (this.additionalProperties == null) { - return null; - } - return this.additionalProperties.get(key); - } - - /** Return true if this SyntheticsTestResultCertificate object is equal to o. */ - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - SyntheticsTestResultCertificate syntheticsTestResultCertificate = - (SyntheticsTestResultCertificate) o; - return Objects.equals(this.cipher, syntheticsTestResultCertificate.cipher) - && Objects.equals(this.exponent, syntheticsTestResultCertificate.exponent) - && Objects.equals(this.extKeyUsage, syntheticsTestResultCertificate.extKeyUsage) - && Objects.equals(this.fingerprint, syntheticsTestResultCertificate.fingerprint) - && Objects.equals(this.fingerprint256, syntheticsTestResultCertificate.fingerprint256) - && Objects.equals(this.issuer, syntheticsTestResultCertificate.issuer) - && Objects.equals(this.modulus, syntheticsTestResultCertificate.modulus) - && Objects.equals(this.protocol, syntheticsTestResultCertificate.protocol) - && Objects.equals(this.serialNumber, syntheticsTestResultCertificate.serialNumber) - && Objects.equals(this.subject, syntheticsTestResultCertificate.subject) - && Objects.equals(this.tlsVersion, syntheticsTestResultCertificate.tlsVersion) - && Objects.equals(this.valid, syntheticsTestResultCertificate.valid) - && Objects.equals( - this.additionalProperties, syntheticsTestResultCertificate.additionalProperties); - } - - @Override - public int hashCode() { - return Objects.hash( - cipher, - exponent, - extKeyUsage, - fingerprint, - fingerprint256, - issuer, - modulus, - protocol, - serialNumber, - subject, - tlsVersion, - valid, - additionalProperties); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class SyntheticsTestResultCertificate {\n"); - sb.append(" cipher: ").append(toIndentedString(cipher)).append("\n"); - sb.append(" exponent: ").append(toIndentedString(exponent)).append("\n"); - sb.append(" extKeyUsage: ").append(toIndentedString(extKeyUsage)).append("\n"); - sb.append(" fingerprint: ").append(toIndentedString(fingerprint)).append("\n"); - sb.append(" fingerprint256: ").append(toIndentedString(fingerprint256)).append("\n"); - sb.append(" issuer: ").append(toIndentedString(issuer)).append("\n"); - sb.append(" modulus: ").append(toIndentedString(modulus)).append("\n"); - sb.append(" protocol: ").append(toIndentedString(protocol)).append("\n"); - sb.append(" serialNumber: ").append(toIndentedString(serialNumber)).append("\n"); - sb.append(" subject: ").append(toIndentedString(subject)).append("\n"); - sb.append(" tlsVersion: ").append(toIndentedString(tlsVersion)).append("\n"); - sb.append(" valid: ").append(toIndentedString(valid)).append("\n"); - sb.append(" additionalProperties: ") - .append(toIndentedString(additionalProperties)) - .append("\n"); - sb.append('}'); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } -} diff --git a/src/main/java/com/datadog/api/client/v2/model/SyntheticsTestResultCertificateValidity.java b/src/main/java/com/datadog/api/client/v2/model/SyntheticsTestResultCertificateValidity.java deleted file mode 100644 index f1ab70a291c..00000000000 --- a/src/main/java/com/datadog/api/client/v2/model/SyntheticsTestResultCertificateValidity.java +++ /dev/null @@ -1,167 +0,0 @@ -/* - * 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. - */ - -package com.datadog.api.client.v2.model; - -import com.fasterxml.jackson.annotation.JsonAnyGetter; -import com.fasterxml.jackson.annotation.JsonAnySetter; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; - -/** Validity window of a certificate. */ -@JsonPropertyOrder({ - SyntheticsTestResultCertificateValidity.JSON_PROPERTY_FROM, - SyntheticsTestResultCertificateValidity.JSON_PROPERTY_TO -}) -@jakarta.annotation.Generated( - value = "https://github.com/DataDog/datadog-api-client-java/blob/master/.generator") -public class SyntheticsTestResultCertificateValidity { - @JsonIgnore public boolean unparsed = false; - public static final String JSON_PROPERTY_FROM = "from"; - private Long from; - - public static final String JSON_PROPERTY_TO = "to"; - private Long to; - - public SyntheticsTestResultCertificateValidity from(Long from) { - this.from = from; - return this; - } - - /** - * Unix timestamp (ms) of when the certificate became valid. - * - * @return from - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_FROM) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public Long getFrom() { - return from; - } - - public void setFrom(Long from) { - this.from = from; - } - - public SyntheticsTestResultCertificateValidity to(Long to) { - this.to = to; - return this; - } - - /** - * Unix timestamp (ms) of when the certificate expires. - * - * @return to - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_TO) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public Long getTo() { - return to; - } - - public void setTo(Long to) { - this.to = to; - } - - /** - * A container for additional, undeclared properties. This is a holder for any undeclared - * properties as specified with the 'additionalProperties' keyword in the OAS document. - */ - private Map additionalProperties; - - /** - * Set the additional (undeclared) property with the specified name and value. If the property - * does not already exist, create it otherwise replace it. - * - * @param key The arbitrary key to set - * @param value The associated value - * @return SyntheticsTestResultCertificateValidity - */ - @JsonAnySetter - public SyntheticsTestResultCertificateValidity putAdditionalProperty(String key, Object value) { - if (this.additionalProperties == null) { - this.additionalProperties = new HashMap(); - } - this.additionalProperties.put(key, value); - return this; - } - - /** - * Return the additional (undeclared) property. - * - * @return The additional properties - */ - @JsonAnyGetter - public Map getAdditionalProperties() { - return additionalProperties; - } - - /** - * Return the additional (undeclared) property with the specified name. - * - * @param key The arbitrary key to get - * @return The specific additional property for the given key - */ - public Object getAdditionalProperty(String key) { - if (this.additionalProperties == null) { - return null; - } - return this.additionalProperties.get(key); - } - - /** Return true if this SyntheticsTestResultCertificateValidity object is equal to o. */ - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - SyntheticsTestResultCertificateValidity syntheticsTestResultCertificateValidity = - (SyntheticsTestResultCertificateValidity) o; - return Objects.equals(this.from, syntheticsTestResultCertificateValidity.from) - && Objects.equals(this.to, syntheticsTestResultCertificateValidity.to) - && Objects.equals( - this.additionalProperties, - syntheticsTestResultCertificateValidity.additionalProperties); - } - - @Override - public int hashCode() { - return Objects.hash(from, to, additionalProperties); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class SyntheticsTestResultCertificateValidity {\n"); - sb.append(" from: ").append(toIndentedString(from)).append("\n"); - sb.append(" to: ").append(toIndentedString(to)).append("\n"); - sb.append(" additionalProperties: ") - .append(toIndentedString(additionalProperties)) - .append("\n"); - sb.append('}'); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } -} diff --git a/src/main/java/com/datadog/api/client/v2/model/SyntheticsTestResultData.java b/src/main/java/com/datadog/api/client/v2/model/SyntheticsTestResultData.java deleted file mode 100644 index ed211309e4e..00000000000 --- a/src/main/java/com/datadog/api/client/v2/model/SyntheticsTestResultData.java +++ /dev/null @@ -1,224 +0,0 @@ -/* - * 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. - */ - -package com.datadog.api.client.v2.model; - -import com.fasterxml.jackson.annotation.JsonAnyGetter; -import com.fasterxml.jackson.annotation.JsonAnySetter; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; - -/** Wrapper object for a Synthetic test result. */ -@JsonPropertyOrder({ - SyntheticsTestResultData.JSON_PROPERTY_ATTRIBUTES, - SyntheticsTestResultData.JSON_PROPERTY_ID, - SyntheticsTestResultData.JSON_PROPERTY_RELATIONSHIPS, - SyntheticsTestResultData.JSON_PROPERTY_TYPE -}) -@jakarta.annotation.Generated( - value = "https://github.com/DataDog/datadog-api-client-java/blob/master/.generator") -public class SyntheticsTestResultData { - @JsonIgnore public boolean unparsed = false; - public static final String JSON_PROPERTY_ATTRIBUTES = "attributes"; - private SyntheticsTestResultAttributes attributes; - - public static final String JSON_PROPERTY_ID = "id"; - private String id; - - public static final String JSON_PROPERTY_RELATIONSHIPS = "relationships"; - private SyntheticsTestResultRelationships relationships; - - public static final String JSON_PROPERTY_TYPE = "type"; - private SyntheticsTestResultType type = SyntheticsTestResultType.RESULT; - - public SyntheticsTestResultData attributes(SyntheticsTestResultAttributes attributes) { - this.attributes = attributes; - this.unparsed |= attributes.unparsed; - return this; - } - - /** - * Attributes of a Synthetic test result. - * - * @return attributes - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ATTRIBUTES) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public SyntheticsTestResultAttributes getAttributes() { - return attributes; - } - - public void setAttributes(SyntheticsTestResultAttributes attributes) { - this.attributes = attributes; - } - - public SyntheticsTestResultData id(String id) { - this.id = id; - return this; - } - - /** - * The result ID. - * - * @return id - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ID) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getId() { - return id; - } - - public void setId(String id) { - this.id = id; - } - - public SyntheticsTestResultData relationships(SyntheticsTestResultRelationships relationships) { - this.relationships = relationships; - this.unparsed |= relationships.unparsed; - return this; - } - - /** - * Relationships for a Synthetic test result. - * - * @return relationships - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_RELATIONSHIPS) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public SyntheticsTestResultRelationships getRelationships() { - return relationships; - } - - public void setRelationships(SyntheticsTestResultRelationships relationships) { - this.relationships = relationships; - } - - public SyntheticsTestResultData type(SyntheticsTestResultType type) { - this.type = type; - this.unparsed |= !type.isValid(); - return this; - } - - /** - * Type of the Synthetic test result resource, result. - * - * @return type - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_TYPE) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public SyntheticsTestResultType getType() { - return type; - } - - public void setType(SyntheticsTestResultType type) { - if (!type.isValid()) { - this.unparsed = true; - } - this.type = type; - } - - /** - * A container for additional, undeclared properties. This is a holder for any undeclared - * properties as specified with the 'additionalProperties' keyword in the OAS document. - */ - private Map additionalProperties; - - /** - * Set the additional (undeclared) property with the specified name and value. If the property - * does not already exist, create it otherwise replace it. - * - * @param key The arbitrary key to set - * @param value The associated value - * @return SyntheticsTestResultData - */ - @JsonAnySetter - public SyntheticsTestResultData putAdditionalProperty(String key, Object value) { - if (this.additionalProperties == null) { - this.additionalProperties = new HashMap(); - } - this.additionalProperties.put(key, value); - return this; - } - - /** - * Return the additional (undeclared) property. - * - * @return The additional properties - */ - @JsonAnyGetter - public Map getAdditionalProperties() { - return additionalProperties; - } - - /** - * Return the additional (undeclared) property with the specified name. - * - * @param key The arbitrary key to get - * @return The specific additional property for the given key - */ - public Object getAdditionalProperty(String key) { - if (this.additionalProperties == null) { - return null; - } - return this.additionalProperties.get(key); - } - - /** Return true if this SyntheticsTestResultData object is equal to o. */ - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - SyntheticsTestResultData syntheticsTestResultData = (SyntheticsTestResultData) o; - return Objects.equals(this.attributes, syntheticsTestResultData.attributes) - && Objects.equals(this.id, syntheticsTestResultData.id) - && Objects.equals(this.relationships, syntheticsTestResultData.relationships) - && Objects.equals(this.type, syntheticsTestResultData.type) - && Objects.equals(this.additionalProperties, syntheticsTestResultData.additionalProperties); - } - - @Override - public int hashCode() { - return Objects.hash(attributes, id, relationships, type, additionalProperties); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class SyntheticsTestResultData {\n"); - sb.append(" attributes: ").append(toIndentedString(attributes)).append("\n"); - sb.append(" id: ").append(toIndentedString(id)).append("\n"); - sb.append(" relationships: ").append(toIndentedString(relationships)).append("\n"); - sb.append(" type: ").append(toIndentedString(type)).append("\n"); - sb.append(" additionalProperties: ") - .append(toIndentedString(additionalProperties)) - .append("\n"); - sb.append('}'); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } -} diff --git a/src/main/java/com/datadog/api/client/v2/model/SyntheticsTestResultDetail.java b/src/main/java/com/datadog/api/client/v2/model/SyntheticsTestResultDetail.java deleted file mode 100644 index cdd1b02a805..00000000000 --- a/src/main/java/com/datadog/api/client/v2/model/SyntheticsTestResultDetail.java +++ /dev/null @@ -1,1350 +0,0 @@ -/* - * 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. - */ - -package com.datadog.api.client.v2.model; - -import com.fasterxml.jackson.annotation.JsonAnyGetter; -import com.fasterxml.jackson.annotation.JsonAnySetter; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import java.util.ArrayList; -import java.util.HashMap; -import java.util.List; -import java.util.Map; -import java.util.Objects; - -/** Full result details for a Synthetic test execution. */ -@JsonPropertyOrder({ - SyntheticsTestResultDetail.JSON_PROPERTY_ASSERTIONS, - SyntheticsTestResultDetail.JSON_PROPERTY_BUCKET_KEYS, - SyntheticsTestResultDetail.JSON_PROPERTY_CALL_TYPE, - SyntheticsTestResultDetail.JSON_PROPERTY_CERT, - SyntheticsTestResultDetail.JSON_PROPERTY_COMPRESSED_JSON_DESCRIPTOR, - SyntheticsTestResultDetail.JSON_PROPERTY_COMPRESSED_STEPS, - SyntheticsTestResultDetail.JSON_PROPERTY_CONNECTION_OUTCOME, - SyntheticsTestResultDetail.JSON_PROPERTY_DNS_RESOLUTION, - SyntheticsTestResultDetail.JSON_PROPERTY_DURATION, - SyntheticsTestResultDetail.JSON_PROPERTY_EXITED_ON_STEP_SUCCESS, - SyntheticsTestResultDetail.JSON_PROPERTY_FAILURE, - SyntheticsTestResultDetail.JSON_PROPERTY_FINISHED_AT, - SyntheticsTestResultDetail.JSON_PROPERTY_HANDSHAKE, - SyntheticsTestResultDetail.JSON_PROPERTY_ID, - SyntheticsTestResultDetail.JSON_PROPERTY_INITIAL_ID, - SyntheticsTestResultDetail.JSON_PROPERTY_IS_FAST_RETRY, - SyntheticsTestResultDetail.JSON_PROPERTY_IS_LAST_RETRY, - SyntheticsTestResultDetail.JSON_PROPERTY_NETPATH, - SyntheticsTestResultDetail.JSON_PROPERTY_NETSTATS, - SyntheticsTestResultDetail.JSON_PROPERTY_OCSP, - SyntheticsTestResultDetail.JSON_PROPERTY_PING, - SyntheticsTestResultDetail.JSON_PROPERTY_RECEIVED_EMAIL_COUNT, - SyntheticsTestResultDetail.JSON_PROPERTY_RECEIVED_MESSAGE, - SyntheticsTestResultDetail.JSON_PROPERTY_REQUEST, - SyntheticsTestResultDetail.JSON_PROPERTY_RESOLVED_IP, - SyntheticsTestResultDetail.JSON_PROPERTY_RESPONSE, - SyntheticsTestResultDetail.JSON_PROPERTY_RUN_TYPE, - SyntheticsTestResultDetail.JSON_PROPERTY_SENT_MESSAGE, - SyntheticsTestResultDetail.JSON_PROPERTY_START_URL, - SyntheticsTestResultDetail.JSON_PROPERTY_STARTED_AT, - SyntheticsTestResultDetail.JSON_PROPERTY_STATUS, - SyntheticsTestResultDetail.JSON_PROPERTY_STEPS, - SyntheticsTestResultDetail.JSON_PROPERTY_TIME_TO_INTERACTIVE, - SyntheticsTestResultDetail.JSON_PROPERTY_TIMINGS, - SyntheticsTestResultDetail.JSON_PROPERTY_TRACE, - SyntheticsTestResultDetail.JSON_PROPERTY_TRACEROUTE, - SyntheticsTestResultDetail.JSON_PROPERTY_TRIGGERED_AT, - SyntheticsTestResultDetail.JSON_PROPERTY_TUNNEL, - SyntheticsTestResultDetail.JSON_PROPERTY_TURNS, - SyntheticsTestResultDetail.JSON_PROPERTY_UNHEALTHY, - SyntheticsTestResultDetail.JSON_PROPERTY_VARIABLES -}) -@jakarta.annotation.Generated( - value = "https://github.com/DataDog/datadog-api-client-java/blob/master/.generator") -public class SyntheticsTestResultDetail { - @JsonIgnore public boolean unparsed = false; - public static final String JSON_PROPERTY_ASSERTIONS = "assertions"; - private List assertions = null; - - public static final String JSON_PROPERTY_BUCKET_KEYS = "bucket_keys"; - private SyntheticsTestResultBucketKeys bucketKeys; - - public static final String JSON_PROPERTY_CALL_TYPE = "call_type"; - private String callType; - - public static final String JSON_PROPERTY_CERT = "cert"; - private SyntheticsTestResultCertificate cert; - - public static final String JSON_PROPERTY_COMPRESSED_JSON_DESCRIPTOR = - "compressed_json_descriptor"; - private String compressedJsonDescriptor; - - public static final String JSON_PROPERTY_COMPRESSED_STEPS = "compressed_steps"; - private String compressedSteps; - - public static final String JSON_PROPERTY_CONNECTION_OUTCOME = "connection_outcome"; - private String connectionOutcome; - - public static final String JSON_PROPERTY_DNS_RESOLUTION = "dns_resolution"; - private SyntheticsTestResultDnsResolution dnsResolution; - - public static final String JSON_PROPERTY_DURATION = "duration"; - private Double duration; - - public static final String JSON_PROPERTY_EXITED_ON_STEP_SUCCESS = "exited_on_step_success"; - private Boolean exitedOnStepSuccess; - - public static final String JSON_PROPERTY_FAILURE = "failure"; - private SyntheticsTestResultFailure failure; - - public static final String JSON_PROPERTY_FINISHED_AT = "finished_at"; - private Long finishedAt; - - public static final String JSON_PROPERTY_HANDSHAKE = "handshake"; - private SyntheticsTestResultHandshake handshake; - - public static final String JSON_PROPERTY_ID = "id"; - private String id; - - public static final String JSON_PROPERTY_INITIAL_ID = "initial_id"; - private String initialId; - - public static final String JSON_PROPERTY_IS_FAST_RETRY = "is_fast_retry"; - private Boolean isFastRetry; - - public static final String JSON_PROPERTY_IS_LAST_RETRY = "is_last_retry"; - private Boolean isLastRetry; - - public static final String JSON_PROPERTY_NETPATH = "netpath"; - private SyntheticsTestResultNetpath netpath; - - public static final String JSON_PROPERTY_NETSTATS = "netstats"; - private SyntheticsTestResultNetstats netstats; - - public static final String JSON_PROPERTY_OCSP = "ocsp"; - private SyntheticsTestResultOCSPResponse ocsp; - - public static final String JSON_PROPERTY_PING = "ping"; - private SyntheticsTestResultTracerouteHop ping; - - public static final String JSON_PROPERTY_RECEIVED_EMAIL_COUNT = "received_email_count"; - private Long receivedEmailCount; - - public static final String JSON_PROPERTY_RECEIVED_MESSAGE = "received_message"; - private String receivedMessage; - - public static final String JSON_PROPERTY_REQUEST = "request"; - private SyntheticsTestResultRequestInfo request; - - public static final String JSON_PROPERTY_RESOLVED_IP = "resolved_ip"; - private String resolvedIp; - - public static final String JSON_PROPERTY_RESPONSE = "response"; - private SyntheticsTestResultResponseInfo response; - - public static final String JSON_PROPERTY_RUN_TYPE = "run_type"; - private SyntheticsTestResultRunType runType; - - public static final String JSON_PROPERTY_SENT_MESSAGE = "sent_message"; - private String sentMessage; - - public static final String JSON_PROPERTY_START_URL = "start_url"; - private String startUrl; - - public static final String JSON_PROPERTY_STARTED_AT = "started_at"; - private Long startedAt; - - public static final String JSON_PROPERTY_STATUS = "status"; - private SyntheticsTestResultStatus status; - - public static final String JSON_PROPERTY_STEPS = "steps"; - private List steps = null; - - public static final String JSON_PROPERTY_TIME_TO_INTERACTIVE = "time_to_interactive"; - private Long timeToInteractive; - - public static final String JSON_PROPERTY_TIMINGS = "timings"; - private Map timings = null; - - public static final String JSON_PROPERTY_TRACE = "trace"; - private SyntheticsTestResultTrace trace; - - public static final String JSON_PROPERTY_TRACEROUTE = "traceroute"; - private List traceroute = null; - - public static final String JSON_PROPERTY_TRIGGERED_AT = "triggered_at"; - private Long triggeredAt; - - public static final String JSON_PROPERTY_TUNNEL = "tunnel"; - private Boolean tunnel; - - public static final String JSON_PROPERTY_TURNS = "turns"; - private List turns = null; - - public static final String JSON_PROPERTY_UNHEALTHY = "unhealthy"; - private Boolean unhealthy; - - public static final String JSON_PROPERTY_VARIABLES = "variables"; - private SyntheticsTestResultVariables variables; - - public SyntheticsTestResultDetail assertions( - List assertions) { - this.assertions = assertions; - for (SyntheticsTestResultAssertionResult item : assertions) { - this.unparsed |= item.unparsed; - } - return this; - } - - public SyntheticsTestResultDetail addAssertionsItem( - SyntheticsTestResultAssertionResult assertionsItem) { - if (this.assertions == null) { - this.assertions = new ArrayList<>(); - } - this.assertions.add(assertionsItem); - this.unparsed |= assertionsItem.unparsed; - return this; - } - - /** - * Assertion results produced by the test. - * - * @return assertions - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ASSERTIONS) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public List getAssertions() { - return assertions; - } - - public void setAssertions(List assertions) { - this.assertions = assertions; - } - - public SyntheticsTestResultDetail bucketKeys(SyntheticsTestResultBucketKeys bucketKeys) { - this.bucketKeys = bucketKeys; - this.unparsed |= bucketKeys.unparsed; - return this; - } - - /** - * Storage bucket keys for artifacts produced during a step or test. - * - * @return bucketKeys - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_BUCKET_KEYS) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public SyntheticsTestResultBucketKeys getBucketKeys() { - return bucketKeys; - } - - public void setBucketKeys(SyntheticsTestResultBucketKeys bucketKeys) { - this.bucketKeys = bucketKeys; - } - - public SyntheticsTestResultDetail callType(String callType) { - this.callType = callType; - return this; - } - - /** - * gRPC call type (for example, unary, healthCheck, or reflection - * ). - * - * @return callType - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_CALL_TYPE) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getCallType() { - return callType; - } - - public void setCallType(String callType) { - this.callType = callType; - } - - public SyntheticsTestResultDetail cert(SyntheticsTestResultCertificate cert) { - this.cert = cert; - this.unparsed |= cert.unparsed; - return this; - } - - /** - * SSL/TLS certificate information returned from an SSL test. - * - * @return cert - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_CERT) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public SyntheticsTestResultCertificate getCert() { - return cert; - } - - public void setCert(SyntheticsTestResultCertificate cert) { - this.cert = cert; - } - - public SyntheticsTestResultDetail compressedJsonDescriptor(String compressedJsonDescriptor) { - this.compressedJsonDescriptor = compressedJsonDescriptor; - return this; - } - - /** - * Compressed JSON descriptor for the test (internal format). - * - * @return compressedJsonDescriptor - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_COMPRESSED_JSON_DESCRIPTOR) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getCompressedJsonDescriptor() { - return compressedJsonDescriptor; - } - - public void setCompressedJsonDescriptor(String compressedJsonDescriptor) { - this.compressedJsonDescriptor = compressedJsonDescriptor; - } - - public SyntheticsTestResultDetail compressedSteps(String compressedSteps) { - this.compressedSteps = compressedSteps; - return this; - } - - /** - * Compressed representation of the test steps (internal format). - * - * @return compressedSteps - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_COMPRESSED_STEPS) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getCompressedSteps() { - return compressedSteps; - } - - public void setCompressedSteps(String compressedSteps) { - this.compressedSteps = compressedSteps; - } - - public SyntheticsTestResultDetail connectionOutcome(String connectionOutcome) { - this.connectionOutcome = connectionOutcome; - return this; - } - - /** - * Outcome of the connection attempt (for example, established, refused - * ). - * - * @return connectionOutcome - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_CONNECTION_OUTCOME) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getConnectionOutcome() { - return connectionOutcome; - } - - public void setConnectionOutcome(String connectionOutcome) { - this.connectionOutcome = connectionOutcome; - } - - public SyntheticsTestResultDetail dnsResolution(SyntheticsTestResultDnsResolution dnsResolution) { - this.dnsResolution = dnsResolution; - this.unparsed |= dnsResolution.unparsed; - return this; - } - - /** - * DNS resolution details recorded during the test execution. - * - * @return dnsResolution - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_DNS_RESOLUTION) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public SyntheticsTestResultDnsResolution getDnsResolution() { - return dnsResolution; - } - - public void setDnsResolution(SyntheticsTestResultDnsResolution dnsResolution) { - this.dnsResolution = dnsResolution; - } - - public SyntheticsTestResultDetail duration(Double duration) { - this.duration = duration; - return this; - } - - /** - * Duration of the test execution (in milliseconds). - * - * @return duration - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_DURATION) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public Double getDuration() { - return duration; - } - - public void setDuration(Double duration) { - this.duration = duration; - } - - public SyntheticsTestResultDetail exitedOnStepSuccess(Boolean exitedOnStepSuccess) { - this.exitedOnStepSuccess = exitedOnStepSuccess; - return this; - } - - /** - * Whether the test exited early because a step marked with exitIfSucceed passed. - * - * @return exitedOnStepSuccess - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_EXITED_ON_STEP_SUCCESS) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public Boolean getExitedOnStepSuccess() { - return exitedOnStepSuccess; - } - - public void setExitedOnStepSuccess(Boolean exitedOnStepSuccess) { - this.exitedOnStepSuccess = exitedOnStepSuccess; - } - - public SyntheticsTestResultDetail failure(SyntheticsTestResultFailure failure) { - this.failure = failure; - this.unparsed |= failure.unparsed; - return this; - } - - /** - * Details about the failure of a Synthetic test. - * - * @return failure - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_FAILURE) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public SyntheticsTestResultFailure getFailure() { - return failure; - } - - public void setFailure(SyntheticsTestResultFailure failure) { - this.failure = failure; - } - - public SyntheticsTestResultDetail finishedAt(Long finishedAt) { - this.finishedAt = finishedAt; - return this; - } - - /** - * Timestamp of when the test finished (in milliseconds). - * - * @return finishedAt - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_FINISHED_AT) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public Long getFinishedAt() { - return finishedAt; - } - - public void setFinishedAt(Long finishedAt) { - this.finishedAt = finishedAt; - } - - public SyntheticsTestResultDetail handshake(SyntheticsTestResultHandshake handshake) { - this.handshake = handshake; - this.unparsed |= handshake.unparsed; - return this; - } - - /** - * Handshake request and response for protocol-level tests. - * - * @return handshake - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_HANDSHAKE) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public SyntheticsTestResultHandshake getHandshake() { - return handshake; - } - - public void setHandshake(SyntheticsTestResultHandshake handshake) { - this.handshake = handshake; - } - - public SyntheticsTestResultDetail id(String id) { - this.id = id; - return this; - } - - /** - * The unique identifier for this result. - * - * @return id - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ID) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getId() { - return id; - } - - public void setId(String id) { - this.id = id; - } - - public SyntheticsTestResultDetail initialId(String initialId) { - this.initialId = initialId; - return this; - } - - /** - * The initial result ID before any retries. - * - * @return initialId - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_INITIAL_ID) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getInitialId() { - return initialId; - } - - public void setInitialId(String initialId) { - this.initialId = initialId; - } - - public SyntheticsTestResultDetail isFastRetry(Boolean isFastRetry) { - this.isFastRetry = isFastRetry; - return this; - } - - /** - * Whether this result is from a fast retry. - * - * @return isFastRetry - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_IS_FAST_RETRY) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public Boolean getIsFastRetry() { - return isFastRetry; - } - - public void setIsFastRetry(Boolean isFastRetry) { - this.isFastRetry = isFastRetry; - } - - public SyntheticsTestResultDetail isLastRetry(Boolean isLastRetry) { - this.isLastRetry = isLastRetry; - return this; - } - - /** - * Whether this result is from the last retry. - * - * @return isLastRetry - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_IS_LAST_RETRY) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public Boolean getIsLastRetry() { - return isLastRetry; - } - - public void setIsLastRetry(Boolean isLastRetry) { - this.isLastRetry = isLastRetry; - } - - public SyntheticsTestResultDetail netpath(SyntheticsTestResultNetpath netpath) { - this.netpath = netpath; - this.unparsed |= netpath.unparsed; - return this; - } - - /** - * Network Path test result capturing the path between source and destination. - * - * @return netpath - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_NETPATH) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public SyntheticsTestResultNetpath getNetpath() { - return netpath; - } - - public void setNetpath(SyntheticsTestResultNetpath netpath) { - this.netpath = netpath; - } - - public SyntheticsTestResultDetail netstats(SyntheticsTestResultNetstats netstats) { - this.netstats = netstats; - this.unparsed |= netstats.unparsed; - return this; - } - - /** - * Aggregated network statistics from the test execution. - * - * @return netstats - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_NETSTATS) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public SyntheticsTestResultNetstats getNetstats() { - return netstats; - } - - public void setNetstats(SyntheticsTestResultNetstats netstats) { - this.netstats = netstats; - } - - public SyntheticsTestResultDetail ocsp(SyntheticsTestResultOCSPResponse ocsp) { - this.ocsp = ocsp; - this.unparsed |= ocsp.unparsed; - return this; - } - - /** - * OCSP response received while validating a certificate. - * - * @return ocsp - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_OCSP) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public SyntheticsTestResultOCSPResponse getOcsp() { - return ocsp; - } - - public void setOcsp(SyntheticsTestResultOCSPResponse ocsp) { - this.ocsp = ocsp; - } - - public SyntheticsTestResultDetail ping(SyntheticsTestResultTracerouteHop ping) { - this.ping = ping; - this.unparsed |= ping.unparsed; - return this; - } - - /** - * A network probe result, used for traceroute hops and ping summaries. - * - * @return ping - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_PING) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public SyntheticsTestResultTracerouteHop getPing() { - return ping; - } - - public void setPing(SyntheticsTestResultTracerouteHop ping) { - this.ping = ping; - } - - public SyntheticsTestResultDetail receivedEmailCount(Long receivedEmailCount) { - this.receivedEmailCount = receivedEmailCount; - return this; - } - - /** - * Number of emails received during the test (email tests). - * - * @return receivedEmailCount - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_RECEIVED_EMAIL_COUNT) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public Long getReceivedEmailCount() { - return receivedEmailCount; - } - - public void setReceivedEmailCount(Long receivedEmailCount) { - this.receivedEmailCount = receivedEmailCount; - } - - public SyntheticsTestResultDetail receivedMessage(String receivedMessage) { - this.receivedMessage = receivedMessage; - return this; - } - - /** - * Message received from the target (for WebSocket/TCP/UDP tests). - * - * @return receivedMessage - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_RECEIVED_MESSAGE) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getReceivedMessage() { - return receivedMessage; - } - - public void setReceivedMessage(String receivedMessage) { - this.receivedMessage = receivedMessage; - } - - public SyntheticsTestResultDetail request(SyntheticsTestResultRequestInfo request) { - this.request = request; - this.unparsed |= request.unparsed; - return this; - } - - /** - * Details of the outgoing request made during the test execution. - * - * @return request - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_REQUEST) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public SyntheticsTestResultRequestInfo getRequest() { - return request; - } - - public void setRequest(SyntheticsTestResultRequestInfo request) { - this.request = request; - } - - public SyntheticsTestResultDetail resolvedIp(String resolvedIp) { - this.resolvedIp = resolvedIp; - return this; - } - - /** - * IP address resolved for the target host. - * - * @return resolvedIp - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_RESOLVED_IP) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getResolvedIp() { - return resolvedIp; - } - - public void setResolvedIp(String resolvedIp) { - this.resolvedIp = resolvedIp; - } - - public SyntheticsTestResultDetail response(SyntheticsTestResultResponseInfo response) { - this.response = response; - this.unparsed |= response.unparsed; - return this; - } - - /** - * Details of the response received during the test execution. - * - * @return response - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_RESPONSE) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public SyntheticsTestResultResponseInfo getResponse() { - return response; - } - - public void setResponse(SyntheticsTestResultResponseInfo response) { - this.response = response; - } - - public SyntheticsTestResultDetail runType(SyntheticsTestResultRunType runType) { - this.runType = runType; - this.unparsed |= !runType.isValid(); - return this; - } - - /** - * The type of run for a Synthetic test result. - * - * @return runType - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_RUN_TYPE) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public SyntheticsTestResultRunType getRunType() { - return runType; - } - - public void setRunType(SyntheticsTestResultRunType runType) { - if (!runType.isValid()) { - this.unparsed = true; - } - this.runType = runType; - } - - public SyntheticsTestResultDetail sentMessage(String sentMessage) { - this.sentMessage = sentMessage; - return this; - } - - /** - * Message sent to the target (for WebSocket/TCP/UDP tests). - * - * @return sentMessage - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_SENT_MESSAGE) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getSentMessage() { - return sentMessage; - } - - public void setSentMessage(String sentMessage) { - this.sentMessage = sentMessage; - } - - public SyntheticsTestResultDetail startUrl(String startUrl) { - this.startUrl = startUrl; - return this; - } - - /** - * Start URL for the test (browser tests). - * - * @return startUrl - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_START_URL) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getStartUrl() { - return startUrl; - } - - public void setStartUrl(String startUrl) { - this.startUrl = startUrl; - } - - public SyntheticsTestResultDetail startedAt(Long startedAt) { - this.startedAt = startedAt; - return this; - } - - /** - * Timestamp of when the test started (in milliseconds). - * - * @return startedAt - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_STARTED_AT) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public Long getStartedAt() { - return startedAt; - } - - public void setStartedAt(Long startedAt) { - this.startedAt = startedAt; - } - - public SyntheticsTestResultDetail status(SyntheticsTestResultStatus status) { - this.status = status; - this.unparsed |= !status.isValid(); - return this; - } - - /** - * Status of a Synthetic test result. - * - * @return status - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_STATUS) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public SyntheticsTestResultStatus getStatus() { - return status; - } - - public void setStatus(SyntheticsTestResultStatus status) { - if (!status.isValid()) { - this.unparsed = true; - } - this.status = status; - } - - public SyntheticsTestResultDetail steps(List steps) { - this.steps = steps; - for (SyntheticsTestResultStep item : steps) { - this.unparsed |= item.unparsed; - } - return this; - } - - public SyntheticsTestResultDetail addStepsItem(SyntheticsTestResultStep stepsItem) { - if (this.steps == null) { - this.steps = new ArrayList<>(); - } - this.steps.add(stepsItem); - this.unparsed |= stepsItem.unparsed; - return this; - } - - /** - * Step results (for browser, mobile, and multistep API tests). - * - * @return steps - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_STEPS) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public List getSteps() { - return steps; - } - - public void setSteps(List steps) { - this.steps = steps; - } - - public SyntheticsTestResultDetail timeToInteractive(Long timeToInteractive) { - this.timeToInteractive = timeToInteractive; - return this; - } - - /** - * Time to interactive in milliseconds (browser tests). - * - * @return timeToInteractive - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_TIME_TO_INTERACTIVE) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public Long getTimeToInteractive() { - return timeToInteractive; - } - - public void setTimeToInteractive(Long timeToInteractive) { - this.timeToInteractive = timeToInteractive; - } - - public SyntheticsTestResultDetail timings(Map timings) { - this.timings = timings; - return this; - } - - public SyntheticsTestResultDetail putTimingsItem(String key, Object timingsItem) { - if (this.timings == null) { - this.timings = new HashMap<>(); - } - this.timings.put(key, timingsItem); - return this; - } - - /** - * Timing breakdown of the test request phases (for example, DNS, TCP, TLS, first byte). - * - * @return timings - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_TIMINGS) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public Map getTimings() { - return timings; - } - - public void setTimings(Map timings) { - this.timings = timings; - } - - public SyntheticsTestResultDetail trace(SyntheticsTestResultTrace trace) { - this.trace = trace; - this.unparsed |= trace.unparsed; - return this; - } - - /** - * Trace identifiers associated with a Synthetic test result. - * - * @return trace - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_TRACE) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public SyntheticsTestResultTrace getTrace() { - return trace; - } - - public void setTrace(SyntheticsTestResultTrace trace) { - this.trace = trace; - } - - public SyntheticsTestResultDetail traceroute(List traceroute) { - this.traceroute = traceroute; - for (SyntheticsTestResultTracerouteHop item : traceroute) { - this.unparsed |= item.unparsed; - } - return this; - } - - public SyntheticsTestResultDetail addTracerouteItem( - SyntheticsTestResultTracerouteHop tracerouteItem) { - if (this.traceroute == null) { - this.traceroute = new ArrayList<>(); - } - this.traceroute.add(tracerouteItem); - this.unparsed |= tracerouteItem.unparsed; - return this; - } - - /** - * Traceroute hop results (for network tests). - * - * @return traceroute - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_TRACEROUTE) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public List getTraceroute() { - return traceroute; - } - - public void setTraceroute(List traceroute) { - this.traceroute = traceroute; - } - - public SyntheticsTestResultDetail triggeredAt(Long triggeredAt) { - this.triggeredAt = triggeredAt; - return this; - } - - /** - * Timestamp of when the test was triggered (in milliseconds). - * - * @return triggeredAt - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_TRIGGERED_AT) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public Long getTriggeredAt() { - return triggeredAt; - } - - public void setTriggeredAt(Long triggeredAt) { - this.triggeredAt = triggeredAt; - } - - public SyntheticsTestResultDetail tunnel(Boolean tunnel) { - this.tunnel = tunnel; - return this; - } - - /** - * Whether the test was executed through a tunnel. - * - * @return tunnel - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_TUNNEL) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public Boolean getTunnel() { - return tunnel; - } - - public void setTunnel(Boolean tunnel) { - this.tunnel = tunnel; - } - - public SyntheticsTestResultDetail turns(List turns) { - this.turns = turns; - for (SyntheticsTestResultTurn item : turns) { - this.unparsed |= item.unparsed; - } - return this; - } - - public SyntheticsTestResultDetail addTurnsItem(SyntheticsTestResultTurn turnsItem) { - if (this.turns == null) { - this.turns = new ArrayList<>(); - } - this.turns.add(turnsItem); - this.unparsed |= turnsItem.unparsed; - return this; - } - - /** - * Turns executed by a goal-based browser test. - * - * @return turns - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_TURNS) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public List getTurns() { - return turns; - } - - public void setTurns(List turns) { - this.turns = turns; - } - - public SyntheticsTestResultDetail unhealthy(Boolean unhealthy) { - this.unhealthy = unhealthy; - return this; - } - - /** - * Whether the test runner was unhealthy at the time of execution. - * - * @return unhealthy - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_UNHEALTHY) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public Boolean getUnhealthy() { - return unhealthy; - } - - public void setUnhealthy(Boolean unhealthy) { - this.unhealthy = unhealthy; - } - - public SyntheticsTestResultDetail variables(SyntheticsTestResultVariables variables) { - this.variables = variables; - this.unparsed |= variables.unparsed; - return this; - } - - /** - * Variables captured during a test step. - * - * @return variables - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_VARIABLES) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public SyntheticsTestResultVariables getVariables() { - return variables; - } - - public void setVariables(SyntheticsTestResultVariables variables) { - this.variables = variables; - } - - /** - * A container for additional, undeclared properties. This is a holder for any undeclared - * properties as specified with the 'additionalProperties' keyword in the OAS document. - */ - private Map additionalProperties; - - /** - * Set the additional (undeclared) property with the specified name and value. If the property - * does not already exist, create it otherwise replace it. - * - * @param key The arbitrary key to set - * @param value The associated value - * @return SyntheticsTestResultDetail - */ - @JsonAnySetter - public SyntheticsTestResultDetail putAdditionalProperty(String key, Object value) { - if (this.additionalProperties == null) { - this.additionalProperties = new HashMap(); - } - this.additionalProperties.put(key, value); - return this; - } - - /** - * Return the additional (undeclared) property. - * - * @return The additional properties - */ - @JsonAnyGetter - public Map getAdditionalProperties() { - return additionalProperties; - } - - /** - * Return the additional (undeclared) property with the specified name. - * - * @param key The arbitrary key to get - * @return The specific additional property for the given key - */ - public Object getAdditionalProperty(String key) { - if (this.additionalProperties == null) { - return null; - } - return this.additionalProperties.get(key); - } - - /** Return true if this SyntheticsTestResultDetail object is equal to o. */ - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - SyntheticsTestResultDetail syntheticsTestResultDetail = (SyntheticsTestResultDetail) o; - return Objects.equals(this.assertions, syntheticsTestResultDetail.assertions) - && Objects.equals(this.bucketKeys, syntheticsTestResultDetail.bucketKeys) - && Objects.equals(this.callType, syntheticsTestResultDetail.callType) - && Objects.equals(this.cert, syntheticsTestResultDetail.cert) - && Objects.equals( - this.compressedJsonDescriptor, syntheticsTestResultDetail.compressedJsonDescriptor) - && Objects.equals(this.compressedSteps, syntheticsTestResultDetail.compressedSteps) - && Objects.equals(this.connectionOutcome, syntheticsTestResultDetail.connectionOutcome) - && Objects.equals(this.dnsResolution, syntheticsTestResultDetail.dnsResolution) - && Objects.equals(this.duration, syntheticsTestResultDetail.duration) - && Objects.equals(this.exitedOnStepSuccess, syntheticsTestResultDetail.exitedOnStepSuccess) - && Objects.equals(this.failure, syntheticsTestResultDetail.failure) - && Objects.equals(this.finishedAt, syntheticsTestResultDetail.finishedAt) - && Objects.equals(this.handshake, syntheticsTestResultDetail.handshake) - && Objects.equals(this.id, syntheticsTestResultDetail.id) - && Objects.equals(this.initialId, syntheticsTestResultDetail.initialId) - && Objects.equals(this.isFastRetry, syntheticsTestResultDetail.isFastRetry) - && Objects.equals(this.isLastRetry, syntheticsTestResultDetail.isLastRetry) - && Objects.equals(this.netpath, syntheticsTestResultDetail.netpath) - && Objects.equals(this.netstats, syntheticsTestResultDetail.netstats) - && Objects.equals(this.ocsp, syntheticsTestResultDetail.ocsp) - && Objects.equals(this.ping, syntheticsTestResultDetail.ping) - && Objects.equals(this.receivedEmailCount, syntheticsTestResultDetail.receivedEmailCount) - && Objects.equals(this.receivedMessage, syntheticsTestResultDetail.receivedMessage) - && Objects.equals(this.request, syntheticsTestResultDetail.request) - && Objects.equals(this.resolvedIp, syntheticsTestResultDetail.resolvedIp) - && Objects.equals(this.response, syntheticsTestResultDetail.response) - && Objects.equals(this.runType, syntheticsTestResultDetail.runType) - && Objects.equals(this.sentMessage, syntheticsTestResultDetail.sentMessage) - && Objects.equals(this.startUrl, syntheticsTestResultDetail.startUrl) - && Objects.equals(this.startedAt, syntheticsTestResultDetail.startedAt) - && Objects.equals(this.status, syntheticsTestResultDetail.status) - && Objects.equals(this.steps, syntheticsTestResultDetail.steps) - && Objects.equals(this.timeToInteractive, syntheticsTestResultDetail.timeToInteractive) - && Objects.equals(this.timings, syntheticsTestResultDetail.timings) - && Objects.equals(this.trace, syntheticsTestResultDetail.trace) - && Objects.equals(this.traceroute, syntheticsTestResultDetail.traceroute) - && Objects.equals(this.triggeredAt, syntheticsTestResultDetail.triggeredAt) - && Objects.equals(this.tunnel, syntheticsTestResultDetail.tunnel) - && Objects.equals(this.turns, syntheticsTestResultDetail.turns) - && Objects.equals(this.unhealthy, syntheticsTestResultDetail.unhealthy) - && Objects.equals(this.variables, syntheticsTestResultDetail.variables) - && Objects.equals( - this.additionalProperties, syntheticsTestResultDetail.additionalProperties); - } - - @Override - public int hashCode() { - return Objects.hash( - assertions, - bucketKeys, - callType, - cert, - compressedJsonDescriptor, - compressedSteps, - connectionOutcome, - dnsResolution, - duration, - exitedOnStepSuccess, - failure, - finishedAt, - handshake, - id, - initialId, - isFastRetry, - isLastRetry, - netpath, - netstats, - ocsp, - ping, - receivedEmailCount, - receivedMessage, - request, - resolvedIp, - response, - runType, - sentMessage, - startUrl, - startedAt, - status, - steps, - timeToInteractive, - timings, - trace, - traceroute, - triggeredAt, - tunnel, - turns, - unhealthy, - variables, - additionalProperties); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class SyntheticsTestResultDetail {\n"); - sb.append(" assertions: ").append(toIndentedString(assertions)).append("\n"); - sb.append(" bucketKeys: ").append(toIndentedString(bucketKeys)).append("\n"); - sb.append(" callType: ").append(toIndentedString(callType)).append("\n"); - sb.append(" cert: ").append(toIndentedString(cert)).append("\n"); - sb.append(" compressedJsonDescriptor: ") - .append(toIndentedString(compressedJsonDescriptor)) - .append("\n"); - sb.append(" compressedSteps: ").append(toIndentedString(compressedSteps)).append("\n"); - sb.append(" connectionOutcome: ").append(toIndentedString(connectionOutcome)).append("\n"); - sb.append(" dnsResolution: ").append(toIndentedString(dnsResolution)).append("\n"); - sb.append(" duration: ").append(toIndentedString(duration)).append("\n"); - sb.append(" exitedOnStepSuccess: ") - .append(toIndentedString(exitedOnStepSuccess)) - .append("\n"); - sb.append(" failure: ").append(toIndentedString(failure)).append("\n"); - sb.append(" finishedAt: ").append(toIndentedString(finishedAt)).append("\n"); - sb.append(" handshake: ").append(toIndentedString(handshake)).append("\n"); - sb.append(" id: ").append(toIndentedString(id)).append("\n"); - sb.append(" initialId: ").append(toIndentedString(initialId)).append("\n"); - sb.append(" isFastRetry: ").append(toIndentedString(isFastRetry)).append("\n"); - sb.append(" isLastRetry: ").append(toIndentedString(isLastRetry)).append("\n"); - sb.append(" netpath: ").append(toIndentedString(netpath)).append("\n"); - sb.append(" netstats: ").append(toIndentedString(netstats)).append("\n"); - sb.append(" ocsp: ").append(toIndentedString(ocsp)).append("\n"); - sb.append(" ping: ").append(toIndentedString(ping)).append("\n"); - sb.append(" receivedEmailCount: ").append(toIndentedString(receivedEmailCount)).append("\n"); - sb.append(" receivedMessage: ").append(toIndentedString(receivedMessage)).append("\n"); - sb.append(" request: ").append(toIndentedString(request)).append("\n"); - sb.append(" resolvedIp: ").append(toIndentedString(resolvedIp)).append("\n"); - sb.append(" response: ").append(toIndentedString(response)).append("\n"); - sb.append(" runType: ").append(toIndentedString(runType)).append("\n"); - sb.append(" sentMessage: ").append(toIndentedString(sentMessage)).append("\n"); - sb.append(" startUrl: ").append(toIndentedString(startUrl)).append("\n"); - sb.append(" startedAt: ").append(toIndentedString(startedAt)).append("\n"); - sb.append(" status: ").append(toIndentedString(status)).append("\n"); - sb.append(" steps: ").append(toIndentedString(steps)).append("\n"); - sb.append(" timeToInteractive: ").append(toIndentedString(timeToInteractive)).append("\n"); - sb.append(" timings: ").append(toIndentedString(timings)).append("\n"); - sb.append(" trace: ").append(toIndentedString(trace)).append("\n"); - sb.append(" traceroute: ").append(toIndentedString(traceroute)).append("\n"); - sb.append(" triggeredAt: ").append(toIndentedString(triggeredAt)).append("\n"); - sb.append(" tunnel: ").append(toIndentedString(tunnel)).append("\n"); - sb.append(" turns: ").append(toIndentedString(turns)).append("\n"); - sb.append(" unhealthy: ").append(toIndentedString(unhealthy)).append("\n"); - sb.append(" variables: ").append(toIndentedString(variables)).append("\n"); - sb.append(" additionalProperties: ") - .append(toIndentedString(additionalProperties)) - .append("\n"); - sb.append('}'); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } -} diff --git a/src/main/java/com/datadog/api/client/v2/model/SyntheticsTestResultDevice.java b/src/main/java/com/datadog/api/client/v2/model/SyntheticsTestResultDevice.java deleted file mode 100644 index 8c0d0233603..00000000000 --- a/src/main/java/com/datadog/api/client/v2/model/SyntheticsTestResultDevice.java +++ /dev/null @@ -1,276 +0,0 @@ -/* - * 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. - */ - -package com.datadog.api.client.v2.model; - -import com.fasterxml.jackson.annotation.JsonAnyGetter; -import com.fasterxml.jackson.annotation.JsonAnySetter; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; - -/** Device information for the test result (browser and mobile tests). */ -@JsonPropertyOrder({ - SyntheticsTestResultDevice.JSON_PROPERTY_BROWSER, - SyntheticsTestResultDevice.JSON_PROPERTY_ID, - SyntheticsTestResultDevice.JSON_PROPERTY_NAME, - SyntheticsTestResultDevice.JSON_PROPERTY_PLATFORM, - SyntheticsTestResultDevice.JSON_PROPERTY_RESOLUTION, - SyntheticsTestResultDevice.JSON_PROPERTY_TYPE -}) -@jakarta.annotation.Generated( - value = "https://github.com/DataDog/datadog-api-client-java/blob/master/.generator") -public class SyntheticsTestResultDevice { - @JsonIgnore public boolean unparsed = false; - public static final String JSON_PROPERTY_BROWSER = "browser"; - private SyntheticsTestResultDeviceBrowser browser; - - public static final String JSON_PROPERTY_ID = "id"; - private String id; - - public static final String JSON_PROPERTY_NAME = "name"; - private String name; - - public static final String JSON_PROPERTY_PLATFORM = "platform"; - private SyntheticsTestResultDevicePlatform platform; - - public static final String JSON_PROPERTY_RESOLUTION = "resolution"; - private SyntheticsTestResultDeviceResolution resolution; - - public static final String JSON_PROPERTY_TYPE = "type"; - private String type; - - public SyntheticsTestResultDevice browser(SyntheticsTestResultDeviceBrowser browser) { - this.browser = browser; - this.unparsed |= browser.unparsed; - return this; - } - - /** - * Browser information for the device used to run the test. - * - * @return browser - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_BROWSER) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public SyntheticsTestResultDeviceBrowser getBrowser() { - return browser; - } - - public void setBrowser(SyntheticsTestResultDeviceBrowser browser) { - this.browser = browser; - } - - public SyntheticsTestResultDevice id(String id) { - this.id = id; - return this; - } - - /** - * Device identifier. - * - * @return id - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ID) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getId() { - return id; - } - - public void setId(String id) { - this.id = id; - } - - public SyntheticsTestResultDevice name(String name) { - this.name = name; - return this; - } - - /** - * Device name. - * - * @return name - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_NAME) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getName() { - return name; - } - - public void setName(String name) { - this.name = name; - } - - public SyntheticsTestResultDevice platform(SyntheticsTestResultDevicePlatform platform) { - this.platform = platform; - this.unparsed |= platform.unparsed; - return this; - } - - /** - * Platform information for the device used to run the test. - * - * @return platform - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_PLATFORM) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public SyntheticsTestResultDevicePlatform getPlatform() { - return platform; - } - - public void setPlatform(SyntheticsTestResultDevicePlatform platform) { - this.platform = platform; - } - - public SyntheticsTestResultDevice resolution(SyntheticsTestResultDeviceResolution resolution) { - this.resolution = resolution; - this.unparsed |= resolution.unparsed; - return this; - } - - /** - * Screen resolution of the device used to run the test. - * - * @return resolution - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_RESOLUTION) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public SyntheticsTestResultDeviceResolution getResolution() { - return resolution; - } - - public void setResolution(SyntheticsTestResultDeviceResolution resolution) { - this.resolution = resolution; - } - - public SyntheticsTestResultDevice type(String type) { - this.type = type; - return this; - } - - /** - * Device type. - * - * @return type - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_TYPE) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getType() { - return type; - } - - public void setType(String type) { - this.type = type; - } - - /** - * A container for additional, undeclared properties. This is a holder for any undeclared - * properties as specified with the 'additionalProperties' keyword in the OAS document. - */ - private Map additionalProperties; - - /** - * Set the additional (undeclared) property with the specified name and value. If the property - * does not already exist, create it otherwise replace it. - * - * @param key The arbitrary key to set - * @param value The associated value - * @return SyntheticsTestResultDevice - */ - @JsonAnySetter - public SyntheticsTestResultDevice putAdditionalProperty(String key, Object value) { - if (this.additionalProperties == null) { - this.additionalProperties = new HashMap(); - } - this.additionalProperties.put(key, value); - return this; - } - - /** - * Return the additional (undeclared) property. - * - * @return The additional properties - */ - @JsonAnyGetter - public Map getAdditionalProperties() { - return additionalProperties; - } - - /** - * Return the additional (undeclared) property with the specified name. - * - * @param key The arbitrary key to get - * @return The specific additional property for the given key - */ - public Object getAdditionalProperty(String key) { - if (this.additionalProperties == null) { - return null; - } - return this.additionalProperties.get(key); - } - - /** Return true if this SyntheticsTestResultDevice object is equal to o. */ - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - SyntheticsTestResultDevice syntheticsTestResultDevice = (SyntheticsTestResultDevice) o; - return Objects.equals(this.browser, syntheticsTestResultDevice.browser) - && Objects.equals(this.id, syntheticsTestResultDevice.id) - && Objects.equals(this.name, syntheticsTestResultDevice.name) - && Objects.equals(this.platform, syntheticsTestResultDevice.platform) - && Objects.equals(this.resolution, syntheticsTestResultDevice.resolution) - && Objects.equals(this.type, syntheticsTestResultDevice.type) - && Objects.equals( - this.additionalProperties, syntheticsTestResultDevice.additionalProperties); - } - - @Override - public int hashCode() { - return Objects.hash(browser, id, name, platform, resolution, type, additionalProperties); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class SyntheticsTestResultDevice {\n"); - sb.append(" browser: ").append(toIndentedString(browser)).append("\n"); - sb.append(" id: ").append(toIndentedString(id)).append("\n"); - sb.append(" name: ").append(toIndentedString(name)).append("\n"); - sb.append(" platform: ").append(toIndentedString(platform)).append("\n"); - sb.append(" resolution: ").append(toIndentedString(resolution)).append("\n"); - sb.append(" type: ").append(toIndentedString(type)).append("\n"); - sb.append(" additionalProperties: ") - .append(toIndentedString(additionalProperties)) - .append("\n"); - sb.append('}'); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } -} diff --git a/src/main/java/com/datadog/api/client/v2/model/SyntheticsTestResultDeviceBrowser.java b/src/main/java/com/datadog/api/client/v2/model/SyntheticsTestResultDeviceBrowser.java deleted file mode 100644 index 842c860c9eb..00000000000 --- a/src/main/java/com/datadog/api/client/v2/model/SyntheticsTestResultDeviceBrowser.java +++ /dev/null @@ -1,193 +0,0 @@ -/* - * 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. - */ - -package com.datadog.api.client.v2.model; - -import com.fasterxml.jackson.annotation.JsonAnyGetter; -import com.fasterxml.jackson.annotation.JsonAnySetter; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; - -/** Browser information for the device used to run the test. */ -@JsonPropertyOrder({ - SyntheticsTestResultDeviceBrowser.JSON_PROPERTY_TYPE, - SyntheticsTestResultDeviceBrowser.JSON_PROPERTY_USER_AGENT, - SyntheticsTestResultDeviceBrowser.JSON_PROPERTY_VERSION -}) -@jakarta.annotation.Generated( - value = "https://github.com/DataDog/datadog-api-client-java/blob/master/.generator") -public class SyntheticsTestResultDeviceBrowser { - @JsonIgnore public boolean unparsed = false; - public static final String JSON_PROPERTY_TYPE = "type"; - private String type; - - public static final String JSON_PROPERTY_USER_AGENT = "user_agent"; - private String userAgent; - - public static final String JSON_PROPERTY_VERSION = "version"; - private String version; - - public SyntheticsTestResultDeviceBrowser type(String type) { - this.type = type; - return this; - } - - /** - * Browser type (for example, chrome, firefox). - * - * @return type - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_TYPE) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getType() { - return type; - } - - public void setType(String type) { - this.type = type; - } - - public SyntheticsTestResultDeviceBrowser userAgent(String userAgent) { - this.userAgent = userAgent; - return this; - } - - /** - * User agent string reported by the browser. - * - * @return userAgent - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_USER_AGENT) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getUserAgent() { - return userAgent; - } - - public void setUserAgent(String userAgent) { - this.userAgent = userAgent; - } - - public SyntheticsTestResultDeviceBrowser version(String version) { - this.version = version; - return this; - } - - /** - * Browser version. - * - * @return version - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_VERSION) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getVersion() { - return version; - } - - public void setVersion(String version) { - this.version = version; - } - - /** - * A container for additional, undeclared properties. This is a holder for any undeclared - * properties as specified with the 'additionalProperties' keyword in the OAS document. - */ - private Map additionalProperties; - - /** - * Set the additional (undeclared) property with the specified name and value. If the property - * does not already exist, create it otherwise replace it. - * - * @param key The arbitrary key to set - * @param value The associated value - * @return SyntheticsTestResultDeviceBrowser - */ - @JsonAnySetter - public SyntheticsTestResultDeviceBrowser putAdditionalProperty(String key, Object value) { - if (this.additionalProperties == null) { - this.additionalProperties = new HashMap(); - } - this.additionalProperties.put(key, value); - return this; - } - - /** - * Return the additional (undeclared) property. - * - * @return The additional properties - */ - @JsonAnyGetter - public Map getAdditionalProperties() { - return additionalProperties; - } - - /** - * Return the additional (undeclared) property with the specified name. - * - * @param key The arbitrary key to get - * @return The specific additional property for the given key - */ - public Object getAdditionalProperty(String key) { - if (this.additionalProperties == null) { - return null; - } - return this.additionalProperties.get(key); - } - - /** Return true if this SyntheticsTestResultDeviceBrowser object is equal to o. */ - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - SyntheticsTestResultDeviceBrowser syntheticsTestResultDeviceBrowser = - (SyntheticsTestResultDeviceBrowser) o; - return Objects.equals(this.type, syntheticsTestResultDeviceBrowser.type) - && Objects.equals(this.userAgent, syntheticsTestResultDeviceBrowser.userAgent) - && Objects.equals(this.version, syntheticsTestResultDeviceBrowser.version) - && Objects.equals( - this.additionalProperties, syntheticsTestResultDeviceBrowser.additionalProperties); - } - - @Override - public int hashCode() { - return Objects.hash(type, userAgent, version, additionalProperties); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class SyntheticsTestResultDeviceBrowser {\n"); - sb.append(" type: ").append(toIndentedString(type)).append("\n"); - sb.append(" userAgent: ").append(toIndentedString(userAgent)).append("\n"); - sb.append(" version: ").append(toIndentedString(version)).append("\n"); - sb.append(" additionalProperties: ") - .append(toIndentedString(additionalProperties)) - .append("\n"); - sb.append('}'); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } -} diff --git a/src/main/java/com/datadog/api/client/v2/model/SyntheticsTestResultDevicePlatform.java b/src/main/java/com/datadog/api/client/v2/model/SyntheticsTestResultDevicePlatform.java deleted file mode 100644 index 8a14baa70b1..00000000000 --- a/src/main/java/com/datadog/api/client/v2/model/SyntheticsTestResultDevicePlatform.java +++ /dev/null @@ -1,166 +0,0 @@ -/* - * 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. - */ - -package com.datadog.api.client.v2.model; - -import com.fasterxml.jackson.annotation.JsonAnyGetter; -import com.fasterxml.jackson.annotation.JsonAnySetter; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; - -/** Platform information for the device used to run the test. */ -@JsonPropertyOrder({ - SyntheticsTestResultDevicePlatform.JSON_PROPERTY_NAME, - SyntheticsTestResultDevicePlatform.JSON_PROPERTY_VERSION -}) -@jakarta.annotation.Generated( - value = "https://github.com/DataDog/datadog-api-client-java/blob/master/.generator") -public class SyntheticsTestResultDevicePlatform { - @JsonIgnore public boolean unparsed = false; - public static final String JSON_PROPERTY_NAME = "name"; - private String name; - - public static final String JSON_PROPERTY_VERSION = "version"; - private String version; - - public SyntheticsTestResultDevicePlatform name(String name) { - this.name = name; - return this; - } - - /** - * Platform name (for example, linux, macos). - * - * @return name - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_NAME) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getName() { - return name; - } - - public void setName(String name) { - this.name = name; - } - - public SyntheticsTestResultDevicePlatform version(String version) { - this.version = version; - return this; - } - - /** - * Platform version. - * - * @return version - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_VERSION) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getVersion() { - return version; - } - - public void setVersion(String version) { - this.version = version; - } - - /** - * A container for additional, undeclared properties. This is a holder for any undeclared - * properties as specified with the 'additionalProperties' keyword in the OAS document. - */ - private Map additionalProperties; - - /** - * Set the additional (undeclared) property with the specified name and value. If the property - * does not already exist, create it otherwise replace it. - * - * @param key The arbitrary key to set - * @param value The associated value - * @return SyntheticsTestResultDevicePlatform - */ - @JsonAnySetter - public SyntheticsTestResultDevicePlatform putAdditionalProperty(String key, Object value) { - if (this.additionalProperties == null) { - this.additionalProperties = new HashMap(); - } - this.additionalProperties.put(key, value); - return this; - } - - /** - * Return the additional (undeclared) property. - * - * @return The additional properties - */ - @JsonAnyGetter - public Map getAdditionalProperties() { - return additionalProperties; - } - - /** - * Return the additional (undeclared) property with the specified name. - * - * @param key The arbitrary key to get - * @return The specific additional property for the given key - */ - public Object getAdditionalProperty(String key) { - if (this.additionalProperties == null) { - return null; - } - return this.additionalProperties.get(key); - } - - /** Return true if this SyntheticsTestResultDevicePlatform object is equal to o. */ - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - SyntheticsTestResultDevicePlatform syntheticsTestResultDevicePlatform = - (SyntheticsTestResultDevicePlatform) o; - return Objects.equals(this.name, syntheticsTestResultDevicePlatform.name) - && Objects.equals(this.version, syntheticsTestResultDevicePlatform.version) - && Objects.equals( - this.additionalProperties, syntheticsTestResultDevicePlatform.additionalProperties); - } - - @Override - public int hashCode() { - return Objects.hash(name, version, additionalProperties); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class SyntheticsTestResultDevicePlatform {\n"); - sb.append(" name: ").append(toIndentedString(name)).append("\n"); - sb.append(" version: ").append(toIndentedString(version)).append("\n"); - sb.append(" additionalProperties: ") - .append(toIndentedString(additionalProperties)) - .append("\n"); - sb.append('}'); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } -} diff --git a/src/main/java/com/datadog/api/client/v2/model/SyntheticsTestResultDeviceResolution.java b/src/main/java/com/datadog/api/client/v2/model/SyntheticsTestResultDeviceResolution.java deleted file mode 100644 index 5ea25412cbb..00000000000 --- a/src/main/java/com/datadog/api/client/v2/model/SyntheticsTestResultDeviceResolution.java +++ /dev/null @@ -1,193 +0,0 @@ -/* - * 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. - */ - -package com.datadog.api.client.v2.model; - -import com.fasterxml.jackson.annotation.JsonAnyGetter; -import com.fasterxml.jackson.annotation.JsonAnySetter; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; - -/** Screen resolution of the device used to run the test. */ -@JsonPropertyOrder({ - SyntheticsTestResultDeviceResolution.JSON_PROPERTY_HEIGHT, - SyntheticsTestResultDeviceResolution.JSON_PROPERTY_PIXEL_RATIO, - SyntheticsTestResultDeviceResolution.JSON_PROPERTY_WIDTH -}) -@jakarta.annotation.Generated( - value = "https://github.com/DataDog/datadog-api-client-java/blob/master/.generator") -public class SyntheticsTestResultDeviceResolution { - @JsonIgnore public boolean unparsed = false; - public static final String JSON_PROPERTY_HEIGHT = "height"; - private Long height; - - public static final String JSON_PROPERTY_PIXEL_RATIO = "pixel_ratio"; - private Double pixelRatio; - - public static final String JSON_PROPERTY_WIDTH = "width"; - private Long width; - - public SyntheticsTestResultDeviceResolution height(Long height) { - this.height = height; - return this; - } - - /** - * Viewport height in pixels. - * - * @return height - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_HEIGHT) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public Long getHeight() { - return height; - } - - public void setHeight(Long height) { - this.height = height; - } - - public SyntheticsTestResultDeviceResolution pixelRatio(Double pixelRatio) { - this.pixelRatio = pixelRatio; - return this; - } - - /** - * Device pixel ratio. - * - * @return pixelRatio - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_PIXEL_RATIO) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public Double getPixelRatio() { - return pixelRatio; - } - - public void setPixelRatio(Double pixelRatio) { - this.pixelRatio = pixelRatio; - } - - public SyntheticsTestResultDeviceResolution width(Long width) { - this.width = width; - return this; - } - - /** - * Viewport width in pixels. - * - * @return width - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_WIDTH) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public Long getWidth() { - return width; - } - - public void setWidth(Long width) { - this.width = width; - } - - /** - * A container for additional, undeclared properties. This is a holder for any undeclared - * properties as specified with the 'additionalProperties' keyword in the OAS document. - */ - private Map additionalProperties; - - /** - * Set the additional (undeclared) property with the specified name and value. If the property - * does not already exist, create it otherwise replace it. - * - * @param key The arbitrary key to set - * @param value The associated value - * @return SyntheticsTestResultDeviceResolution - */ - @JsonAnySetter - public SyntheticsTestResultDeviceResolution putAdditionalProperty(String key, Object value) { - if (this.additionalProperties == null) { - this.additionalProperties = new HashMap(); - } - this.additionalProperties.put(key, value); - return this; - } - - /** - * Return the additional (undeclared) property. - * - * @return The additional properties - */ - @JsonAnyGetter - public Map getAdditionalProperties() { - return additionalProperties; - } - - /** - * Return the additional (undeclared) property with the specified name. - * - * @param key The arbitrary key to get - * @return The specific additional property for the given key - */ - public Object getAdditionalProperty(String key) { - if (this.additionalProperties == null) { - return null; - } - return this.additionalProperties.get(key); - } - - /** Return true if this SyntheticsTestResultDeviceResolution object is equal to o. */ - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - SyntheticsTestResultDeviceResolution syntheticsTestResultDeviceResolution = - (SyntheticsTestResultDeviceResolution) o; - return Objects.equals(this.height, syntheticsTestResultDeviceResolution.height) - && Objects.equals(this.pixelRatio, syntheticsTestResultDeviceResolution.pixelRatio) - && Objects.equals(this.width, syntheticsTestResultDeviceResolution.width) - && Objects.equals( - this.additionalProperties, syntheticsTestResultDeviceResolution.additionalProperties); - } - - @Override - public int hashCode() { - return Objects.hash(height, pixelRatio, width, additionalProperties); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class SyntheticsTestResultDeviceResolution {\n"); - sb.append(" height: ").append(toIndentedString(height)).append("\n"); - sb.append(" pixelRatio: ").append(toIndentedString(pixelRatio)).append("\n"); - sb.append(" width: ").append(toIndentedString(width)).append("\n"); - sb.append(" additionalProperties: ") - .append(toIndentedString(additionalProperties)) - .append("\n"); - sb.append('}'); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } -} diff --git a/src/main/java/com/datadog/api/client/v2/model/SyntheticsTestResultDnsRecord.java b/src/main/java/com/datadog/api/client/v2/model/SyntheticsTestResultDnsRecord.java deleted file mode 100644 index f7cc4de705e..00000000000 --- a/src/main/java/com/datadog/api/client/v2/model/SyntheticsTestResultDnsRecord.java +++ /dev/null @@ -1,175 +0,0 @@ -/* - * 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. - */ - -package com.datadog.api.client.v2.model; - -import com.fasterxml.jackson.annotation.JsonAnyGetter; -import com.fasterxml.jackson.annotation.JsonAnySetter; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import java.util.ArrayList; -import java.util.HashMap; -import java.util.List; -import java.util.Map; -import java.util.Objects; - -/** A DNS record returned in a DNS test response. */ -@JsonPropertyOrder({ - SyntheticsTestResultDnsRecord.JSON_PROPERTY_TYPE, - SyntheticsTestResultDnsRecord.JSON_PROPERTY_VALUES -}) -@jakarta.annotation.Generated( - value = "https://github.com/DataDog/datadog-api-client-java/blob/master/.generator") -public class SyntheticsTestResultDnsRecord { - @JsonIgnore public boolean unparsed = false; - public static final String JSON_PROPERTY_TYPE = "type"; - private String type; - - public static final String JSON_PROPERTY_VALUES = "values"; - private List values = null; - - public SyntheticsTestResultDnsRecord type(String type) { - this.type = type; - return this; - } - - /** - * DNS record type (for example, A, AAAA, CNAME). - * - * @return type - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_TYPE) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getType() { - return type; - } - - public void setType(String type) { - this.type = type; - } - - public SyntheticsTestResultDnsRecord values(List values) { - this.values = values; - return this; - } - - public SyntheticsTestResultDnsRecord addValuesItem(String valuesItem) { - if (this.values == null) { - this.values = new ArrayList<>(); - } - this.values.add(valuesItem); - return this; - } - - /** - * Values associated with the DNS record. - * - * @return values - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_VALUES) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public List getValues() { - return values; - } - - public void setValues(List values) { - this.values = values; - } - - /** - * A container for additional, undeclared properties. This is a holder for any undeclared - * properties as specified with the 'additionalProperties' keyword in the OAS document. - */ - private Map additionalProperties; - - /** - * Set the additional (undeclared) property with the specified name and value. If the property - * does not already exist, create it otherwise replace it. - * - * @param key The arbitrary key to set - * @param value The associated value - * @return SyntheticsTestResultDnsRecord - */ - @JsonAnySetter - public SyntheticsTestResultDnsRecord putAdditionalProperty(String key, Object value) { - if (this.additionalProperties == null) { - this.additionalProperties = new HashMap(); - } - this.additionalProperties.put(key, value); - return this; - } - - /** - * Return the additional (undeclared) property. - * - * @return The additional properties - */ - @JsonAnyGetter - public Map getAdditionalProperties() { - return additionalProperties; - } - - /** - * Return the additional (undeclared) property with the specified name. - * - * @param key The arbitrary key to get - * @return The specific additional property for the given key - */ - public Object getAdditionalProperty(String key) { - if (this.additionalProperties == null) { - return null; - } - return this.additionalProperties.get(key); - } - - /** Return true if this SyntheticsTestResultDnsRecord object is equal to o. */ - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - SyntheticsTestResultDnsRecord syntheticsTestResultDnsRecord = (SyntheticsTestResultDnsRecord) o; - return Objects.equals(this.type, syntheticsTestResultDnsRecord.type) - && Objects.equals(this.values, syntheticsTestResultDnsRecord.values) - && Objects.equals( - this.additionalProperties, syntheticsTestResultDnsRecord.additionalProperties); - } - - @Override - public int hashCode() { - return Objects.hash(type, values, additionalProperties); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class SyntheticsTestResultDnsRecord {\n"); - sb.append(" type: ").append(toIndentedString(type)).append("\n"); - sb.append(" values: ").append(toIndentedString(values)).append("\n"); - sb.append(" additionalProperties: ") - .append(toIndentedString(additionalProperties)) - .append("\n"); - sb.append('}'); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } -} diff --git a/src/main/java/com/datadog/api/client/v2/model/SyntheticsTestResultDnsResolution.java b/src/main/java/com/datadog/api/client/v2/model/SyntheticsTestResultDnsResolution.java deleted file mode 100644 index 0e9286f7b27..00000000000 --- a/src/main/java/com/datadog/api/client/v2/model/SyntheticsTestResultDnsResolution.java +++ /dev/null @@ -1,230 +0,0 @@ -/* - * 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. - */ - -package com.datadog.api.client.v2.model; - -import com.fasterxml.jackson.annotation.JsonAnyGetter; -import com.fasterxml.jackson.annotation.JsonAnySetter; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import java.util.ArrayList; -import java.util.HashMap; -import java.util.List; -import java.util.Map; -import java.util.Objects; - -/** DNS resolution details recorded during the test execution. */ -@JsonPropertyOrder({ - SyntheticsTestResultDnsResolution.JSON_PROPERTY_ATTEMPTS, - SyntheticsTestResultDnsResolution.JSON_PROPERTY_RESOLVED_IP, - SyntheticsTestResultDnsResolution.JSON_PROPERTY_RESOLVED_PORT, - SyntheticsTestResultDnsResolution.JSON_PROPERTY_SERVER -}) -@jakarta.annotation.Generated( - value = "https://github.com/DataDog/datadog-api-client-java/blob/master/.generator") -public class SyntheticsTestResultDnsResolution { - @JsonIgnore public boolean unparsed = false; - public static final String JSON_PROPERTY_ATTEMPTS = "attempts"; - private List> attempts = null; - - public static final String JSON_PROPERTY_RESOLVED_IP = "resolved_ip"; - private String resolvedIp; - - public static final String JSON_PROPERTY_RESOLVED_PORT = "resolved_port"; - private String resolvedPort; - - public static final String JSON_PROPERTY_SERVER = "server"; - private String server; - - public SyntheticsTestResultDnsResolution attempts(List> attempts) { - this.attempts = attempts; - return this; - } - - public SyntheticsTestResultDnsResolution addAttemptsItem(Map attemptsItem) { - if (this.attempts == null) { - this.attempts = new ArrayList<>(); - } - this.attempts.add(attemptsItem); - return this; - } - - /** - * DNS resolution attempts made during the test. - * - * @return attempts - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ATTEMPTS) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public List> getAttempts() { - return attempts; - } - - public void setAttempts(List> attempts) { - this.attempts = attempts; - } - - public SyntheticsTestResultDnsResolution resolvedIp(String resolvedIp) { - this.resolvedIp = resolvedIp; - return this; - } - - /** - * Resolved IP address for the target host. - * - * @return resolvedIp - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_RESOLVED_IP) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getResolvedIp() { - return resolvedIp; - } - - public void setResolvedIp(String resolvedIp) { - this.resolvedIp = resolvedIp; - } - - public SyntheticsTestResultDnsResolution resolvedPort(String resolvedPort) { - this.resolvedPort = resolvedPort; - return this; - } - - /** - * Resolved port for the target service. - * - * @return resolvedPort - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_RESOLVED_PORT) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getResolvedPort() { - return resolvedPort; - } - - public void setResolvedPort(String resolvedPort) { - this.resolvedPort = resolvedPort; - } - - public SyntheticsTestResultDnsResolution server(String server) { - this.server = server; - return this; - } - - /** - * DNS server used for the resolution. - * - * @return server - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_SERVER) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getServer() { - return server; - } - - public void setServer(String server) { - this.server = server; - } - - /** - * A container for additional, undeclared properties. This is a holder for any undeclared - * properties as specified with the 'additionalProperties' keyword in the OAS document. - */ - private Map additionalProperties; - - /** - * Set the additional (undeclared) property with the specified name and value. If the property - * does not already exist, create it otherwise replace it. - * - * @param key The arbitrary key to set - * @param value The associated value - * @return SyntheticsTestResultDnsResolution - */ - @JsonAnySetter - public SyntheticsTestResultDnsResolution putAdditionalProperty(String key, Object value) { - if (this.additionalProperties == null) { - this.additionalProperties = new HashMap(); - } - this.additionalProperties.put(key, value); - return this; - } - - /** - * Return the additional (undeclared) property. - * - * @return The additional properties - */ - @JsonAnyGetter - public Map getAdditionalProperties() { - return additionalProperties; - } - - /** - * Return the additional (undeclared) property with the specified name. - * - * @param key The arbitrary key to get - * @return The specific additional property for the given key - */ - public Object getAdditionalProperty(String key) { - if (this.additionalProperties == null) { - return null; - } - return this.additionalProperties.get(key); - } - - /** Return true if this SyntheticsTestResultDnsResolution object is equal to o. */ - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - SyntheticsTestResultDnsResolution syntheticsTestResultDnsResolution = - (SyntheticsTestResultDnsResolution) o; - return Objects.equals(this.attempts, syntheticsTestResultDnsResolution.attempts) - && Objects.equals(this.resolvedIp, syntheticsTestResultDnsResolution.resolvedIp) - && Objects.equals(this.resolvedPort, syntheticsTestResultDnsResolution.resolvedPort) - && Objects.equals(this.server, syntheticsTestResultDnsResolution.server) - && Objects.equals( - this.additionalProperties, syntheticsTestResultDnsResolution.additionalProperties); - } - - @Override - public int hashCode() { - return Objects.hash(attempts, resolvedIp, resolvedPort, server, additionalProperties); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class SyntheticsTestResultDnsResolution {\n"); - sb.append(" attempts: ").append(toIndentedString(attempts)).append("\n"); - sb.append(" resolvedIp: ").append(toIndentedString(resolvedIp)).append("\n"); - sb.append(" resolvedPort: ").append(toIndentedString(resolvedPort)).append("\n"); - sb.append(" server: ").append(toIndentedString(server)).append("\n"); - sb.append(" additionalProperties: ") - .append(toIndentedString(additionalProperties)) - .append("\n"); - sb.append('}'); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } -} diff --git a/src/main/java/com/datadog/api/client/v2/model/SyntheticsTestResultDuration.java b/src/main/java/com/datadog/api/client/v2/model/SyntheticsTestResultDuration.java deleted file mode 100644 index 066a445dedc..00000000000 --- a/src/main/java/com/datadog/api/client/v2/model/SyntheticsTestResultDuration.java +++ /dev/null @@ -1,165 +0,0 @@ -/* - * 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. - */ - -package com.datadog.api.client.v2.model; - -import com.fasterxml.jackson.annotation.JsonAnyGetter; -import com.fasterxml.jackson.annotation.JsonAnySetter; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; - -/** Total duration of a Synthetic test execution. */ -@JsonPropertyOrder({ - SyntheticsTestResultDuration.JSON_PROPERTY_HAS_DURATION, - SyntheticsTestResultDuration.JSON_PROPERTY_VALUE -}) -@jakarta.annotation.Generated( - value = "https://github.com/DataDog/datadog-api-client-java/blob/master/.generator") -public class SyntheticsTestResultDuration { - @JsonIgnore public boolean unparsed = false; - public static final String JSON_PROPERTY_HAS_DURATION = "has_duration"; - private Boolean hasDuration; - - public static final String JSON_PROPERTY_VALUE = "value"; - private Long value; - - public SyntheticsTestResultDuration hasDuration(Boolean hasDuration) { - this.hasDuration = hasDuration; - return this; - } - - /** - * Whether a duration was recorded for this execution. - * - * @return hasDuration - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_HAS_DURATION) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public Boolean getHasDuration() { - return hasDuration; - } - - public void setHasDuration(Boolean hasDuration) { - this.hasDuration = hasDuration; - } - - public SyntheticsTestResultDuration value(Long value) { - this.value = value; - return this; - } - - /** - * Duration value in milliseconds. - * - * @return value - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_VALUE) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public Long getValue() { - return value; - } - - public void setValue(Long value) { - this.value = value; - } - - /** - * A container for additional, undeclared properties. This is a holder for any undeclared - * properties as specified with the 'additionalProperties' keyword in the OAS document. - */ - private Map additionalProperties; - - /** - * Set the additional (undeclared) property with the specified name and value. If the property - * does not already exist, create it otherwise replace it. - * - * @param key The arbitrary key to set - * @param value The associated value - * @return SyntheticsTestResultDuration - */ - @JsonAnySetter - public SyntheticsTestResultDuration putAdditionalProperty(String key, Object value) { - if (this.additionalProperties == null) { - this.additionalProperties = new HashMap(); - } - this.additionalProperties.put(key, value); - return this; - } - - /** - * Return the additional (undeclared) property. - * - * @return The additional properties - */ - @JsonAnyGetter - public Map getAdditionalProperties() { - return additionalProperties; - } - - /** - * Return the additional (undeclared) property with the specified name. - * - * @param key The arbitrary key to get - * @return The specific additional property for the given key - */ - public Object getAdditionalProperty(String key) { - if (this.additionalProperties == null) { - return null; - } - return this.additionalProperties.get(key); - } - - /** Return true if this SyntheticsTestResultDuration object is equal to o. */ - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - SyntheticsTestResultDuration syntheticsTestResultDuration = (SyntheticsTestResultDuration) o; - return Objects.equals(this.hasDuration, syntheticsTestResultDuration.hasDuration) - && Objects.equals(this.value, syntheticsTestResultDuration.value) - && Objects.equals( - this.additionalProperties, syntheticsTestResultDuration.additionalProperties); - } - - @Override - public int hashCode() { - return Objects.hash(hasDuration, value, additionalProperties); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class SyntheticsTestResultDuration {\n"); - sb.append(" hasDuration: ").append(toIndentedString(hasDuration)).append("\n"); - sb.append(" value: ").append(toIndentedString(value)).append("\n"); - sb.append(" additionalProperties: ") - .append(toIndentedString(additionalProperties)) - .append("\n"); - sb.append('}'); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } -} diff --git a/src/main/java/com/datadog/api/client/v2/model/SyntheticsTestResultExecutionInfo.java b/src/main/java/com/datadog/api/client/v2/model/SyntheticsTestResultExecutionInfo.java deleted file mode 100644 index 30a2924f9ce..00000000000 --- a/src/main/java/com/datadog/api/client/v2/model/SyntheticsTestResultExecutionInfo.java +++ /dev/null @@ -1,284 +0,0 @@ -/* - * 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. - */ - -package com.datadog.api.client.v2.model; - -import com.fasterxml.jackson.annotation.JsonAnyGetter; -import com.fasterxml.jackson.annotation.JsonAnySetter; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; - -/** Execution details for a Synthetic test result. */ -@JsonPropertyOrder({ - SyntheticsTestResultExecutionInfo.JSON_PROPERTY_DURATION, - SyntheticsTestResultExecutionInfo.JSON_PROPERTY_ERROR_MESSAGE, - SyntheticsTestResultExecutionInfo.JSON_PROPERTY_IS_FAST_RETRY, - SyntheticsTestResultExecutionInfo.JSON_PROPERTY_TIMINGS, - SyntheticsTestResultExecutionInfo.JSON_PROPERTY_TUNNEL, - SyntheticsTestResultExecutionInfo.JSON_PROPERTY_UNHEALTHY -}) -@jakarta.annotation.Generated( - value = "https://github.com/DataDog/datadog-api-client-java/blob/master/.generator") -public class SyntheticsTestResultExecutionInfo { - @JsonIgnore public boolean unparsed = false; - public static final String JSON_PROPERTY_DURATION = "duration"; - private SyntheticsTestResultDuration duration; - - public static final String JSON_PROPERTY_ERROR_MESSAGE = "error_message"; - private String errorMessage; - - public static final String JSON_PROPERTY_IS_FAST_RETRY = "is_fast_retry"; - private Boolean isFastRetry; - - public static final String JSON_PROPERTY_TIMINGS = "timings"; - private Map timings = null; - - public static final String JSON_PROPERTY_TUNNEL = "tunnel"; - private Boolean tunnel; - - public static final String JSON_PROPERTY_UNHEALTHY = "unhealthy"; - private Boolean unhealthy; - - public SyntheticsTestResultExecutionInfo duration(SyntheticsTestResultDuration duration) { - this.duration = duration; - this.unparsed |= duration.unparsed; - return this; - } - - /** - * Total duration of a Synthetic test execution. - * - * @return duration - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_DURATION) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public SyntheticsTestResultDuration getDuration() { - return duration; - } - - public void setDuration(SyntheticsTestResultDuration duration) { - this.duration = duration; - } - - public SyntheticsTestResultExecutionInfo errorMessage(String errorMessage) { - this.errorMessage = errorMessage; - return this; - } - - /** - * Error message if the execution encountered an issue. - * - * @return errorMessage - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ERROR_MESSAGE) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getErrorMessage() { - return errorMessage; - } - - public void setErrorMessage(String errorMessage) { - this.errorMessage = errorMessage; - } - - public SyntheticsTestResultExecutionInfo isFastRetry(Boolean isFastRetry) { - this.isFastRetry = isFastRetry; - return this; - } - - /** - * Whether this result is from a fast retry. - * - * @return isFastRetry - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_IS_FAST_RETRY) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public Boolean getIsFastRetry() { - return isFastRetry; - } - - public void setIsFastRetry(Boolean isFastRetry) { - this.isFastRetry = isFastRetry; - } - - public SyntheticsTestResultExecutionInfo timings(Map timings) { - this.timings = timings; - return this; - } - - public SyntheticsTestResultExecutionInfo putTimingsItem(String key, Object timingsItem) { - if (this.timings == null) { - this.timings = new HashMap<>(); - } - this.timings.put(key, timingsItem); - return this; - } - - /** - * Timing breakdown of the test execution in milliseconds. - * - * @return timings - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_TIMINGS) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public Map getTimings() { - return timings; - } - - public void setTimings(Map timings) { - this.timings = timings; - } - - public SyntheticsTestResultExecutionInfo tunnel(Boolean tunnel) { - this.tunnel = tunnel; - return this; - } - - /** - * Whether the test was executed through a tunnel. - * - * @return tunnel - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_TUNNEL) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public Boolean getTunnel() { - return tunnel; - } - - public void setTunnel(Boolean tunnel) { - this.tunnel = tunnel; - } - - public SyntheticsTestResultExecutionInfo unhealthy(Boolean unhealthy) { - this.unhealthy = unhealthy; - return this; - } - - /** - * Whether the location was unhealthy during execution. - * - * @return unhealthy - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_UNHEALTHY) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public Boolean getUnhealthy() { - return unhealthy; - } - - public void setUnhealthy(Boolean unhealthy) { - this.unhealthy = unhealthy; - } - - /** - * A container for additional, undeclared properties. This is a holder for any undeclared - * properties as specified with the 'additionalProperties' keyword in the OAS document. - */ - private Map additionalProperties; - - /** - * Set the additional (undeclared) property with the specified name and value. If the property - * does not already exist, create it otherwise replace it. - * - * @param key The arbitrary key to set - * @param value The associated value - * @return SyntheticsTestResultExecutionInfo - */ - @JsonAnySetter - public SyntheticsTestResultExecutionInfo putAdditionalProperty(String key, Object value) { - if (this.additionalProperties == null) { - this.additionalProperties = new HashMap(); - } - this.additionalProperties.put(key, value); - return this; - } - - /** - * Return the additional (undeclared) property. - * - * @return The additional properties - */ - @JsonAnyGetter - public Map getAdditionalProperties() { - return additionalProperties; - } - - /** - * Return the additional (undeclared) property with the specified name. - * - * @param key The arbitrary key to get - * @return The specific additional property for the given key - */ - public Object getAdditionalProperty(String key) { - if (this.additionalProperties == null) { - return null; - } - return this.additionalProperties.get(key); - } - - /** Return true if this SyntheticsTestResultExecutionInfo object is equal to o. */ - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - SyntheticsTestResultExecutionInfo syntheticsTestResultExecutionInfo = - (SyntheticsTestResultExecutionInfo) o; - return Objects.equals(this.duration, syntheticsTestResultExecutionInfo.duration) - && Objects.equals(this.errorMessage, syntheticsTestResultExecutionInfo.errorMessage) - && Objects.equals(this.isFastRetry, syntheticsTestResultExecutionInfo.isFastRetry) - && Objects.equals(this.timings, syntheticsTestResultExecutionInfo.timings) - && Objects.equals(this.tunnel, syntheticsTestResultExecutionInfo.tunnel) - && Objects.equals(this.unhealthy, syntheticsTestResultExecutionInfo.unhealthy) - && Objects.equals( - this.additionalProperties, syntheticsTestResultExecutionInfo.additionalProperties); - } - - @Override - public int hashCode() { - return Objects.hash( - duration, errorMessage, isFastRetry, timings, tunnel, unhealthy, additionalProperties); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class SyntheticsTestResultExecutionInfo {\n"); - sb.append(" duration: ").append(toIndentedString(duration)).append("\n"); - sb.append(" errorMessage: ").append(toIndentedString(errorMessage)).append("\n"); - sb.append(" isFastRetry: ").append(toIndentedString(isFastRetry)).append("\n"); - sb.append(" timings: ").append(toIndentedString(timings)).append("\n"); - sb.append(" tunnel: ").append(toIndentedString(tunnel)).append("\n"); - sb.append(" unhealthy: ").append(toIndentedString(unhealthy)).append("\n"); - sb.append(" additionalProperties: ") - .append(toIndentedString(additionalProperties)) - .append("\n"); - sb.append('}'); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } -} diff --git a/src/main/java/com/datadog/api/client/v2/model/SyntheticsTestResultFailure.java b/src/main/java/com/datadog/api/client/v2/model/SyntheticsTestResultFailure.java deleted file mode 100644 index 12703cffe64..00000000000 --- a/src/main/java/com/datadog/api/client/v2/model/SyntheticsTestResultFailure.java +++ /dev/null @@ -1,219 +0,0 @@ -/* - * 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. - */ - -package com.datadog.api.client.v2.model; - -import com.fasterxml.jackson.annotation.JsonAnyGetter; -import com.fasterxml.jackson.annotation.JsonAnySetter; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; - -/** Details about the failure of a Synthetic test. */ -@JsonPropertyOrder({ - SyntheticsTestResultFailure.JSON_PROPERTY_CODE, - SyntheticsTestResultFailure.JSON_PROPERTY_INTERNAL_CODE, - SyntheticsTestResultFailure.JSON_PROPERTY_INTERNAL_MESSAGE, - SyntheticsTestResultFailure.JSON_PROPERTY_MESSAGE -}) -@jakarta.annotation.Generated( - value = "https://github.com/DataDog/datadog-api-client-java/blob/master/.generator") -public class SyntheticsTestResultFailure { - @JsonIgnore public boolean unparsed = false; - public static final String JSON_PROPERTY_CODE = "code"; - private String code; - - public static final String JSON_PROPERTY_INTERNAL_CODE = "internal_code"; - private String internalCode; - - public static final String JSON_PROPERTY_INTERNAL_MESSAGE = "internal_message"; - private String internalMessage; - - public static final String JSON_PROPERTY_MESSAGE = "message"; - private String message; - - public SyntheticsTestResultFailure code(String code) { - this.code = code; - return this; - } - - /** - * Error code for the failure. - * - * @return code - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_CODE) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getCode() { - return code; - } - - public void setCode(String code) { - this.code = code; - } - - public SyntheticsTestResultFailure internalCode(String internalCode) { - this.internalCode = internalCode; - return this; - } - - /** - * Internal error code used for debugging. - * - * @return internalCode - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_INTERNAL_CODE) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getInternalCode() { - return internalCode; - } - - public void setInternalCode(String internalCode) { - this.internalCode = internalCode; - } - - public SyntheticsTestResultFailure internalMessage(String internalMessage) { - this.internalMessage = internalMessage; - return this; - } - - /** - * Internal error message used for debugging. - * - * @return internalMessage - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_INTERNAL_MESSAGE) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getInternalMessage() { - return internalMessage; - } - - public void setInternalMessage(String internalMessage) { - this.internalMessage = internalMessage; - } - - public SyntheticsTestResultFailure message(String message) { - this.message = message; - return this; - } - - /** - * Error message for the failure. - * - * @return message - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_MESSAGE) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getMessage() { - return message; - } - - public void setMessage(String message) { - this.message = message; - } - - /** - * A container for additional, undeclared properties. This is a holder for any undeclared - * properties as specified with the 'additionalProperties' keyword in the OAS document. - */ - private Map additionalProperties; - - /** - * Set the additional (undeclared) property with the specified name and value. If the property - * does not already exist, create it otherwise replace it. - * - * @param key The arbitrary key to set - * @param value The associated value - * @return SyntheticsTestResultFailure - */ - @JsonAnySetter - public SyntheticsTestResultFailure putAdditionalProperty(String key, Object value) { - if (this.additionalProperties == null) { - this.additionalProperties = new HashMap(); - } - this.additionalProperties.put(key, value); - return this; - } - - /** - * Return the additional (undeclared) property. - * - * @return The additional properties - */ - @JsonAnyGetter - public Map getAdditionalProperties() { - return additionalProperties; - } - - /** - * Return the additional (undeclared) property with the specified name. - * - * @param key The arbitrary key to get - * @return The specific additional property for the given key - */ - public Object getAdditionalProperty(String key) { - if (this.additionalProperties == null) { - return null; - } - return this.additionalProperties.get(key); - } - - /** Return true if this SyntheticsTestResultFailure object is equal to o. */ - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - SyntheticsTestResultFailure syntheticsTestResultFailure = (SyntheticsTestResultFailure) o; - return Objects.equals(this.code, syntheticsTestResultFailure.code) - && Objects.equals(this.internalCode, syntheticsTestResultFailure.internalCode) - && Objects.equals(this.internalMessage, syntheticsTestResultFailure.internalMessage) - && Objects.equals(this.message, syntheticsTestResultFailure.message) - && Objects.equals( - this.additionalProperties, syntheticsTestResultFailure.additionalProperties); - } - - @Override - public int hashCode() { - return Objects.hash(code, internalCode, internalMessage, message, additionalProperties); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class SyntheticsTestResultFailure {\n"); - sb.append(" code: ").append(toIndentedString(code)).append("\n"); - sb.append(" internalCode: ").append(toIndentedString(internalCode)).append("\n"); - sb.append(" internalMessage: ").append(toIndentedString(internalMessage)).append("\n"); - sb.append(" message: ").append(toIndentedString(message)).append("\n"); - sb.append(" additionalProperties: ") - .append(toIndentedString(additionalProperties)) - .append("\n"); - sb.append('}'); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } -} diff --git a/src/main/java/com/datadog/api/client/v2/model/SyntheticsTestResultFileRef.java b/src/main/java/com/datadog/api/client/v2/model/SyntheticsTestResultFileRef.java deleted file mode 100644 index 965d37957a3..00000000000 --- a/src/main/java/com/datadog/api/client/v2/model/SyntheticsTestResultFileRef.java +++ /dev/null @@ -1,246 +0,0 @@ -/* - * 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. - */ - -package com.datadog.api.client.v2.model; - -import com.fasterxml.jackson.annotation.JsonAnyGetter; -import com.fasterxml.jackson.annotation.JsonAnySetter; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; - -/** Reference to a file attached to a Synthetic test request. */ -@JsonPropertyOrder({ - SyntheticsTestResultFileRef.JSON_PROPERTY_BUCKET_KEY, - SyntheticsTestResultFileRef.JSON_PROPERTY_ENCODING, - SyntheticsTestResultFileRef.JSON_PROPERTY_NAME, - SyntheticsTestResultFileRef.JSON_PROPERTY_SIZE, - SyntheticsTestResultFileRef.JSON_PROPERTY_TYPE -}) -@jakarta.annotation.Generated( - value = "https://github.com/DataDog/datadog-api-client-java/blob/master/.generator") -public class SyntheticsTestResultFileRef { - @JsonIgnore public boolean unparsed = false; - public static final String JSON_PROPERTY_BUCKET_KEY = "bucket_key"; - private String bucketKey; - - public static final String JSON_PROPERTY_ENCODING = "encoding"; - private String encoding; - - public static final String JSON_PROPERTY_NAME = "name"; - private String name; - - public static final String JSON_PROPERTY_SIZE = "size"; - private Long size; - - public static final String JSON_PROPERTY_TYPE = "type"; - private String type; - - public SyntheticsTestResultFileRef bucketKey(String bucketKey) { - this.bucketKey = bucketKey; - return this; - } - - /** - * Storage bucket key where the file is stored. - * - * @return bucketKey - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_BUCKET_KEY) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getBucketKey() { - return bucketKey; - } - - public void setBucketKey(String bucketKey) { - this.bucketKey = bucketKey; - } - - public SyntheticsTestResultFileRef encoding(String encoding) { - this.encoding = encoding; - return this; - } - - /** - * Encoding of the file contents. - * - * @return encoding - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ENCODING) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getEncoding() { - return encoding; - } - - public void setEncoding(String encoding) { - this.encoding = encoding; - } - - public SyntheticsTestResultFileRef name(String name) { - this.name = name; - return this; - } - - /** - * File name. - * - * @return name - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_NAME) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getName() { - return name; - } - - public void setName(String name) { - this.name = name; - } - - public SyntheticsTestResultFileRef size(Long size) { - this.size = size; - return this; - } - - /** - * File size in bytes. - * - * @return size - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_SIZE) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public Long getSize() { - return size; - } - - public void setSize(Long size) { - this.size = size; - } - - public SyntheticsTestResultFileRef type(String type) { - this.type = type; - return this; - } - - /** - * File MIME type. - * - * @return type - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_TYPE) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getType() { - return type; - } - - public void setType(String type) { - this.type = type; - } - - /** - * A container for additional, undeclared properties. This is a holder for any undeclared - * properties as specified with the 'additionalProperties' keyword in the OAS document. - */ - private Map additionalProperties; - - /** - * Set the additional (undeclared) property with the specified name and value. If the property - * does not already exist, create it otherwise replace it. - * - * @param key The arbitrary key to set - * @param value The associated value - * @return SyntheticsTestResultFileRef - */ - @JsonAnySetter - public SyntheticsTestResultFileRef putAdditionalProperty(String key, Object value) { - if (this.additionalProperties == null) { - this.additionalProperties = new HashMap(); - } - this.additionalProperties.put(key, value); - return this; - } - - /** - * Return the additional (undeclared) property. - * - * @return The additional properties - */ - @JsonAnyGetter - public Map getAdditionalProperties() { - return additionalProperties; - } - - /** - * Return the additional (undeclared) property with the specified name. - * - * @param key The arbitrary key to get - * @return The specific additional property for the given key - */ - public Object getAdditionalProperty(String key) { - if (this.additionalProperties == null) { - return null; - } - return this.additionalProperties.get(key); - } - - /** Return true if this SyntheticsTestResultFileRef object is equal to o. */ - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - SyntheticsTestResultFileRef syntheticsTestResultFileRef = (SyntheticsTestResultFileRef) o; - return Objects.equals(this.bucketKey, syntheticsTestResultFileRef.bucketKey) - && Objects.equals(this.encoding, syntheticsTestResultFileRef.encoding) - && Objects.equals(this.name, syntheticsTestResultFileRef.name) - && Objects.equals(this.size, syntheticsTestResultFileRef.size) - && Objects.equals(this.type, syntheticsTestResultFileRef.type) - && Objects.equals( - this.additionalProperties, syntheticsTestResultFileRef.additionalProperties); - } - - @Override - public int hashCode() { - return Objects.hash(bucketKey, encoding, name, size, type, additionalProperties); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class SyntheticsTestResultFileRef {\n"); - sb.append(" bucketKey: ").append(toIndentedString(bucketKey)).append("\n"); - sb.append(" encoding: ").append(toIndentedString(encoding)).append("\n"); - sb.append(" name: ").append(toIndentedString(name)).append("\n"); - sb.append(" size: ").append(toIndentedString(size)).append("\n"); - sb.append(" type: ").append(toIndentedString(type)).append("\n"); - sb.append(" additionalProperties: ") - .append(toIndentedString(additionalProperties)) - .append("\n"); - sb.append('}'); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } -} diff --git a/src/main/java/com/datadog/api/client/v2/model/SyntheticsTestResultGit.java b/src/main/java/com/datadog/api/client/v2/model/SyntheticsTestResultGit.java deleted file mode 100644 index 74fc6003944..00000000000 --- a/src/main/java/com/datadog/api/client/v2/model/SyntheticsTestResultGit.java +++ /dev/null @@ -1,192 +0,0 @@ -/* - * 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. - */ - -package com.datadog.api.client.v2.model; - -import com.fasterxml.jackson.annotation.JsonAnyGetter; -import com.fasterxml.jackson.annotation.JsonAnySetter; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; - -/** Git information associated with the test result. */ -@JsonPropertyOrder({ - SyntheticsTestResultGit.JSON_PROPERTY_BRANCH, - SyntheticsTestResultGit.JSON_PROPERTY_COMMIT, - SyntheticsTestResultGit.JSON_PROPERTY_REPOSITORY_URL -}) -@jakarta.annotation.Generated( - value = "https://github.com/DataDog/datadog-api-client-java/blob/master/.generator") -public class SyntheticsTestResultGit { - @JsonIgnore public boolean unparsed = false; - public static final String JSON_PROPERTY_BRANCH = "branch"; - private String branch; - - public static final String JSON_PROPERTY_COMMIT = "commit"; - private SyntheticsTestResultGitCommit commit; - - public static final String JSON_PROPERTY_REPOSITORY_URL = "repository_url"; - private String repositoryUrl; - - public SyntheticsTestResultGit branch(String branch) { - this.branch = branch; - return this; - } - - /** - * Git branch name. - * - * @return branch - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_BRANCH) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getBranch() { - return branch; - } - - public void setBranch(String branch) { - this.branch = branch; - } - - public SyntheticsTestResultGit commit(SyntheticsTestResultGitCommit commit) { - this.commit = commit; - this.unparsed |= commit.unparsed; - return this; - } - - /** - * Details of the Git commit associated with the test result. - * - * @return commit - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_COMMIT) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public SyntheticsTestResultGitCommit getCommit() { - return commit; - } - - public void setCommit(SyntheticsTestResultGitCommit commit) { - this.commit = commit; - } - - public SyntheticsTestResultGit repositoryUrl(String repositoryUrl) { - this.repositoryUrl = repositoryUrl; - return this; - } - - /** - * Git repository URL. - * - * @return repositoryUrl - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_REPOSITORY_URL) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getRepositoryUrl() { - return repositoryUrl; - } - - public void setRepositoryUrl(String repositoryUrl) { - this.repositoryUrl = repositoryUrl; - } - - /** - * A container for additional, undeclared properties. This is a holder for any undeclared - * properties as specified with the 'additionalProperties' keyword in the OAS document. - */ - private Map additionalProperties; - - /** - * Set the additional (undeclared) property with the specified name and value. If the property - * does not already exist, create it otherwise replace it. - * - * @param key The arbitrary key to set - * @param value The associated value - * @return SyntheticsTestResultGit - */ - @JsonAnySetter - public SyntheticsTestResultGit putAdditionalProperty(String key, Object value) { - if (this.additionalProperties == null) { - this.additionalProperties = new HashMap(); - } - this.additionalProperties.put(key, value); - return this; - } - - /** - * Return the additional (undeclared) property. - * - * @return The additional properties - */ - @JsonAnyGetter - public Map getAdditionalProperties() { - return additionalProperties; - } - - /** - * Return the additional (undeclared) property with the specified name. - * - * @param key The arbitrary key to get - * @return The specific additional property for the given key - */ - public Object getAdditionalProperty(String key) { - if (this.additionalProperties == null) { - return null; - } - return this.additionalProperties.get(key); - } - - /** Return true if this SyntheticsTestResultGit object is equal to o. */ - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - SyntheticsTestResultGit syntheticsTestResultGit = (SyntheticsTestResultGit) o; - return Objects.equals(this.branch, syntheticsTestResultGit.branch) - && Objects.equals(this.commit, syntheticsTestResultGit.commit) - && Objects.equals(this.repositoryUrl, syntheticsTestResultGit.repositoryUrl) - && Objects.equals(this.additionalProperties, syntheticsTestResultGit.additionalProperties); - } - - @Override - public int hashCode() { - return Objects.hash(branch, commit, repositoryUrl, additionalProperties); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class SyntheticsTestResultGit {\n"); - sb.append(" branch: ").append(toIndentedString(branch)).append("\n"); - sb.append(" commit: ").append(toIndentedString(commit)).append("\n"); - sb.append(" repositoryUrl: ").append(toIndentedString(repositoryUrl)).append("\n"); - sb.append(" additionalProperties: ") - .append(toIndentedString(additionalProperties)) - .append("\n"); - sb.append('}'); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } -} diff --git a/src/main/java/com/datadog/api/client/v2/model/SyntheticsTestResultGitCommit.java b/src/main/java/com/datadog/api/client/v2/model/SyntheticsTestResultGitCommit.java deleted file mode 100644 index 950dd30c026..00000000000 --- a/src/main/java/com/datadog/api/client/v2/model/SyntheticsTestResultGitCommit.java +++ /dev/null @@ -1,248 +0,0 @@ -/* - * 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. - */ - -package com.datadog.api.client.v2.model; - -import com.fasterxml.jackson.annotation.JsonAnyGetter; -import com.fasterxml.jackson.annotation.JsonAnySetter; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; - -/** Details of the Git commit associated with the test result. */ -@JsonPropertyOrder({ - SyntheticsTestResultGitCommit.JSON_PROPERTY_AUTHOR, - SyntheticsTestResultGitCommit.JSON_PROPERTY_COMMITTER, - SyntheticsTestResultGitCommit.JSON_PROPERTY_MESSAGE, - SyntheticsTestResultGitCommit.JSON_PROPERTY_SHA, - SyntheticsTestResultGitCommit.JSON_PROPERTY_URL -}) -@jakarta.annotation.Generated( - value = "https://github.com/DataDog/datadog-api-client-java/blob/master/.generator") -public class SyntheticsTestResultGitCommit { - @JsonIgnore public boolean unparsed = false; - public static final String JSON_PROPERTY_AUTHOR = "author"; - private SyntheticsTestResultGitUser author; - - public static final String JSON_PROPERTY_COMMITTER = "committer"; - private SyntheticsTestResultGitUser committer; - - public static final String JSON_PROPERTY_MESSAGE = "message"; - private String message; - - public static final String JSON_PROPERTY_SHA = "sha"; - private String sha; - - public static final String JSON_PROPERTY_URL = "url"; - private String url; - - public SyntheticsTestResultGitCommit author(SyntheticsTestResultGitUser author) { - this.author = author; - this.unparsed |= author.unparsed; - return this; - } - - /** - * A Git user (author or committer). - * - * @return author - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_AUTHOR) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public SyntheticsTestResultGitUser getAuthor() { - return author; - } - - public void setAuthor(SyntheticsTestResultGitUser author) { - this.author = author; - } - - public SyntheticsTestResultGitCommit committer(SyntheticsTestResultGitUser committer) { - this.committer = committer; - this.unparsed |= committer.unparsed; - return this; - } - - /** - * A Git user (author or committer). - * - * @return committer - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_COMMITTER) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public SyntheticsTestResultGitUser getCommitter() { - return committer; - } - - public void setCommitter(SyntheticsTestResultGitUser committer) { - this.committer = committer; - } - - public SyntheticsTestResultGitCommit message(String message) { - this.message = message; - return this; - } - - /** - * Commit message. - * - * @return message - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_MESSAGE) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getMessage() { - return message; - } - - public void setMessage(String message) { - this.message = message; - } - - public SyntheticsTestResultGitCommit sha(String sha) { - this.sha = sha; - return this; - } - - /** - * Commit SHA. - * - * @return sha - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_SHA) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getSha() { - return sha; - } - - public void setSha(String sha) { - this.sha = sha; - } - - public SyntheticsTestResultGitCommit url(String url) { - this.url = url; - return this; - } - - /** - * URL of the commit. - * - * @return url - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_URL) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getUrl() { - return url; - } - - public void setUrl(String url) { - this.url = url; - } - - /** - * A container for additional, undeclared properties. This is a holder for any undeclared - * properties as specified with the 'additionalProperties' keyword in the OAS document. - */ - private Map additionalProperties; - - /** - * Set the additional (undeclared) property with the specified name and value. If the property - * does not already exist, create it otherwise replace it. - * - * @param key The arbitrary key to set - * @param value The associated value - * @return SyntheticsTestResultGitCommit - */ - @JsonAnySetter - public SyntheticsTestResultGitCommit putAdditionalProperty(String key, Object value) { - if (this.additionalProperties == null) { - this.additionalProperties = new HashMap(); - } - this.additionalProperties.put(key, value); - return this; - } - - /** - * Return the additional (undeclared) property. - * - * @return The additional properties - */ - @JsonAnyGetter - public Map getAdditionalProperties() { - return additionalProperties; - } - - /** - * Return the additional (undeclared) property with the specified name. - * - * @param key The arbitrary key to get - * @return The specific additional property for the given key - */ - public Object getAdditionalProperty(String key) { - if (this.additionalProperties == null) { - return null; - } - return this.additionalProperties.get(key); - } - - /** Return true if this SyntheticsTestResultGitCommit object is equal to o. */ - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - SyntheticsTestResultGitCommit syntheticsTestResultGitCommit = (SyntheticsTestResultGitCommit) o; - return Objects.equals(this.author, syntheticsTestResultGitCommit.author) - && Objects.equals(this.committer, syntheticsTestResultGitCommit.committer) - && Objects.equals(this.message, syntheticsTestResultGitCommit.message) - && Objects.equals(this.sha, syntheticsTestResultGitCommit.sha) - && Objects.equals(this.url, syntheticsTestResultGitCommit.url) - && Objects.equals( - this.additionalProperties, syntheticsTestResultGitCommit.additionalProperties); - } - - @Override - public int hashCode() { - return Objects.hash(author, committer, message, sha, url, additionalProperties); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class SyntheticsTestResultGitCommit {\n"); - sb.append(" author: ").append(toIndentedString(author)).append("\n"); - sb.append(" committer: ").append(toIndentedString(committer)).append("\n"); - sb.append(" message: ").append(toIndentedString(message)).append("\n"); - sb.append(" sha: ").append(toIndentedString(sha)).append("\n"); - sb.append(" url: ").append(toIndentedString(url)).append("\n"); - sb.append(" additionalProperties: ") - .append(toIndentedString(additionalProperties)) - .append("\n"); - sb.append('}'); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } -} diff --git a/src/main/java/com/datadog/api/client/v2/model/SyntheticsTestResultGitUser.java b/src/main/java/com/datadog/api/client/v2/model/SyntheticsTestResultGitUser.java deleted file mode 100644 index c093bfc50d6..00000000000 --- a/src/main/java/com/datadog/api/client/v2/model/SyntheticsTestResultGitUser.java +++ /dev/null @@ -1,192 +0,0 @@ -/* - * 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. - */ - -package com.datadog.api.client.v2.model; - -import com.fasterxml.jackson.annotation.JsonAnyGetter; -import com.fasterxml.jackson.annotation.JsonAnySetter; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; - -/** A Git user (author or committer). */ -@JsonPropertyOrder({ - SyntheticsTestResultGitUser.JSON_PROPERTY_DATE, - SyntheticsTestResultGitUser.JSON_PROPERTY_EMAIL, - SyntheticsTestResultGitUser.JSON_PROPERTY_NAME -}) -@jakarta.annotation.Generated( - value = "https://github.com/DataDog/datadog-api-client-java/blob/master/.generator") -public class SyntheticsTestResultGitUser { - @JsonIgnore public boolean unparsed = false; - public static final String JSON_PROPERTY_DATE = "date"; - private String date; - - public static final String JSON_PROPERTY_EMAIL = "email"; - private String email; - - public static final String JSON_PROPERTY_NAME = "name"; - private String name; - - public SyntheticsTestResultGitUser date(String date) { - this.date = date; - return this; - } - - /** - * Timestamp of the commit action for this user. - * - * @return date - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_DATE) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getDate() { - return date; - } - - public void setDate(String date) { - this.date = date; - } - - public SyntheticsTestResultGitUser email(String email) { - this.email = email; - return this; - } - - /** - * Email address of the Git user. - * - * @return email - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_EMAIL) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getEmail() { - return email; - } - - public void setEmail(String email) { - this.email = email; - } - - public SyntheticsTestResultGitUser name(String name) { - this.name = name; - return this; - } - - /** - * Name of the Git user. - * - * @return name - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_NAME) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getName() { - return name; - } - - public void setName(String name) { - this.name = name; - } - - /** - * A container for additional, undeclared properties. This is a holder for any undeclared - * properties as specified with the 'additionalProperties' keyword in the OAS document. - */ - private Map additionalProperties; - - /** - * Set the additional (undeclared) property with the specified name and value. If the property - * does not already exist, create it otherwise replace it. - * - * @param key The arbitrary key to set - * @param value The associated value - * @return SyntheticsTestResultGitUser - */ - @JsonAnySetter - public SyntheticsTestResultGitUser putAdditionalProperty(String key, Object value) { - if (this.additionalProperties == null) { - this.additionalProperties = new HashMap(); - } - this.additionalProperties.put(key, value); - return this; - } - - /** - * Return the additional (undeclared) property. - * - * @return The additional properties - */ - @JsonAnyGetter - public Map getAdditionalProperties() { - return additionalProperties; - } - - /** - * Return the additional (undeclared) property with the specified name. - * - * @param key The arbitrary key to get - * @return The specific additional property for the given key - */ - public Object getAdditionalProperty(String key) { - if (this.additionalProperties == null) { - return null; - } - return this.additionalProperties.get(key); - } - - /** Return true if this SyntheticsTestResultGitUser object is equal to o. */ - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - SyntheticsTestResultGitUser syntheticsTestResultGitUser = (SyntheticsTestResultGitUser) o; - return Objects.equals(this.date, syntheticsTestResultGitUser.date) - && Objects.equals(this.email, syntheticsTestResultGitUser.email) - && Objects.equals(this.name, syntheticsTestResultGitUser.name) - && Objects.equals( - this.additionalProperties, syntheticsTestResultGitUser.additionalProperties); - } - - @Override - public int hashCode() { - return Objects.hash(date, email, name, additionalProperties); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class SyntheticsTestResultGitUser {\n"); - sb.append(" date: ").append(toIndentedString(date)).append("\n"); - sb.append(" email: ").append(toIndentedString(email)).append("\n"); - sb.append(" name: ").append(toIndentedString(name)).append("\n"); - sb.append(" additionalProperties: ") - .append(toIndentedString(additionalProperties)) - .append("\n"); - sb.append('}'); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } -} diff --git a/src/main/java/com/datadog/api/client/v2/model/SyntheticsTestResultHandshake.java b/src/main/java/com/datadog/api/client/v2/model/SyntheticsTestResultHandshake.java deleted file mode 100644 index 6aa5ea71b9e..00000000000 --- a/src/main/java/com/datadog/api/client/v2/model/SyntheticsTestResultHandshake.java +++ /dev/null @@ -1,167 +0,0 @@ -/* - * 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. - */ - -package com.datadog.api.client.v2.model; - -import com.fasterxml.jackson.annotation.JsonAnyGetter; -import com.fasterxml.jackson.annotation.JsonAnySetter; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; - -/** Handshake request and response for protocol-level tests. */ -@JsonPropertyOrder({ - SyntheticsTestResultHandshake.JSON_PROPERTY_REQUEST, - SyntheticsTestResultHandshake.JSON_PROPERTY_RESPONSE -}) -@jakarta.annotation.Generated( - value = "https://github.com/DataDog/datadog-api-client-java/blob/master/.generator") -public class SyntheticsTestResultHandshake { - @JsonIgnore public boolean unparsed = false; - public static final String JSON_PROPERTY_REQUEST = "request"; - private SyntheticsTestResultRequestInfo request; - - public static final String JSON_PROPERTY_RESPONSE = "response"; - private SyntheticsTestResultResponseInfo response; - - public SyntheticsTestResultHandshake request(SyntheticsTestResultRequestInfo request) { - this.request = request; - this.unparsed |= request.unparsed; - return this; - } - - /** - * Details of the outgoing request made during the test execution. - * - * @return request - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_REQUEST) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public SyntheticsTestResultRequestInfo getRequest() { - return request; - } - - public void setRequest(SyntheticsTestResultRequestInfo request) { - this.request = request; - } - - public SyntheticsTestResultHandshake response(SyntheticsTestResultResponseInfo response) { - this.response = response; - this.unparsed |= response.unparsed; - return this; - } - - /** - * Details of the response received during the test execution. - * - * @return response - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_RESPONSE) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public SyntheticsTestResultResponseInfo getResponse() { - return response; - } - - public void setResponse(SyntheticsTestResultResponseInfo response) { - this.response = response; - } - - /** - * A container for additional, undeclared properties. This is a holder for any undeclared - * properties as specified with the 'additionalProperties' keyword in the OAS document. - */ - private Map additionalProperties; - - /** - * Set the additional (undeclared) property with the specified name and value. If the property - * does not already exist, create it otherwise replace it. - * - * @param key The arbitrary key to set - * @param value The associated value - * @return SyntheticsTestResultHandshake - */ - @JsonAnySetter - public SyntheticsTestResultHandshake putAdditionalProperty(String key, Object value) { - if (this.additionalProperties == null) { - this.additionalProperties = new HashMap(); - } - this.additionalProperties.put(key, value); - return this; - } - - /** - * Return the additional (undeclared) property. - * - * @return The additional properties - */ - @JsonAnyGetter - public Map getAdditionalProperties() { - return additionalProperties; - } - - /** - * Return the additional (undeclared) property with the specified name. - * - * @param key The arbitrary key to get - * @return The specific additional property for the given key - */ - public Object getAdditionalProperty(String key) { - if (this.additionalProperties == null) { - return null; - } - return this.additionalProperties.get(key); - } - - /** Return true if this SyntheticsTestResultHandshake object is equal to o. */ - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - SyntheticsTestResultHandshake syntheticsTestResultHandshake = (SyntheticsTestResultHandshake) o; - return Objects.equals(this.request, syntheticsTestResultHandshake.request) - && Objects.equals(this.response, syntheticsTestResultHandshake.response) - && Objects.equals( - this.additionalProperties, syntheticsTestResultHandshake.additionalProperties); - } - - @Override - public int hashCode() { - return Objects.hash(request, response, additionalProperties); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class SyntheticsTestResultHandshake {\n"); - sb.append(" request: ").append(toIndentedString(request)).append("\n"); - sb.append(" response: ").append(toIndentedString(response)).append("\n"); - sb.append(" additionalProperties: ") - .append(toIndentedString(additionalProperties)) - .append("\n"); - sb.append('}'); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } -} diff --git a/src/main/java/com/datadog/api/client/v2/model/SyntheticsTestResultIncludedItem.java b/src/main/java/com/datadog/api/client/v2/model/SyntheticsTestResultIncludedItem.java deleted file mode 100644 index 33abad8b9e0..00000000000 --- a/src/main/java/com/datadog/api/client/v2/model/SyntheticsTestResultIncludedItem.java +++ /dev/null @@ -1,201 +0,0 @@ -/* - * 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. - */ - -package com.datadog.api.client.v2.model; - -import com.fasterxml.jackson.annotation.JsonAnyGetter; -import com.fasterxml.jackson.annotation.JsonAnySetter; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; - -/** An included related resource. */ -@JsonPropertyOrder({ - SyntheticsTestResultIncludedItem.JSON_PROPERTY_ATTRIBUTES, - SyntheticsTestResultIncludedItem.JSON_PROPERTY_ID, - SyntheticsTestResultIncludedItem.JSON_PROPERTY_TYPE -}) -@jakarta.annotation.Generated( - value = "https://github.com/DataDog/datadog-api-client-java/blob/master/.generator") -public class SyntheticsTestResultIncludedItem { - @JsonIgnore public boolean unparsed = false; - public static final String JSON_PROPERTY_ATTRIBUTES = "attributes"; - private Map attributes = null; - - public static final String JSON_PROPERTY_ID = "id"; - private String id; - - public static final String JSON_PROPERTY_TYPE = "type"; - private String type; - - public SyntheticsTestResultIncludedItem attributes(Map attributes) { - this.attributes = attributes; - return this; - } - - public SyntheticsTestResultIncludedItem putAttributesItem(String key, Object attributesItem) { - if (this.attributes == null) { - this.attributes = new HashMap<>(); - } - this.attributes.put(key, attributesItem); - return this; - } - - /** - * Attributes of the included resource. - * - * @return attributes - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ATTRIBUTES) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public Map getAttributes() { - return attributes; - } - - public void setAttributes(Map attributes) { - this.attributes = attributes; - } - - public SyntheticsTestResultIncludedItem id(String id) { - this.id = id; - return this; - } - - /** - * ID of the included resource. - * - * @return id - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ID) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getId() { - return id; - } - - public void setId(String id) { - this.id = id; - } - - public SyntheticsTestResultIncludedItem type(String type) { - this.type = type; - return this; - } - - /** - * Type of the included resource. - * - * @return type - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_TYPE) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getType() { - return type; - } - - public void setType(String type) { - this.type = type; - } - - /** - * A container for additional, undeclared properties. This is a holder for any undeclared - * properties as specified with the 'additionalProperties' keyword in the OAS document. - */ - private Map additionalProperties; - - /** - * Set the additional (undeclared) property with the specified name and value. If the property - * does not already exist, create it otherwise replace it. - * - * @param key The arbitrary key to set - * @param value The associated value - * @return SyntheticsTestResultIncludedItem - */ - @JsonAnySetter - public SyntheticsTestResultIncludedItem putAdditionalProperty(String key, Object value) { - if (this.additionalProperties == null) { - this.additionalProperties = new HashMap(); - } - this.additionalProperties.put(key, value); - return this; - } - - /** - * Return the additional (undeclared) property. - * - * @return The additional properties - */ - @JsonAnyGetter - public Map getAdditionalProperties() { - return additionalProperties; - } - - /** - * Return the additional (undeclared) property with the specified name. - * - * @param key The arbitrary key to get - * @return The specific additional property for the given key - */ - public Object getAdditionalProperty(String key) { - if (this.additionalProperties == null) { - return null; - } - return this.additionalProperties.get(key); - } - - /** Return true if this SyntheticsTestResultIncludedItem object is equal to o. */ - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - SyntheticsTestResultIncludedItem syntheticsTestResultIncludedItem = - (SyntheticsTestResultIncludedItem) o; - return Objects.equals(this.attributes, syntheticsTestResultIncludedItem.attributes) - && Objects.equals(this.id, syntheticsTestResultIncludedItem.id) - && Objects.equals(this.type, syntheticsTestResultIncludedItem.type) - && Objects.equals( - this.additionalProperties, syntheticsTestResultIncludedItem.additionalProperties); - } - - @Override - public int hashCode() { - return Objects.hash(attributes, id, type, additionalProperties); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class SyntheticsTestResultIncludedItem {\n"); - sb.append(" attributes: ").append(toIndentedString(attributes)).append("\n"); - sb.append(" id: ").append(toIndentedString(id)).append("\n"); - sb.append(" type: ").append(toIndentedString(type)).append("\n"); - sb.append(" additionalProperties: ") - .append(toIndentedString(additionalProperties)) - .append("\n"); - sb.append('}'); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } -} diff --git a/src/main/java/com/datadog/api/client/v2/model/SyntheticsTestResultNetpath.java b/src/main/java/com/datadog/api/client/v2/model/SyntheticsTestResultNetpath.java deleted file mode 100644 index b344bf1c1d7..00000000000 --- a/src/main/java/com/datadog/api/client/v2/model/SyntheticsTestResultNetpath.java +++ /dev/null @@ -1,362 +0,0 @@ -/* - * 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. - */ - -package com.datadog.api.client.v2.model; - -import com.fasterxml.jackson.annotation.JsonAnyGetter; -import com.fasterxml.jackson.annotation.JsonAnySetter; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import java.util.ArrayList; -import java.util.HashMap; -import java.util.List; -import java.util.Map; -import java.util.Objects; - -/** Network Path test result capturing the path between source and destination. */ -@JsonPropertyOrder({ - SyntheticsTestResultNetpath.JSON_PROPERTY_DESTINATION, - SyntheticsTestResultNetpath.JSON_PROPERTY_HOPS, - SyntheticsTestResultNetpath.JSON_PROPERTY_ORIGIN, - SyntheticsTestResultNetpath.JSON_PROPERTY_PATHTRACE_ID, - SyntheticsTestResultNetpath.JSON_PROPERTY_PROTOCOL, - SyntheticsTestResultNetpath.JSON_PROPERTY_SOURCE, - SyntheticsTestResultNetpath.JSON_PROPERTY_TAGS, - SyntheticsTestResultNetpath.JSON_PROPERTY_TIMESTAMP -}) -@jakarta.annotation.Generated( - value = "https://github.com/DataDog/datadog-api-client-java/blob/master/.generator") -public class SyntheticsTestResultNetpath { - @JsonIgnore public boolean unparsed = false; - public static final String JSON_PROPERTY_DESTINATION = "destination"; - private SyntheticsTestResultNetpathDestination destination; - - public static final String JSON_PROPERTY_HOPS = "hops"; - private List hops = null; - - public static final String JSON_PROPERTY_ORIGIN = "origin"; - private String origin; - - public static final String JSON_PROPERTY_PATHTRACE_ID = "pathtrace_id"; - private String pathtraceId; - - public static final String JSON_PROPERTY_PROTOCOL = "protocol"; - private String protocol; - - public static final String JSON_PROPERTY_SOURCE = "source"; - private SyntheticsTestResultNetpathEndpoint source; - - public static final String JSON_PROPERTY_TAGS = "tags"; - private List tags = null; - - public static final String JSON_PROPERTY_TIMESTAMP = "timestamp"; - private Long timestamp; - - public SyntheticsTestResultNetpath destination( - SyntheticsTestResultNetpathDestination destination) { - this.destination = destination; - this.unparsed |= destination.unparsed; - return this; - } - - /** - * Destination endpoint of a network path measurement. - * - * @return destination - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_DESTINATION) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public SyntheticsTestResultNetpathDestination getDestination() { - return destination; - } - - public void setDestination(SyntheticsTestResultNetpathDestination destination) { - this.destination = destination; - } - - public SyntheticsTestResultNetpath hops(List hops) { - this.hops = hops; - for (SyntheticsTestResultNetpathHop item : hops) { - this.unparsed |= item.unparsed; - } - return this; - } - - public SyntheticsTestResultNetpath addHopsItem(SyntheticsTestResultNetpathHop hopsItem) { - if (this.hops == null) { - this.hops = new ArrayList<>(); - } - this.hops.add(hopsItem); - this.unparsed |= hopsItem.unparsed; - return this; - } - - /** - * Hops along the network path. - * - * @return hops - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_HOPS) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public List getHops() { - return hops; - } - - public void setHops(List hops) { - this.hops = hops; - } - - public SyntheticsTestResultNetpath origin(String origin) { - this.origin = origin; - return this; - } - - /** - * Origin of the network path (for example, probe source). - * - * @return origin - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ORIGIN) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getOrigin() { - return origin; - } - - public void setOrigin(String origin) { - this.origin = origin; - } - - public SyntheticsTestResultNetpath pathtraceId(String pathtraceId) { - this.pathtraceId = pathtraceId; - return this; - } - - /** - * Identifier of the path trace. - * - * @return pathtraceId - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_PATHTRACE_ID) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getPathtraceId() { - return pathtraceId; - } - - public void setPathtraceId(String pathtraceId) { - this.pathtraceId = pathtraceId; - } - - public SyntheticsTestResultNetpath protocol(String protocol) { - this.protocol = protocol; - return this; - } - - /** - * Protocol used for the path trace (for example, tcp, udp, icmp - * ). - * - * @return protocol - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_PROTOCOL) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getProtocol() { - return protocol; - } - - public void setProtocol(String protocol) { - this.protocol = protocol; - } - - public SyntheticsTestResultNetpath source(SyntheticsTestResultNetpathEndpoint source) { - this.source = source; - this.unparsed |= source.unparsed; - return this; - } - - /** - * Source endpoint of a network path measurement. - * - * @return source - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_SOURCE) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public SyntheticsTestResultNetpathEndpoint getSource() { - return source; - } - - public void setSource(SyntheticsTestResultNetpathEndpoint source) { - this.source = source; - } - - public SyntheticsTestResultNetpath tags(List tags) { - this.tags = tags; - return this; - } - - public SyntheticsTestResultNetpath addTagsItem(String tagsItem) { - if (this.tags == null) { - this.tags = new ArrayList<>(); - } - this.tags.add(tagsItem); - return this; - } - - /** - * Tags associated with the network path measurement. - * - * @return tags - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_TAGS) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public List getTags() { - return tags; - } - - public void setTags(List tags) { - this.tags = tags; - } - - public SyntheticsTestResultNetpath timestamp(Long timestamp) { - this.timestamp = timestamp; - return this; - } - - /** - * Unix timestamp (ms) of the network path measurement. - * - * @return timestamp - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_TIMESTAMP) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public Long getTimestamp() { - return timestamp; - } - - public void setTimestamp(Long timestamp) { - this.timestamp = timestamp; - } - - /** - * A container for additional, undeclared properties. This is a holder for any undeclared - * properties as specified with the 'additionalProperties' keyword in the OAS document. - */ - private Map additionalProperties; - - /** - * Set the additional (undeclared) property with the specified name and value. If the property - * does not already exist, create it otherwise replace it. - * - * @param key The arbitrary key to set - * @param value The associated value - * @return SyntheticsTestResultNetpath - */ - @JsonAnySetter - public SyntheticsTestResultNetpath putAdditionalProperty(String key, Object value) { - if (this.additionalProperties == null) { - this.additionalProperties = new HashMap(); - } - this.additionalProperties.put(key, value); - return this; - } - - /** - * Return the additional (undeclared) property. - * - * @return The additional properties - */ - @JsonAnyGetter - public Map getAdditionalProperties() { - return additionalProperties; - } - - /** - * Return the additional (undeclared) property with the specified name. - * - * @param key The arbitrary key to get - * @return The specific additional property for the given key - */ - public Object getAdditionalProperty(String key) { - if (this.additionalProperties == null) { - return null; - } - return this.additionalProperties.get(key); - } - - /** Return true if this SyntheticsTestResultNetpath object is equal to o. */ - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - SyntheticsTestResultNetpath syntheticsTestResultNetpath = (SyntheticsTestResultNetpath) o; - return Objects.equals(this.destination, syntheticsTestResultNetpath.destination) - && Objects.equals(this.hops, syntheticsTestResultNetpath.hops) - && Objects.equals(this.origin, syntheticsTestResultNetpath.origin) - && Objects.equals(this.pathtraceId, syntheticsTestResultNetpath.pathtraceId) - && Objects.equals(this.protocol, syntheticsTestResultNetpath.protocol) - && Objects.equals(this.source, syntheticsTestResultNetpath.source) - && Objects.equals(this.tags, syntheticsTestResultNetpath.tags) - && Objects.equals(this.timestamp, syntheticsTestResultNetpath.timestamp) - && Objects.equals( - this.additionalProperties, syntheticsTestResultNetpath.additionalProperties); - } - - @Override - public int hashCode() { - return Objects.hash( - destination, - hops, - origin, - pathtraceId, - protocol, - source, - tags, - timestamp, - additionalProperties); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class SyntheticsTestResultNetpath {\n"); - sb.append(" destination: ").append(toIndentedString(destination)).append("\n"); - sb.append(" hops: ").append(toIndentedString(hops)).append("\n"); - sb.append(" origin: ").append(toIndentedString(origin)).append("\n"); - sb.append(" pathtraceId: ").append(toIndentedString(pathtraceId)).append("\n"); - sb.append(" protocol: ").append(toIndentedString(protocol)).append("\n"); - sb.append(" source: ").append(toIndentedString(source)).append("\n"); - sb.append(" tags: ").append(toIndentedString(tags)).append("\n"); - sb.append(" timestamp: ").append(toIndentedString(timestamp)).append("\n"); - sb.append(" additionalProperties: ") - .append(toIndentedString(additionalProperties)) - .append("\n"); - sb.append('}'); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } -} diff --git a/src/main/java/com/datadog/api/client/v2/model/SyntheticsTestResultNetpathDestination.java b/src/main/java/com/datadog/api/client/v2/model/SyntheticsTestResultNetpathDestination.java deleted file mode 100644 index defeecf8ac5..00000000000 --- a/src/main/java/com/datadog/api/client/v2/model/SyntheticsTestResultNetpathDestination.java +++ /dev/null @@ -1,193 +0,0 @@ -/* - * 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. - */ - -package com.datadog.api.client.v2.model; - -import com.fasterxml.jackson.annotation.JsonAnyGetter; -import com.fasterxml.jackson.annotation.JsonAnySetter; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; - -/** Destination endpoint of a network path measurement. */ -@JsonPropertyOrder({ - SyntheticsTestResultNetpathDestination.JSON_PROPERTY_HOSTNAME, - SyntheticsTestResultNetpathDestination.JSON_PROPERTY_IP_ADDRESS, - SyntheticsTestResultNetpathDestination.JSON_PROPERTY_PORT -}) -@jakarta.annotation.Generated( - value = "https://github.com/DataDog/datadog-api-client-java/blob/master/.generator") -public class SyntheticsTestResultNetpathDestination { - @JsonIgnore public boolean unparsed = false; - public static final String JSON_PROPERTY_HOSTNAME = "hostname"; - private String hostname; - - public static final String JSON_PROPERTY_IP_ADDRESS = "ip_address"; - private String ipAddress; - - public static final String JSON_PROPERTY_PORT = "port"; - private Long port; - - public SyntheticsTestResultNetpathDestination hostname(String hostname) { - this.hostname = hostname; - return this; - } - - /** - * Hostname of the destination. - * - * @return hostname - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_HOSTNAME) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getHostname() { - return hostname; - } - - public void setHostname(String hostname) { - this.hostname = hostname; - } - - public SyntheticsTestResultNetpathDestination ipAddress(String ipAddress) { - this.ipAddress = ipAddress; - return this; - } - - /** - * IP address of the destination. - * - * @return ipAddress - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_IP_ADDRESS) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getIpAddress() { - return ipAddress; - } - - public void setIpAddress(String ipAddress) { - this.ipAddress = ipAddress; - } - - public SyntheticsTestResultNetpathDestination port(Long port) { - this.port = port; - return this; - } - - /** - * Port of the destination service. - * - * @return port - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_PORT) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public Long getPort() { - return port; - } - - public void setPort(Long port) { - this.port = port; - } - - /** - * A container for additional, undeclared properties. This is a holder for any undeclared - * properties as specified with the 'additionalProperties' keyword in the OAS document. - */ - private Map additionalProperties; - - /** - * Set the additional (undeclared) property with the specified name and value. If the property - * does not already exist, create it otherwise replace it. - * - * @param key The arbitrary key to set - * @param value The associated value - * @return SyntheticsTestResultNetpathDestination - */ - @JsonAnySetter - public SyntheticsTestResultNetpathDestination putAdditionalProperty(String key, Object value) { - if (this.additionalProperties == null) { - this.additionalProperties = new HashMap(); - } - this.additionalProperties.put(key, value); - return this; - } - - /** - * Return the additional (undeclared) property. - * - * @return The additional properties - */ - @JsonAnyGetter - public Map getAdditionalProperties() { - return additionalProperties; - } - - /** - * Return the additional (undeclared) property with the specified name. - * - * @param key The arbitrary key to get - * @return The specific additional property for the given key - */ - public Object getAdditionalProperty(String key) { - if (this.additionalProperties == null) { - return null; - } - return this.additionalProperties.get(key); - } - - /** Return true if this SyntheticsTestResultNetpathDestination object is equal to o. */ - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - SyntheticsTestResultNetpathDestination syntheticsTestResultNetpathDestination = - (SyntheticsTestResultNetpathDestination) o; - return Objects.equals(this.hostname, syntheticsTestResultNetpathDestination.hostname) - && Objects.equals(this.ipAddress, syntheticsTestResultNetpathDestination.ipAddress) - && Objects.equals(this.port, syntheticsTestResultNetpathDestination.port) - && Objects.equals( - this.additionalProperties, syntheticsTestResultNetpathDestination.additionalProperties); - } - - @Override - public int hashCode() { - return Objects.hash(hostname, ipAddress, port, additionalProperties); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class SyntheticsTestResultNetpathDestination {\n"); - sb.append(" hostname: ").append(toIndentedString(hostname)).append("\n"); - sb.append(" ipAddress: ").append(toIndentedString(ipAddress)).append("\n"); - sb.append(" port: ").append(toIndentedString(port)).append("\n"); - sb.append(" additionalProperties: ") - .append(toIndentedString(additionalProperties)) - .append("\n"); - sb.append('}'); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } -} diff --git a/src/main/java/com/datadog/api/client/v2/model/SyntheticsTestResultNetpathEndpoint.java b/src/main/java/com/datadog/api/client/v2/model/SyntheticsTestResultNetpathEndpoint.java deleted file mode 100644 index 2b9ac37a873..00000000000 --- a/src/main/java/com/datadog/api/client/v2/model/SyntheticsTestResultNetpathEndpoint.java +++ /dev/null @@ -1,137 +0,0 @@ -/* - * 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. - */ - -package com.datadog.api.client.v2.model; - -import com.fasterxml.jackson.annotation.JsonAnyGetter; -import com.fasterxml.jackson.annotation.JsonAnySetter; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; - -/** Source endpoint of a network path measurement. */ -@JsonPropertyOrder({SyntheticsTestResultNetpathEndpoint.JSON_PROPERTY_HOSTNAME}) -@jakarta.annotation.Generated( - value = "https://github.com/DataDog/datadog-api-client-java/blob/master/.generator") -public class SyntheticsTestResultNetpathEndpoint { - @JsonIgnore public boolean unparsed = false; - public static final String JSON_PROPERTY_HOSTNAME = "hostname"; - private String hostname; - - public SyntheticsTestResultNetpathEndpoint hostname(String hostname) { - this.hostname = hostname; - return this; - } - - /** - * Hostname of the endpoint. - * - * @return hostname - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_HOSTNAME) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getHostname() { - return hostname; - } - - public void setHostname(String hostname) { - this.hostname = hostname; - } - - /** - * A container for additional, undeclared properties. This is a holder for any undeclared - * properties as specified with the 'additionalProperties' keyword in the OAS document. - */ - private Map additionalProperties; - - /** - * Set the additional (undeclared) property with the specified name and value. If the property - * does not already exist, create it otherwise replace it. - * - * @param key The arbitrary key to set - * @param value The associated value - * @return SyntheticsTestResultNetpathEndpoint - */ - @JsonAnySetter - public SyntheticsTestResultNetpathEndpoint putAdditionalProperty(String key, Object value) { - if (this.additionalProperties == null) { - this.additionalProperties = new HashMap(); - } - this.additionalProperties.put(key, value); - return this; - } - - /** - * Return the additional (undeclared) property. - * - * @return The additional properties - */ - @JsonAnyGetter - public Map getAdditionalProperties() { - return additionalProperties; - } - - /** - * Return the additional (undeclared) property with the specified name. - * - * @param key The arbitrary key to get - * @return The specific additional property for the given key - */ - public Object getAdditionalProperty(String key) { - if (this.additionalProperties == null) { - return null; - } - return this.additionalProperties.get(key); - } - - /** Return true if this SyntheticsTestResultNetpathEndpoint object is equal to o. */ - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - SyntheticsTestResultNetpathEndpoint syntheticsTestResultNetpathEndpoint = - (SyntheticsTestResultNetpathEndpoint) o; - return Objects.equals(this.hostname, syntheticsTestResultNetpathEndpoint.hostname) - && Objects.equals( - this.additionalProperties, syntheticsTestResultNetpathEndpoint.additionalProperties); - } - - @Override - public int hashCode() { - return Objects.hash(hostname, additionalProperties); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class SyntheticsTestResultNetpathEndpoint {\n"); - sb.append(" hostname: ").append(toIndentedString(hostname)).append("\n"); - sb.append(" additionalProperties: ") - .append(toIndentedString(additionalProperties)) - .append("\n"); - sb.append('}'); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } -} diff --git a/src/main/java/com/datadog/api/client/v2/model/SyntheticsTestResultNetpathHop.java b/src/main/java/com/datadog/api/client/v2/model/SyntheticsTestResultNetpathHop.java deleted file mode 100644 index 7a07bfcf92c..00000000000 --- a/src/main/java/com/datadog/api/client/v2/model/SyntheticsTestResultNetpathHop.java +++ /dev/null @@ -1,247 +0,0 @@ -/* - * 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. - */ - -package com.datadog.api.client.v2.model; - -import com.fasterxml.jackson.annotation.JsonAnyGetter; -import com.fasterxml.jackson.annotation.JsonAnySetter; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; - -/** A single hop along a network path. */ -@JsonPropertyOrder({ - SyntheticsTestResultNetpathHop.JSON_PROPERTY_HOSTNAME, - SyntheticsTestResultNetpathHop.JSON_PROPERTY_IP_ADDRESS, - SyntheticsTestResultNetpathHop.JSON_PROPERTY_REACHABLE, - SyntheticsTestResultNetpathHop.JSON_PROPERTY_RTT, - SyntheticsTestResultNetpathHop.JSON_PROPERTY_TTL -}) -@jakarta.annotation.Generated( - value = "https://github.com/DataDog/datadog-api-client-java/blob/master/.generator") -public class SyntheticsTestResultNetpathHop { - @JsonIgnore public boolean unparsed = false; - public static final String JSON_PROPERTY_HOSTNAME = "hostname"; - private String hostname; - - public static final String JSON_PROPERTY_IP_ADDRESS = "ip_address"; - private String ipAddress; - - public static final String JSON_PROPERTY_REACHABLE = "reachable"; - private Boolean reachable; - - public static final String JSON_PROPERTY_RTT = "rtt"; - private Double rtt; - - public static final String JSON_PROPERTY_TTL = "ttl"; - private Long ttl; - - public SyntheticsTestResultNetpathHop hostname(String hostname) { - this.hostname = hostname; - return this; - } - - /** - * Resolved hostname of the hop. - * - * @return hostname - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_HOSTNAME) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getHostname() { - return hostname; - } - - public void setHostname(String hostname) { - this.hostname = hostname; - } - - public SyntheticsTestResultNetpathHop ipAddress(String ipAddress) { - this.ipAddress = ipAddress; - return this; - } - - /** - * IP address of the hop. - * - * @return ipAddress - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_IP_ADDRESS) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getIpAddress() { - return ipAddress; - } - - public void setIpAddress(String ipAddress) { - this.ipAddress = ipAddress; - } - - public SyntheticsTestResultNetpathHop reachable(Boolean reachable) { - this.reachable = reachable; - return this; - } - - /** - * Whether this hop was reachable. - * - * @return reachable - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_REACHABLE) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public Boolean getReachable() { - return reachable; - } - - public void setReachable(Boolean reachable) { - this.reachable = reachable; - } - - public SyntheticsTestResultNetpathHop rtt(Double rtt) { - this.rtt = rtt; - return this; - } - - /** - * Round-trip time to this hop in milliseconds. - * - * @return rtt - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_RTT) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public Double getRtt() { - return rtt; - } - - public void setRtt(Double rtt) { - this.rtt = rtt; - } - - public SyntheticsTestResultNetpathHop ttl(Long ttl) { - this.ttl = ttl; - return this; - } - - /** - * Time-to-live value of the probe packet at this hop. - * - * @return ttl - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_TTL) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public Long getTtl() { - return ttl; - } - - public void setTtl(Long ttl) { - this.ttl = ttl; - } - - /** - * A container for additional, undeclared properties. This is a holder for any undeclared - * properties as specified with the 'additionalProperties' keyword in the OAS document. - */ - private Map additionalProperties; - - /** - * Set the additional (undeclared) property with the specified name and value. If the property - * does not already exist, create it otherwise replace it. - * - * @param key The arbitrary key to set - * @param value The associated value - * @return SyntheticsTestResultNetpathHop - */ - @JsonAnySetter - public SyntheticsTestResultNetpathHop putAdditionalProperty(String key, Object value) { - if (this.additionalProperties == null) { - this.additionalProperties = new HashMap(); - } - this.additionalProperties.put(key, value); - return this; - } - - /** - * Return the additional (undeclared) property. - * - * @return The additional properties - */ - @JsonAnyGetter - public Map getAdditionalProperties() { - return additionalProperties; - } - - /** - * Return the additional (undeclared) property with the specified name. - * - * @param key The arbitrary key to get - * @return The specific additional property for the given key - */ - public Object getAdditionalProperty(String key) { - if (this.additionalProperties == null) { - return null; - } - return this.additionalProperties.get(key); - } - - /** Return true if this SyntheticsTestResultNetpathHop object is equal to o. */ - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - SyntheticsTestResultNetpathHop syntheticsTestResultNetpathHop = - (SyntheticsTestResultNetpathHop) o; - return Objects.equals(this.hostname, syntheticsTestResultNetpathHop.hostname) - && Objects.equals(this.ipAddress, syntheticsTestResultNetpathHop.ipAddress) - && Objects.equals(this.reachable, syntheticsTestResultNetpathHop.reachable) - && Objects.equals(this.rtt, syntheticsTestResultNetpathHop.rtt) - && Objects.equals(this.ttl, syntheticsTestResultNetpathHop.ttl) - && Objects.equals( - this.additionalProperties, syntheticsTestResultNetpathHop.additionalProperties); - } - - @Override - public int hashCode() { - return Objects.hash(hostname, ipAddress, reachable, rtt, ttl, additionalProperties); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class SyntheticsTestResultNetpathHop {\n"); - sb.append(" hostname: ").append(toIndentedString(hostname)).append("\n"); - sb.append(" ipAddress: ").append(toIndentedString(ipAddress)).append("\n"); - sb.append(" reachable: ").append(toIndentedString(reachable)).append("\n"); - sb.append(" rtt: ").append(toIndentedString(rtt)).append("\n"); - sb.append(" ttl: ").append(toIndentedString(ttl)).append("\n"); - sb.append(" additionalProperties: ") - .append(toIndentedString(additionalProperties)) - .append("\n"); - sb.append('}'); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } -} diff --git a/src/main/java/com/datadog/api/client/v2/model/SyntheticsTestResultNetstats.java b/src/main/java/com/datadog/api/client/v2/model/SyntheticsTestResultNetstats.java deleted file mode 100644 index fd943b33593..00000000000 --- a/src/main/java/com/datadog/api/client/v2/model/SyntheticsTestResultNetstats.java +++ /dev/null @@ -1,285 +0,0 @@ -/* - * 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. - */ - -package com.datadog.api.client.v2.model; - -import com.fasterxml.jackson.annotation.JsonAnyGetter; -import com.fasterxml.jackson.annotation.JsonAnySetter; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; - -/** Aggregated network statistics from the test execution. */ -@JsonPropertyOrder({ - SyntheticsTestResultNetstats.JSON_PROPERTY_HOPS, - SyntheticsTestResultNetstats.JSON_PROPERTY_JITTER, - SyntheticsTestResultNetstats.JSON_PROPERTY_LATENCY, - SyntheticsTestResultNetstats.JSON_PROPERTY_PACKET_LOSS_PERCENTAGE, - SyntheticsTestResultNetstats.JSON_PROPERTY_PACKETS_RECEIVED, - SyntheticsTestResultNetstats.JSON_PROPERTY_PACKETS_SENT -}) -@jakarta.annotation.Generated( - value = "https://github.com/DataDog/datadog-api-client-java/blob/master/.generator") -public class SyntheticsTestResultNetstats { - @JsonIgnore public boolean unparsed = false; - public static final String JSON_PROPERTY_HOPS = "hops"; - private SyntheticsTestResultNetstatsHops hops; - - public static final String JSON_PROPERTY_JITTER = "jitter"; - private Double jitter; - - public static final String JSON_PROPERTY_LATENCY = "latency"; - private SyntheticsTestResultNetworkLatency latency; - - public static final String JSON_PROPERTY_PACKET_LOSS_PERCENTAGE = "packet_loss_percentage"; - private Double packetLossPercentage; - - public static final String JSON_PROPERTY_PACKETS_RECEIVED = "packets_received"; - private Long packetsReceived; - - public static final String JSON_PROPERTY_PACKETS_SENT = "packets_sent"; - private Long packetsSent; - - public SyntheticsTestResultNetstats hops(SyntheticsTestResultNetstatsHops hops) { - this.hops = hops; - this.unparsed |= hops.unparsed; - return this; - } - - /** - * Statistics about the number of hops for a network test. - * - * @return hops - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_HOPS) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public SyntheticsTestResultNetstatsHops getHops() { - return hops; - } - - public void setHops(SyntheticsTestResultNetstatsHops hops) { - this.hops = hops; - } - - public SyntheticsTestResultNetstats jitter(Double jitter) { - this.jitter = jitter; - return this; - } - - /** - * Network jitter in milliseconds. - * - * @return jitter - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_JITTER) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public Double getJitter() { - return jitter; - } - - public void setJitter(Double jitter) { - this.jitter = jitter; - } - - public SyntheticsTestResultNetstats latency(SyntheticsTestResultNetworkLatency latency) { - this.latency = latency; - this.unparsed |= latency.unparsed; - return this; - } - - /** - * Latency statistics for a network probe. - * - * @return latency - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_LATENCY) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public SyntheticsTestResultNetworkLatency getLatency() { - return latency; - } - - public void setLatency(SyntheticsTestResultNetworkLatency latency) { - this.latency = latency; - } - - public SyntheticsTestResultNetstats packetLossPercentage(Double packetLossPercentage) { - this.packetLossPercentage = packetLossPercentage; - return this; - } - - /** - * Percentage of probe packets lost. - * - * @return packetLossPercentage - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_PACKET_LOSS_PERCENTAGE) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public Double getPacketLossPercentage() { - return packetLossPercentage; - } - - public void setPacketLossPercentage(Double packetLossPercentage) { - this.packetLossPercentage = packetLossPercentage; - } - - public SyntheticsTestResultNetstats packetsReceived(Long packetsReceived) { - this.packetsReceived = packetsReceived; - return this; - } - - /** - * Number of probe packets received. - * - * @return packetsReceived - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_PACKETS_RECEIVED) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public Long getPacketsReceived() { - return packetsReceived; - } - - public void setPacketsReceived(Long packetsReceived) { - this.packetsReceived = packetsReceived; - } - - public SyntheticsTestResultNetstats packetsSent(Long packetsSent) { - this.packetsSent = packetsSent; - return this; - } - - /** - * Number of probe packets sent. - * - * @return packetsSent - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_PACKETS_SENT) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public Long getPacketsSent() { - return packetsSent; - } - - public void setPacketsSent(Long packetsSent) { - this.packetsSent = packetsSent; - } - - /** - * A container for additional, undeclared properties. This is a holder for any undeclared - * properties as specified with the 'additionalProperties' keyword in the OAS document. - */ - private Map additionalProperties; - - /** - * Set the additional (undeclared) property with the specified name and value. If the property - * does not already exist, create it otherwise replace it. - * - * @param key The arbitrary key to set - * @param value The associated value - * @return SyntheticsTestResultNetstats - */ - @JsonAnySetter - public SyntheticsTestResultNetstats putAdditionalProperty(String key, Object value) { - if (this.additionalProperties == null) { - this.additionalProperties = new HashMap(); - } - this.additionalProperties.put(key, value); - return this; - } - - /** - * Return the additional (undeclared) property. - * - * @return The additional properties - */ - @JsonAnyGetter - public Map getAdditionalProperties() { - return additionalProperties; - } - - /** - * Return the additional (undeclared) property with the specified name. - * - * @param key The arbitrary key to get - * @return The specific additional property for the given key - */ - public Object getAdditionalProperty(String key) { - if (this.additionalProperties == null) { - return null; - } - return this.additionalProperties.get(key); - } - - /** Return true if this SyntheticsTestResultNetstats object is equal to o. */ - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - SyntheticsTestResultNetstats syntheticsTestResultNetstats = (SyntheticsTestResultNetstats) o; - return Objects.equals(this.hops, syntheticsTestResultNetstats.hops) - && Objects.equals(this.jitter, syntheticsTestResultNetstats.jitter) - && Objects.equals(this.latency, syntheticsTestResultNetstats.latency) - && Objects.equals( - this.packetLossPercentage, syntheticsTestResultNetstats.packetLossPercentage) - && Objects.equals(this.packetsReceived, syntheticsTestResultNetstats.packetsReceived) - && Objects.equals(this.packetsSent, syntheticsTestResultNetstats.packetsSent) - && Objects.equals( - this.additionalProperties, syntheticsTestResultNetstats.additionalProperties); - } - - @Override - public int hashCode() { - return Objects.hash( - hops, - jitter, - latency, - packetLossPercentage, - packetsReceived, - packetsSent, - additionalProperties); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class SyntheticsTestResultNetstats {\n"); - sb.append(" hops: ").append(toIndentedString(hops)).append("\n"); - sb.append(" jitter: ").append(toIndentedString(jitter)).append("\n"); - sb.append(" latency: ").append(toIndentedString(latency)).append("\n"); - sb.append(" packetLossPercentage: ") - .append(toIndentedString(packetLossPercentage)) - .append("\n"); - sb.append(" packetsReceived: ").append(toIndentedString(packetsReceived)).append("\n"); - sb.append(" packetsSent: ").append(toIndentedString(packetsSent)).append("\n"); - sb.append(" additionalProperties: ") - .append(toIndentedString(additionalProperties)) - .append("\n"); - sb.append('}'); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } -} diff --git a/src/main/java/com/datadog/api/client/v2/model/SyntheticsTestResultNetstatsHops.java b/src/main/java/com/datadog/api/client/v2/model/SyntheticsTestResultNetstatsHops.java deleted file mode 100644 index bebb3e12c1a..00000000000 --- a/src/main/java/com/datadog/api/client/v2/model/SyntheticsTestResultNetstatsHops.java +++ /dev/null @@ -1,193 +0,0 @@ -/* - * 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. - */ - -package com.datadog.api.client.v2.model; - -import com.fasterxml.jackson.annotation.JsonAnyGetter; -import com.fasterxml.jackson.annotation.JsonAnySetter; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; - -/** Statistics about the number of hops for a network test. */ -@JsonPropertyOrder({ - SyntheticsTestResultNetstatsHops.JSON_PROPERTY_AVG, - SyntheticsTestResultNetstatsHops.JSON_PROPERTY_MAX, - SyntheticsTestResultNetstatsHops.JSON_PROPERTY_MIN -}) -@jakarta.annotation.Generated( - value = "https://github.com/DataDog/datadog-api-client-java/blob/master/.generator") -public class SyntheticsTestResultNetstatsHops { - @JsonIgnore public boolean unparsed = false; - public static final String JSON_PROPERTY_AVG = "avg"; - private Double avg; - - public static final String JSON_PROPERTY_MAX = "max"; - private Long max; - - public static final String JSON_PROPERTY_MIN = "min"; - private Long min; - - public SyntheticsTestResultNetstatsHops avg(Double avg) { - this.avg = avg; - return this; - } - - /** - * Average number of hops. - * - * @return avg - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_AVG) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public Double getAvg() { - return avg; - } - - public void setAvg(Double avg) { - this.avg = avg; - } - - public SyntheticsTestResultNetstatsHops max(Long max) { - this.max = max; - return this; - } - - /** - * Maximum number of hops. - * - * @return max - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_MAX) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public Long getMax() { - return max; - } - - public void setMax(Long max) { - this.max = max; - } - - public SyntheticsTestResultNetstatsHops min(Long min) { - this.min = min; - return this; - } - - /** - * Minimum number of hops. - * - * @return min - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_MIN) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public Long getMin() { - return min; - } - - public void setMin(Long min) { - this.min = min; - } - - /** - * A container for additional, undeclared properties. This is a holder for any undeclared - * properties as specified with the 'additionalProperties' keyword in the OAS document. - */ - private Map additionalProperties; - - /** - * Set the additional (undeclared) property with the specified name and value. If the property - * does not already exist, create it otherwise replace it. - * - * @param key The arbitrary key to set - * @param value The associated value - * @return SyntheticsTestResultNetstatsHops - */ - @JsonAnySetter - public SyntheticsTestResultNetstatsHops putAdditionalProperty(String key, Object value) { - if (this.additionalProperties == null) { - this.additionalProperties = new HashMap(); - } - this.additionalProperties.put(key, value); - return this; - } - - /** - * Return the additional (undeclared) property. - * - * @return The additional properties - */ - @JsonAnyGetter - public Map getAdditionalProperties() { - return additionalProperties; - } - - /** - * Return the additional (undeclared) property with the specified name. - * - * @param key The arbitrary key to get - * @return The specific additional property for the given key - */ - public Object getAdditionalProperty(String key) { - if (this.additionalProperties == null) { - return null; - } - return this.additionalProperties.get(key); - } - - /** Return true if this SyntheticsTestResultNetstatsHops object is equal to o. */ - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - SyntheticsTestResultNetstatsHops syntheticsTestResultNetstatsHops = - (SyntheticsTestResultNetstatsHops) o; - return Objects.equals(this.avg, syntheticsTestResultNetstatsHops.avg) - && Objects.equals(this.max, syntheticsTestResultNetstatsHops.max) - && Objects.equals(this.min, syntheticsTestResultNetstatsHops.min) - && Objects.equals( - this.additionalProperties, syntheticsTestResultNetstatsHops.additionalProperties); - } - - @Override - public int hashCode() { - return Objects.hash(avg, max, min, additionalProperties); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class SyntheticsTestResultNetstatsHops {\n"); - sb.append(" avg: ").append(toIndentedString(avg)).append("\n"); - sb.append(" max: ").append(toIndentedString(max)).append("\n"); - sb.append(" min: ").append(toIndentedString(min)).append("\n"); - sb.append(" additionalProperties: ") - .append(toIndentedString(additionalProperties)) - .append("\n"); - sb.append('}'); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } -} diff --git a/src/main/java/com/datadog/api/client/v2/model/SyntheticsTestResultNetworkLatency.java b/src/main/java/com/datadog/api/client/v2/model/SyntheticsTestResultNetworkLatency.java deleted file mode 100644 index c40a7f7320b..00000000000 --- a/src/main/java/com/datadog/api/client/v2/model/SyntheticsTestResultNetworkLatency.java +++ /dev/null @@ -1,193 +0,0 @@ -/* - * 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. - */ - -package com.datadog.api.client.v2.model; - -import com.fasterxml.jackson.annotation.JsonAnyGetter; -import com.fasterxml.jackson.annotation.JsonAnySetter; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; - -/** Latency statistics for a network probe. */ -@JsonPropertyOrder({ - SyntheticsTestResultNetworkLatency.JSON_PROPERTY_AVG, - SyntheticsTestResultNetworkLatency.JSON_PROPERTY_MAX, - SyntheticsTestResultNetworkLatency.JSON_PROPERTY_MIN -}) -@jakarta.annotation.Generated( - value = "https://github.com/DataDog/datadog-api-client-java/blob/master/.generator") -public class SyntheticsTestResultNetworkLatency { - @JsonIgnore public boolean unparsed = false; - public static final String JSON_PROPERTY_AVG = "avg"; - private Double avg; - - public static final String JSON_PROPERTY_MAX = "max"; - private Double max; - - public static final String JSON_PROPERTY_MIN = "min"; - private Double min; - - public SyntheticsTestResultNetworkLatency avg(Double avg) { - this.avg = avg; - return this; - } - - /** - * Average latency in milliseconds. - * - * @return avg - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_AVG) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public Double getAvg() { - return avg; - } - - public void setAvg(Double avg) { - this.avg = avg; - } - - public SyntheticsTestResultNetworkLatency max(Double max) { - this.max = max; - return this; - } - - /** - * Maximum latency in milliseconds. - * - * @return max - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_MAX) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public Double getMax() { - return max; - } - - public void setMax(Double max) { - this.max = max; - } - - public SyntheticsTestResultNetworkLatency min(Double min) { - this.min = min; - return this; - } - - /** - * Minimum latency in milliseconds. - * - * @return min - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_MIN) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public Double getMin() { - return min; - } - - public void setMin(Double min) { - this.min = min; - } - - /** - * A container for additional, undeclared properties. This is a holder for any undeclared - * properties as specified with the 'additionalProperties' keyword in the OAS document. - */ - private Map additionalProperties; - - /** - * Set the additional (undeclared) property with the specified name and value. If the property - * does not already exist, create it otherwise replace it. - * - * @param key The arbitrary key to set - * @param value The associated value - * @return SyntheticsTestResultNetworkLatency - */ - @JsonAnySetter - public SyntheticsTestResultNetworkLatency putAdditionalProperty(String key, Object value) { - if (this.additionalProperties == null) { - this.additionalProperties = new HashMap(); - } - this.additionalProperties.put(key, value); - return this; - } - - /** - * Return the additional (undeclared) property. - * - * @return The additional properties - */ - @JsonAnyGetter - public Map getAdditionalProperties() { - return additionalProperties; - } - - /** - * Return the additional (undeclared) property with the specified name. - * - * @param key The arbitrary key to get - * @return The specific additional property for the given key - */ - public Object getAdditionalProperty(String key) { - if (this.additionalProperties == null) { - return null; - } - return this.additionalProperties.get(key); - } - - /** Return true if this SyntheticsTestResultNetworkLatency object is equal to o. */ - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - SyntheticsTestResultNetworkLatency syntheticsTestResultNetworkLatency = - (SyntheticsTestResultNetworkLatency) o; - return Objects.equals(this.avg, syntheticsTestResultNetworkLatency.avg) - && Objects.equals(this.max, syntheticsTestResultNetworkLatency.max) - && Objects.equals(this.min, syntheticsTestResultNetworkLatency.min) - && Objects.equals( - this.additionalProperties, syntheticsTestResultNetworkLatency.additionalProperties); - } - - @Override - public int hashCode() { - return Objects.hash(avg, max, min, additionalProperties); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class SyntheticsTestResultNetworkLatency {\n"); - sb.append(" avg: ").append(toIndentedString(avg)).append("\n"); - sb.append(" max: ").append(toIndentedString(max)).append("\n"); - sb.append(" min: ").append(toIndentedString(min)).append("\n"); - sb.append(" additionalProperties: ") - .append(toIndentedString(additionalProperties)) - .append("\n"); - sb.append('}'); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } -} diff --git a/src/main/java/com/datadog/api/client/v2/model/SyntheticsTestResultOCSPCertificate.java b/src/main/java/com/datadog/api/client/v2/model/SyntheticsTestResultOCSPCertificate.java deleted file mode 100644 index 6715368c4dd..00000000000 --- a/src/main/java/com/datadog/api/client/v2/model/SyntheticsTestResultOCSPCertificate.java +++ /dev/null @@ -1,194 +0,0 @@ -/* - * 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. - */ - -package com.datadog.api.client.v2.model; - -import com.fasterxml.jackson.annotation.JsonAnyGetter; -import com.fasterxml.jackson.annotation.JsonAnySetter; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; - -/** Certificate details returned in an OCSP response. */ -@JsonPropertyOrder({ - SyntheticsTestResultOCSPCertificate.JSON_PROPERTY_REVOCATION_REASON, - SyntheticsTestResultOCSPCertificate.JSON_PROPERTY_REVOCATION_TIME, - SyntheticsTestResultOCSPCertificate.JSON_PROPERTY_SERIAL_NUMBER -}) -@jakarta.annotation.Generated( - value = "https://github.com/DataDog/datadog-api-client-java/blob/master/.generator") -public class SyntheticsTestResultOCSPCertificate { - @JsonIgnore public boolean unparsed = false; - public static final String JSON_PROPERTY_REVOCATION_REASON = "revocation_reason"; - private String revocationReason; - - public static final String JSON_PROPERTY_REVOCATION_TIME = "revocation_time"; - private Long revocationTime; - - public static final String JSON_PROPERTY_SERIAL_NUMBER = "serial_number"; - private String serialNumber; - - public SyntheticsTestResultOCSPCertificate revocationReason(String revocationReason) { - this.revocationReason = revocationReason; - return this; - } - - /** - * Reason code for the revocation, when applicable. - * - * @return revocationReason - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_REVOCATION_REASON) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getRevocationReason() { - return revocationReason; - } - - public void setRevocationReason(String revocationReason) { - this.revocationReason = revocationReason; - } - - public SyntheticsTestResultOCSPCertificate revocationTime(Long revocationTime) { - this.revocationTime = revocationTime; - return this; - } - - /** - * Unix timestamp (ms) of the revocation. - * - * @return revocationTime - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_REVOCATION_TIME) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public Long getRevocationTime() { - return revocationTime; - } - - public void setRevocationTime(Long revocationTime) { - this.revocationTime = revocationTime; - } - - public SyntheticsTestResultOCSPCertificate serialNumber(String serialNumber) { - this.serialNumber = serialNumber; - return this; - } - - /** - * Serial number of the certificate. - * - * @return serialNumber - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_SERIAL_NUMBER) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getSerialNumber() { - return serialNumber; - } - - public void setSerialNumber(String serialNumber) { - this.serialNumber = serialNumber; - } - - /** - * A container for additional, undeclared properties. This is a holder for any undeclared - * properties as specified with the 'additionalProperties' keyword in the OAS document. - */ - private Map additionalProperties; - - /** - * Set the additional (undeclared) property with the specified name and value. If the property - * does not already exist, create it otherwise replace it. - * - * @param key The arbitrary key to set - * @param value The associated value - * @return SyntheticsTestResultOCSPCertificate - */ - @JsonAnySetter - public SyntheticsTestResultOCSPCertificate putAdditionalProperty(String key, Object value) { - if (this.additionalProperties == null) { - this.additionalProperties = new HashMap(); - } - this.additionalProperties.put(key, value); - return this; - } - - /** - * Return the additional (undeclared) property. - * - * @return The additional properties - */ - @JsonAnyGetter - public Map getAdditionalProperties() { - return additionalProperties; - } - - /** - * Return the additional (undeclared) property with the specified name. - * - * @param key The arbitrary key to get - * @return The specific additional property for the given key - */ - public Object getAdditionalProperty(String key) { - if (this.additionalProperties == null) { - return null; - } - return this.additionalProperties.get(key); - } - - /** Return true if this SyntheticsTestResultOCSPCertificate object is equal to o. */ - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - SyntheticsTestResultOCSPCertificate syntheticsTestResultOcspCertificate = - (SyntheticsTestResultOCSPCertificate) o; - return Objects.equals( - this.revocationReason, syntheticsTestResultOcspCertificate.revocationReason) - && Objects.equals(this.revocationTime, syntheticsTestResultOcspCertificate.revocationTime) - && Objects.equals(this.serialNumber, syntheticsTestResultOcspCertificate.serialNumber) - && Objects.equals( - this.additionalProperties, syntheticsTestResultOcspCertificate.additionalProperties); - } - - @Override - public int hashCode() { - return Objects.hash(revocationReason, revocationTime, serialNumber, additionalProperties); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class SyntheticsTestResultOCSPCertificate {\n"); - sb.append(" revocationReason: ").append(toIndentedString(revocationReason)).append("\n"); - sb.append(" revocationTime: ").append(toIndentedString(revocationTime)).append("\n"); - sb.append(" serialNumber: ").append(toIndentedString(serialNumber)).append("\n"); - sb.append(" additionalProperties: ") - .append(toIndentedString(additionalProperties)) - .append("\n"); - sb.append('}'); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } -} diff --git a/src/main/java/com/datadog/api/client/v2/model/SyntheticsTestResultOCSPResponse.java b/src/main/java/com/datadog/api/client/v2/model/SyntheticsTestResultOCSPResponse.java deleted file mode 100644 index 30173b0e522..00000000000 --- a/src/main/java/com/datadog/api/client/v2/model/SyntheticsTestResultOCSPResponse.java +++ /dev/null @@ -1,197 +0,0 @@ -/* - * 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. - */ - -package com.datadog.api.client.v2.model; - -import com.fasterxml.jackson.annotation.JsonAnyGetter; -import com.fasterxml.jackson.annotation.JsonAnySetter; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; - -/** OCSP response received while validating a certificate. */ -@JsonPropertyOrder({ - SyntheticsTestResultOCSPResponse.JSON_PROPERTY_CERTIFICATE, - SyntheticsTestResultOCSPResponse.JSON_PROPERTY_STATUS, - SyntheticsTestResultOCSPResponse.JSON_PROPERTY_UPDATES -}) -@jakarta.annotation.Generated( - value = "https://github.com/DataDog/datadog-api-client-java/blob/master/.generator") -public class SyntheticsTestResultOCSPResponse { - @JsonIgnore public boolean unparsed = false; - public static final String JSON_PROPERTY_CERTIFICATE = "certificate"; - private SyntheticsTestResultOCSPCertificate certificate; - - public static final String JSON_PROPERTY_STATUS = "status"; - private String status; - - public static final String JSON_PROPERTY_UPDATES = "updates"; - private SyntheticsTestResultOCSPUpdates updates; - - public SyntheticsTestResultOCSPResponse certificate( - SyntheticsTestResultOCSPCertificate certificate) { - this.certificate = certificate; - this.unparsed |= certificate.unparsed; - return this; - } - - /** - * Certificate details returned in an OCSP response. - * - * @return certificate - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_CERTIFICATE) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public SyntheticsTestResultOCSPCertificate getCertificate() { - return certificate; - } - - public void setCertificate(SyntheticsTestResultOCSPCertificate certificate) { - this.certificate = certificate; - } - - public SyntheticsTestResultOCSPResponse status(String status) { - this.status = status; - return this; - } - - /** - * OCSP response status (for example, good, revoked, unknown - * ). - * - * @return status - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_STATUS) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getStatus() { - return status; - } - - public void setStatus(String status) { - this.status = status; - } - - public SyntheticsTestResultOCSPResponse updates(SyntheticsTestResultOCSPUpdates updates) { - this.updates = updates; - this.unparsed |= updates.unparsed; - return this; - } - - /** - * OCSP response update timestamps. - * - * @return updates - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_UPDATES) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public SyntheticsTestResultOCSPUpdates getUpdates() { - return updates; - } - - public void setUpdates(SyntheticsTestResultOCSPUpdates updates) { - this.updates = updates; - } - - /** - * A container for additional, undeclared properties. This is a holder for any undeclared - * properties as specified with the 'additionalProperties' keyword in the OAS document. - */ - private Map additionalProperties; - - /** - * Set the additional (undeclared) property with the specified name and value. If the property - * does not already exist, create it otherwise replace it. - * - * @param key The arbitrary key to set - * @param value The associated value - * @return SyntheticsTestResultOCSPResponse - */ - @JsonAnySetter - public SyntheticsTestResultOCSPResponse putAdditionalProperty(String key, Object value) { - if (this.additionalProperties == null) { - this.additionalProperties = new HashMap(); - } - this.additionalProperties.put(key, value); - return this; - } - - /** - * Return the additional (undeclared) property. - * - * @return The additional properties - */ - @JsonAnyGetter - public Map getAdditionalProperties() { - return additionalProperties; - } - - /** - * Return the additional (undeclared) property with the specified name. - * - * @param key The arbitrary key to get - * @return The specific additional property for the given key - */ - public Object getAdditionalProperty(String key) { - if (this.additionalProperties == null) { - return null; - } - return this.additionalProperties.get(key); - } - - /** Return true if this SyntheticsTestResultOCSPResponse object is equal to o. */ - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - SyntheticsTestResultOCSPResponse syntheticsTestResultOcspResponse = - (SyntheticsTestResultOCSPResponse) o; - return Objects.equals(this.certificate, syntheticsTestResultOcspResponse.certificate) - && Objects.equals(this.status, syntheticsTestResultOcspResponse.status) - && Objects.equals(this.updates, syntheticsTestResultOcspResponse.updates) - && Objects.equals( - this.additionalProperties, syntheticsTestResultOcspResponse.additionalProperties); - } - - @Override - public int hashCode() { - return Objects.hash(certificate, status, updates, additionalProperties); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class SyntheticsTestResultOCSPResponse {\n"); - sb.append(" certificate: ").append(toIndentedString(certificate)).append("\n"); - sb.append(" status: ").append(toIndentedString(status)).append("\n"); - sb.append(" updates: ").append(toIndentedString(updates)).append("\n"); - sb.append(" additionalProperties: ") - .append(toIndentedString(additionalProperties)) - .append("\n"); - sb.append('}'); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } -} diff --git a/src/main/java/com/datadog/api/client/v2/model/SyntheticsTestResultOCSPUpdates.java b/src/main/java/com/datadog/api/client/v2/model/SyntheticsTestResultOCSPUpdates.java deleted file mode 100644 index a148ca22e8f..00000000000 --- a/src/main/java/com/datadog/api/client/v2/model/SyntheticsTestResultOCSPUpdates.java +++ /dev/null @@ -1,193 +0,0 @@ -/* - * 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. - */ - -package com.datadog.api.client.v2.model; - -import com.fasterxml.jackson.annotation.JsonAnyGetter; -import com.fasterxml.jackson.annotation.JsonAnySetter; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; - -/** OCSP response update timestamps. */ -@JsonPropertyOrder({ - SyntheticsTestResultOCSPUpdates.JSON_PROPERTY_NEXT_UPDATE, - SyntheticsTestResultOCSPUpdates.JSON_PROPERTY_PRODUCED_AT, - SyntheticsTestResultOCSPUpdates.JSON_PROPERTY_THIS_UPDATE -}) -@jakarta.annotation.Generated( - value = "https://github.com/DataDog/datadog-api-client-java/blob/master/.generator") -public class SyntheticsTestResultOCSPUpdates { - @JsonIgnore public boolean unparsed = false; - public static final String JSON_PROPERTY_NEXT_UPDATE = "next_update"; - private Long nextUpdate; - - public static final String JSON_PROPERTY_PRODUCED_AT = "produced_at"; - private Long producedAt; - - public static final String JSON_PROPERTY_THIS_UPDATE = "this_update"; - private Long thisUpdate; - - public SyntheticsTestResultOCSPUpdates nextUpdate(Long nextUpdate) { - this.nextUpdate = nextUpdate; - return this; - } - - /** - * Unix timestamp (ms) of the next expected OCSP update. - * - * @return nextUpdate - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_NEXT_UPDATE) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public Long getNextUpdate() { - return nextUpdate; - } - - public void setNextUpdate(Long nextUpdate) { - this.nextUpdate = nextUpdate; - } - - public SyntheticsTestResultOCSPUpdates producedAt(Long producedAt) { - this.producedAt = producedAt; - return this; - } - - /** - * Unix timestamp (ms) of when the OCSP response was produced. - * - * @return producedAt - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_PRODUCED_AT) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public Long getProducedAt() { - return producedAt; - } - - public void setProducedAt(Long producedAt) { - this.producedAt = producedAt; - } - - public SyntheticsTestResultOCSPUpdates thisUpdate(Long thisUpdate) { - this.thisUpdate = thisUpdate; - return this; - } - - /** - * Unix timestamp (ms) of this OCSP update. - * - * @return thisUpdate - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_THIS_UPDATE) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public Long getThisUpdate() { - return thisUpdate; - } - - public void setThisUpdate(Long thisUpdate) { - this.thisUpdate = thisUpdate; - } - - /** - * A container for additional, undeclared properties. This is a holder for any undeclared - * properties as specified with the 'additionalProperties' keyword in the OAS document. - */ - private Map additionalProperties; - - /** - * Set the additional (undeclared) property with the specified name and value. If the property - * does not already exist, create it otherwise replace it. - * - * @param key The arbitrary key to set - * @param value The associated value - * @return SyntheticsTestResultOCSPUpdates - */ - @JsonAnySetter - public SyntheticsTestResultOCSPUpdates putAdditionalProperty(String key, Object value) { - if (this.additionalProperties == null) { - this.additionalProperties = new HashMap(); - } - this.additionalProperties.put(key, value); - return this; - } - - /** - * Return the additional (undeclared) property. - * - * @return The additional properties - */ - @JsonAnyGetter - public Map getAdditionalProperties() { - return additionalProperties; - } - - /** - * Return the additional (undeclared) property with the specified name. - * - * @param key The arbitrary key to get - * @return The specific additional property for the given key - */ - public Object getAdditionalProperty(String key) { - if (this.additionalProperties == null) { - return null; - } - return this.additionalProperties.get(key); - } - - /** Return true if this SyntheticsTestResultOCSPUpdates object is equal to o. */ - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - SyntheticsTestResultOCSPUpdates syntheticsTestResultOcspUpdates = - (SyntheticsTestResultOCSPUpdates) o; - return Objects.equals(this.nextUpdate, syntheticsTestResultOcspUpdates.nextUpdate) - && Objects.equals(this.producedAt, syntheticsTestResultOcspUpdates.producedAt) - && Objects.equals(this.thisUpdate, syntheticsTestResultOcspUpdates.thisUpdate) - && Objects.equals( - this.additionalProperties, syntheticsTestResultOcspUpdates.additionalProperties); - } - - @Override - public int hashCode() { - return Objects.hash(nextUpdate, producedAt, thisUpdate, additionalProperties); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class SyntheticsTestResultOCSPUpdates {\n"); - sb.append(" nextUpdate: ").append(toIndentedString(nextUpdate)).append("\n"); - sb.append(" producedAt: ").append(toIndentedString(producedAt)).append("\n"); - sb.append(" thisUpdate: ").append(toIndentedString(thisUpdate)).append("\n"); - sb.append(" additionalProperties: ") - .append(toIndentedString(additionalProperties)) - .append("\n"); - sb.append('}'); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } -} diff --git a/src/main/java/com/datadog/api/client/v2/model/SyntheticsTestResultParentStep.java b/src/main/java/com/datadog/api/client/v2/model/SyntheticsTestResultParentStep.java deleted file mode 100644 index 9ff086a1c8d..00000000000 --- a/src/main/java/com/datadog/api/client/v2/model/SyntheticsTestResultParentStep.java +++ /dev/null @@ -1,137 +0,0 @@ -/* - * 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. - */ - -package com.datadog.api.client.v2.model; - -import com.fasterxml.jackson.annotation.JsonAnyGetter; -import com.fasterxml.jackson.annotation.JsonAnySetter; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; - -/** Reference to the parent step of a sub-step. */ -@JsonPropertyOrder({SyntheticsTestResultParentStep.JSON_PROPERTY_ID}) -@jakarta.annotation.Generated( - value = "https://github.com/DataDog/datadog-api-client-java/blob/master/.generator") -public class SyntheticsTestResultParentStep { - @JsonIgnore public boolean unparsed = false; - public static final String JSON_PROPERTY_ID = "id"; - private String id; - - public SyntheticsTestResultParentStep id(String id) { - this.id = id; - return this; - } - - /** - * Identifier of the parent step. - * - * @return id - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ID) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getId() { - return id; - } - - public void setId(String id) { - this.id = id; - } - - /** - * A container for additional, undeclared properties. This is a holder for any undeclared - * properties as specified with the 'additionalProperties' keyword in the OAS document. - */ - private Map additionalProperties; - - /** - * Set the additional (undeclared) property with the specified name and value. If the property - * does not already exist, create it otherwise replace it. - * - * @param key The arbitrary key to set - * @param value The associated value - * @return SyntheticsTestResultParentStep - */ - @JsonAnySetter - public SyntheticsTestResultParentStep putAdditionalProperty(String key, Object value) { - if (this.additionalProperties == null) { - this.additionalProperties = new HashMap(); - } - this.additionalProperties.put(key, value); - return this; - } - - /** - * Return the additional (undeclared) property. - * - * @return The additional properties - */ - @JsonAnyGetter - public Map getAdditionalProperties() { - return additionalProperties; - } - - /** - * Return the additional (undeclared) property with the specified name. - * - * @param key The arbitrary key to get - * @return The specific additional property for the given key - */ - public Object getAdditionalProperty(String key) { - if (this.additionalProperties == null) { - return null; - } - return this.additionalProperties.get(key); - } - - /** Return true if this SyntheticsTestResultParentStep object is equal to o. */ - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - SyntheticsTestResultParentStep syntheticsTestResultParentStep = - (SyntheticsTestResultParentStep) o; - return Objects.equals(this.id, syntheticsTestResultParentStep.id) - && Objects.equals( - this.additionalProperties, syntheticsTestResultParentStep.additionalProperties); - } - - @Override - public int hashCode() { - return Objects.hash(id, additionalProperties); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class SyntheticsTestResultParentStep {\n"); - sb.append(" id: ").append(toIndentedString(id)).append("\n"); - sb.append(" additionalProperties: ") - .append(toIndentedString(additionalProperties)) - .append("\n"); - sb.append('}'); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } -} diff --git a/src/main/java/com/datadog/api/client/v2/model/SyntheticsTestResultParentTest.java b/src/main/java/com/datadog/api/client/v2/model/SyntheticsTestResultParentTest.java deleted file mode 100644 index 58a4309c613..00000000000 --- a/src/main/java/com/datadog/api/client/v2/model/SyntheticsTestResultParentTest.java +++ /dev/null @@ -1,137 +0,0 @@ -/* - * 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. - */ - -package com.datadog.api.client.v2.model; - -import com.fasterxml.jackson.annotation.JsonAnyGetter; -import com.fasterxml.jackson.annotation.JsonAnySetter; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; - -/** Reference to the parent test of a sub-step. */ -@JsonPropertyOrder({SyntheticsTestResultParentTest.JSON_PROPERTY_ID}) -@jakarta.annotation.Generated( - value = "https://github.com/DataDog/datadog-api-client-java/blob/master/.generator") -public class SyntheticsTestResultParentTest { - @JsonIgnore public boolean unparsed = false; - public static final String JSON_PROPERTY_ID = "id"; - private String id; - - public SyntheticsTestResultParentTest id(String id) { - this.id = id; - return this; - } - - /** - * Identifier of the parent test. - * - * @return id - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ID) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getId() { - return id; - } - - public void setId(String id) { - this.id = id; - } - - /** - * A container for additional, undeclared properties. This is a holder for any undeclared - * properties as specified with the 'additionalProperties' keyword in the OAS document. - */ - private Map additionalProperties; - - /** - * Set the additional (undeclared) property with the specified name and value. If the property - * does not already exist, create it otherwise replace it. - * - * @param key The arbitrary key to set - * @param value The associated value - * @return SyntheticsTestResultParentTest - */ - @JsonAnySetter - public SyntheticsTestResultParentTest putAdditionalProperty(String key, Object value) { - if (this.additionalProperties == null) { - this.additionalProperties = new HashMap(); - } - this.additionalProperties.put(key, value); - return this; - } - - /** - * Return the additional (undeclared) property. - * - * @return The additional properties - */ - @JsonAnyGetter - public Map getAdditionalProperties() { - return additionalProperties; - } - - /** - * Return the additional (undeclared) property with the specified name. - * - * @param key The arbitrary key to get - * @return The specific additional property for the given key - */ - public Object getAdditionalProperty(String key) { - if (this.additionalProperties == null) { - return null; - } - return this.additionalProperties.get(key); - } - - /** Return true if this SyntheticsTestResultParentTest object is equal to o. */ - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - SyntheticsTestResultParentTest syntheticsTestResultParentTest = - (SyntheticsTestResultParentTest) o; - return Objects.equals(this.id, syntheticsTestResultParentTest.id) - && Objects.equals( - this.additionalProperties, syntheticsTestResultParentTest.additionalProperties); - } - - @Override - public int hashCode() { - return Objects.hash(id, additionalProperties); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class SyntheticsTestResultParentTest {\n"); - sb.append(" id: ").append(toIndentedString(id)).append("\n"); - sb.append(" additionalProperties: ") - .append(toIndentedString(additionalProperties)) - .append("\n"); - sb.append('}'); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } -} diff --git a/src/main/java/com/datadog/api/client/v2/model/SyntheticsTestResultRedirect.java b/src/main/java/com/datadog/api/client/v2/model/SyntheticsTestResultRedirect.java deleted file mode 100644 index d7ccb5acb1f..00000000000 --- a/src/main/java/com/datadog/api/client/v2/model/SyntheticsTestResultRedirect.java +++ /dev/null @@ -1,165 +0,0 @@ -/* - * 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. - */ - -package com.datadog.api.client.v2.model; - -import com.fasterxml.jackson.annotation.JsonAnyGetter; -import com.fasterxml.jackson.annotation.JsonAnySetter; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; - -/** A redirect hop encountered while performing the request. */ -@JsonPropertyOrder({ - SyntheticsTestResultRedirect.JSON_PROPERTY_LOCATION, - SyntheticsTestResultRedirect.JSON_PROPERTY_STATUS_CODE -}) -@jakarta.annotation.Generated( - value = "https://github.com/DataDog/datadog-api-client-java/blob/master/.generator") -public class SyntheticsTestResultRedirect { - @JsonIgnore public boolean unparsed = false; - public static final String JSON_PROPERTY_LOCATION = "location"; - private String location; - - public static final String JSON_PROPERTY_STATUS_CODE = "status_code"; - private Long statusCode; - - public SyntheticsTestResultRedirect location(String location) { - this.location = location; - return this; - } - - /** - * Target location of the redirect. - * - * @return location - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_LOCATION) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getLocation() { - return location; - } - - public void setLocation(String location) { - this.location = location; - } - - public SyntheticsTestResultRedirect statusCode(Long statusCode) { - this.statusCode = statusCode; - return this; - } - - /** - * HTTP status code of the redirect response. - * - * @return statusCode - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_STATUS_CODE) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public Long getStatusCode() { - return statusCode; - } - - public void setStatusCode(Long statusCode) { - this.statusCode = statusCode; - } - - /** - * A container for additional, undeclared properties. This is a holder for any undeclared - * properties as specified with the 'additionalProperties' keyword in the OAS document. - */ - private Map additionalProperties; - - /** - * Set the additional (undeclared) property with the specified name and value. If the property - * does not already exist, create it otherwise replace it. - * - * @param key The arbitrary key to set - * @param value The associated value - * @return SyntheticsTestResultRedirect - */ - @JsonAnySetter - public SyntheticsTestResultRedirect putAdditionalProperty(String key, Object value) { - if (this.additionalProperties == null) { - this.additionalProperties = new HashMap(); - } - this.additionalProperties.put(key, value); - return this; - } - - /** - * Return the additional (undeclared) property. - * - * @return The additional properties - */ - @JsonAnyGetter - public Map getAdditionalProperties() { - return additionalProperties; - } - - /** - * Return the additional (undeclared) property with the specified name. - * - * @param key The arbitrary key to get - * @return The specific additional property for the given key - */ - public Object getAdditionalProperty(String key) { - if (this.additionalProperties == null) { - return null; - } - return this.additionalProperties.get(key); - } - - /** Return true if this SyntheticsTestResultRedirect object is equal to o. */ - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - SyntheticsTestResultRedirect syntheticsTestResultRedirect = (SyntheticsTestResultRedirect) o; - return Objects.equals(this.location, syntheticsTestResultRedirect.location) - && Objects.equals(this.statusCode, syntheticsTestResultRedirect.statusCode) - && Objects.equals( - this.additionalProperties, syntheticsTestResultRedirect.additionalProperties); - } - - @Override - public int hashCode() { - return Objects.hash(location, statusCode, additionalProperties); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class SyntheticsTestResultRedirect {\n"); - sb.append(" location: ").append(toIndentedString(location)).append("\n"); - sb.append(" statusCode: ").append(toIndentedString(statusCode)).append("\n"); - sb.append(" additionalProperties: ") - .append(toIndentedString(additionalProperties)) - .append("\n"); - sb.append('}'); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } -} diff --git a/src/main/java/com/datadog/api/client/v2/model/SyntheticsTestResultRelationshipTest.java b/src/main/java/com/datadog/api/client/v2/model/SyntheticsTestResultRelationshipTest.java deleted file mode 100644 index 90e85ca217e..00000000000 --- a/src/main/java/com/datadog/api/client/v2/model/SyntheticsTestResultRelationshipTest.java +++ /dev/null @@ -1,138 +0,0 @@ -/* - * 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. - */ - -package com.datadog.api.client.v2.model; - -import com.fasterxml.jackson.annotation.JsonAnyGetter; -import com.fasterxml.jackson.annotation.JsonAnySetter; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; - -/** Relationship to the Synthetic test. */ -@JsonPropertyOrder({SyntheticsTestResultRelationshipTest.JSON_PROPERTY_DATA}) -@jakarta.annotation.Generated( - value = "https://github.com/DataDog/datadog-api-client-java/blob/master/.generator") -public class SyntheticsTestResultRelationshipTest { - @JsonIgnore public boolean unparsed = false; - public static final String JSON_PROPERTY_DATA = "data"; - private SyntheticsTestResultRelationshipTestData data; - - public SyntheticsTestResultRelationshipTest data(SyntheticsTestResultRelationshipTestData data) { - this.data = data; - this.unparsed |= data.unparsed; - return this; - } - - /** - * Data for the test relationship. - * - * @return data - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_DATA) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public SyntheticsTestResultRelationshipTestData getData() { - return data; - } - - public void setData(SyntheticsTestResultRelationshipTestData data) { - this.data = data; - } - - /** - * A container for additional, undeclared properties. This is a holder for any undeclared - * properties as specified with the 'additionalProperties' keyword in the OAS document. - */ - private Map additionalProperties; - - /** - * Set the additional (undeclared) property with the specified name and value. If the property - * does not already exist, create it otherwise replace it. - * - * @param key The arbitrary key to set - * @param value The associated value - * @return SyntheticsTestResultRelationshipTest - */ - @JsonAnySetter - public SyntheticsTestResultRelationshipTest putAdditionalProperty(String key, Object value) { - if (this.additionalProperties == null) { - this.additionalProperties = new HashMap(); - } - this.additionalProperties.put(key, value); - return this; - } - - /** - * Return the additional (undeclared) property. - * - * @return The additional properties - */ - @JsonAnyGetter - public Map getAdditionalProperties() { - return additionalProperties; - } - - /** - * Return the additional (undeclared) property with the specified name. - * - * @param key The arbitrary key to get - * @return The specific additional property for the given key - */ - public Object getAdditionalProperty(String key) { - if (this.additionalProperties == null) { - return null; - } - return this.additionalProperties.get(key); - } - - /** Return true if this SyntheticsTestResultRelationshipTest object is equal to o. */ - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - SyntheticsTestResultRelationshipTest syntheticsTestResultRelationshipTest = - (SyntheticsTestResultRelationshipTest) o; - return Objects.equals(this.data, syntheticsTestResultRelationshipTest.data) - && Objects.equals( - this.additionalProperties, syntheticsTestResultRelationshipTest.additionalProperties); - } - - @Override - public int hashCode() { - return Objects.hash(data, additionalProperties); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class SyntheticsTestResultRelationshipTest {\n"); - sb.append(" data: ").append(toIndentedString(data)).append("\n"); - sb.append(" additionalProperties: ") - .append(toIndentedString(additionalProperties)) - .append("\n"); - sb.append('}'); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } -} diff --git a/src/main/java/com/datadog/api/client/v2/model/SyntheticsTestResultRelationshipTestData.java b/src/main/java/com/datadog/api/client/v2/model/SyntheticsTestResultRelationshipTestData.java deleted file mode 100644 index bffae16ffc4..00000000000 --- a/src/main/java/com/datadog/api/client/v2/model/SyntheticsTestResultRelationshipTestData.java +++ /dev/null @@ -1,167 +0,0 @@ -/* - * 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. - */ - -package com.datadog.api.client.v2.model; - -import com.fasterxml.jackson.annotation.JsonAnyGetter; -import com.fasterxml.jackson.annotation.JsonAnySetter; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; - -/** Data for the test relationship. */ -@JsonPropertyOrder({ - SyntheticsTestResultRelationshipTestData.JSON_PROPERTY_ID, - SyntheticsTestResultRelationshipTestData.JSON_PROPERTY_TYPE -}) -@jakarta.annotation.Generated( - value = "https://github.com/DataDog/datadog-api-client-java/blob/master/.generator") -public class SyntheticsTestResultRelationshipTestData { - @JsonIgnore public boolean unparsed = false; - public static final String JSON_PROPERTY_ID = "id"; - private String id; - - public static final String JSON_PROPERTY_TYPE = "type"; - private String type; - - public SyntheticsTestResultRelationshipTestData id(String id) { - this.id = id; - return this; - } - - /** - * The public ID of the test. - * - * @return id - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ID) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getId() { - return id; - } - - public void setId(String id) { - this.id = id; - } - - public SyntheticsTestResultRelationshipTestData type(String type) { - this.type = type; - return this; - } - - /** - * Type of the related resource. - * - * @return type - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_TYPE) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getType() { - return type; - } - - public void setType(String type) { - this.type = type; - } - - /** - * A container for additional, undeclared properties. This is a holder for any undeclared - * properties as specified with the 'additionalProperties' keyword in the OAS document. - */ - private Map additionalProperties; - - /** - * Set the additional (undeclared) property with the specified name and value. If the property - * does not already exist, create it otherwise replace it. - * - * @param key The arbitrary key to set - * @param value The associated value - * @return SyntheticsTestResultRelationshipTestData - */ - @JsonAnySetter - public SyntheticsTestResultRelationshipTestData putAdditionalProperty(String key, Object value) { - if (this.additionalProperties == null) { - this.additionalProperties = new HashMap(); - } - this.additionalProperties.put(key, value); - return this; - } - - /** - * Return the additional (undeclared) property. - * - * @return The additional properties - */ - @JsonAnyGetter - public Map getAdditionalProperties() { - return additionalProperties; - } - - /** - * Return the additional (undeclared) property with the specified name. - * - * @param key The arbitrary key to get - * @return The specific additional property for the given key - */ - public Object getAdditionalProperty(String key) { - if (this.additionalProperties == null) { - return null; - } - return this.additionalProperties.get(key); - } - - /** Return true if this SyntheticsTestResultRelationshipTestData object is equal to o. */ - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - SyntheticsTestResultRelationshipTestData syntheticsTestResultRelationshipTestData = - (SyntheticsTestResultRelationshipTestData) o; - return Objects.equals(this.id, syntheticsTestResultRelationshipTestData.id) - && Objects.equals(this.type, syntheticsTestResultRelationshipTestData.type) - && Objects.equals( - this.additionalProperties, - syntheticsTestResultRelationshipTestData.additionalProperties); - } - - @Override - public int hashCode() { - return Objects.hash(id, type, additionalProperties); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class SyntheticsTestResultRelationshipTestData {\n"); - sb.append(" id: ").append(toIndentedString(id)).append("\n"); - sb.append(" type: ").append(toIndentedString(type)).append("\n"); - sb.append(" additionalProperties: ") - .append(toIndentedString(additionalProperties)) - .append("\n"); - sb.append('}'); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } -} diff --git a/src/main/java/com/datadog/api/client/v2/model/SyntheticsTestResultRelationships.java b/src/main/java/com/datadog/api/client/v2/model/SyntheticsTestResultRelationships.java deleted file mode 100644 index 5c258342747..00000000000 --- a/src/main/java/com/datadog/api/client/v2/model/SyntheticsTestResultRelationships.java +++ /dev/null @@ -1,138 +0,0 @@ -/* - * 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. - */ - -package com.datadog.api.client.v2.model; - -import com.fasterxml.jackson.annotation.JsonAnyGetter; -import com.fasterxml.jackson.annotation.JsonAnySetter; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; - -/** Relationships for a Synthetic test result. */ -@JsonPropertyOrder({SyntheticsTestResultRelationships.JSON_PROPERTY_TEST}) -@jakarta.annotation.Generated( - value = "https://github.com/DataDog/datadog-api-client-java/blob/master/.generator") -public class SyntheticsTestResultRelationships { - @JsonIgnore public boolean unparsed = false; - public static final String JSON_PROPERTY_TEST = "test"; - private SyntheticsTestResultRelationshipTest test; - - public SyntheticsTestResultRelationships test(SyntheticsTestResultRelationshipTest test) { - this.test = test; - this.unparsed |= test.unparsed; - return this; - } - - /** - * Relationship to the Synthetic test. - * - * @return test - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_TEST) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public SyntheticsTestResultRelationshipTest getTest() { - return test; - } - - public void setTest(SyntheticsTestResultRelationshipTest test) { - this.test = test; - } - - /** - * A container for additional, undeclared properties. This is a holder for any undeclared - * properties as specified with the 'additionalProperties' keyword in the OAS document. - */ - private Map additionalProperties; - - /** - * Set the additional (undeclared) property with the specified name and value. If the property - * does not already exist, create it otherwise replace it. - * - * @param key The arbitrary key to set - * @param value The associated value - * @return SyntheticsTestResultRelationships - */ - @JsonAnySetter - public SyntheticsTestResultRelationships putAdditionalProperty(String key, Object value) { - if (this.additionalProperties == null) { - this.additionalProperties = new HashMap(); - } - this.additionalProperties.put(key, value); - return this; - } - - /** - * Return the additional (undeclared) property. - * - * @return The additional properties - */ - @JsonAnyGetter - public Map getAdditionalProperties() { - return additionalProperties; - } - - /** - * Return the additional (undeclared) property with the specified name. - * - * @param key The arbitrary key to get - * @return The specific additional property for the given key - */ - public Object getAdditionalProperty(String key) { - if (this.additionalProperties == null) { - return null; - } - return this.additionalProperties.get(key); - } - - /** Return true if this SyntheticsTestResultRelationships object is equal to o. */ - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - SyntheticsTestResultRelationships syntheticsTestResultRelationships = - (SyntheticsTestResultRelationships) o; - return Objects.equals(this.test, syntheticsTestResultRelationships.test) - && Objects.equals( - this.additionalProperties, syntheticsTestResultRelationships.additionalProperties); - } - - @Override - public int hashCode() { - return Objects.hash(test, additionalProperties); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class SyntheticsTestResultRelationships {\n"); - sb.append(" test: ").append(toIndentedString(test)).append("\n"); - sb.append(" additionalProperties: ") - .append(toIndentedString(additionalProperties)) - .append("\n"); - sb.append('}'); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } -} diff --git a/src/main/java/com/datadog/api/client/v2/model/SyntheticsTestResultRequestInfo.java b/src/main/java/com/datadog/api/client/v2/model/SyntheticsTestResultRequestInfo.java deleted file mode 100644 index d0b07ff8b24..00000000000 --- a/src/main/java/com/datadog/api/client/v2/model/SyntheticsTestResultRequestInfo.java +++ /dev/null @@ -1,728 +0,0 @@ -/* - * 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. - */ - -package com.datadog.api.client.v2.model; - -import com.fasterxml.jackson.annotation.JsonAnyGetter; -import com.fasterxml.jackson.annotation.JsonAnySetter; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import java.util.ArrayList; -import java.util.HashMap; -import java.util.List; -import java.util.Map; -import java.util.Objects; - -/** Details of the outgoing request made during the test execution. */ -@JsonPropertyOrder({ - SyntheticsTestResultRequestInfo.JSON_PROPERTY_ALLOW_INSECURE, - SyntheticsTestResultRequestInfo.JSON_PROPERTY_BODY, - SyntheticsTestResultRequestInfo.JSON_PROPERTY_CALL_TYPE, - SyntheticsTestResultRequestInfo.JSON_PROPERTY_DESTINATION_SERVICE, - SyntheticsTestResultRequestInfo.JSON_PROPERTY_DNS_SERVER, - SyntheticsTestResultRequestInfo.JSON_PROPERTY_DNS_SERVER_PORT, - SyntheticsTestResultRequestInfo.JSON_PROPERTY_E2E_QUERIES, - SyntheticsTestResultRequestInfo.JSON_PROPERTY_FILES, - SyntheticsTestResultRequestInfo.JSON_PROPERTY_HEADERS, - SyntheticsTestResultRequestInfo.JSON_PROPERTY_HOST, - SyntheticsTestResultRequestInfo.JSON_PROPERTY_MAX_TTL, - SyntheticsTestResultRequestInfo.JSON_PROPERTY_MESSAGE, - SyntheticsTestResultRequestInfo.JSON_PROPERTY_METHOD, - SyntheticsTestResultRequestInfo.JSON_PROPERTY_NO_SAVING_RESPONSE_BODY, - SyntheticsTestResultRequestInfo.JSON_PROPERTY_PORT, - SyntheticsTestResultRequestInfo.JSON_PROPERTY_SERVICE, - SyntheticsTestResultRequestInfo.JSON_PROPERTY_SOURCE_SERVICE, - SyntheticsTestResultRequestInfo.JSON_PROPERTY_TIMEOUT, - SyntheticsTestResultRequestInfo.JSON_PROPERTY_TOOL_NAME, - SyntheticsTestResultRequestInfo.JSON_PROPERTY_TRACEROUTE_QUERIES, - SyntheticsTestResultRequestInfo.JSON_PROPERTY_URL -}) -@jakarta.annotation.Generated( - value = "https://github.com/DataDog/datadog-api-client-java/blob/master/.generator") -public class SyntheticsTestResultRequestInfo { - @JsonIgnore public boolean unparsed = false; - public static final String JSON_PROPERTY_ALLOW_INSECURE = "allow_insecure"; - private Boolean allowInsecure; - - public static final String JSON_PROPERTY_BODY = "body"; - private String body; - - public static final String JSON_PROPERTY_CALL_TYPE = "call_type"; - private String callType; - - public static final String JSON_PROPERTY_DESTINATION_SERVICE = "destination_service"; - private String destinationService; - - public static final String JSON_PROPERTY_DNS_SERVER = "dns_server"; - private String dnsServer; - - public static final String JSON_PROPERTY_DNS_SERVER_PORT = "dns_server_port"; - private Long dnsServerPort; - - public static final String JSON_PROPERTY_E2E_QUERIES = "e2e_queries"; - private Long e2eQueries; - - public static final String JSON_PROPERTY_FILES = "files"; - private List files = null; - - public static final String JSON_PROPERTY_HEADERS = "headers"; - private Map headers = null; - - public static final String JSON_PROPERTY_HOST = "host"; - private String host; - - public static final String JSON_PROPERTY_MAX_TTL = "max_ttl"; - private Long maxTtl; - - public static final String JSON_PROPERTY_MESSAGE = "message"; - private String message; - - public static final String JSON_PROPERTY_METHOD = "method"; - private String method; - - public static final String JSON_PROPERTY_NO_SAVING_RESPONSE_BODY = "no_saving_response_body"; - private Boolean noSavingResponseBody; - - public static final String JSON_PROPERTY_PORT = "port"; - private Object port = null; - - public static final String JSON_PROPERTY_SERVICE = "service"; - private String service; - - public static final String JSON_PROPERTY_SOURCE_SERVICE = "source_service"; - private String sourceService; - - public static final String JSON_PROPERTY_TIMEOUT = "timeout"; - private Long timeout; - - public static final String JSON_PROPERTY_TOOL_NAME = "tool_name"; - private String toolName; - - public static final String JSON_PROPERTY_TRACEROUTE_QUERIES = "traceroute_queries"; - private Long tracerouteQueries; - - public static final String JSON_PROPERTY_URL = "url"; - private String url; - - public SyntheticsTestResultRequestInfo allowInsecure(Boolean allowInsecure) { - this.allowInsecure = allowInsecure; - return this; - } - - /** - * Whether insecure certificates are allowed for this request. - * - * @return allowInsecure - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ALLOW_INSECURE) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public Boolean getAllowInsecure() { - return allowInsecure; - } - - public void setAllowInsecure(Boolean allowInsecure) { - this.allowInsecure = allowInsecure; - } - - public SyntheticsTestResultRequestInfo body(String body) { - this.body = body; - return this; - } - - /** - * Body sent with the request. - * - * @return body - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_BODY) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getBody() { - return body; - } - - public void setBody(String body) { - this.body = body; - } - - public SyntheticsTestResultRequestInfo callType(String callType) { - this.callType = callType; - return this; - } - - /** - * gRPC call type (for example, unary, healthCheck, or reflection - * ). - * - * @return callType - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_CALL_TYPE) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getCallType() { - return callType; - } - - public void setCallType(String callType) { - this.callType = callType; - } - - public SyntheticsTestResultRequestInfo destinationService(String destinationService) { - this.destinationService = destinationService; - return this; - } - - /** - * Destination service for a Network Path test. - * - * @return destinationService - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_DESTINATION_SERVICE) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getDestinationService() { - return destinationService; - } - - public void setDestinationService(String destinationService) { - this.destinationService = destinationService; - } - - public SyntheticsTestResultRequestInfo dnsServer(String dnsServer) { - this.dnsServer = dnsServer; - return this; - } - - /** - * DNS server used to resolve the target host. - * - * @return dnsServer - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_DNS_SERVER) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getDnsServer() { - return dnsServer; - } - - public void setDnsServer(String dnsServer) { - this.dnsServer = dnsServer; - } - - public SyntheticsTestResultRequestInfo dnsServerPort(Long dnsServerPort) { - this.dnsServerPort = dnsServerPort; - return this; - } - - /** - * Port of the DNS server used for resolution. - * - * @return dnsServerPort - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_DNS_SERVER_PORT) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public Long getDnsServerPort() { - return dnsServerPort; - } - - public void setDnsServerPort(Long dnsServerPort) { - this.dnsServerPort = dnsServerPort; - } - - public SyntheticsTestResultRequestInfo e2eQueries(Long e2eQueries) { - this.e2eQueries = e2eQueries; - return this; - } - - /** - * Number of end-to-end probe queries issued. - * - * @return e2eQueries - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_E2E_QUERIES) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public Long getE2eQueries() { - return e2eQueries; - } - - public void setE2eQueries(Long e2eQueries) { - this.e2eQueries = e2eQueries; - } - - public SyntheticsTestResultRequestInfo files(List files) { - this.files = files; - for (SyntheticsTestResultFileRef item : files) { - this.unparsed |= item.unparsed; - } - return this; - } - - public SyntheticsTestResultRequestInfo addFilesItem(SyntheticsTestResultFileRef filesItem) { - if (this.files == null) { - this.files = new ArrayList<>(); - } - this.files.add(filesItem); - this.unparsed |= filesItem.unparsed; - return this; - } - - /** - * Files attached to the request. - * - * @return files - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_FILES) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public List getFiles() { - return files; - } - - public void setFiles(List files) { - this.files = files; - } - - public SyntheticsTestResultRequestInfo headers(Map headers) { - this.headers = headers; - return this; - } - - public SyntheticsTestResultRequestInfo putHeadersItem(String key, Object headersItem) { - if (this.headers == null) { - this.headers = new HashMap<>(); - } - this.headers.put(key, headersItem); - return this; - } - - /** - * Headers sent with the request. - * - * @return headers - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_HEADERS) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public Map getHeaders() { - return headers; - } - - public void setHeaders(Map headers) { - this.headers = headers; - } - - public SyntheticsTestResultRequestInfo host(String host) { - this.host = host; - return this; - } - - /** - * Host targeted by the request. - * - * @return host - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_HOST) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getHost() { - return host; - } - - public void setHost(String host) { - this.host = host; - } - - public SyntheticsTestResultRequestInfo maxTtl(Long maxTtl) { - this.maxTtl = maxTtl; - return this; - } - - /** - * Maximum TTL for network probe packets. - * - * @return maxTtl - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_MAX_TTL) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public Long getMaxTtl() { - return maxTtl; - } - - public void setMaxTtl(Long maxTtl) { - this.maxTtl = maxTtl; - } - - public SyntheticsTestResultRequestInfo message(String message) { - this.message = message; - return this; - } - - /** - * Message sent with the request (for WebSocket/TCP/UDP tests). - * - * @return message - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_MESSAGE) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getMessage() { - return message; - } - - public void setMessage(String message) { - this.message = message; - } - - public SyntheticsTestResultRequestInfo method(String method) { - this.method = method; - return this; - } - - /** - * HTTP method used for the request. - * - * @return method - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_METHOD) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getMethod() { - return method; - } - - public void setMethod(String method) { - this.method = method; - } - - public SyntheticsTestResultRequestInfo noSavingResponseBody(Boolean noSavingResponseBody) { - this.noSavingResponseBody = noSavingResponseBody; - return this; - } - - /** - * Whether the response body was not saved. - * - * @return noSavingResponseBody - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_NO_SAVING_RESPONSE_BODY) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public Boolean getNoSavingResponseBody() { - return noSavingResponseBody; - } - - public void setNoSavingResponseBody(Boolean noSavingResponseBody) { - this.noSavingResponseBody = noSavingResponseBody; - } - - public SyntheticsTestResultRequestInfo port(Object port) { - this.port = port; - return this; - } - - /** - * Port targeted by the request. Can be a number or a string variable reference. - * - * @return port - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_PORT) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public Object getPort() { - return port; - } - - public void setPort(Object port) { - this.port = port; - } - - public SyntheticsTestResultRequestInfo service(String service) { - this.service = service; - return this; - } - - /** - * Service name targeted by the request (for gRPC tests). - * - * @return service - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_SERVICE) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getService() { - return service; - } - - public void setService(String service) { - this.service = service; - } - - public SyntheticsTestResultRequestInfo sourceService(String sourceService) { - this.sourceService = sourceService; - return this; - } - - /** - * Source service for a Network Path test. - * - * @return sourceService - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_SOURCE_SERVICE) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getSourceService() { - return sourceService; - } - - public void setSourceService(String sourceService) { - this.sourceService = sourceService; - } - - public SyntheticsTestResultRequestInfo timeout(Long timeout) { - this.timeout = timeout; - return this; - } - - /** - * Request timeout in milliseconds. - * - * @return timeout - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_TIMEOUT) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public Long getTimeout() { - return timeout; - } - - public void setTimeout(Long timeout) { - this.timeout = timeout; - } - - public SyntheticsTestResultRequestInfo toolName(String toolName) { - this.toolName = toolName; - return this; - } - - /** - * Name of the MCP tool called (MCP tests only). - * - * @return toolName - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_TOOL_NAME) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getToolName() { - return toolName; - } - - public void setToolName(String toolName) { - this.toolName = toolName; - } - - public SyntheticsTestResultRequestInfo tracerouteQueries(Long tracerouteQueries) { - this.tracerouteQueries = tracerouteQueries; - return this; - } - - /** - * Number of traceroute probe queries issued. - * - * @return tracerouteQueries - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_TRACEROUTE_QUERIES) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public Long getTracerouteQueries() { - return tracerouteQueries; - } - - public void setTracerouteQueries(Long tracerouteQueries) { - this.tracerouteQueries = tracerouteQueries; - } - - public SyntheticsTestResultRequestInfo url(String url) { - this.url = url; - return this; - } - - /** - * URL targeted by the request. - * - * @return url - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_URL) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getUrl() { - return url; - } - - public void setUrl(String url) { - this.url = url; - } - - /** - * A container for additional, undeclared properties. This is a holder for any undeclared - * properties as specified with the 'additionalProperties' keyword in the OAS document. - */ - private Map additionalProperties; - - /** - * Set the additional (undeclared) property with the specified name and value. If the property - * does not already exist, create it otherwise replace it. - * - * @param key The arbitrary key to set - * @param value The associated value - * @return SyntheticsTestResultRequestInfo - */ - @JsonAnySetter - public SyntheticsTestResultRequestInfo putAdditionalProperty(String key, Object value) { - if (this.additionalProperties == null) { - this.additionalProperties = new HashMap(); - } - this.additionalProperties.put(key, value); - return this; - } - - /** - * Return the additional (undeclared) property. - * - * @return The additional properties - */ - @JsonAnyGetter - public Map getAdditionalProperties() { - return additionalProperties; - } - - /** - * Return the additional (undeclared) property with the specified name. - * - * @param key The arbitrary key to get - * @return The specific additional property for the given key - */ - public Object getAdditionalProperty(String key) { - if (this.additionalProperties == null) { - return null; - } - return this.additionalProperties.get(key); - } - - /** Return true if this SyntheticsTestResultRequestInfo object is equal to o. */ - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - SyntheticsTestResultRequestInfo syntheticsTestResultRequestInfo = - (SyntheticsTestResultRequestInfo) o; - return Objects.equals(this.allowInsecure, syntheticsTestResultRequestInfo.allowInsecure) - && Objects.equals(this.body, syntheticsTestResultRequestInfo.body) - && Objects.equals(this.callType, syntheticsTestResultRequestInfo.callType) - && Objects.equals( - this.destinationService, syntheticsTestResultRequestInfo.destinationService) - && Objects.equals(this.dnsServer, syntheticsTestResultRequestInfo.dnsServer) - && Objects.equals(this.dnsServerPort, syntheticsTestResultRequestInfo.dnsServerPort) - && Objects.equals(this.e2eQueries, syntheticsTestResultRequestInfo.e2eQueries) - && Objects.equals(this.files, syntheticsTestResultRequestInfo.files) - && Objects.equals(this.headers, syntheticsTestResultRequestInfo.headers) - && Objects.equals(this.host, syntheticsTestResultRequestInfo.host) - && Objects.equals(this.maxTtl, syntheticsTestResultRequestInfo.maxTtl) - && Objects.equals(this.message, syntheticsTestResultRequestInfo.message) - && Objects.equals(this.method, syntheticsTestResultRequestInfo.method) - && Objects.equals( - this.noSavingResponseBody, syntheticsTestResultRequestInfo.noSavingResponseBody) - && Objects.equals(this.port, syntheticsTestResultRequestInfo.port) - && Objects.equals(this.service, syntheticsTestResultRequestInfo.service) - && Objects.equals(this.sourceService, syntheticsTestResultRequestInfo.sourceService) - && Objects.equals(this.timeout, syntheticsTestResultRequestInfo.timeout) - && Objects.equals(this.toolName, syntheticsTestResultRequestInfo.toolName) - && Objects.equals(this.tracerouteQueries, syntheticsTestResultRequestInfo.tracerouteQueries) - && Objects.equals(this.url, syntheticsTestResultRequestInfo.url) - && Objects.equals( - this.additionalProperties, syntheticsTestResultRequestInfo.additionalProperties); - } - - @Override - public int hashCode() { - return Objects.hash( - allowInsecure, - body, - callType, - destinationService, - dnsServer, - dnsServerPort, - e2eQueries, - files, - headers, - host, - maxTtl, - message, - method, - noSavingResponseBody, - port, - service, - sourceService, - timeout, - toolName, - tracerouteQueries, - url, - additionalProperties); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class SyntheticsTestResultRequestInfo {\n"); - sb.append(" allowInsecure: ").append(toIndentedString(allowInsecure)).append("\n"); - sb.append(" body: ").append(toIndentedString(body)).append("\n"); - sb.append(" callType: ").append(toIndentedString(callType)).append("\n"); - sb.append(" destinationService: ").append(toIndentedString(destinationService)).append("\n"); - sb.append(" dnsServer: ").append(toIndentedString(dnsServer)).append("\n"); - sb.append(" dnsServerPort: ").append(toIndentedString(dnsServerPort)).append("\n"); - sb.append(" e2eQueries: ").append(toIndentedString(e2eQueries)).append("\n"); - sb.append(" files: ").append(toIndentedString(files)).append("\n"); - sb.append(" headers: ").append(toIndentedString(headers)).append("\n"); - sb.append(" host: ").append(toIndentedString(host)).append("\n"); - sb.append(" maxTtl: ").append(toIndentedString(maxTtl)).append("\n"); - sb.append(" message: ").append(toIndentedString(message)).append("\n"); - sb.append(" method: ").append(toIndentedString(method)).append("\n"); - sb.append(" noSavingResponseBody: ") - .append(toIndentedString(noSavingResponseBody)) - .append("\n"); - sb.append(" port: ").append(toIndentedString(port)).append("\n"); - sb.append(" service: ").append(toIndentedString(service)).append("\n"); - sb.append(" sourceService: ").append(toIndentedString(sourceService)).append("\n"); - sb.append(" timeout: ").append(toIndentedString(timeout)).append("\n"); - sb.append(" toolName: ").append(toIndentedString(toolName)).append("\n"); - sb.append(" tracerouteQueries: ").append(toIndentedString(tracerouteQueries)).append("\n"); - sb.append(" url: ").append(toIndentedString(url)).append("\n"); - sb.append(" additionalProperties: ") - .append(toIndentedString(additionalProperties)) - .append("\n"); - sb.append('}'); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } -} diff --git a/src/main/java/com/datadog/api/client/v2/model/SyntheticsTestResultResponse.java b/src/main/java/com/datadog/api/client/v2/model/SyntheticsTestResultResponse.java deleted file mode 100644 index bcd1fa616a0..00000000000 --- a/src/main/java/com/datadog/api/client/v2/model/SyntheticsTestResultResponse.java +++ /dev/null @@ -1,181 +0,0 @@ -/* - * 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. - */ - -package com.datadog.api.client.v2.model; - -import com.fasterxml.jackson.annotation.JsonAnyGetter; -import com.fasterxml.jackson.annotation.JsonAnySetter; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import java.util.ArrayList; -import java.util.HashMap; -import java.util.List; -import java.util.Map; -import java.util.Objects; - -/** Response object for a Synthetic test result. */ -@JsonPropertyOrder({ - SyntheticsTestResultResponse.JSON_PROPERTY_DATA, - SyntheticsTestResultResponse.JSON_PROPERTY_INCLUDED -}) -@jakarta.annotation.Generated( - value = "https://github.com/DataDog/datadog-api-client-java/blob/master/.generator") -public class SyntheticsTestResultResponse { - @JsonIgnore public boolean unparsed = false; - public static final String JSON_PROPERTY_DATA = "data"; - private SyntheticsTestResultData data; - - public static final String JSON_PROPERTY_INCLUDED = "included"; - private List included = null; - - public SyntheticsTestResultResponse data(SyntheticsTestResultData data) { - this.data = data; - this.unparsed |= data.unparsed; - return this; - } - - /** - * Wrapper object for a Synthetic test result. - * - * @return data - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_DATA) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public SyntheticsTestResultData getData() { - return data; - } - - public void setData(SyntheticsTestResultData data) { - this.data = data; - } - - public SyntheticsTestResultResponse included(List included) { - this.included = included; - for (SyntheticsTestResultIncludedItem item : included) { - this.unparsed |= item.unparsed; - } - return this; - } - - public SyntheticsTestResultResponse addIncludedItem( - SyntheticsTestResultIncludedItem includedItem) { - if (this.included == null) { - this.included = new ArrayList<>(); - } - this.included.add(includedItem); - this.unparsed |= includedItem.unparsed; - return this; - } - - /** - * Array of included related resources, such as the test definition. - * - * @return included - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_INCLUDED) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public List getIncluded() { - return included; - } - - public void setIncluded(List included) { - this.included = included; - } - - /** - * A container for additional, undeclared properties. This is a holder for any undeclared - * properties as specified with the 'additionalProperties' keyword in the OAS document. - */ - private Map additionalProperties; - - /** - * Set the additional (undeclared) property with the specified name and value. If the property - * does not already exist, create it otherwise replace it. - * - * @param key The arbitrary key to set - * @param value The associated value - * @return SyntheticsTestResultResponse - */ - @JsonAnySetter - public SyntheticsTestResultResponse putAdditionalProperty(String key, Object value) { - if (this.additionalProperties == null) { - this.additionalProperties = new HashMap(); - } - this.additionalProperties.put(key, value); - return this; - } - - /** - * Return the additional (undeclared) property. - * - * @return The additional properties - */ - @JsonAnyGetter - public Map getAdditionalProperties() { - return additionalProperties; - } - - /** - * Return the additional (undeclared) property with the specified name. - * - * @param key The arbitrary key to get - * @return The specific additional property for the given key - */ - public Object getAdditionalProperty(String key) { - if (this.additionalProperties == null) { - return null; - } - return this.additionalProperties.get(key); - } - - /** Return true if this SyntheticsTestResultResponse object is equal to o. */ - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - SyntheticsTestResultResponse syntheticsTestResultResponse = (SyntheticsTestResultResponse) o; - return Objects.equals(this.data, syntheticsTestResultResponse.data) - && Objects.equals(this.included, syntheticsTestResultResponse.included) - && Objects.equals( - this.additionalProperties, syntheticsTestResultResponse.additionalProperties); - } - - @Override - public int hashCode() { - return Objects.hash(data, included, additionalProperties); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class SyntheticsTestResultResponse {\n"); - sb.append(" data: ").append(toIndentedString(data)).append("\n"); - sb.append(" included: ").append(toIndentedString(included)).append("\n"); - sb.append(" additionalProperties: ") - .append(toIndentedString(additionalProperties)) - .append("\n"); - sb.append('}'); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } -} diff --git a/src/main/java/com/datadog/api/client/v2/model/SyntheticsTestResultResponseInfo.java b/src/main/java/com/datadog/api/client/v2/model/SyntheticsTestResultResponseInfo.java deleted file mode 100644 index c37dffd0419..00000000000 --- a/src/main/java/com/datadog/api/client/v2/model/SyntheticsTestResultResponseInfo.java +++ /dev/null @@ -1,674 +0,0 @@ -/* - * 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. - */ - -package com.datadog.api.client.v2.model; - -import com.fasterxml.jackson.annotation.JsonAnyGetter; -import com.fasterxml.jackson.annotation.JsonAnySetter; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import java.util.ArrayList; -import java.util.HashMap; -import java.util.List; -import java.util.Map; -import java.util.Objects; - -/** Details of the response received during the test execution. */ -@JsonPropertyOrder({ - SyntheticsTestResultResponseInfo.JSON_PROPERTY_BODY, - SyntheticsTestResultResponseInfo.JSON_PROPERTY_BODY_COMPRESSED, - SyntheticsTestResultResponseInfo.JSON_PROPERTY_BODY_HASHES, - SyntheticsTestResultResponseInfo.JSON_PROPERTY_BODY_SIZE, - SyntheticsTestResultResponseInfo.JSON_PROPERTY_CACHE_HEADERS, - SyntheticsTestResultResponseInfo.JSON_PROPERTY_CDN, - SyntheticsTestResultResponseInfo.JSON_PROPERTY_CLOSE, - SyntheticsTestResultResponseInfo.JSON_PROPERTY_COMPRESSED_MESSAGE, - SyntheticsTestResultResponseInfo.JSON_PROPERTY_HEADERS, - SyntheticsTestResultResponseInfo.JSON_PROPERTY_HEALTHCHECK, - SyntheticsTestResultResponseInfo.JSON_PROPERTY_HTTP_VERSION, - SyntheticsTestResultResponseInfo.JSON_PROPERTY_IS_BODY_TRUNCATED, - SyntheticsTestResultResponseInfo.JSON_PROPERTY_IS_MESSAGE_TRUNCATED, - SyntheticsTestResultResponseInfo.JSON_PROPERTY_MESSAGE, - SyntheticsTestResultResponseInfo.JSON_PROPERTY_METADATA, - SyntheticsTestResultResponseInfo.JSON_PROPERTY_RECORDS, - SyntheticsTestResultResponseInfo.JSON_PROPERTY_REDIRECTS, - SyntheticsTestResultResponseInfo.JSON_PROPERTY_STATUS_CODE -}) -@jakarta.annotation.Generated( - value = "https://github.com/DataDog/datadog-api-client-java/blob/master/.generator") -public class SyntheticsTestResultResponseInfo { - @JsonIgnore public boolean unparsed = false; - public static final String JSON_PROPERTY_BODY = "body"; - private String body; - - public static final String JSON_PROPERTY_BODY_COMPRESSED = "body_compressed"; - private String bodyCompressed; - - public static final String JSON_PROPERTY_BODY_HASHES = "body_hashes"; - private String bodyHashes; - - public static final String JSON_PROPERTY_BODY_SIZE = "body_size"; - private Long bodySize; - - public static final String JSON_PROPERTY_CACHE_HEADERS = "cache_headers"; - private Map cacheHeaders = null; - - public static final String JSON_PROPERTY_CDN = "cdn"; - private SyntheticsTestResultCdnProviderInfo cdn; - - public static final String JSON_PROPERTY_CLOSE = "close"; - private SyntheticsTestResultWebSocketClose close; - - public static final String JSON_PROPERTY_COMPRESSED_MESSAGE = "compressed_message"; - private String compressedMessage; - - public static final String JSON_PROPERTY_HEADERS = "headers"; - private Map headers = null; - - public static final String JSON_PROPERTY_HEALTHCHECK = "healthcheck"; - private SyntheticsTestResultHealthCheck healthcheck; - - public static final String JSON_PROPERTY_HTTP_VERSION = "http_version"; - private String httpVersion; - - public static final String JSON_PROPERTY_IS_BODY_TRUNCATED = "is_body_truncated"; - private Boolean isBodyTruncated; - - public static final String JSON_PROPERTY_IS_MESSAGE_TRUNCATED = "is_message_truncated"; - private Boolean isMessageTruncated; - - public static final String JSON_PROPERTY_MESSAGE = "message"; - private String message; - - public static final String JSON_PROPERTY_METADATA = "metadata"; - private Map metadata = null; - - public static final String JSON_PROPERTY_RECORDS = "records"; - private List records = null; - - public static final String JSON_PROPERTY_REDIRECTS = "redirects"; - private List redirects = null; - - public static final String JSON_PROPERTY_STATUS_CODE = "status_code"; - private Long statusCode; - - public SyntheticsTestResultResponseInfo body(String body) { - this.body = body; - return this; - } - - /** - * Body of the response. - * - * @return body - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_BODY) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getBody() { - return body; - } - - public void setBody(String body) { - this.body = body; - } - - public SyntheticsTestResultResponseInfo bodyCompressed(String bodyCompressed) { - this.bodyCompressed = bodyCompressed; - return this; - } - - /** - * Compressed representation of the response body. - * - * @return bodyCompressed - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_BODY_COMPRESSED) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getBodyCompressed() { - return bodyCompressed; - } - - public void setBodyCompressed(String bodyCompressed) { - this.bodyCompressed = bodyCompressed; - } - - public SyntheticsTestResultResponseInfo bodyHashes(String bodyHashes) { - this.bodyHashes = bodyHashes; - return this; - } - - /** - * Hashes computed over the response body. - * - * @return bodyHashes - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_BODY_HASHES) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getBodyHashes() { - return bodyHashes; - } - - public void setBodyHashes(String bodyHashes) { - this.bodyHashes = bodyHashes; - } - - public SyntheticsTestResultResponseInfo bodySize(Long bodySize) { - this.bodySize = bodySize; - return this; - } - - /** - * Size of the response body in bytes. - * - * @return bodySize - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_BODY_SIZE) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public Long getBodySize() { - return bodySize; - } - - public void setBodySize(Long bodySize) { - this.bodySize = bodySize; - } - - public SyntheticsTestResultResponseInfo cacheHeaders(Map cacheHeaders) { - this.cacheHeaders = cacheHeaders; - return this; - } - - public SyntheticsTestResultResponseInfo putCacheHeadersItem(String key, String cacheHeadersItem) { - if (this.cacheHeaders == null) { - this.cacheHeaders = new HashMap<>(); - } - this.cacheHeaders.put(key, cacheHeadersItem); - return this; - } - - /** - * Cache-related response headers. - * - * @return cacheHeaders - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_CACHE_HEADERS) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public Map getCacheHeaders() { - return cacheHeaders; - } - - public void setCacheHeaders(Map cacheHeaders) { - this.cacheHeaders = cacheHeaders; - } - - public SyntheticsTestResultResponseInfo cdn(SyntheticsTestResultCdnProviderInfo cdn) { - this.cdn = cdn; - this.unparsed |= cdn.unparsed; - return this; - } - - /** - * CDN provider details inferred from response headers. - * - * @return cdn - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_CDN) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public SyntheticsTestResultCdnProviderInfo getCdn() { - return cdn; - } - - public void setCdn(SyntheticsTestResultCdnProviderInfo cdn) { - this.cdn = cdn; - } - - public SyntheticsTestResultResponseInfo close(SyntheticsTestResultWebSocketClose close) { - this.close = close; - this.unparsed |= close.unparsed; - return this; - } - - /** - * WebSocket close frame information for WebSocket test responses. - * - * @return close - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_CLOSE) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public SyntheticsTestResultWebSocketClose getClose() { - return close; - } - - public void setClose(SyntheticsTestResultWebSocketClose close) { - this.close = close; - } - - public SyntheticsTestResultResponseInfo compressedMessage(String compressedMessage) { - this.compressedMessage = compressedMessage; - return this; - } - - /** - * Compressed representation of the response message. - * - * @return compressedMessage - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_COMPRESSED_MESSAGE) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getCompressedMessage() { - return compressedMessage; - } - - public void setCompressedMessage(String compressedMessage) { - this.compressedMessage = compressedMessage; - } - - public SyntheticsTestResultResponseInfo headers(Map headers) { - this.headers = headers; - return this; - } - - public SyntheticsTestResultResponseInfo putHeadersItem(String key, Object headersItem) { - if (this.headers == null) { - this.headers = new HashMap<>(); - } - this.headers.put(key, headersItem); - return this; - } - - /** - * Response headers. - * - * @return headers - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_HEADERS) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public Map getHeaders() { - return headers; - } - - public void setHeaders(Map headers) { - this.headers = headers; - } - - public SyntheticsTestResultResponseInfo healthcheck(SyntheticsTestResultHealthCheck healthcheck) { - this.healthcheck = healthcheck; - this.unparsed |= healthcheck.unparsed; - return this; - } - - /** - * Health check information returned from a gRPC health check call. - * - * @return healthcheck - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_HEALTHCHECK) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public SyntheticsTestResultHealthCheck getHealthcheck() { - return healthcheck; - } - - public void setHealthcheck(SyntheticsTestResultHealthCheck healthcheck) { - this.healthcheck = healthcheck; - } - - public SyntheticsTestResultResponseInfo httpVersion(String httpVersion) { - this.httpVersion = httpVersion; - return this; - } - - /** - * HTTP version of the response. - * - * @return httpVersion - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_HTTP_VERSION) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getHttpVersion() { - return httpVersion; - } - - public void setHttpVersion(String httpVersion) { - this.httpVersion = httpVersion; - } - - public SyntheticsTestResultResponseInfo isBodyTruncated(Boolean isBodyTruncated) { - this.isBodyTruncated = isBodyTruncated; - return this; - } - - /** - * Whether the response body was truncated. - * - * @return isBodyTruncated - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_IS_BODY_TRUNCATED) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public Boolean getIsBodyTruncated() { - return isBodyTruncated; - } - - public void setIsBodyTruncated(Boolean isBodyTruncated) { - this.isBodyTruncated = isBodyTruncated; - } - - public SyntheticsTestResultResponseInfo isMessageTruncated(Boolean isMessageTruncated) { - this.isMessageTruncated = isMessageTruncated; - return this; - } - - /** - * Whether the response message was truncated. - * - * @return isMessageTruncated - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_IS_MESSAGE_TRUNCATED) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public Boolean getIsMessageTruncated() { - return isMessageTruncated; - } - - public void setIsMessageTruncated(Boolean isMessageTruncated) { - this.isMessageTruncated = isMessageTruncated; - } - - public SyntheticsTestResultResponseInfo message(String message) { - this.message = message; - return this; - } - - /** - * Message received in the response (for WebSocket/TCP/UDP tests). - * - * @return message - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_MESSAGE) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getMessage() { - return message; - } - - public void setMessage(String message) { - this.message = message; - } - - public SyntheticsTestResultResponseInfo metadata(Map metadata) { - this.metadata = metadata; - return this; - } - - public SyntheticsTestResultResponseInfo putMetadataItem(String key, String metadataItem) { - if (this.metadata == null) { - this.metadata = new HashMap<>(); - } - this.metadata.put(key, metadataItem); - return this; - } - - /** - * Additional metadata returned with the response. - * - * @return metadata - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_METADATA) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public Map getMetadata() { - return metadata; - } - - public void setMetadata(Map metadata) { - this.metadata = metadata; - } - - public SyntheticsTestResultResponseInfo records(List records) { - this.records = records; - for (SyntheticsTestResultDnsRecord item : records) { - this.unparsed |= item.unparsed; - } - return this; - } - - public SyntheticsTestResultResponseInfo addRecordsItem( - SyntheticsTestResultDnsRecord recordsItem) { - if (this.records == null) { - this.records = new ArrayList<>(); - } - this.records.add(recordsItem); - this.unparsed |= recordsItem.unparsed; - return this; - } - - /** - * DNS records returned in the response (DNS tests only). - * - * @return records - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_RECORDS) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public List getRecords() { - return records; - } - - public void setRecords(List records) { - this.records = records; - } - - public SyntheticsTestResultResponseInfo redirects(List redirects) { - this.redirects = redirects; - for (SyntheticsTestResultRedirect item : redirects) { - this.unparsed |= item.unparsed; - } - return this; - } - - public SyntheticsTestResultResponseInfo addRedirectsItem( - SyntheticsTestResultRedirect redirectsItem) { - if (this.redirects == null) { - this.redirects = new ArrayList<>(); - } - this.redirects.add(redirectsItem); - this.unparsed |= redirectsItem.unparsed; - return this; - } - - /** - * Redirect hops encountered while performing the request. - * - * @return redirects - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_REDIRECTS) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public List getRedirects() { - return redirects; - } - - public void setRedirects(List redirects) { - this.redirects = redirects; - } - - public SyntheticsTestResultResponseInfo statusCode(Long statusCode) { - this.statusCode = statusCode; - return this; - } - - /** - * HTTP status code of the response. - * - * @return statusCode - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_STATUS_CODE) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public Long getStatusCode() { - return statusCode; - } - - public void setStatusCode(Long statusCode) { - this.statusCode = statusCode; - } - - /** - * A container for additional, undeclared properties. This is a holder for any undeclared - * properties as specified with the 'additionalProperties' keyword in the OAS document. - */ - private Map additionalProperties; - - /** - * Set the additional (undeclared) property with the specified name and value. If the property - * does not already exist, create it otherwise replace it. - * - * @param key The arbitrary key to set - * @param value The associated value - * @return SyntheticsTestResultResponseInfo - */ - @JsonAnySetter - public SyntheticsTestResultResponseInfo putAdditionalProperty(String key, Object value) { - if (this.additionalProperties == null) { - this.additionalProperties = new HashMap(); - } - this.additionalProperties.put(key, value); - return this; - } - - /** - * Return the additional (undeclared) property. - * - * @return The additional properties - */ - @JsonAnyGetter - public Map getAdditionalProperties() { - return additionalProperties; - } - - /** - * Return the additional (undeclared) property with the specified name. - * - * @param key The arbitrary key to get - * @return The specific additional property for the given key - */ - public Object getAdditionalProperty(String key) { - if (this.additionalProperties == null) { - return null; - } - return this.additionalProperties.get(key); - } - - /** Return true if this SyntheticsTestResultResponseInfo object is equal to o. */ - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - SyntheticsTestResultResponseInfo syntheticsTestResultResponseInfo = - (SyntheticsTestResultResponseInfo) o; - return Objects.equals(this.body, syntheticsTestResultResponseInfo.body) - && Objects.equals(this.bodyCompressed, syntheticsTestResultResponseInfo.bodyCompressed) - && Objects.equals(this.bodyHashes, syntheticsTestResultResponseInfo.bodyHashes) - && Objects.equals(this.bodySize, syntheticsTestResultResponseInfo.bodySize) - && Objects.equals(this.cacheHeaders, syntheticsTestResultResponseInfo.cacheHeaders) - && Objects.equals(this.cdn, syntheticsTestResultResponseInfo.cdn) - && Objects.equals(this.close, syntheticsTestResultResponseInfo.close) - && Objects.equals( - this.compressedMessage, syntheticsTestResultResponseInfo.compressedMessage) - && Objects.equals(this.headers, syntheticsTestResultResponseInfo.headers) - && Objects.equals(this.healthcheck, syntheticsTestResultResponseInfo.healthcheck) - && Objects.equals(this.httpVersion, syntheticsTestResultResponseInfo.httpVersion) - && Objects.equals(this.isBodyTruncated, syntheticsTestResultResponseInfo.isBodyTruncated) - && Objects.equals( - this.isMessageTruncated, syntheticsTestResultResponseInfo.isMessageTruncated) - && Objects.equals(this.message, syntheticsTestResultResponseInfo.message) - && Objects.equals(this.metadata, syntheticsTestResultResponseInfo.metadata) - && Objects.equals(this.records, syntheticsTestResultResponseInfo.records) - && Objects.equals(this.redirects, syntheticsTestResultResponseInfo.redirects) - && Objects.equals(this.statusCode, syntheticsTestResultResponseInfo.statusCode) - && Objects.equals( - this.additionalProperties, syntheticsTestResultResponseInfo.additionalProperties); - } - - @Override - public int hashCode() { - return Objects.hash( - body, - bodyCompressed, - bodyHashes, - bodySize, - cacheHeaders, - cdn, - close, - compressedMessage, - headers, - healthcheck, - httpVersion, - isBodyTruncated, - isMessageTruncated, - message, - metadata, - records, - redirects, - statusCode, - additionalProperties); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class SyntheticsTestResultResponseInfo {\n"); - sb.append(" body: ").append(toIndentedString(body)).append("\n"); - sb.append(" bodyCompressed: ").append(toIndentedString(bodyCompressed)).append("\n"); - sb.append(" bodyHashes: ").append(toIndentedString(bodyHashes)).append("\n"); - sb.append(" bodySize: ").append(toIndentedString(bodySize)).append("\n"); - sb.append(" cacheHeaders: ").append(toIndentedString(cacheHeaders)).append("\n"); - sb.append(" cdn: ").append(toIndentedString(cdn)).append("\n"); - sb.append(" close: ").append(toIndentedString(close)).append("\n"); - sb.append(" compressedMessage: ").append(toIndentedString(compressedMessage)).append("\n"); - sb.append(" headers: ").append(toIndentedString(headers)).append("\n"); - sb.append(" healthcheck: ").append(toIndentedString(healthcheck)).append("\n"); - sb.append(" httpVersion: ").append(toIndentedString(httpVersion)).append("\n"); - sb.append(" isBodyTruncated: ").append(toIndentedString(isBodyTruncated)).append("\n"); - sb.append(" isMessageTruncated: ").append(toIndentedString(isMessageTruncated)).append("\n"); - sb.append(" message: ").append(toIndentedString(message)).append("\n"); - sb.append(" metadata: ").append(toIndentedString(metadata)).append("\n"); - sb.append(" records: ").append(toIndentedString(records)).append("\n"); - sb.append(" redirects: ").append(toIndentedString(redirects)).append("\n"); - sb.append(" statusCode: ").append(toIndentedString(statusCode)).append("\n"); - sb.append(" additionalProperties: ") - .append(toIndentedString(additionalProperties)) - .append("\n"); - sb.append('}'); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } -} diff --git a/src/main/java/com/datadog/api/client/v2/model/SyntheticsTestResultRouter.java b/src/main/java/com/datadog/api/client/v2/model/SyntheticsTestResultRouter.java deleted file mode 100644 index 4e8de5eb492..00000000000 --- a/src/main/java/com/datadog/api/client/v2/model/SyntheticsTestResultRouter.java +++ /dev/null @@ -1,165 +0,0 @@ -/* - * 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. - */ - -package com.datadog.api.client.v2.model; - -import com.fasterxml.jackson.annotation.JsonAnyGetter; -import com.fasterxml.jackson.annotation.JsonAnySetter; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; - -/** A router along the traceroute path. */ -@JsonPropertyOrder({ - SyntheticsTestResultRouter.JSON_PROPERTY_IP, - SyntheticsTestResultRouter.JSON_PROPERTY_RESOLVED_HOST -}) -@jakarta.annotation.Generated( - value = "https://github.com/DataDog/datadog-api-client-java/blob/master/.generator") -public class SyntheticsTestResultRouter { - @JsonIgnore public boolean unparsed = false; - public static final String JSON_PROPERTY_IP = "ip"; - private String ip; - - public static final String JSON_PROPERTY_RESOLVED_HOST = "resolved_host"; - private String resolvedHost; - - public SyntheticsTestResultRouter ip(String ip) { - this.ip = ip; - return this; - } - - /** - * IP address of the router. - * - * @return ip - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_IP) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getIp() { - return ip; - } - - public void setIp(String ip) { - this.ip = ip; - } - - public SyntheticsTestResultRouter resolvedHost(String resolvedHost) { - this.resolvedHost = resolvedHost; - return this; - } - - /** - * Resolved hostname of the router. - * - * @return resolvedHost - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_RESOLVED_HOST) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getResolvedHost() { - return resolvedHost; - } - - public void setResolvedHost(String resolvedHost) { - this.resolvedHost = resolvedHost; - } - - /** - * A container for additional, undeclared properties. This is a holder for any undeclared - * properties as specified with the 'additionalProperties' keyword in the OAS document. - */ - private Map additionalProperties; - - /** - * Set the additional (undeclared) property with the specified name and value. If the property - * does not already exist, create it otherwise replace it. - * - * @param key The arbitrary key to set - * @param value The associated value - * @return SyntheticsTestResultRouter - */ - @JsonAnySetter - public SyntheticsTestResultRouter putAdditionalProperty(String key, Object value) { - if (this.additionalProperties == null) { - this.additionalProperties = new HashMap(); - } - this.additionalProperties.put(key, value); - return this; - } - - /** - * Return the additional (undeclared) property. - * - * @return The additional properties - */ - @JsonAnyGetter - public Map getAdditionalProperties() { - return additionalProperties; - } - - /** - * Return the additional (undeclared) property with the specified name. - * - * @param key The arbitrary key to get - * @return The specific additional property for the given key - */ - public Object getAdditionalProperty(String key) { - if (this.additionalProperties == null) { - return null; - } - return this.additionalProperties.get(key); - } - - /** Return true if this SyntheticsTestResultRouter object is equal to o. */ - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - SyntheticsTestResultRouter syntheticsTestResultRouter = (SyntheticsTestResultRouter) o; - return Objects.equals(this.ip, syntheticsTestResultRouter.ip) - && Objects.equals(this.resolvedHost, syntheticsTestResultRouter.resolvedHost) - && Objects.equals( - this.additionalProperties, syntheticsTestResultRouter.additionalProperties); - } - - @Override - public int hashCode() { - return Objects.hash(ip, resolvedHost, additionalProperties); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class SyntheticsTestResultRouter {\n"); - sb.append(" ip: ").append(toIndentedString(ip)).append("\n"); - sb.append(" resolvedHost: ").append(toIndentedString(resolvedHost)).append("\n"); - sb.append(" additionalProperties: ") - .append(toIndentedString(additionalProperties)) - .append("\n"); - sb.append('}'); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } -} diff --git a/src/main/java/com/datadog/api/client/v2/model/SyntheticsTestResultRumContext.java b/src/main/java/com/datadog/api/client/v2/model/SyntheticsTestResultRumContext.java deleted file mode 100644 index 1fcae72fc4a..00000000000 --- a/src/main/java/com/datadog/api/client/v2/model/SyntheticsTestResultRumContext.java +++ /dev/null @@ -1,193 +0,0 @@ -/* - * 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. - */ - -package com.datadog.api.client.v2.model; - -import com.fasterxml.jackson.annotation.JsonAnyGetter; -import com.fasterxml.jackson.annotation.JsonAnySetter; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; - -/** RUM application context associated with a step or sub-test. */ -@JsonPropertyOrder({ - SyntheticsTestResultRumContext.JSON_PROPERTY_APPLICATION_ID, - SyntheticsTestResultRumContext.JSON_PROPERTY_SESSION_ID, - SyntheticsTestResultRumContext.JSON_PROPERTY_VIEW_ID -}) -@jakarta.annotation.Generated( - value = "https://github.com/DataDog/datadog-api-client-java/blob/master/.generator") -public class SyntheticsTestResultRumContext { - @JsonIgnore public boolean unparsed = false; - public static final String JSON_PROPERTY_APPLICATION_ID = "application_id"; - private String applicationId; - - public static final String JSON_PROPERTY_SESSION_ID = "session_id"; - private String sessionId; - - public static final String JSON_PROPERTY_VIEW_ID = "view_id"; - private String viewId; - - public SyntheticsTestResultRumContext applicationId(String applicationId) { - this.applicationId = applicationId; - return this; - } - - /** - * RUM application identifier. - * - * @return applicationId - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_APPLICATION_ID) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getApplicationId() { - return applicationId; - } - - public void setApplicationId(String applicationId) { - this.applicationId = applicationId; - } - - public SyntheticsTestResultRumContext sessionId(String sessionId) { - this.sessionId = sessionId; - return this; - } - - /** - * RUM session identifier. - * - * @return sessionId - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_SESSION_ID) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getSessionId() { - return sessionId; - } - - public void setSessionId(String sessionId) { - this.sessionId = sessionId; - } - - public SyntheticsTestResultRumContext viewId(String viewId) { - this.viewId = viewId; - return this; - } - - /** - * RUM view identifier. - * - * @return viewId - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_VIEW_ID) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getViewId() { - return viewId; - } - - public void setViewId(String viewId) { - this.viewId = viewId; - } - - /** - * A container for additional, undeclared properties. This is a holder for any undeclared - * properties as specified with the 'additionalProperties' keyword in the OAS document. - */ - private Map additionalProperties; - - /** - * Set the additional (undeclared) property with the specified name and value. If the property - * does not already exist, create it otherwise replace it. - * - * @param key The arbitrary key to set - * @param value The associated value - * @return SyntheticsTestResultRumContext - */ - @JsonAnySetter - public SyntheticsTestResultRumContext putAdditionalProperty(String key, Object value) { - if (this.additionalProperties == null) { - this.additionalProperties = new HashMap(); - } - this.additionalProperties.put(key, value); - return this; - } - - /** - * Return the additional (undeclared) property. - * - * @return The additional properties - */ - @JsonAnyGetter - public Map getAdditionalProperties() { - return additionalProperties; - } - - /** - * Return the additional (undeclared) property with the specified name. - * - * @param key The arbitrary key to get - * @return The specific additional property for the given key - */ - public Object getAdditionalProperty(String key) { - if (this.additionalProperties == null) { - return null; - } - return this.additionalProperties.get(key); - } - - /** Return true if this SyntheticsTestResultRumContext object is equal to o. */ - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - SyntheticsTestResultRumContext syntheticsTestResultRumContext = - (SyntheticsTestResultRumContext) o; - return Objects.equals(this.applicationId, syntheticsTestResultRumContext.applicationId) - && Objects.equals(this.sessionId, syntheticsTestResultRumContext.sessionId) - && Objects.equals(this.viewId, syntheticsTestResultRumContext.viewId) - && Objects.equals( - this.additionalProperties, syntheticsTestResultRumContext.additionalProperties); - } - - @Override - public int hashCode() { - return Objects.hash(applicationId, sessionId, viewId, additionalProperties); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class SyntheticsTestResultRumContext {\n"); - sb.append(" applicationId: ").append(toIndentedString(applicationId)).append("\n"); - sb.append(" sessionId: ").append(toIndentedString(sessionId)).append("\n"); - sb.append(" viewId: ").append(toIndentedString(viewId)).append("\n"); - sb.append(" additionalProperties: ") - .append(toIndentedString(additionalProperties)) - .append("\n"); - sb.append('}'); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } -} diff --git a/src/main/java/com/datadog/api/client/v2/model/SyntheticsTestResultRunType.java b/src/main/java/com/datadog/api/client/v2/model/SyntheticsTestResultRunType.java deleted file mode 100644 index bc92a8980e2..00000000000 --- a/src/main/java/com/datadog/api/client/v2/model/SyntheticsTestResultRunType.java +++ /dev/null @@ -1,61 +0,0 @@ -/* - * 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. - */ - -package com.datadog.api.client.v2.model; - -import com.datadog.api.client.ModelEnum; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.core.JsonGenerator; -import com.fasterxml.jackson.core.JsonProcessingException; -import com.fasterxml.jackson.databind.SerializerProvider; -import com.fasterxml.jackson.databind.annotation.JsonSerialize; -import com.fasterxml.jackson.databind.ser.std.StdSerializer; -import java.io.IOException; -import java.util.Arrays; -import java.util.HashSet; -import java.util.Set; - -/** The type of run for a Synthetic test result. */ -@JsonSerialize(using = SyntheticsTestResultRunType.SyntheticsTestResultRunTypeSerializer.class) -public class SyntheticsTestResultRunType extends ModelEnum { - - private static final Set allowedValues = - new HashSet(Arrays.asList("scheduled", "fast", "ci", "triggered")); - - public static final SyntheticsTestResultRunType SCHEDULED = - new SyntheticsTestResultRunType("scheduled"); - public static final SyntheticsTestResultRunType FAST = new SyntheticsTestResultRunType("fast"); - public static final SyntheticsTestResultRunType CI = new SyntheticsTestResultRunType("ci"); - public static final SyntheticsTestResultRunType TRIGGERED = - new SyntheticsTestResultRunType("triggered"); - - SyntheticsTestResultRunType(String value) { - super(value, allowedValues); - } - - public static class SyntheticsTestResultRunTypeSerializer - extends StdSerializer { - public SyntheticsTestResultRunTypeSerializer(Class t) { - super(t); - } - - public SyntheticsTestResultRunTypeSerializer() { - this(null); - } - - @Override - public void serialize( - SyntheticsTestResultRunType value, JsonGenerator jgen, SerializerProvider provider) - throws IOException, JsonProcessingException { - jgen.writeObject(value.value); - } - } - - @JsonCreator - public static SyntheticsTestResultRunType fromValue(String value) { - return new SyntheticsTestResultRunType(value); - } -} diff --git a/src/main/java/com/datadog/api/client/v2/model/SyntheticsTestResultStatus.java b/src/main/java/com/datadog/api/client/v2/model/SyntheticsTestResultStatus.java deleted file mode 100644 index 904ce065737..00000000000 --- a/src/main/java/com/datadog/api/client/v2/model/SyntheticsTestResultStatus.java +++ /dev/null @@ -1,59 +0,0 @@ -/* - * 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. - */ - -package com.datadog.api.client.v2.model; - -import com.datadog.api.client.ModelEnum; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.core.JsonGenerator; -import com.fasterxml.jackson.core.JsonProcessingException; -import com.fasterxml.jackson.databind.SerializerProvider; -import com.fasterxml.jackson.databind.annotation.JsonSerialize; -import com.fasterxml.jackson.databind.ser.std.StdSerializer; -import java.io.IOException; -import java.util.Arrays; -import java.util.HashSet; -import java.util.Set; - -/** Status of a Synthetic test result. */ -@JsonSerialize(using = SyntheticsTestResultStatus.SyntheticsTestResultStatusSerializer.class) -public class SyntheticsTestResultStatus extends ModelEnum { - - private static final Set allowedValues = - new HashSet(Arrays.asList("passed", "failed", "no_data")); - - public static final SyntheticsTestResultStatus PASSED = new SyntheticsTestResultStatus("passed"); - public static final SyntheticsTestResultStatus FAILED = new SyntheticsTestResultStatus("failed"); - public static final SyntheticsTestResultStatus NO_DATA = - new SyntheticsTestResultStatus("no_data"); - - SyntheticsTestResultStatus(String value) { - super(value, allowedValues); - } - - public static class SyntheticsTestResultStatusSerializer - extends StdSerializer { - public SyntheticsTestResultStatusSerializer(Class t) { - super(t); - } - - public SyntheticsTestResultStatusSerializer() { - this(null); - } - - @Override - public void serialize( - SyntheticsTestResultStatus value, JsonGenerator jgen, SerializerProvider provider) - throws IOException, JsonProcessingException { - jgen.writeObject(value.value); - } - } - - @JsonCreator - public static SyntheticsTestResultStatus fromValue(String value) { - return new SyntheticsTestResultStatus(value); - } -} diff --git a/src/main/java/com/datadog/api/client/v2/model/SyntheticsTestResultStep.java b/src/main/java/com/datadog/api/client/v2/model/SyntheticsTestResultStep.java deleted file mode 100644 index c2dba8f2153..00000000000 --- a/src/main/java/com/datadog/api/client/v2/model/SyntheticsTestResultStep.java +++ /dev/null @@ -1,1483 +0,0 @@ -/* - * 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. - */ - -package com.datadog.api.client.v2.model; - -import com.fasterxml.jackson.annotation.JsonAnyGetter; -import com.fasterxml.jackson.annotation.JsonAnySetter; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import java.util.ArrayList; -import java.util.HashMap; -import java.util.List; -import java.util.Map; -import java.util.Objects; - -/** A step result from a browser, mobile, or multistep API test. */ -@JsonPropertyOrder({ - SyntheticsTestResultStep.JSON_PROPERTY_ALLOW_FAILURE, - SyntheticsTestResultStep.JSON_PROPERTY_API_TEST, - SyntheticsTestResultStep.JSON_PROPERTY_ASSERTION_RESULT, - SyntheticsTestResultStep.JSON_PROPERTY_ASSERTIONS, - SyntheticsTestResultStep.JSON_PROPERTY_BLOCKED_REQUESTS_URLS, - SyntheticsTestResultStep.JSON_PROPERTY_BOUNDS, - SyntheticsTestResultStep.JSON_PROPERTY_BROWSER_ERRORS, - SyntheticsTestResultStep.JSON_PROPERTY_BUCKET_KEYS, - SyntheticsTestResultStep.JSON_PROPERTY_CDN_RESOURCES, - SyntheticsTestResultStep.JSON_PROPERTY_CLICK_TYPE, - SyntheticsTestResultStep.JSON_PROPERTY_COMPRESSED_JSON_DESCRIPTOR, - SyntheticsTestResultStep.JSON_PROPERTY_CONFIG, - SyntheticsTestResultStep.JSON_PROPERTY_DESCRIPTION, - SyntheticsTestResultStep.JSON_PROPERTY_DURATION, - SyntheticsTestResultStep.JSON_PROPERTY_ELEMENT_DESCRIPTION, - SyntheticsTestResultStep.JSON_PROPERTY_ELEMENT_UPDATES, - SyntheticsTestResultStep.JSON_PROPERTY_EXTRACTED_VALUE, - SyntheticsTestResultStep.JSON_PROPERTY_FAILURE, - SyntheticsTestResultStep.JSON_PROPERTY_HTTP_RESULTS, - SyntheticsTestResultStep.JSON_PROPERTY_ID, - SyntheticsTestResultStep.JSON_PROPERTY_IS_CRITICAL, - SyntheticsTestResultStep.JSON_PROPERTY_JAVASCRIPT_CUSTOM_ASSERTION_CODE, - SyntheticsTestResultStep.JSON_PROPERTY_LOCATE_ELEMENT_DURATION, - SyntheticsTestResultStep.JSON_PROPERTY_NAME, - SyntheticsTestResultStep.JSON_PROPERTY_REQUEST, - SyntheticsTestResultStep.JSON_PROPERTY_RESPONSE, - SyntheticsTestResultStep.JSON_PROPERTY_RETRIES, - SyntheticsTestResultStep.JSON_PROPERTY_RETRY_COUNT, - SyntheticsTestResultStep.JSON_PROPERTY_RUM_CONTEXT, - SyntheticsTestResultStep.JSON_PROPERTY_STARTED_AT, - SyntheticsTestResultStep.JSON_PROPERTY_STATUS, - SyntheticsTestResultStep.JSON_PROPERTY_SUB_STEP, - SyntheticsTestResultStep.JSON_PROPERTY_SUB_TEST, - SyntheticsTestResultStep.JSON_PROPERTY_SUBTYPE, - SyntheticsTestResultStep.JSON_PROPERTY_TABS, - SyntheticsTestResultStep.JSON_PROPERTY_TIMINGS, - SyntheticsTestResultStep.JSON_PROPERTY_TUNNEL, - SyntheticsTestResultStep.JSON_PROPERTY_TYPE, - SyntheticsTestResultStep.JSON_PROPERTY_URL, - SyntheticsTestResultStep.JSON_PROPERTY_VALUE, - SyntheticsTestResultStep.JSON_PROPERTY_VARIABLES, - SyntheticsTestResultStep.JSON_PROPERTY_VITALS_METRICS, - SyntheticsTestResultStep.JSON_PROPERTY_WARNINGS -}) -@jakarta.annotation.Generated( - value = "https://github.com/DataDog/datadog-api-client-java/blob/master/.generator") -public class SyntheticsTestResultStep { - @JsonIgnore public boolean unparsed = false; - public static final String JSON_PROPERTY_ALLOW_FAILURE = "allow_failure"; - private Boolean allowFailure; - - public static final String JSON_PROPERTY_API_TEST = "api_test"; - private Map apiTest = null; - - public static final String JSON_PROPERTY_ASSERTION_RESULT = "assertion_result"; - private SyntheticsTestResultStepAssertionResult assertionResult; - - public static final String JSON_PROPERTY_ASSERTIONS = "assertions"; - private List assertions = null; - - public static final String JSON_PROPERTY_BLOCKED_REQUESTS_URLS = "blocked_requests_urls"; - private List blockedRequestsUrls = null; - - public static final String JSON_PROPERTY_BOUNDS = "bounds"; - private SyntheticsTestResultBounds bounds; - - public static final String JSON_PROPERTY_BROWSER_ERRORS = "browser_errors"; - private List browserErrors = null; - - public static final String JSON_PROPERTY_BUCKET_KEYS = "bucket_keys"; - private SyntheticsTestResultBucketKeys bucketKeys; - - public static final String JSON_PROPERTY_CDN_RESOURCES = "cdn_resources"; - private List cdnResources = null; - - public static final String JSON_PROPERTY_CLICK_TYPE = "click_type"; - private String clickType; - - public static final String JSON_PROPERTY_COMPRESSED_JSON_DESCRIPTOR = - "compressed_json_descriptor"; - private String compressedJsonDescriptor; - - public static final String JSON_PROPERTY_CONFIG = "config"; - private Map config = null; - - public static final String JSON_PROPERTY_DESCRIPTION = "description"; - private String description; - - public static final String JSON_PROPERTY_DURATION = "duration"; - private Double duration; - - public static final String JSON_PROPERTY_ELEMENT_DESCRIPTION = "element_description"; - private String elementDescription; - - public static final String JSON_PROPERTY_ELEMENT_UPDATES = "element_updates"; - private SyntheticsTestResultStepElementUpdates elementUpdates; - - public static final String JSON_PROPERTY_EXTRACTED_VALUE = "extracted_value"; - private SyntheticsTestResultVariable extractedValue; - - public static final String JSON_PROPERTY_FAILURE = "failure"; - private SyntheticsTestResultFailure failure; - - public static final String JSON_PROPERTY_HTTP_RESULTS = "http_results"; - private List httpResults = null; - - public static final String JSON_PROPERTY_ID = "id"; - private String id; - - public static final String JSON_PROPERTY_IS_CRITICAL = "is_critical"; - private Boolean isCritical; - - public static final String JSON_PROPERTY_JAVASCRIPT_CUSTOM_ASSERTION_CODE = - "javascript_custom_assertion_code"; - private Boolean javascriptCustomAssertionCode; - - public static final String JSON_PROPERTY_LOCATE_ELEMENT_DURATION = "locate_element_duration"; - private Double locateElementDuration; - - public static final String JSON_PROPERTY_NAME = "name"; - private String name; - - public static final String JSON_PROPERTY_REQUEST = "request"; - private SyntheticsTestResultRequestInfo request; - - public static final String JSON_PROPERTY_RESPONSE = "response"; - private SyntheticsTestResultResponseInfo response; - - public static final String JSON_PROPERTY_RETRIES = "retries"; - private List retries = null; - - public static final String JSON_PROPERTY_RETRY_COUNT = "retry_count"; - private Long retryCount; - - public static final String JSON_PROPERTY_RUM_CONTEXT = "rum_context"; - private SyntheticsTestResultRumContext rumContext; - - public static final String JSON_PROPERTY_STARTED_AT = "started_at"; - private Long startedAt; - - public static final String JSON_PROPERTY_STATUS = "status"; - private String status; - - public static final String JSON_PROPERTY_SUB_STEP = "sub_step"; - private SyntheticsTestResultSubStep subStep; - - public static final String JSON_PROPERTY_SUB_TEST = "sub_test"; - private SyntheticsTestResultSubTest subTest; - - public static final String JSON_PROPERTY_SUBTYPE = "subtype"; - private String subtype; - - public static final String JSON_PROPERTY_TABS = "tabs"; - private List tabs = null; - - public static final String JSON_PROPERTY_TIMINGS = "timings"; - private Map timings = null; - - public static final String JSON_PROPERTY_TUNNEL = "tunnel"; - private Boolean tunnel; - - public static final String JSON_PROPERTY_TYPE = "type"; - private String type; - - public static final String JSON_PROPERTY_URL = "url"; - private String url; - - public static final String JSON_PROPERTY_VALUE = "value"; - private Object value = null; - - public static final String JSON_PROPERTY_VARIABLES = "variables"; - private SyntheticsTestResultVariables variables; - - public static final String JSON_PROPERTY_VITALS_METRICS = "vitals_metrics"; - private List vitalsMetrics = null; - - public static final String JSON_PROPERTY_WARNINGS = "warnings"; - private List warnings = null; - - public SyntheticsTestResultStep allowFailure(Boolean allowFailure) { - this.allowFailure = allowFailure; - return this; - } - - /** - * Whether the test continues when this step fails. - * - * @return allowFailure - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ALLOW_FAILURE) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public Boolean getAllowFailure() { - return allowFailure; - } - - public void setAllowFailure(Boolean allowFailure) { - this.allowFailure = allowFailure; - } - - public SyntheticsTestResultStep apiTest(Map apiTest) { - this.apiTest = apiTest; - return this; - } - - public SyntheticsTestResultStep putApiTestItem(String key, Object apiTestItem) { - if (this.apiTest == null) { - this.apiTest = new HashMap<>(); - } - this.apiTest.put(key, apiTestItem); - return this; - } - - /** - * Inner API test definition for browser runApiTest steps. - * - * @return apiTest - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_API_TEST) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public Map getApiTest() { - return apiTest; - } - - public void setApiTest(Map apiTest) { - this.apiTest = apiTest; - } - - public SyntheticsTestResultStep assertionResult( - SyntheticsTestResultStepAssertionResult assertionResult) { - this.assertionResult = assertionResult; - this.unparsed |= assertionResult.unparsed; - return this; - } - - /** - * Assertion result for a browser or mobile step. - * - * @return assertionResult - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ASSERTION_RESULT) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public SyntheticsTestResultStepAssertionResult getAssertionResult() { - return assertionResult; - } - - public void setAssertionResult(SyntheticsTestResultStepAssertionResult assertionResult) { - this.assertionResult = assertionResult; - } - - public SyntheticsTestResultStep assertions(List assertions) { - this.assertions = assertions; - for (SyntheticsTestResultAssertionResult item : assertions) { - this.unparsed |= item.unparsed; - } - return this; - } - - public SyntheticsTestResultStep addAssertionsItem( - SyntheticsTestResultAssertionResult assertionsItem) { - if (this.assertions == null) { - this.assertions = new ArrayList<>(); - } - this.assertions.add(assertionsItem); - this.unparsed |= assertionsItem.unparsed; - return this; - } - - /** - * Assertion results produced by the step. - * - * @return assertions - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ASSERTIONS) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public List getAssertions() { - return assertions; - } - - public void setAssertions(List assertions) { - this.assertions = assertions; - } - - public SyntheticsTestResultStep blockedRequestsUrls(List blockedRequestsUrls) { - this.blockedRequestsUrls = blockedRequestsUrls; - return this; - } - - public SyntheticsTestResultStep addBlockedRequestsUrlsItem(String blockedRequestsUrlsItem) { - if (this.blockedRequestsUrls == null) { - this.blockedRequestsUrls = new ArrayList<>(); - } - this.blockedRequestsUrls.add(blockedRequestsUrlsItem); - return this; - } - - /** - * URLs of requests blocked during the step. - * - * @return blockedRequestsUrls - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_BLOCKED_REQUESTS_URLS) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public List getBlockedRequestsUrls() { - return blockedRequestsUrls; - } - - public void setBlockedRequestsUrls(List blockedRequestsUrls) { - this.blockedRequestsUrls = blockedRequestsUrls; - } - - public SyntheticsTestResultStep bounds(SyntheticsTestResultBounds bounds) { - this.bounds = bounds; - this.unparsed |= bounds.unparsed; - return this; - } - - /** - * Bounding box of an element on the page. - * - * @return bounds - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_BOUNDS) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public SyntheticsTestResultBounds getBounds() { - return bounds; - } - - public void setBounds(SyntheticsTestResultBounds bounds) { - this.bounds = bounds; - } - - public SyntheticsTestResultStep browserErrors( - List browserErrors) { - this.browserErrors = browserErrors; - for (SyntheticsTestResultBrowserError item : browserErrors) { - this.unparsed |= item.unparsed; - } - return this; - } - - public SyntheticsTestResultStep addBrowserErrorsItem( - SyntheticsTestResultBrowserError browserErrorsItem) { - if (this.browserErrors == null) { - this.browserErrors = new ArrayList<>(); - } - this.browserErrors.add(browserErrorsItem); - this.unparsed |= browserErrorsItem.unparsed; - return this; - } - - /** - * Browser errors captured during the step. - * - * @return browserErrors - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_BROWSER_ERRORS) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public List getBrowserErrors() { - return browserErrors; - } - - public void setBrowserErrors(List browserErrors) { - this.browserErrors = browserErrors; - } - - public SyntheticsTestResultStep bucketKeys(SyntheticsTestResultBucketKeys bucketKeys) { - this.bucketKeys = bucketKeys; - this.unparsed |= bucketKeys.unparsed; - return this; - } - - /** - * Storage bucket keys for artifacts produced during a step or test. - * - * @return bucketKeys - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_BUCKET_KEYS) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public SyntheticsTestResultBucketKeys getBucketKeys() { - return bucketKeys; - } - - public void setBucketKeys(SyntheticsTestResultBucketKeys bucketKeys) { - this.bucketKeys = bucketKeys; - } - - public SyntheticsTestResultStep cdnResources(List cdnResources) { - this.cdnResources = cdnResources; - for (SyntheticsTestResultCdnResource item : cdnResources) { - this.unparsed |= item.unparsed; - } - return this; - } - - public SyntheticsTestResultStep addCdnResourcesItem( - SyntheticsTestResultCdnResource cdnResourcesItem) { - if (this.cdnResources == null) { - this.cdnResources = new ArrayList<>(); - } - this.cdnResources.add(cdnResourcesItem); - this.unparsed |= cdnResourcesItem.unparsed; - return this; - } - - /** - * CDN resources encountered during the step. - * - * @return cdnResources - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_CDN_RESOURCES) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public List getCdnResources() { - return cdnResources; - } - - public void setCdnResources(List cdnResources) { - this.cdnResources = cdnResources; - } - - public SyntheticsTestResultStep clickType(String clickType) { - this.clickType = clickType; - return this; - } - - /** - * Click type performed in a browser step. - * - * @return clickType - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_CLICK_TYPE) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getClickType() { - return clickType; - } - - public void setClickType(String clickType) { - this.clickType = clickType; - } - - public SyntheticsTestResultStep compressedJsonDescriptor(String compressedJsonDescriptor) { - this.compressedJsonDescriptor = compressedJsonDescriptor; - return this; - } - - /** - * Compressed JSON descriptor for the step (internal format). - * - * @return compressedJsonDescriptor - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_COMPRESSED_JSON_DESCRIPTOR) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getCompressedJsonDescriptor() { - return compressedJsonDescriptor; - } - - public void setCompressedJsonDescriptor(String compressedJsonDescriptor) { - this.compressedJsonDescriptor = compressedJsonDescriptor; - } - - public SyntheticsTestResultStep config(Map config) { - this.config = config; - return this; - } - - public SyntheticsTestResultStep putConfigItem(String key, Object configItem) { - if (this.config == null) { - this.config = new HashMap<>(); - } - this.config.put(key, configItem); - return this; - } - - /** - * Request configuration executed by this step (API test steps). - * - * @return config - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_CONFIG) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public Map getConfig() { - return config; - } - - public void setConfig(Map config) { - this.config = config; - } - - public SyntheticsTestResultStep description(String description) { - this.description = description; - return this; - } - - /** - * Human-readable description of the step. - * - * @return description - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_DESCRIPTION) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getDescription() { - return description; - } - - public void setDescription(String description) { - this.description = description; - } - - public SyntheticsTestResultStep duration(Double duration) { - this.duration = duration; - return this; - } - - /** - * Duration of the step in milliseconds. - * - * @return duration - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_DURATION) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public Double getDuration() { - return duration; - } - - public void setDuration(Double duration) { - this.duration = duration; - } - - public SyntheticsTestResultStep elementDescription(String elementDescription) { - this.elementDescription = elementDescription; - return this; - } - - /** - * Description of the element interacted with by the step. - * - * @return elementDescription - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ELEMENT_DESCRIPTION) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getElementDescription() { - return elementDescription; - } - - public void setElementDescription(String elementDescription) { - this.elementDescription = elementDescription; - } - - public SyntheticsTestResultStep elementUpdates( - SyntheticsTestResultStepElementUpdates elementUpdates) { - this.elementUpdates = elementUpdates; - this.unparsed |= elementUpdates.unparsed; - return this; - } - - /** - * Element locator updates produced during a step. - * - * @return elementUpdates - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ELEMENT_UPDATES) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public SyntheticsTestResultStepElementUpdates getElementUpdates() { - return elementUpdates; - } - - public void setElementUpdates(SyntheticsTestResultStepElementUpdates elementUpdates) { - this.elementUpdates = elementUpdates; - } - - public SyntheticsTestResultStep extractedValue(SyntheticsTestResultVariable extractedValue) { - this.extractedValue = extractedValue; - this.unparsed |= extractedValue.unparsed; - return this; - } - - /** - * A variable used or extracted during a test. - * - * @return extractedValue - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_EXTRACTED_VALUE) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public SyntheticsTestResultVariable getExtractedValue() { - return extractedValue; - } - - public void setExtractedValue(SyntheticsTestResultVariable extractedValue) { - this.extractedValue = extractedValue; - } - - public SyntheticsTestResultStep failure(SyntheticsTestResultFailure failure) { - this.failure = failure; - this.unparsed |= failure.unparsed; - return this; - } - - /** - * Details about the failure of a Synthetic test. - * - * @return failure - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_FAILURE) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public SyntheticsTestResultFailure getFailure() { - return failure; - } - - public void setFailure(SyntheticsTestResultFailure failure) { - this.failure = failure; - } - - public SyntheticsTestResultStep httpResults( - List httpResults) { - this.httpResults = httpResults; - for (SyntheticsTestResultAssertionResult item : httpResults) { - this.unparsed |= item.unparsed; - } - return this; - } - - public SyntheticsTestResultStep addHttpResultsItem( - SyntheticsTestResultAssertionResult httpResultsItem) { - if (this.httpResults == null) { - this.httpResults = new ArrayList<>(); - } - this.httpResults.add(httpResultsItem); - this.unparsed |= httpResultsItem.unparsed; - return this; - } - - /** - * HTTP results produced by an MCP step. - * - * @return httpResults - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_HTTP_RESULTS) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public List getHttpResults() { - return httpResults; - } - - public void setHttpResults(List httpResults) { - this.httpResults = httpResults; - } - - public SyntheticsTestResultStep id(String id) { - this.id = id; - return this; - } - - /** - * Identifier of the step. - * - * @return id - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ID) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getId() { - return id; - } - - public void setId(String id) { - this.id = id; - } - - public SyntheticsTestResultStep isCritical(Boolean isCritical) { - this.isCritical = isCritical; - return this; - } - - /** - * Whether this step is critical for the test outcome. - * - * @return isCritical - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_IS_CRITICAL) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public Boolean getIsCritical() { - return isCritical; - } - - public void setIsCritical(Boolean isCritical) { - this.isCritical = isCritical; - } - - public SyntheticsTestResultStep javascriptCustomAssertionCode( - Boolean javascriptCustomAssertionCode) { - this.javascriptCustomAssertionCode = javascriptCustomAssertionCode; - return this; - } - - /** - * Whether the step uses a custom JavaScript assertion. - * - * @return javascriptCustomAssertionCode - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_JAVASCRIPT_CUSTOM_ASSERTION_CODE) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public Boolean getJavascriptCustomAssertionCode() { - return javascriptCustomAssertionCode; - } - - public void setJavascriptCustomAssertionCode(Boolean javascriptCustomAssertionCode) { - this.javascriptCustomAssertionCode = javascriptCustomAssertionCode; - } - - public SyntheticsTestResultStep locateElementDuration(Double locateElementDuration) { - this.locateElementDuration = locateElementDuration; - return this; - } - - /** - * Time taken to locate the element in milliseconds. - * - * @return locateElementDuration - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_LOCATE_ELEMENT_DURATION) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public Double getLocateElementDuration() { - return locateElementDuration; - } - - public void setLocateElementDuration(Double locateElementDuration) { - this.locateElementDuration = locateElementDuration; - } - - public SyntheticsTestResultStep name(String name) { - this.name = name; - return this; - } - - /** - * Name of the step. - * - * @return name - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_NAME) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getName() { - return name; - } - - public void setName(String name) { - this.name = name; - } - - public SyntheticsTestResultStep request(SyntheticsTestResultRequestInfo request) { - this.request = request; - this.unparsed |= request.unparsed; - return this; - } - - /** - * Details of the outgoing request made during the test execution. - * - * @return request - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_REQUEST) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public SyntheticsTestResultRequestInfo getRequest() { - return request; - } - - public void setRequest(SyntheticsTestResultRequestInfo request) { - this.request = request; - } - - public SyntheticsTestResultStep response(SyntheticsTestResultResponseInfo response) { - this.response = response; - this.unparsed |= response.unparsed; - return this; - } - - /** - * Details of the response received during the test execution. - * - * @return response - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_RESPONSE) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public SyntheticsTestResultResponseInfo getResponse() { - return response; - } - - public void setResponse(SyntheticsTestResultResponseInfo response) { - this.response = response; - } - - public SyntheticsTestResultStep retries(List retries) { - this.retries = retries; - for (SyntheticsTestResultStep item : retries) { - this.unparsed |= item.unparsed; - } - return this; - } - - public SyntheticsTestResultStep addRetriesItem(SyntheticsTestResultStep retriesItem) { - if (this.retries == null) { - this.retries = new ArrayList<>(); - } - this.retries.add(retriesItem); - this.unparsed |= retriesItem.unparsed; - return this; - } - - /** - * Retry results for the step. - * - * @return retries - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_RETRIES) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public List getRetries() { - return retries; - } - - public void setRetries(List retries) { - this.retries = retries; - } - - public SyntheticsTestResultStep retryCount(Long retryCount) { - this.retryCount = retryCount; - return this; - } - - /** - * Number of times this step was retried. - * - * @return retryCount - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_RETRY_COUNT) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public Long getRetryCount() { - return retryCount; - } - - public void setRetryCount(Long retryCount) { - this.retryCount = retryCount; - } - - public SyntheticsTestResultStep rumContext(SyntheticsTestResultRumContext rumContext) { - this.rumContext = rumContext; - this.unparsed |= rumContext.unparsed; - return this; - } - - /** - * RUM application context associated with a step or sub-test. - * - * @return rumContext - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_RUM_CONTEXT) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public SyntheticsTestResultRumContext getRumContext() { - return rumContext; - } - - public void setRumContext(SyntheticsTestResultRumContext rumContext) { - this.rumContext = rumContext; - } - - public SyntheticsTestResultStep startedAt(Long startedAt) { - this.startedAt = startedAt; - return this; - } - - /** - * Unix timestamp (ms) of when the step started. - * - * @return startedAt - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_STARTED_AT) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public Long getStartedAt() { - return startedAt; - } - - public void setStartedAt(Long startedAt) { - this.startedAt = startedAt; - } - - public SyntheticsTestResultStep status(String status) { - this.status = status; - return this; - } - - /** - * Status of the step (for example, passed, failed). - * - * @return status - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_STATUS) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getStatus() { - return status; - } - - public void setStatus(String status) { - this.status = status; - } - - public SyntheticsTestResultStep subStep(SyntheticsTestResultSubStep subStep) { - this.subStep = subStep; - this.unparsed |= subStep.unparsed; - return this; - } - - /** - * Information about a sub-step in a nested test execution. - * - * @return subStep - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_SUB_STEP) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public SyntheticsTestResultSubStep getSubStep() { - return subStep; - } - - public void setSubStep(SyntheticsTestResultSubStep subStep) { - this.subStep = subStep; - } - - public SyntheticsTestResultStep subTest(SyntheticsTestResultSubTest subTest) { - this.subTest = subTest; - this.unparsed |= subTest.unparsed; - return this; - } - - /** - * Information about a sub-test played from a parent browser test. - * - * @return subTest - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_SUB_TEST) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public SyntheticsTestResultSubTest getSubTest() { - return subTest; - } - - public void setSubTest(SyntheticsTestResultSubTest subTest) { - this.subTest = subTest; - } - - public SyntheticsTestResultStep subtype(String subtype) { - this.subtype = subtype; - return this; - } - - /** - * Subtype of the step. - * - * @return subtype - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_SUBTYPE) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getSubtype() { - return subtype; - } - - public void setSubtype(String subtype) { - this.subtype = subtype; - } - - public SyntheticsTestResultStep tabs(List tabs) { - this.tabs = tabs; - for (SyntheticsTestResultTab item : tabs) { - this.unparsed |= item.unparsed; - } - return this; - } - - public SyntheticsTestResultStep addTabsItem(SyntheticsTestResultTab tabsItem) { - if (this.tabs == null) { - this.tabs = new ArrayList<>(); - } - this.tabs.add(tabsItem); - this.unparsed |= tabsItem.unparsed; - return this; - } - - /** - * Browser tabs involved in the step. - * - * @return tabs - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_TABS) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public List getTabs() { - return tabs; - } - - public void setTabs(List tabs) { - this.tabs = tabs; - } - - public SyntheticsTestResultStep timings(Map timings) { - this.timings = timings; - return this; - } - - public SyntheticsTestResultStep putTimingsItem(String key, Object timingsItem) { - if (this.timings == null) { - this.timings = new HashMap<>(); - } - this.timings.put(key, timingsItem); - return this; - } - - /** - * Timing breakdown of the step execution. - * - * @return timings - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_TIMINGS) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public Map getTimings() { - return timings; - } - - public void setTimings(Map timings) { - this.timings = timings; - } - - public SyntheticsTestResultStep tunnel(Boolean tunnel) { - this.tunnel = tunnel; - return this; - } - - /** - * Whether the step was executed through a Synthetics tunnel. - * - * @return tunnel - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_TUNNEL) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public Boolean getTunnel() { - return tunnel; - } - - public void setTunnel(Boolean tunnel) { - this.tunnel = tunnel; - } - - public SyntheticsTestResultStep type(String type) { - this.type = type; - return this; - } - - /** - * Type of the step (for example, click, assertElementContent, - * runApiTest). - * - * @return type - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_TYPE) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getType() { - return type; - } - - public void setType(String type) { - this.type = type; - } - - public SyntheticsTestResultStep url(String url) { - this.url = url; - return this; - } - - /** - * URL associated with the step (for navigation steps). - * - * @return url - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_URL) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getUrl() { - return url; - } - - public void setUrl(String url) { - this.url = url; - } - - public SyntheticsTestResultStep value(Object value) { - this.value = value; - return this; - } - - /** - * Step value. Its type depends on the step type. - * - * @return value - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_VALUE) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public Object getValue() { - return value; - } - - public void setValue(Object value) { - this.value = value; - } - - public SyntheticsTestResultStep variables(SyntheticsTestResultVariables variables) { - this.variables = variables; - this.unparsed |= variables.unparsed; - return this; - } - - /** - * Variables captured during a test step. - * - * @return variables - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_VARIABLES) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public SyntheticsTestResultVariables getVariables() { - return variables; - } - - public void setVariables(SyntheticsTestResultVariables variables) { - this.variables = variables; - } - - public SyntheticsTestResultStep vitalsMetrics( - List vitalsMetrics) { - this.vitalsMetrics = vitalsMetrics; - for (SyntheticsTestResultVitalsMetrics item : vitalsMetrics) { - this.unparsed |= item.unparsed; - } - return this; - } - - public SyntheticsTestResultStep addVitalsMetricsItem( - SyntheticsTestResultVitalsMetrics vitalsMetricsItem) { - if (this.vitalsMetrics == null) { - this.vitalsMetrics = new ArrayList<>(); - } - this.vitalsMetrics.add(vitalsMetricsItem); - this.unparsed |= vitalsMetricsItem.unparsed; - return this; - } - - /** - * Web vitals metrics captured during the step. - * - * @return vitalsMetrics - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_VITALS_METRICS) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public List getVitalsMetrics() { - return vitalsMetrics; - } - - public void setVitalsMetrics(List vitalsMetrics) { - this.vitalsMetrics = vitalsMetrics; - } - - public SyntheticsTestResultStep warnings(List warnings) { - this.warnings = warnings; - for (SyntheticsTestResultWarning item : warnings) { - this.unparsed |= item.unparsed; - } - return this; - } - - public SyntheticsTestResultStep addWarningsItem(SyntheticsTestResultWarning warningsItem) { - if (this.warnings == null) { - this.warnings = new ArrayList<>(); - } - this.warnings.add(warningsItem); - this.unparsed |= warningsItem.unparsed; - return this; - } - - /** - * Warnings emitted during the step. - * - * @return warnings - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_WARNINGS) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public List getWarnings() { - return warnings; - } - - public void setWarnings(List warnings) { - this.warnings = warnings; - } - - /** - * A container for additional, undeclared properties. This is a holder for any undeclared - * properties as specified with the 'additionalProperties' keyword in the OAS document. - */ - private Map additionalProperties; - - /** - * Set the additional (undeclared) property with the specified name and value. If the property - * does not already exist, create it otherwise replace it. - * - * @param key The arbitrary key to set - * @param value The associated value - * @return SyntheticsTestResultStep - */ - @JsonAnySetter - public SyntheticsTestResultStep putAdditionalProperty(String key, Object value) { - if (this.additionalProperties == null) { - this.additionalProperties = new HashMap(); - } - this.additionalProperties.put(key, value); - return this; - } - - /** - * Return the additional (undeclared) property. - * - * @return The additional properties - */ - @JsonAnyGetter - public Map getAdditionalProperties() { - return additionalProperties; - } - - /** - * Return the additional (undeclared) property with the specified name. - * - * @param key The arbitrary key to get - * @return The specific additional property for the given key - */ - public Object getAdditionalProperty(String key) { - if (this.additionalProperties == null) { - return null; - } - return this.additionalProperties.get(key); - } - - /** Return true if this SyntheticsTestResultStep object is equal to o. */ - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - SyntheticsTestResultStep syntheticsTestResultStep = (SyntheticsTestResultStep) o; - return Objects.equals(this.allowFailure, syntheticsTestResultStep.allowFailure) - && Objects.equals(this.apiTest, syntheticsTestResultStep.apiTest) - && Objects.equals(this.assertionResult, syntheticsTestResultStep.assertionResult) - && Objects.equals(this.assertions, syntheticsTestResultStep.assertions) - && Objects.equals(this.blockedRequestsUrls, syntheticsTestResultStep.blockedRequestsUrls) - && Objects.equals(this.bounds, syntheticsTestResultStep.bounds) - && Objects.equals(this.browserErrors, syntheticsTestResultStep.browserErrors) - && Objects.equals(this.bucketKeys, syntheticsTestResultStep.bucketKeys) - && Objects.equals(this.cdnResources, syntheticsTestResultStep.cdnResources) - && Objects.equals(this.clickType, syntheticsTestResultStep.clickType) - && Objects.equals( - this.compressedJsonDescriptor, syntheticsTestResultStep.compressedJsonDescriptor) - && Objects.equals(this.config, syntheticsTestResultStep.config) - && Objects.equals(this.description, syntheticsTestResultStep.description) - && Objects.equals(this.duration, syntheticsTestResultStep.duration) - && Objects.equals(this.elementDescription, syntheticsTestResultStep.elementDescription) - && Objects.equals(this.elementUpdates, syntheticsTestResultStep.elementUpdates) - && Objects.equals(this.extractedValue, syntheticsTestResultStep.extractedValue) - && Objects.equals(this.failure, syntheticsTestResultStep.failure) - && Objects.equals(this.httpResults, syntheticsTestResultStep.httpResults) - && Objects.equals(this.id, syntheticsTestResultStep.id) - && Objects.equals(this.isCritical, syntheticsTestResultStep.isCritical) - && Objects.equals( - this.javascriptCustomAssertionCode, - syntheticsTestResultStep.javascriptCustomAssertionCode) - && Objects.equals( - this.locateElementDuration, syntheticsTestResultStep.locateElementDuration) - && Objects.equals(this.name, syntheticsTestResultStep.name) - && Objects.equals(this.request, syntheticsTestResultStep.request) - && Objects.equals(this.response, syntheticsTestResultStep.response) - && Objects.equals(this.retries, syntheticsTestResultStep.retries) - && Objects.equals(this.retryCount, syntheticsTestResultStep.retryCount) - && Objects.equals(this.rumContext, syntheticsTestResultStep.rumContext) - && Objects.equals(this.startedAt, syntheticsTestResultStep.startedAt) - && Objects.equals(this.status, syntheticsTestResultStep.status) - && Objects.equals(this.subStep, syntheticsTestResultStep.subStep) - && Objects.equals(this.subTest, syntheticsTestResultStep.subTest) - && Objects.equals(this.subtype, syntheticsTestResultStep.subtype) - && Objects.equals(this.tabs, syntheticsTestResultStep.tabs) - && Objects.equals(this.timings, syntheticsTestResultStep.timings) - && Objects.equals(this.tunnel, syntheticsTestResultStep.tunnel) - && Objects.equals(this.type, syntheticsTestResultStep.type) - && Objects.equals(this.url, syntheticsTestResultStep.url) - && Objects.equals(this.value, syntheticsTestResultStep.value) - && Objects.equals(this.variables, syntheticsTestResultStep.variables) - && Objects.equals(this.vitalsMetrics, syntheticsTestResultStep.vitalsMetrics) - && Objects.equals(this.warnings, syntheticsTestResultStep.warnings) - && Objects.equals(this.additionalProperties, syntheticsTestResultStep.additionalProperties); - } - - @Override - public int hashCode() { - return Objects.hash( - allowFailure, - apiTest, - assertionResult, - assertions, - blockedRequestsUrls, - bounds, - browserErrors, - bucketKeys, - cdnResources, - clickType, - compressedJsonDescriptor, - config, - description, - duration, - elementDescription, - elementUpdates, - extractedValue, - failure, - httpResults, - id, - isCritical, - javascriptCustomAssertionCode, - locateElementDuration, - name, - request, - response, - retries, - retryCount, - rumContext, - startedAt, - status, - subStep, - subTest, - subtype, - tabs, - timings, - tunnel, - type, - url, - value, - variables, - vitalsMetrics, - warnings, - additionalProperties); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class SyntheticsTestResultStep {\n"); - sb.append(" allowFailure: ").append(toIndentedString(allowFailure)).append("\n"); - sb.append(" apiTest: ").append(toIndentedString(apiTest)).append("\n"); - sb.append(" assertionResult: ").append(toIndentedString(assertionResult)).append("\n"); - sb.append(" assertions: ").append(toIndentedString(assertions)).append("\n"); - sb.append(" blockedRequestsUrls: ") - .append(toIndentedString(blockedRequestsUrls)) - .append("\n"); - sb.append(" bounds: ").append(toIndentedString(bounds)).append("\n"); - sb.append(" browserErrors: ").append(toIndentedString(browserErrors)).append("\n"); - sb.append(" bucketKeys: ").append(toIndentedString(bucketKeys)).append("\n"); - sb.append(" cdnResources: ").append(toIndentedString(cdnResources)).append("\n"); - sb.append(" clickType: ").append(toIndentedString(clickType)).append("\n"); - sb.append(" compressedJsonDescriptor: ") - .append(toIndentedString(compressedJsonDescriptor)) - .append("\n"); - sb.append(" config: ").append(toIndentedString(config)).append("\n"); - sb.append(" description: ").append(toIndentedString(description)).append("\n"); - sb.append(" duration: ").append(toIndentedString(duration)).append("\n"); - sb.append(" elementDescription: ").append(toIndentedString(elementDescription)).append("\n"); - sb.append(" elementUpdates: ").append(toIndentedString(elementUpdates)).append("\n"); - sb.append(" extractedValue: ").append(toIndentedString(extractedValue)).append("\n"); - sb.append(" failure: ").append(toIndentedString(failure)).append("\n"); - sb.append(" httpResults: ").append(toIndentedString(httpResults)).append("\n"); - sb.append(" id: ").append(toIndentedString(id)).append("\n"); - sb.append(" isCritical: ").append(toIndentedString(isCritical)).append("\n"); - sb.append(" javascriptCustomAssertionCode: ") - .append(toIndentedString(javascriptCustomAssertionCode)) - .append("\n"); - sb.append(" locateElementDuration: ") - .append(toIndentedString(locateElementDuration)) - .append("\n"); - sb.append(" name: ").append(toIndentedString(name)).append("\n"); - sb.append(" request: ").append(toIndentedString(request)).append("\n"); - sb.append(" response: ").append(toIndentedString(response)).append("\n"); - sb.append(" retries: ").append(toIndentedString(retries)).append("\n"); - sb.append(" retryCount: ").append(toIndentedString(retryCount)).append("\n"); - sb.append(" rumContext: ").append(toIndentedString(rumContext)).append("\n"); - sb.append(" startedAt: ").append(toIndentedString(startedAt)).append("\n"); - sb.append(" status: ").append(toIndentedString(status)).append("\n"); - sb.append(" subStep: ").append(toIndentedString(subStep)).append("\n"); - sb.append(" subTest: ").append(toIndentedString(subTest)).append("\n"); - sb.append(" subtype: ").append(toIndentedString(subtype)).append("\n"); - sb.append(" tabs: ").append(toIndentedString(tabs)).append("\n"); - sb.append(" timings: ").append(toIndentedString(timings)).append("\n"); - sb.append(" tunnel: ").append(toIndentedString(tunnel)).append("\n"); - sb.append(" type: ").append(toIndentedString(type)).append("\n"); - sb.append(" url: ").append(toIndentedString(url)).append("\n"); - sb.append(" value: ").append(toIndentedString(value)).append("\n"); - sb.append(" variables: ").append(toIndentedString(variables)).append("\n"); - sb.append(" vitalsMetrics: ").append(toIndentedString(vitalsMetrics)).append("\n"); - sb.append(" warnings: ").append(toIndentedString(warnings)).append("\n"); - sb.append(" additionalProperties: ") - .append(toIndentedString(additionalProperties)) - .append("\n"); - sb.append('}'); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } -} diff --git a/src/main/java/com/datadog/api/client/v2/model/SyntheticsTestResultStepAssertionResult.java b/src/main/java/com/datadog/api/client/v2/model/SyntheticsTestResultStepAssertionResult.java deleted file mode 100644 index b6f621bb58b..00000000000 --- a/src/main/java/com/datadog/api/client/v2/model/SyntheticsTestResultStepAssertionResult.java +++ /dev/null @@ -1,222 +0,0 @@ -/* - * 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. - */ - -package com.datadog.api.client.v2.model; - -import com.fasterxml.jackson.annotation.JsonAnyGetter; -import com.fasterxml.jackson.annotation.JsonAnySetter; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; - -/** Assertion result for a browser or mobile step. */ -@JsonPropertyOrder({ - SyntheticsTestResultStepAssertionResult.JSON_PROPERTY_ACTUAL, - SyntheticsTestResultStepAssertionResult.JSON_PROPERTY_CHECK_TYPE, - SyntheticsTestResultStepAssertionResult.JSON_PROPERTY_EXPECTED, - SyntheticsTestResultStepAssertionResult.JSON_PROPERTY_HAS_SECURE_VARIABLES -}) -@jakarta.annotation.Generated( - value = "https://github.com/DataDog/datadog-api-client-java/blob/master/.generator") -public class SyntheticsTestResultStepAssertionResult { - @JsonIgnore public boolean unparsed = false; - public static final String JSON_PROPERTY_ACTUAL = "actual"; - private Object actual = null; - - public static final String JSON_PROPERTY_CHECK_TYPE = "check_type"; - private String checkType; - - public static final String JSON_PROPERTY_EXPECTED = "expected"; - private Object expected = null; - - public static final String JSON_PROPERTY_HAS_SECURE_VARIABLES = "has_secure_variables"; - private Boolean hasSecureVariables; - - public SyntheticsTestResultStepAssertionResult actual(Object actual) { - this.actual = actual; - return this; - } - - /** - * Actual value observed during the step assertion. Its type depends on the check type. - * - * @return actual - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ACTUAL) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public Object getActual() { - return actual; - } - - public void setActual(Object actual) { - this.actual = actual; - } - - public SyntheticsTestResultStepAssertionResult checkType(String checkType) { - this.checkType = checkType; - return this; - } - - /** - * Type of the step assertion check. - * - * @return checkType - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_CHECK_TYPE) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getCheckType() { - return checkType; - } - - public void setCheckType(String checkType) { - this.checkType = checkType; - } - - public SyntheticsTestResultStepAssertionResult expected(Object expected) { - this.expected = expected; - return this; - } - - /** - * Expected value for the step assertion. Its type depends on the check type. - * - * @return expected - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_EXPECTED) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public Object getExpected() { - return expected; - } - - public void setExpected(Object expected) { - this.expected = expected; - } - - public SyntheticsTestResultStepAssertionResult hasSecureVariables(Boolean hasSecureVariables) { - this.hasSecureVariables = hasSecureVariables; - return this; - } - - /** - * Whether the assertion involves secure variables. - * - * @return hasSecureVariables - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_HAS_SECURE_VARIABLES) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public Boolean getHasSecureVariables() { - return hasSecureVariables; - } - - public void setHasSecureVariables(Boolean hasSecureVariables) { - this.hasSecureVariables = hasSecureVariables; - } - - /** - * A container for additional, undeclared properties. This is a holder for any undeclared - * properties as specified with the 'additionalProperties' keyword in the OAS document. - */ - private Map additionalProperties; - - /** - * Set the additional (undeclared) property with the specified name and value. If the property - * does not already exist, create it otherwise replace it. - * - * @param key The arbitrary key to set - * @param value The associated value - * @return SyntheticsTestResultStepAssertionResult - */ - @JsonAnySetter - public SyntheticsTestResultStepAssertionResult putAdditionalProperty(String key, Object value) { - if (this.additionalProperties == null) { - this.additionalProperties = new HashMap(); - } - this.additionalProperties.put(key, value); - return this; - } - - /** - * Return the additional (undeclared) property. - * - * @return The additional properties - */ - @JsonAnyGetter - public Map getAdditionalProperties() { - return additionalProperties; - } - - /** - * Return the additional (undeclared) property with the specified name. - * - * @param key The arbitrary key to get - * @return The specific additional property for the given key - */ - public Object getAdditionalProperty(String key) { - if (this.additionalProperties == null) { - return null; - } - return this.additionalProperties.get(key); - } - - /** Return true if this SyntheticsTestResultStepAssertionResult object is equal to o. */ - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - SyntheticsTestResultStepAssertionResult syntheticsTestResultStepAssertionResult = - (SyntheticsTestResultStepAssertionResult) o; - return Objects.equals(this.actual, syntheticsTestResultStepAssertionResult.actual) - && Objects.equals(this.checkType, syntheticsTestResultStepAssertionResult.checkType) - && Objects.equals(this.expected, syntheticsTestResultStepAssertionResult.expected) - && Objects.equals( - this.hasSecureVariables, syntheticsTestResultStepAssertionResult.hasSecureVariables) - && Objects.equals( - this.additionalProperties, - syntheticsTestResultStepAssertionResult.additionalProperties); - } - - @Override - public int hashCode() { - return Objects.hash(actual, checkType, expected, hasSecureVariables, additionalProperties); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class SyntheticsTestResultStepAssertionResult {\n"); - sb.append(" actual: ").append(toIndentedString(actual)).append("\n"); - sb.append(" checkType: ").append(toIndentedString(checkType)).append("\n"); - sb.append(" expected: ").append(toIndentedString(expected)).append("\n"); - sb.append(" hasSecureVariables: ").append(toIndentedString(hasSecureVariables)).append("\n"); - sb.append(" additionalProperties: ") - .append(toIndentedString(additionalProperties)) - .append("\n"); - sb.append('}'); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } -} diff --git a/src/main/java/com/datadog/api/client/v2/model/SyntheticsTestResultStepElementUpdates.java b/src/main/java/com/datadog/api/client/v2/model/SyntheticsTestResultStepElementUpdates.java deleted file mode 100644 index d838ae3a393..00000000000 --- a/src/main/java/com/datadog/api/client/v2/model/SyntheticsTestResultStepElementUpdates.java +++ /dev/null @@ -1,203 +0,0 @@ -/* - * 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. - */ - -package com.datadog.api.client.v2.model; - -import com.fasterxml.jackson.annotation.JsonAnyGetter; -import com.fasterxml.jackson.annotation.JsonAnySetter; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; - -/** Element locator updates produced during a step. */ -@JsonPropertyOrder({ - SyntheticsTestResultStepElementUpdates.JSON_PROPERTY_MULTI_LOCATOR, - SyntheticsTestResultStepElementUpdates.JSON_PROPERTY_TARGET_OUTER_HTML, - SyntheticsTestResultStepElementUpdates.JSON_PROPERTY_VERSION -}) -@jakarta.annotation.Generated( - value = "https://github.com/DataDog/datadog-api-client-java/blob/master/.generator") -public class SyntheticsTestResultStepElementUpdates { - @JsonIgnore public boolean unparsed = false; - public static final String JSON_PROPERTY_MULTI_LOCATOR = "multi_locator"; - private Map multiLocator = null; - - public static final String JSON_PROPERTY_TARGET_OUTER_HTML = "target_outer_html"; - private String targetOuterHtml; - - public static final String JSON_PROPERTY_VERSION = "version"; - private Long version; - - public SyntheticsTestResultStepElementUpdates multiLocator(Map multiLocator) { - this.multiLocator = multiLocator; - return this; - } - - public SyntheticsTestResultStepElementUpdates putMultiLocatorItem( - String key, String multiLocatorItem) { - if (this.multiLocator == null) { - this.multiLocator = new HashMap<>(); - } - this.multiLocator.put(key, multiLocatorItem); - return this; - } - - /** - * Updated multi-locator definition. - * - * @return multiLocator - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_MULTI_LOCATOR) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public Map getMultiLocator() { - return multiLocator; - } - - public void setMultiLocator(Map multiLocator) { - this.multiLocator = multiLocator; - } - - public SyntheticsTestResultStepElementUpdates targetOuterHtml(String targetOuterHtml) { - this.targetOuterHtml = targetOuterHtml; - return this; - } - - /** - * Updated outer HTML of the targeted element. - * - * @return targetOuterHtml - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_TARGET_OUTER_HTML) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getTargetOuterHtml() { - return targetOuterHtml; - } - - public void setTargetOuterHtml(String targetOuterHtml) { - this.targetOuterHtml = targetOuterHtml; - } - - public SyntheticsTestResultStepElementUpdates version(Long version) { - this.version = version; - return this; - } - - /** - * Version of the element locator definition. - * - * @return version - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_VERSION) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public Long getVersion() { - return version; - } - - public void setVersion(Long version) { - this.version = version; - } - - /** - * A container for additional, undeclared properties. This is a holder for any undeclared - * properties as specified with the 'additionalProperties' keyword in the OAS document. - */ - private Map additionalProperties; - - /** - * Set the additional (undeclared) property with the specified name and value. If the property - * does not already exist, create it otherwise replace it. - * - * @param key The arbitrary key to set - * @param value The associated value - * @return SyntheticsTestResultStepElementUpdates - */ - @JsonAnySetter - public SyntheticsTestResultStepElementUpdates putAdditionalProperty(String key, Object value) { - if (this.additionalProperties == null) { - this.additionalProperties = new HashMap(); - } - this.additionalProperties.put(key, value); - return this; - } - - /** - * Return the additional (undeclared) property. - * - * @return The additional properties - */ - @JsonAnyGetter - public Map getAdditionalProperties() { - return additionalProperties; - } - - /** - * Return the additional (undeclared) property with the specified name. - * - * @param key The arbitrary key to get - * @return The specific additional property for the given key - */ - public Object getAdditionalProperty(String key) { - if (this.additionalProperties == null) { - return null; - } - return this.additionalProperties.get(key); - } - - /** Return true if this SyntheticsTestResultStepElementUpdates object is equal to o. */ - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - SyntheticsTestResultStepElementUpdates syntheticsTestResultStepElementUpdates = - (SyntheticsTestResultStepElementUpdates) o; - return Objects.equals(this.multiLocator, syntheticsTestResultStepElementUpdates.multiLocator) - && Objects.equals( - this.targetOuterHtml, syntheticsTestResultStepElementUpdates.targetOuterHtml) - && Objects.equals(this.version, syntheticsTestResultStepElementUpdates.version) - && Objects.equals( - this.additionalProperties, syntheticsTestResultStepElementUpdates.additionalProperties); - } - - @Override - public int hashCode() { - return Objects.hash(multiLocator, targetOuterHtml, version, additionalProperties); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class SyntheticsTestResultStepElementUpdates {\n"); - sb.append(" multiLocator: ").append(toIndentedString(multiLocator)).append("\n"); - sb.append(" targetOuterHtml: ").append(toIndentedString(targetOuterHtml)).append("\n"); - sb.append(" version: ").append(toIndentedString(version)).append("\n"); - sb.append(" additionalProperties: ") - .append(toIndentedString(additionalProperties)) - .append("\n"); - sb.append('}'); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } -} diff --git a/src/main/java/com/datadog/api/client/v2/model/SyntheticsTestResultStepsInfo.java b/src/main/java/com/datadog/api/client/v2/model/SyntheticsTestResultStepsInfo.java deleted file mode 100644 index 88daab44864..00000000000 --- a/src/main/java/com/datadog/api/client/v2/model/SyntheticsTestResultStepsInfo.java +++ /dev/null @@ -1,192 +0,0 @@ -/* - * 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. - */ - -package com.datadog.api.client.v2.model; - -import com.fasterxml.jackson.annotation.JsonAnyGetter; -import com.fasterxml.jackson.annotation.JsonAnySetter; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; - -/** Step execution summary for a Synthetic test result. */ -@JsonPropertyOrder({ - SyntheticsTestResultStepsInfo.JSON_PROPERTY_COMPLETED, - SyntheticsTestResultStepsInfo.JSON_PROPERTY_ERRORS, - SyntheticsTestResultStepsInfo.JSON_PROPERTY_TOTAL -}) -@jakarta.annotation.Generated( - value = "https://github.com/DataDog/datadog-api-client-java/blob/master/.generator") -public class SyntheticsTestResultStepsInfo { - @JsonIgnore public boolean unparsed = false; - public static final String JSON_PROPERTY_COMPLETED = "completed"; - private Long completed; - - public static final String JSON_PROPERTY_ERRORS = "errors"; - private Long errors; - - public static final String JSON_PROPERTY_TOTAL = "total"; - private Long total; - - public SyntheticsTestResultStepsInfo completed(Long completed) { - this.completed = completed; - return this; - } - - /** - * Number of completed steps. - * - * @return completed - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_COMPLETED) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public Long getCompleted() { - return completed; - } - - public void setCompleted(Long completed) { - this.completed = completed; - } - - public SyntheticsTestResultStepsInfo errors(Long errors) { - this.errors = errors; - return this; - } - - /** - * Number of steps with errors. - * - * @return errors - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ERRORS) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public Long getErrors() { - return errors; - } - - public void setErrors(Long errors) { - this.errors = errors; - } - - public SyntheticsTestResultStepsInfo total(Long total) { - this.total = total; - return this; - } - - /** - * Total number of steps. - * - * @return total - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_TOTAL) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public Long getTotal() { - return total; - } - - public void setTotal(Long total) { - this.total = total; - } - - /** - * A container for additional, undeclared properties. This is a holder for any undeclared - * properties as specified with the 'additionalProperties' keyword in the OAS document. - */ - private Map additionalProperties; - - /** - * Set the additional (undeclared) property with the specified name and value. If the property - * does not already exist, create it otherwise replace it. - * - * @param key The arbitrary key to set - * @param value The associated value - * @return SyntheticsTestResultStepsInfo - */ - @JsonAnySetter - public SyntheticsTestResultStepsInfo putAdditionalProperty(String key, Object value) { - if (this.additionalProperties == null) { - this.additionalProperties = new HashMap(); - } - this.additionalProperties.put(key, value); - return this; - } - - /** - * Return the additional (undeclared) property. - * - * @return The additional properties - */ - @JsonAnyGetter - public Map getAdditionalProperties() { - return additionalProperties; - } - - /** - * Return the additional (undeclared) property with the specified name. - * - * @param key The arbitrary key to get - * @return The specific additional property for the given key - */ - public Object getAdditionalProperty(String key) { - if (this.additionalProperties == null) { - return null; - } - return this.additionalProperties.get(key); - } - - /** Return true if this SyntheticsTestResultStepsInfo object is equal to o. */ - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - SyntheticsTestResultStepsInfo syntheticsTestResultStepsInfo = (SyntheticsTestResultStepsInfo) o; - return Objects.equals(this.completed, syntheticsTestResultStepsInfo.completed) - && Objects.equals(this.errors, syntheticsTestResultStepsInfo.errors) - && Objects.equals(this.total, syntheticsTestResultStepsInfo.total) - && Objects.equals( - this.additionalProperties, syntheticsTestResultStepsInfo.additionalProperties); - } - - @Override - public int hashCode() { - return Objects.hash(completed, errors, total, additionalProperties); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class SyntheticsTestResultStepsInfo {\n"); - sb.append(" completed: ").append(toIndentedString(completed)).append("\n"); - sb.append(" errors: ").append(toIndentedString(errors)).append("\n"); - sb.append(" total: ").append(toIndentedString(total)).append("\n"); - sb.append(" additionalProperties: ") - .append(toIndentedString(additionalProperties)) - .append("\n"); - sb.append('}'); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } -} diff --git a/src/main/java/com/datadog/api/client/v2/model/SyntheticsTestResultSubStep.java b/src/main/java/com/datadog/api/client/v2/model/SyntheticsTestResultSubStep.java deleted file mode 100644 index 766ab5d45a2..00000000000 --- a/src/main/java/com/datadog/api/client/v2/model/SyntheticsTestResultSubStep.java +++ /dev/null @@ -1,194 +0,0 @@ -/* - * 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. - */ - -package com.datadog.api.client.v2.model; - -import com.fasterxml.jackson.annotation.JsonAnyGetter; -import com.fasterxml.jackson.annotation.JsonAnySetter; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; - -/** Information about a sub-step in a nested test execution. */ -@JsonPropertyOrder({ - SyntheticsTestResultSubStep.JSON_PROPERTY_LEVEL, - SyntheticsTestResultSubStep.JSON_PROPERTY_PARENT_STEP, - SyntheticsTestResultSubStep.JSON_PROPERTY_PARENT_TEST -}) -@jakarta.annotation.Generated( - value = "https://github.com/DataDog/datadog-api-client-java/blob/master/.generator") -public class SyntheticsTestResultSubStep { - @JsonIgnore public boolean unparsed = false; - public static final String JSON_PROPERTY_LEVEL = "level"; - private Long level; - - public static final String JSON_PROPERTY_PARENT_STEP = "parent_step"; - private SyntheticsTestResultParentStep parentStep; - - public static final String JSON_PROPERTY_PARENT_TEST = "parent_test"; - private SyntheticsTestResultParentTest parentTest; - - public SyntheticsTestResultSubStep level(Long level) { - this.level = level; - return this; - } - - /** - * Depth of the sub-step in the execution tree. - * - * @return level - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_LEVEL) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public Long getLevel() { - return level; - } - - public void setLevel(Long level) { - this.level = level; - } - - public SyntheticsTestResultSubStep parentStep(SyntheticsTestResultParentStep parentStep) { - this.parentStep = parentStep; - this.unparsed |= parentStep.unparsed; - return this; - } - - /** - * Reference to the parent step of a sub-step. - * - * @return parentStep - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_PARENT_STEP) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public SyntheticsTestResultParentStep getParentStep() { - return parentStep; - } - - public void setParentStep(SyntheticsTestResultParentStep parentStep) { - this.parentStep = parentStep; - } - - public SyntheticsTestResultSubStep parentTest(SyntheticsTestResultParentTest parentTest) { - this.parentTest = parentTest; - this.unparsed |= parentTest.unparsed; - return this; - } - - /** - * Reference to the parent test of a sub-step. - * - * @return parentTest - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_PARENT_TEST) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public SyntheticsTestResultParentTest getParentTest() { - return parentTest; - } - - public void setParentTest(SyntheticsTestResultParentTest parentTest) { - this.parentTest = parentTest; - } - - /** - * A container for additional, undeclared properties. This is a holder for any undeclared - * properties as specified with the 'additionalProperties' keyword in the OAS document. - */ - private Map additionalProperties; - - /** - * Set the additional (undeclared) property with the specified name and value. If the property - * does not already exist, create it otherwise replace it. - * - * @param key The arbitrary key to set - * @param value The associated value - * @return SyntheticsTestResultSubStep - */ - @JsonAnySetter - public SyntheticsTestResultSubStep putAdditionalProperty(String key, Object value) { - if (this.additionalProperties == null) { - this.additionalProperties = new HashMap(); - } - this.additionalProperties.put(key, value); - return this; - } - - /** - * Return the additional (undeclared) property. - * - * @return The additional properties - */ - @JsonAnyGetter - public Map getAdditionalProperties() { - return additionalProperties; - } - - /** - * Return the additional (undeclared) property with the specified name. - * - * @param key The arbitrary key to get - * @return The specific additional property for the given key - */ - public Object getAdditionalProperty(String key) { - if (this.additionalProperties == null) { - return null; - } - return this.additionalProperties.get(key); - } - - /** Return true if this SyntheticsTestResultSubStep object is equal to o. */ - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - SyntheticsTestResultSubStep syntheticsTestResultSubStep = (SyntheticsTestResultSubStep) o; - return Objects.equals(this.level, syntheticsTestResultSubStep.level) - && Objects.equals(this.parentStep, syntheticsTestResultSubStep.parentStep) - && Objects.equals(this.parentTest, syntheticsTestResultSubStep.parentTest) - && Objects.equals( - this.additionalProperties, syntheticsTestResultSubStep.additionalProperties); - } - - @Override - public int hashCode() { - return Objects.hash(level, parentStep, parentTest, additionalProperties); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class SyntheticsTestResultSubStep {\n"); - sb.append(" level: ").append(toIndentedString(level)).append("\n"); - sb.append(" parentStep: ").append(toIndentedString(parentStep)).append("\n"); - sb.append(" parentTest: ").append(toIndentedString(parentTest)).append("\n"); - sb.append(" additionalProperties: ") - .append(toIndentedString(additionalProperties)) - .append("\n"); - sb.append('}'); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } -} diff --git a/src/main/java/com/datadog/api/client/v2/model/SyntheticsTestResultSubTest.java b/src/main/java/com/datadog/api/client/v2/model/SyntheticsTestResultSubTest.java deleted file mode 100644 index 16f786edd98..00000000000 --- a/src/main/java/com/datadog/api/client/v2/model/SyntheticsTestResultSubTest.java +++ /dev/null @@ -1,193 +0,0 @@ -/* - * 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. - */ - -package com.datadog.api.client.v2.model; - -import com.fasterxml.jackson.annotation.JsonAnyGetter; -import com.fasterxml.jackson.annotation.JsonAnySetter; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; - -/** Information about a sub-test played from a parent browser test. */ -@JsonPropertyOrder({ - SyntheticsTestResultSubTest.JSON_PROPERTY_ID, - SyntheticsTestResultSubTest.JSON_PROPERTY_PLAYING_TAB, - SyntheticsTestResultSubTest.JSON_PROPERTY_RUM_CONTEXT -}) -@jakarta.annotation.Generated( - value = "https://github.com/DataDog/datadog-api-client-java/blob/master/.generator") -public class SyntheticsTestResultSubTest { - @JsonIgnore public boolean unparsed = false; - public static final String JSON_PROPERTY_ID = "id"; - private String id; - - public static final String JSON_PROPERTY_PLAYING_TAB = "playing_tab"; - private Long playingTab; - - public static final String JSON_PROPERTY_RUM_CONTEXT = "rum_context"; - private SyntheticsTestResultRumContext rumContext; - - public SyntheticsTestResultSubTest id(String id) { - this.id = id; - return this; - } - - /** - * Identifier of the sub-test. - * - * @return id - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ID) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getId() { - return id; - } - - public void setId(String id) { - this.id = id; - } - - public SyntheticsTestResultSubTest playingTab(Long playingTab) { - this.playingTab = playingTab; - return this; - } - - /** - * Index of the browser tab playing the sub-test. - * - * @return playingTab - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_PLAYING_TAB) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public Long getPlayingTab() { - return playingTab; - } - - public void setPlayingTab(Long playingTab) { - this.playingTab = playingTab; - } - - public SyntheticsTestResultSubTest rumContext(SyntheticsTestResultRumContext rumContext) { - this.rumContext = rumContext; - this.unparsed |= rumContext.unparsed; - return this; - } - - /** - * RUM application context associated with a step or sub-test. - * - * @return rumContext - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_RUM_CONTEXT) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public SyntheticsTestResultRumContext getRumContext() { - return rumContext; - } - - public void setRumContext(SyntheticsTestResultRumContext rumContext) { - this.rumContext = rumContext; - } - - /** - * A container for additional, undeclared properties. This is a holder for any undeclared - * properties as specified with the 'additionalProperties' keyword in the OAS document. - */ - private Map additionalProperties; - - /** - * Set the additional (undeclared) property with the specified name and value. If the property - * does not already exist, create it otherwise replace it. - * - * @param key The arbitrary key to set - * @param value The associated value - * @return SyntheticsTestResultSubTest - */ - @JsonAnySetter - public SyntheticsTestResultSubTest putAdditionalProperty(String key, Object value) { - if (this.additionalProperties == null) { - this.additionalProperties = new HashMap(); - } - this.additionalProperties.put(key, value); - return this; - } - - /** - * Return the additional (undeclared) property. - * - * @return The additional properties - */ - @JsonAnyGetter - public Map getAdditionalProperties() { - return additionalProperties; - } - - /** - * Return the additional (undeclared) property with the specified name. - * - * @param key The arbitrary key to get - * @return The specific additional property for the given key - */ - public Object getAdditionalProperty(String key) { - if (this.additionalProperties == null) { - return null; - } - return this.additionalProperties.get(key); - } - - /** Return true if this SyntheticsTestResultSubTest object is equal to o. */ - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - SyntheticsTestResultSubTest syntheticsTestResultSubTest = (SyntheticsTestResultSubTest) o; - return Objects.equals(this.id, syntheticsTestResultSubTest.id) - && Objects.equals(this.playingTab, syntheticsTestResultSubTest.playingTab) - && Objects.equals(this.rumContext, syntheticsTestResultSubTest.rumContext) - && Objects.equals( - this.additionalProperties, syntheticsTestResultSubTest.additionalProperties); - } - - @Override - public int hashCode() { - return Objects.hash(id, playingTab, rumContext, additionalProperties); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class SyntheticsTestResultSubTest {\n"); - sb.append(" id: ").append(toIndentedString(id)).append("\n"); - sb.append(" playingTab: ").append(toIndentedString(playingTab)).append("\n"); - sb.append(" rumContext: ").append(toIndentedString(rumContext)).append("\n"); - sb.append(" additionalProperties: ") - .append(toIndentedString(additionalProperties)) - .append("\n"); - sb.append('}'); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } -} diff --git a/src/main/java/com/datadog/api/client/v2/model/SyntheticsTestResultSummaryAttributes.java b/src/main/java/com/datadog/api/client/v2/model/SyntheticsTestResultSummaryAttributes.java deleted file mode 100644 index 876758d9ccd..00000000000 --- a/src/main/java/com/datadog/api/client/v2/model/SyntheticsTestResultSummaryAttributes.java +++ /dev/null @@ -1,414 +0,0 @@ -/* - * 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. - */ - -package com.datadog.api.client.v2.model; - -import com.fasterxml.jackson.annotation.JsonAnyGetter; -import com.fasterxml.jackson.annotation.JsonAnySetter; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; - -/** Attributes of a Synthetic test result summary. */ -@JsonPropertyOrder({ - SyntheticsTestResultSummaryAttributes.JSON_PROPERTY_DEVICE, - SyntheticsTestResultSummaryAttributes.JSON_PROPERTY_EXECUTION_INFO, - SyntheticsTestResultSummaryAttributes.JSON_PROPERTY_FINISHED_AT, - SyntheticsTestResultSummaryAttributes.JSON_PROPERTY_LOCATION, - SyntheticsTestResultSummaryAttributes.JSON_PROPERTY_RUN_TYPE, - SyntheticsTestResultSummaryAttributes.JSON_PROPERTY_STARTED_AT, - SyntheticsTestResultSummaryAttributes.JSON_PROPERTY_STATUS, - SyntheticsTestResultSummaryAttributes.JSON_PROPERTY_STEPS_INFO, - SyntheticsTestResultSummaryAttributes.JSON_PROPERTY_TEST_SUB_TYPE, - SyntheticsTestResultSummaryAttributes.JSON_PROPERTY_TEST_TYPE -}) -@jakarta.annotation.Generated( - value = "https://github.com/DataDog/datadog-api-client-java/blob/master/.generator") -public class SyntheticsTestResultSummaryAttributes { - @JsonIgnore public boolean unparsed = false; - public static final String JSON_PROPERTY_DEVICE = "device"; - private SyntheticsTestResultDevice device; - - public static final String JSON_PROPERTY_EXECUTION_INFO = "execution_info"; - private SyntheticsTestResultExecutionInfo executionInfo; - - public static final String JSON_PROPERTY_FINISHED_AT = "finished_at"; - private Long finishedAt; - - public static final String JSON_PROPERTY_LOCATION = "location"; - private SyntheticsTestResultLocation location; - - public static final String JSON_PROPERTY_RUN_TYPE = "run_type"; - private SyntheticsTestResultRunType runType; - - public static final String JSON_PROPERTY_STARTED_AT = "started_at"; - private Long startedAt; - - public static final String JSON_PROPERTY_STATUS = "status"; - private SyntheticsTestResultStatus status; - - public static final String JSON_PROPERTY_STEPS_INFO = "steps_info"; - private SyntheticsTestResultStepsInfo stepsInfo; - - public static final String JSON_PROPERTY_TEST_SUB_TYPE = "test_sub_type"; - private SyntheticsTestSubType testSubType; - - public static final String JSON_PROPERTY_TEST_TYPE = "test_type"; - private SyntheticsTestType testType; - - public SyntheticsTestResultSummaryAttributes device(SyntheticsTestResultDevice device) { - this.device = device; - this.unparsed |= device.unparsed; - return this; - } - - /** - * Device information for the test result (browser and mobile tests). - * - * @return device - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_DEVICE) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public SyntheticsTestResultDevice getDevice() { - return device; - } - - public void setDevice(SyntheticsTestResultDevice device) { - this.device = device; - } - - public SyntheticsTestResultSummaryAttributes executionInfo( - SyntheticsTestResultExecutionInfo executionInfo) { - this.executionInfo = executionInfo; - this.unparsed |= executionInfo.unparsed; - return this; - } - - /** - * Execution details for a Synthetic test result. - * - * @return executionInfo - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_EXECUTION_INFO) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public SyntheticsTestResultExecutionInfo getExecutionInfo() { - return executionInfo; - } - - public void setExecutionInfo(SyntheticsTestResultExecutionInfo executionInfo) { - this.executionInfo = executionInfo; - } - - public SyntheticsTestResultSummaryAttributes finishedAt(Long finishedAt) { - this.finishedAt = finishedAt; - return this; - } - - /** - * Timestamp of when the test finished (in milliseconds). - * - * @return finishedAt - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_FINISHED_AT) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public Long getFinishedAt() { - return finishedAt; - } - - public void setFinishedAt(Long finishedAt) { - this.finishedAt = finishedAt; - } - - public SyntheticsTestResultSummaryAttributes location(SyntheticsTestResultLocation location) { - this.location = location; - this.unparsed |= location.unparsed; - return this; - } - - /** - * Location information for a Synthetic test result. - * - * @return location - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_LOCATION) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public SyntheticsTestResultLocation getLocation() { - return location; - } - - public void setLocation(SyntheticsTestResultLocation location) { - this.location = location; - } - - public SyntheticsTestResultSummaryAttributes runType(SyntheticsTestResultRunType runType) { - this.runType = runType; - this.unparsed |= !runType.isValid(); - return this; - } - - /** - * The type of run for a Synthetic test result. - * - * @return runType - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_RUN_TYPE) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public SyntheticsTestResultRunType getRunType() { - return runType; - } - - public void setRunType(SyntheticsTestResultRunType runType) { - if (!runType.isValid()) { - this.unparsed = true; - } - this.runType = runType; - } - - public SyntheticsTestResultSummaryAttributes startedAt(Long startedAt) { - this.startedAt = startedAt; - return this; - } - - /** - * Timestamp of when the test started (in milliseconds). - * - * @return startedAt - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_STARTED_AT) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public Long getStartedAt() { - return startedAt; - } - - public void setStartedAt(Long startedAt) { - this.startedAt = startedAt; - } - - public SyntheticsTestResultSummaryAttributes status(SyntheticsTestResultStatus status) { - this.status = status; - this.unparsed |= !status.isValid(); - return this; - } - - /** - * Status of a Synthetic test result. - * - * @return status - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_STATUS) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public SyntheticsTestResultStatus getStatus() { - return status; - } - - public void setStatus(SyntheticsTestResultStatus status) { - if (!status.isValid()) { - this.unparsed = true; - } - this.status = status; - } - - public SyntheticsTestResultSummaryAttributes stepsInfo(SyntheticsTestResultStepsInfo stepsInfo) { - this.stepsInfo = stepsInfo; - this.unparsed |= stepsInfo.unparsed; - return this; - } - - /** - * Step execution summary for a Synthetic test result. - * - * @return stepsInfo - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_STEPS_INFO) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public SyntheticsTestResultStepsInfo getStepsInfo() { - return stepsInfo; - } - - public void setStepsInfo(SyntheticsTestResultStepsInfo stepsInfo) { - this.stepsInfo = stepsInfo; - } - - public SyntheticsTestResultSummaryAttributes testSubType(SyntheticsTestSubType testSubType) { - this.testSubType = testSubType; - this.unparsed |= !testSubType.isValid(); - return this; - } - - /** - * Subtype of the Synthetic test that produced this result. - * - * @return testSubType - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_TEST_SUB_TYPE) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public SyntheticsTestSubType getTestSubType() { - return testSubType; - } - - public void setTestSubType(SyntheticsTestSubType testSubType) { - if (!testSubType.isValid()) { - this.unparsed = true; - } - this.testSubType = testSubType; - } - - public SyntheticsTestResultSummaryAttributes testType(SyntheticsTestType testType) { - this.testType = testType; - this.unparsed |= !testType.isValid(); - return this; - } - - /** - * Type of the Synthetic test that produced this result. - * - * @return testType - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_TEST_TYPE) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public SyntheticsTestType getTestType() { - return testType; - } - - public void setTestType(SyntheticsTestType testType) { - if (!testType.isValid()) { - this.unparsed = true; - } - this.testType = testType; - } - - /** - * A container for additional, undeclared properties. This is a holder for any undeclared - * properties as specified with the 'additionalProperties' keyword in the OAS document. - */ - private Map additionalProperties; - - /** - * Set the additional (undeclared) property with the specified name and value. If the property - * does not already exist, create it otherwise replace it. - * - * @param key The arbitrary key to set - * @param value The associated value - * @return SyntheticsTestResultSummaryAttributes - */ - @JsonAnySetter - public SyntheticsTestResultSummaryAttributes putAdditionalProperty(String key, Object value) { - if (this.additionalProperties == null) { - this.additionalProperties = new HashMap(); - } - this.additionalProperties.put(key, value); - return this; - } - - /** - * Return the additional (undeclared) property. - * - * @return The additional properties - */ - @JsonAnyGetter - public Map getAdditionalProperties() { - return additionalProperties; - } - - /** - * Return the additional (undeclared) property with the specified name. - * - * @param key The arbitrary key to get - * @return The specific additional property for the given key - */ - public Object getAdditionalProperty(String key) { - if (this.additionalProperties == null) { - return null; - } - return this.additionalProperties.get(key); - } - - /** Return true if this SyntheticsTestResultSummaryAttributes object is equal to o. */ - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - SyntheticsTestResultSummaryAttributes syntheticsTestResultSummaryAttributes = - (SyntheticsTestResultSummaryAttributes) o; - return Objects.equals(this.device, syntheticsTestResultSummaryAttributes.device) - && Objects.equals(this.executionInfo, syntheticsTestResultSummaryAttributes.executionInfo) - && Objects.equals(this.finishedAt, syntheticsTestResultSummaryAttributes.finishedAt) - && Objects.equals(this.location, syntheticsTestResultSummaryAttributes.location) - && Objects.equals(this.runType, syntheticsTestResultSummaryAttributes.runType) - && Objects.equals(this.startedAt, syntheticsTestResultSummaryAttributes.startedAt) - && Objects.equals(this.status, syntheticsTestResultSummaryAttributes.status) - && Objects.equals(this.stepsInfo, syntheticsTestResultSummaryAttributes.stepsInfo) - && Objects.equals(this.testSubType, syntheticsTestResultSummaryAttributes.testSubType) - && Objects.equals(this.testType, syntheticsTestResultSummaryAttributes.testType) - && Objects.equals( - this.additionalProperties, syntheticsTestResultSummaryAttributes.additionalProperties); - } - - @Override - public int hashCode() { - return Objects.hash( - device, - executionInfo, - finishedAt, - location, - runType, - startedAt, - status, - stepsInfo, - testSubType, - testType, - additionalProperties); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class SyntheticsTestResultSummaryAttributes {\n"); - sb.append(" device: ").append(toIndentedString(device)).append("\n"); - sb.append(" executionInfo: ").append(toIndentedString(executionInfo)).append("\n"); - sb.append(" finishedAt: ").append(toIndentedString(finishedAt)).append("\n"); - sb.append(" location: ").append(toIndentedString(location)).append("\n"); - sb.append(" runType: ").append(toIndentedString(runType)).append("\n"); - sb.append(" startedAt: ").append(toIndentedString(startedAt)).append("\n"); - sb.append(" status: ").append(toIndentedString(status)).append("\n"); - sb.append(" stepsInfo: ").append(toIndentedString(stepsInfo)).append("\n"); - sb.append(" testSubType: ").append(toIndentedString(testSubType)).append("\n"); - sb.append(" testType: ").append(toIndentedString(testType)).append("\n"); - sb.append(" additionalProperties: ") - .append(toIndentedString(additionalProperties)) - .append("\n"); - sb.append('}'); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } -} diff --git a/src/main/java/com/datadog/api/client/v2/model/SyntheticsTestResultSummaryData.java b/src/main/java/com/datadog/api/client/v2/model/SyntheticsTestResultSummaryData.java deleted file mode 100644 index a9a92a53b86..00000000000 --- a/src/main/java/com/datadog/api/client/v2/model/SyntheticsTestResultSummaryData.java +++ /dev/null @@ -1,228 +0,0 @@ -/* - * 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. - */ - -package com.datadog.api.client.v2.model; - -import com.fasterxml.jackson.annotation.JsonAnyGetter; -import com.fasterxml.jackson.annotation.JsonAnySetter; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; - -/** Wrapper object for a Synthetic test result summary. */ -@JsonPropertyOrder({ - SyntheticsTestResultSummaryData.JSON_PROPERTY_ATTRIBUTES, - SyntheticsTestResultSummaryData.JSON_PROPERTY_ID, - SyntheticsTestResultSummaryData.JSON_PROPERTY_RELATIONSHIPS, - SyntheticsTestResultSummaryData.JSON_PROPERTY_TYPE -}) -@jakarta.annotation.Generated( - value = "https://github.com/DataDog/datadog-api-client-java/blob/master/.generator") -public class SyntheticsTestResultSummaryData { - @JsonIgnore public boolean unparsed = false; - public static final String JSON_PROPERTY_ATTRIBUTES = "attributes"; - private SyntheticsTestResultSummaryAttributes attributes; - - public static final String JSON_PROPERTY_ID = "id"; - private String id; - - public static final String JSON_PROPERTY_RELATIONSHIPS = "relationships"; - private SyntheticsTestResultRelationships relationships; - - public static final String JSON_PROPERTY_TYPE = "type"; - private SyntheticsTestResultSummaryType type = SyntheticsTestResultSummaryType.RESULT_SUMMARY; - - public SyntheticsTestResultSummaryData attributes( - SyntheticsTestResultSummaryAttributes attributes) { - this.attributes = attributes; - this.unparsed |= attributes.unparsed; - return this; - } - - /** - * Attributes of a Synthetic test result summary. - * - * @return attributes - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ATTRIBUTES) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public SyntheticsTestResultSummaryAttributes getAttributes() { - return attributes; - } - - public void setAttributes(SyntheticsTestResultSummaryAttributes attributes) { - this.attributes = attributes; - } - - public SyntheticsTestResultSummaryData id(String id) { - this.id = id; - return this; - } - - /** - * The result ID. - * - * @return id - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ID) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getId() { - return id; - } - - public void setId(String id) { - this.id = id; - } - - public SyntheticsTestResultSummaryData relationships( - SyntheticsTestResultRelationships relationships) { - this.relationships = relationships; - this.unparsed |= relationships.unparsed; - return this; - } - - /** - * Relationships for a Synthetic test result. - * - * @return relationships - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_RELATIONSHIPS) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public SyntheticsTestResultRelationships getRelationships() { - return relationships; - } - - public void setRelationships(SyntheticsTestResultRelationships relationships) { - this.relationships = relationships; - } - - public SyntheticsTestResultSummaryData type(SyntheticsTestResultSummaryType type) { - this.type = type; - this.unparsed |= !type.isValid(); - return this; - } - - /** - * Type of the Synthetic test result summary resource, result_summary. - * - * @return type - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_TYPE) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public SyntheticsTestResultSummaryType getType() { - return type; - } - - public void setType(SyntheticsTestResultSummaryType type) { - if (!type.isValid()) { - this.unparsed = true; - } - this.type = type; - } - - /** - * A container for additional, undeclared properties. This is a holder for any undeclared - * properties as specified with the 'additionalProperties' keyword in the OAS document. - */ - private Map additionalProperties; - - /** - * Set the additional (undeclared) property with the specified name and value. If the property - * does not already exist, create it otherwise replace it. - * - * @param key The arbitrary key to set - * @param value The associated value - * @return SyntheticsTestResultSummaryData - */ - @JsonAnySetter - public SyntheticsTestResultSummaryData putAdditionalProperty(String key, Object value) { - if (this.additionalProperties == null) { - this.additionalProperties = new HashMap(); - } - this.additionalProperties.put(key, value); - return this; - } - - /** - * Return the additional (undeclared) property. - * - * @return The additional properties - */ - @JsonAnyGetter - public Map getAdditionalProperties() { - return additionalProperties; - } - - /** - * Return the additional (undeclared) property with the specified name. - * - * @param key The arbitrary key to get - * @return The specific additional property for the given key - */ - public Object getAdditionalProperty(String key) { - if (this.additionalProperties == null) { - return null; - } - return this.additionalProperties.get(key); - } - - /** Return true if this SyntheticsTestResultSummaryData object is equal to o. */ - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - SyntheticsTestResultSummaryData syntheticsTestResultSummaryData = - (SyntheticsTestResultSummaryData) o; - return Objects.equals(this.attributes, syntheticsTestResultSummaryData.attributes) - && Objects.equals(this.id, syntheticsTestResultSummaryData.id) - && Objects.equals(this.relationships, syntheticsTestResultSummaryData.relationships) - && Objects.equals(this.type, syntheticsTestResultSummaryData.type) - && Objects.equals( - this.additionalProperties, syntheticsTestResultSummaryData.additionalProperties); - } - - @Override - public int hashCode() { - return Objects.hash(attributes, id, relationships, type, additionalProperties); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class SyntheticsTestResultSummaryData {\n"); - sb.append(" attributes: ").append(toIndentedString(attributes)).append("\n"); - sb.append(" id: ").append(toIndentedString(id)).append("\n"); - sb.append(" relationships: ").append(toIndentedString(relationships)).append("\n"); - sb.append(" type: ").append(toIndentedString(type)).append("\n"); - sb.append(" additionalProperties: ") - .append(toIndentedString(additionalProperties)) - .append("\n"); - sb.append('}'); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } -} diff --git a/src/main/java/com/datadog/api/client/v2/model/SyntheticsTestResultSummaryType.java b/src/main/java/com/datadog/api/client/v2/model/SyntheticsTestResultSummaryType.java deleted file mode 100644 index 7479b875495..00000000000 --- a/src/main/java/com/datadog/api/client/v2/model/SyntheticsTestResultSummaryType.java +++ /dev/null @@ -1,58 +0,0 @@ -/* - * 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. - */ - -package com.datadog.api.client.v2.model; - -import com.datadog.api.client.ModelEnum; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.core.JsonGenerator; -import com.fasterxml.jackson.core.JsonProcessingException; -import com.fasterxml.jackson.databind.SerializerProvider; -import com.fasterxml.jackson.databind.annotation.JsonSerialize; -import com.fasterxml.jackson.databind.ser.std.StdSerializer; -import java.io.IOException; -import java.util.Arrays; -import java.util.HashSet; -import java.util.Set; - -/** Type of the Synthetic test result summary resource, result_summary. */ -@JsonSerialize( - using = SyntheticsTestResultSummaryType.SyntheticsTestResultSummaryTypeSerializer.class) -public class SyntheticsTestResultSummaryType extends ModelEnum { - - private static final Set allowedValues = - new HashSet(Arrays.asList("result_summary")); - - public static final SyntheticsTestResultSummaryType RESULT_SUMMARY = - new SyntheticsTestResultSummaryType("result_summary"); - - SyntheticsTestResultSummaryType(String value) { - super(value, allowedValues); - } - - public static class SyntheticsTestResultSummaryTypeSerializer - extends StdSerializer { - public SyntheticsTestResultSummaryTypeSerializer(Class t) { - super(t); - } - - public SyntheticsTestResultSummaryTypeSerializer() { - this(null); - } - - @Override - public void serialize( - SyntheticsTestResultSummaryType value, JsonGenerator jgen, SerializerProvider provider) - throws IOException, JsonProcessingException { - jgen.writeObject(value.value); - } - } - - @JsonCreator - public static SyntheticsTestResultSummaryType fromValue(String value) { - return new SyntheticsTestResultSummaryType(value); - } -} diff --git a/src/main/java/com/datadog/api/client/v2/model/SyntheticsTestResultTab.java b/src/main/java/com/datadog/api/client/v2/model/SyntheticsTestResultTab.java deleted file mode 100644 index db2ebf21fe7..00000000000 --- a/src/main/java/com/datadog/api/client/v2/model/SyntheticsTestResultTab.java +++ /dev/null @@ -1,191 +0,0 @@ -/* - * 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. - */ - -package com.datadog.api.client.v2.model; - -import com.fasterxml.jackson.annotation.JsonAnyGetter; -import com.fasterxml.jackson.annotation.JsonAnySetter; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; - -/** Information about a browser tab involved in a step. */ -@JsonPropertyOrder({ - SyntheticsTestResultTab.JSON_PROPERTY_FOCUSED, - SyntheticsTestResultTab.JSON_PROPERTY_TITLE, - SyntheticsTestResultTab.JSON_PROPERTY_URL -}) -@jakarta.annotation.Generated( - value = "https://github.com/DataDog/datadog-api-client-java/blob/master/.generator") -public class SyntheticsTestResultTab { - @JsonIgnore public boolean unparsed = false; - public static final String JSON_PROPERTY_FOCUSED = "focused"; - private Boolean focused; - - public static final String JSON_PROPERTY_TITLE = "title"; - private String title; - - public static final String JSON_PROPERTY_URL = "url"; - private String url; - - public SyntheticsTestResultTab focused(Boolean focused) { - this.focused = focused; - return this; - } - - /** - * Whether the tab was focused during the step. - * - * @return focused - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_FOCUSED) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public Boolean getFocused() { - return focused; - } - - public void setFocused(Boolean focused) { - this.focused = focused; - } - - public SyntheticsTestResultTab title(String title) { - this.title = title; - return this; - } - - /** - * Title of the tab. - * - * @return title - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_TITLE) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getTitle() { - return title; - } - - public void setTitle(String title) { - this.title = title; - } - - public SyntheticsTestResultTab url(String url) { - this.url = url; - return this; - } - - /** - * URL loaded in the tab. - * - * @return url - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_URL) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getUrl() { - return url; - } - - public void setUrl(String url) { - this.url = url; - } - - /** - * A container for additional, undeclared properties. This is a holder for any undeclared - * properties as specified with the 'additionalProperties' keyword in the OAS document. - */ - private Map additionalProperties; - - /** - * Set the additional (undeclared) property with the specified name and value. If the property - * does not already exist, create it otherwise replace it. - * - * @param key The arbitrary key to set - * @param value The associated value - * @return SyntheticsTestResultTab - */ - @JsonAnySetter - public SyntheticsTestResultTab putAdditionalProperty(String key, Object value) { - if (this.additionalProperties == null) { - this.additionalProperties = new HashMap(); - } - this.additionalProperties.put(key, value); - return this; - } - - /** - * Return the additional (undeclared) property. - * - * @return The additional properties - */ - @JsonAnyGetter - public Map getAdditionalProperties() { - return additionalProperties; - } - - /** - * Return the additional (undeclared) property with the specified name. - * - * @param key The arbitrary key to get - * @return The specific additional property for the given key - */ - public Object getAdditionalProperty(String key) { - if (this.additionalProperties == null) { - return null; - } - return this.additionalProperties.get(key); - } - - /** Return true if this SyntheticsTestResultTab object is equal to o. */ - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - SyntheticsTestResultTab syntheticsTestResultTab = (SyntheticsTestResultTab) o; - return Objects.equals(this.focused, syntheticsTestResultTab.focused) - && Objects.equals(this.title, syntheticsTestResultTab.title) - && Objects.equals(this.url, syntheticsTestResultTab.url) - && Objects.equals(this.additionalProperties, syntheticsTestResultTab.additionalProperties); - } - - @Override - public int hashCode() { - return Objects.hash(focused, title, url, additionalProperties); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class SyntheticsTestResultTab {\n"); - sb.append(" focused: ").append(toIndentedString(focused)).append("\n"); - sb.append(" title: ").append(toIndentedString(title)).append("\n"); - sb.append(" url: ").append(toIndentedString(url)).append("\n"); - sb.append(" additionalProperties: ") - .append(toIndentedString(additionalProperties)) - .append("\n"); - sb.append('}'); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } -} diff --git a/src/main/java/com/datadog/api/client/v2/model/SyntheticsTestResultTracerouteHop.java b/src/main/java/com/datadog/api/client/v2/model/SyntheticsTestResultTracerouteHop.java deleted file mode 100644 index 94ae56c90a3..00000000000 --- a/src/main/java/com/datadog/api/client/v2/model/SyntheticsTestResultTracerouteHop.java +++ /dev/null @@ -1,355 +0,0 @@ -/* - * 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. - */ - -package com.datadog.api.client.v2.model; - -import com.fasterxml.jackson.annotation.JsonAnyGetter; -import com.fasterxml.jackson.annotation.JsonAnySetter; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import java.util.ArrayList; -import java.util.HashMap; -import java.util.List; -import java.util.Map; -import java.util.Objects; - -/** A network probe result, used for traceroute hops and ping summaries. */ -@JsonPropertyOrder({ - SyntheticsTestResultTracerouteHop.JSON_PROPERTY_HOST, - SyntheticsTestResultTracerouteHop.JSON_PROPERTY_LATENCY, - SyntheticsTestResultTracerouteHop.JSON_PROPERTY_PACKET_LOSS_PERCENTAGE, - SyntheticsTestResultTracerouteHop.JSON_PROPERTY_PACKET_SIZE, - SyntheticsTestResultTracerouteHop.JSON_PROPERTY_PACKETS_RECEIVED, - SyntheticsTestResultTracerouteHop.JSON_PROPERTY_PACKETS_SENT, - SyntheticsTestResultTracerouteHop.JSON_PROPERTY_RESOLVED_IP, - SyntheticsTestResultTracerouteHop.JSON_PROPERTY_ROUTERS -}) -@jakarta.annotation.Generated( - value = "https://github.com/DataDog/datadog-api-client-java/blob/master/.generator") -public class SyntheticsTestResultTracerouteHop { - @JsonIgnore public boolean unparsed = false; - public static final String JSON_PROPERTY_HOST = "host"; - private String host; - - public static final String JSON_PROPERTY_LATENCY = "latency"; - private SyntheticsTestResultNetworkLatency latency; - - public static final String JSON_PROPERTY_PACKET_LOSS_PERCENTAGE = "packet_loss_percentage"; - private Double packetLossPercentage; - - public static final String JSON_PROPERTY_PACKET_SIZE = "packet_size"; - private Long packetSize; - - public static final String JSON_PROPERTY_PACKETS_RECEIVED = "packets_received"; - private Long packetsReceived; - - public static final String JSON_PROPERTY_PACKETS_SENT = "packets_sent"; - private Long packetsSent; - - public static final String JSON_PROPERTY_RESOLVED_IP = "resolved_ip"; - private String resolvedIp; - - public static final String JSON_PROPERTY_ROUTERS = "routers"; - private List routers = null; - - public SyntheticsTestResultTracerouteHop host(String host) { - this.host = host; - return this; - } - - /** - * Target hostname. - * - * @return host - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_HOST) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getHost() { - return host; - } - - public void setHost(String host) { - this.host = host; - } - - public SyntheticsTestResultTracerouteHop latency(SyntheticsTestResultNetworkLatency latency) { - this.latency = latency; - this.unparsed |= latency.unparsed; - return this; - } - - /** - * Latency statistics for a network probe. - * - * @return latency - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_LATENCY) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public SyntheticsTestResultNetworkLatency getLatency() { - return latency; - } - - public void setLatency(SyntheticsTestResultNetworkLatency latency) { - this.latency = latency; - } - - public SyntheticsTestResultTracerouteHop packetLossPercentage(Double packetLossPercentage) { - this.packetLossPercentage = packetLossPercentage; - return this; - } - - /** - * Percentage of probe packets lost. - * - * @return packetLossPercentage - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_PACKET_LOSS_PERCENTAGE) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public Double getPacketLossPercentage() { - return packetLossPercentage; - } - - public void setPacketLossPercentage(Double packetLossPercentage) { - this.packetLossPercentage = packetLossPercentage; - } - - public SyntheticsTestResultTracerouteHop packetSize(Long packetSize) { - this.packetSize = packetSize; - return this; - } - - /** - * Size of each probe packet in bytes. - * - * @return packetSize - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_PACKET_SIZE) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public Long getPacketSize() { - return packetSize; - } - - public void setPacketSize(Long packetSize) { - this.packetSize = packetSize; - } - - public SyntheticsTestResultTracerouteHop packetsReceived(Long packetsReceived) { - this.packetsReceived = packetsReceived; - return this; - } - - /** - * Number of probe packets received. - * - * @return packetsReceived - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_PACKETS_RECEIVED) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public Long getPacketsReceived() { - return packetsReceived; - } - - public void setPacketsReceived(Long packetsReceived) { - this.packetsReceived = packetsReceived; - } - - public SyntheticsTestResultTracerouteHop packetsSent(Long packetsSent) { - this.packetsSent = packetsSent; - return this; - } - - /** - * Number of probe packets sent. - * - * @return packetsSent - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_PACKETS_SENT) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public Long getPacketsSent() { - return packetsSent; - } - - public void setPacketsSent(Long packetsSent) { - this.packetsSent = packetsSent; - } - - public SyntheticsTestResultTracerouteHop resolvedIp(String resolvedIp) { - this.resolvedIp = resolvedIp; - return this; - } - - /** - * Resolved IP address for the target. - * - * @return resolvedIp - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_RESOLVED_IP) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getResolvedIp() { - return resolvedIp; - } - - public void setResolvedIp(String resolvedIp) { - this.resolvedIp = resolvedIp; - } - - public SyntheticsTestResultTracerouteHop routers(List routers) { - this.routers = routers; - for (SyntheticsTestResultRouter item : routers) { - this.unparsed |= item.unparsed; - } - return this; - } - - public SyntheticsTestResultTracerouteHop addRoutersItem(SyntheticsTestResultRouter routersItem) { - if (this.routers == null) { - this.routers = new ArrayList<>(); - } - this.routers.add(routersItem); - this.unparsed |= routersItem.unparsed; - return this; - } - - /** - * List of intermediate routers for the traceroute. - * - * @return routers - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ROUTERS) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public List getRouters() { - return routers; - } - - public void setRouters(List routers) { - this.routers = routers; - } - - /** - * A container for additional, undeclared properties. This is a holder for any undeclared - * properties as specified with the 'additionalProperties' keyword in the OAS document. - */ - private Map additionalProperties; - - /** - * Set the additional (undeclared) property with the specified name and value. If the property - * does not already exist, create it otherwise replace it. - * - * @param key The arbitrary key to set - * @param value The associated value - * @return SyntheticsTestResultTracerouteHop - */ - @JsonAnySetter - public SyntheticsTestResultTracerouteHop putAdditionalProperty(String key, Object value) { - if (this.additionalProperties == null) { - this.additionalProperties = new HashMap(); - } - this.additionalProperties.put(key, value); - return this; - } - - /** - * Return the additional (undeclared) property. - * - * @return The additional properties - */ - @JsonAnyGetter - public Map getAdditionalProperties() { - return additionalProperties; - } - - /** - * Return the additional (undeclared) property with the specified name. - * - * @param key The arbitrary key to get - * @return The specific additional property for the given key - */ - public Object getAdditionalProperty(String key) { - if (this.additionalProperties == null) { - return null; - } - return this.additionalProperties.get(key); - } - - /** Return true if this SyntheticsTestResultTracerouteHop object is equal to o. */ - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - SyntheticsTestResultTracerouteHop syntheticsTestResultTracerouteHop = - (SyntheticsTestResultTracerouteHop) o; - return Objects.equals(this.host, syntheticsTestResultTracerouteHop.host) - && Objects.equals(this.latency, syntheticsTestResultTracerouteHop.latency) - && Objects.equals( - this.packetLossPercentage, syntheticsTestResultTracerouteHop.packetLossPercentage) - && Objects.equals(this.packetSize, syntheticsTestResultTracerouteHop.packetSize) - && Objects.equals(this.packetsReceived, syntheticsTestResultTracerouteHop.packetsReceived) - && Objects.equals(this.packetsSent, syntheticsTestResultTracerouteHop.packetsSent) - && Objects.equals(this.resolvedIp, syntheticsTestResultTracerouteHop.resolvedIp) - && Objects.equals(this.routers, syntheticsTestResultTracerouteHop.routers) - && Objects.equals( - this.additionalProperties, syntheticsTestResultTracerouteHop.additionalProperties); - } - - @Override - public int hashCode() { - return Objects.hash( - host, - latency, - packetLossPercentage, - packetSize, - packetsReceived, - packetsSent, - resolvedIp, - routers, - additionalProperties); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class SyntheticsTestResultTracerouteHop {\n"); - sb.append(" host: ").append(toIndentedString(host)).append("\n"); - sb.append(" latency: ").append(toIndentedString(latency)).append("\n"); - sb.append(" packetLossPercentage: ") - .append(toIndentedString(packetLossPercentage)) - .append("\n"); - sb.append(" packetSize: ").append(toIndentedString(packetSize)).append("\n"); - sb.append(" packetsReceived: ").append(toIndentedString(packetsReceived)).append("\n"); - sb.append(" packetsSent: ").append(toIndentedString(packetsSent)).append("\n"); - sb.append(" resolvedIp: ").append(toIndentedString(resolvedIp)).append("\n"); - sb.append(" routers: ").append(toIndentedString(routers)).append("\n"); - sb.append(" additionalProperties: ") - .append(toIndentedString(additionalProperties)) - .append("\n"); - sb.append('}'); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } -} diff --git a/src/main/java/com/datadog/api/client/v2/model/SyntheticsTestResultTurn.java b/src/main/java/com/datadog/api/client/v2/model/SyntheticsTestResultTurn.java deleted file mode 100644 index 0ca691b5693..00000000000 --- a/src/main/java/com/datadog/api/client/v2/model/SyntheticsTestResultTurn.java +++ /dev/null @@ -1,322 +0,0 @@ -/* - * 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. - */ - -package com.datadog.api.client.v2.model; - -import com.fasterxml.jackson.annotation.JsonAnyGetter; -import com.fasterxml.jackson.annotation.JsonAnySetter; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import java.util.ArrayList; -import java.util.HashMap; -import java.util.List; -import java.util.Map; -import java.util.Objects; - -/** A turn in a goal-based browser test, grouping steps and reasoning. */ -@JsonPropertyOrder({ - SyntheticsTestResultTurn.JSON_PROPERTY_BUCKET_KEYS, - SyntheticsTestResultTurn.JSON_PROPERTY_NAME, - SyntheticsTestResultTurn.JSON_PROPERTY_REASONING, - SyntheticsTestResultTurn.JSON_PROPERTY_STATUS, - SyntheticsTestResultTurn.JSON_PROPERTY_STEPS, - SyntheticsTestResultTurn.JSON_PROPERTY_TURN_FINISHED_AT, - SyntheticsTestResultTurn.JSON_PROPERTY_TURN_STARTED_AT -}) -@jakarta.annotation.Generated( - value = "https://github.com/DataDog/datadog-api-client-java/blob/master/.generator") -public class SyntheticsTestResultTurn { - @JsonIgnore public boolean unparsed = false; - public static final String JSON_PROPERTY_BUCKET_KEYS = "bucket_keys"; - private SyntheticsTestResultBucketKeys bucketKeys; - - public static final String JSON_PROPERTY_NAME = "name"; - private String name; - - public static final String JSON_PROPERTY_REASONING = "reasoning"; - private String reasoning; - - public static final String JSON_PROPERTY_STATUS = "status"; - private String status; - - public static final String JSON_PROPERTY_STEPS = "steps"; - private List steps = null; - - public static final String JSON_PROPERTY_TURN_FINISHED_AT = "turn_finished_at"; - private Long turnFinishedAt; - - public static final String JSON_PROPERTY_TURN_STARTED_AT = "turn_started_at"; - private Long turnStartedAt; - - public SyntheticsTestResultTurn bucketKeys(SyntheticsTestResultBucketKeys bucketKeys) { - this.bucketKeys = bucketKeys; - this.unparsed |= bucketKeys.unparsed; - return this; - } - - /** - * Storage bucket keys for artifacts produced during a step or test. - * - * @return bucketKeys - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_BUCKET_KEYS) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public SyntheticsTestResultBucketKeys getBucketKeys() { - return bucketKeys; - } - - public void setBucketKeys(SyntheticsTestResultBucketKeys bucketKeys) { - this.bucketKeys = bucketKeys; - } - - public SyntheticsTestResultTurn name(String name) { - this.name = name; - return this; - } - - /** - * Name of the turn. - * - * @return name - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_NAME) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getName() { - return name; - } - - public void setName(String name) { - this.name = name; - } - - public SyntheticsTestResultTurn reasoning(String reasoning) { - this.reasoning = reasoning; - return this; - } - - /** - * Agent reasoning produced for this turn. - * - * @return reasoning - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_REASONING) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getReasoning() { - return reasoning; - } - - public void setReasoning(String reasoning) { - this.reasoning = reasoning; - } - - public SyntheticsTestResultTurn status(String status) { - this.status = status; - return this; - } - - /** - * Status of the turn (for example, passed, failed). - * - * @return status - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_STATUS) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getStatus() { - return status; - } - - public void setStatus(String status) { - this.status = status; - } - - public SyntheticsTestResultTurn steps(List steps) { - this.steps = steps; - for (SyntheticsTestResultTurnStep item : steps) { - this.unparsed |= item.unparsed; - } - return this; - } - - public SyntheticsTestResultTurn addStepsItem(SyntheticsTestResultTurnStep stepsItem) { - if (this.steps == null) { - this.steps = new ArrayList<>(); - } - this.steps.add(stepsItem); - this.unparsed |= stepsItem.unparsed; - return this; - } - - /** - * Steps executed during the turn. - * - * @return steps - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_STEPS) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public List getSteps() { - return steps; - } - - public void setSteps(List steps) { - this.steps = steps; - } - - public SyntheticsTestResultTurn turnFinishedAt(Long turnFinishedAt) { - this.turnFinishedAt = turnFinishedAt; - return this; - } - - /** - * Unix timestamp (ms) of when the turn finished. - * - * @return turnFinishedAt - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_TURN_FINISHED_AT) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public Long getTurnFinishedAt() { - return turnFinishedAt; - } - - public void setTurnFinishedAt(Long turnFinishedAt) { - this.turnFinishedAt = turnFinishedAt; - } - - public SyntheticsTestResultTurn turnStartedAt(Long turnStartedAt) { - this.turnStartedAt = turnStartedAt; - return this; - } - - /** - * Unix timestamp (ms) of when the turn started. - * - * @return turnStartedAt - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_TURN_STARTED_AT) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public Long getTurnStartedAt() { - return turnStartedAt; - } - - public void setTurnStartedAt(Long turnStartedAt) { - this.turnStartedAt = turnStartedAt; - } - - /** - * A container for additional, undeclared properties. This is a holder for any undeclared - * properties as specified with the 'additionalProperties' keyword in the OAS document. - */ - private Map additionalProperties; - - /** - * Set the additional (undeclared) property with the specified name and value. If the property - * does not already exist, create it otherwise replace it. - * - * @param key The arbitrary key to set - * @param value The associated value - * @return SyntheticsTestResultTurn - */ - @JsonAnySetter - public SyntheticsTestResultTurn putAdditionalProperty(String key, Object value) { - if (this.additionalProperties == null) { - this.additionalProperties = new HashMap(); - } - this.additionalProperties.put(key, value); - return this; - } - - /** - * Return the additional (undeclared) property. - * - * @return The additional properties - */ - @JsonAnyGetter - public Map getAdditionalProperties() { - return additionalProperties; - } - - /** - * Return the additional (undeclared) property with the specified name. - * - * @param key The arbitrary key to get - * @return The specific additional property for the given key - */ - public Object getAdditionalProperty(String key) { - if (this.additionalProperties == null) { - return null; - } - return this.additionalProperties.get(key); - } - - /** Return true if this SyntheticsTestResultTurn object is equal to o. */ - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - SyntheticsTestResultTurn syntheticsTestResultTurn = (SyntheticsTestResultTurn) o; - return Objects.equals(this.bucketKeys, syntheticsTestResultTurn.bucketKeys) - && Objects.equals(this.name, syntheticsTestResultTurn.name) - && Objects.equals(this.reasoning, syntheticsTestResultTurn.reasoning) - && Objects.equals(this.status, syntheticsTestResultTurn.status) - && Objects.equals(this.steps, syntheticsTestResultTurn.steps) - && Objects.equals(this.turnFinishedAt, syntheticsTestResultTurn.turnFinishedAt) - && Objects.equals(this.turnStartedAt, syntheticsTestResultTurn.turnStartedAt) - && Objects.equals(this.additionalProperties, syntheticsTestResultTurn.additionalProperties); - } - - @Override - public int hashCode() { - return Objects.hash( - bucketKeys, - name, - reasoning, - status, - steps, - turnFinishedAt, - turnStartedAt, - additionalProperties); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class SyntheticsTestResultTurn {\n"); - sb.append(" bucketKeys: ").append(toIndentedString(bucketKeys)).append("\n"); - sb.append(" name: ").append(toIndentedString(name)).append("\n"); - sb.append(" reasoning: ").append(toIndentedString(reasoning)).append("\n"); - sb.append(" status: ").append(toIndentedString(status)).append("\n"); - sb.append(" steps: ").append(toIndentedString(steps)).append("\n"); - sb.append(" turnFinishedAt: ").append(toIndentedString(turnFinishedAt)).append("\n"); - sb.append(" turnStartedAt: ").append(toIndentedString(turnStartedAt)).append("\n"); - sb.append(" additionalProperties: ") - .append(toIndentedString(additionalProperties)) - .append("\n"); - sb.append('}'); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } -} diff --git a/src/main/java/com/datadog/api/client/v2/model/SyntheticsTestResultTurnStep.java b/src/main/java/com/datadog/api/client/v2/model/SyntheticsTestResultTurnStep.java deleted file mode 100644 index 122a1682c2a..00000000000 --- a/src/main/java/com/datadog/api/client/v2/model/SyntheticsTestResultTurnStep.java +++ /dev/null @@ -1,174 +0,0 @@ -/* - * 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. - */ - -package com.datadog.api.client.v2.model; - -import com.fasterxml.jackson.annotation.JsonAnyGetter; -import com.fasterxml.jackson.annotation.JsonAnySetter; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; - -/** A step executed during a goal-based browser test turn. */ -@JsonPropertyOrder({ - SyntheticsTestResultTurnStep.JSON_PROPERTY_BUCKET_KEYS, - SyntheticsTestResultTurnStep.JSON_PROPERTY_CONFIG -}) -@jakarta.annotation.Generated( - value = "https://github.com/DataDog/datadog-api-client-java/blob/master/.generator") -public class SyntheticsTestResultTurnStep { - @JsonIgnore public boolean unparsed = false; - public static final String JSON_PROPERTY_BUCKET_KEYS = "bucket_keys"; - private SyntheticsTestResultBucketKeys bucketKeys; - - public static final String JSON_PROPERTY_CONFIG = "config"; - private Map config = null; - - public SyntheticsTestResultTurnStep bucketKeys(SyntheticsTestResultBucketKeys bucketKeys) { - this.bucketKeys = bucketKeys; - this.unparsed |= bucketKeys.unparsed; - return this; - } - - /** - * Storage bucket keys for artifacts produced during a step or test. - * - * @return bucketKeys - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_BUCKET_KEYS) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public SyntheticsTestResultBucketKeys getBucketKeys() { - return bucketKeys; - } - - public void setBucketKeys(SyntheticsTestResultBucketKeys bucketKeys) { - this.bucketKeys = bucketKeys; - } - - public SyntheticsTestResultTurnStep config(Map config) { - this.config = config; - return this; - } - - public SyntheticsTestResultTurnStep putConfigItem(String key, Object configItem) { - if (this.config == null) { - this.config = new HashMap<>(); - } - this.config.put(key, configItem); - return this; - } - - /** - * Browser step configuration for this turn step. - * - * @return config - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_CONFIG) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public Map getConfig() { - return config; - } - - public void setConfig(Map config) { - this.config = config; - } - - /** - * A container for additional, undeclared properties. This is a holder for any undeclared - * properties as specified with the 'additionalProperties' keyword in the OAS document. - */ - private Map additionalProperties; - - /** - * Set the additional (undeclared) property with the specified name and value. If the property - * does not already exist, create it otherwise replace it. - * - * @param key The arbitrary key to set - * @param value The associated value - * @return SyntheticsTestResultTurnStep - */ - @JsonAnySetter - public SyntheticsTestResultTurnStep putAdditionalProperty(String key, Object value) { - if (this.additionalProperties == null) { - this.additionalProperties = new HashMap(); - } - this.additionalProperties.put(key, value); - return this; - } - - /** - * Return the additional (undeclared) property. - * - * @return The additional properties - */ - @JsonAnyGetter - public Map getAdditionalProperties() { - return additionalProperties; - } - - /** - * Return the additional (undeclared) property with the specified name. - * - * @param key The arbitrary key to get - * @return The specific additional property for the given key - */ - public Object getAdditionalProperty(String key) { - if (this.additionalProperties == null) { - return null; - } - return this.additionalProperties.get(key); - } - - /** Return true if this SyntheticsTestResultTurnStep object is equal to o. */ - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - SyntheticsTestResultTurnStep syntheticsTestResultTurnStep = (SyntheticsTestResultTurnStep) o; - return Objects.equals(this.bucketKeys, syntheticsTestResultTurnStep.bucketKeys) - && Objects.equals(this.config, syntheticsTestResultTurnStep.config) - && Objects.equals( - this.additionalProperties, syntheticsTestResultTurnStep.additionalProperties); - } - - @Override - public int hashCode() { - return Objects.hash(bucketKeys, config, additionalProperties); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class SyntheticsTestResultTurnStep {\n"); - sb.append(" bucketKeys: ").append(toIndentedString(bucketKeys)).append("\n"); - sb.append(" config: ").append(toIndentedString(config)).append("\n"); - sb.append(" additionalProperties: ") - .append(toIndentedString(additionalProperties)) - .append("\n"); - sb.append('}'); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } -} diff --git a/src/main/java/com/datadog/api/client/v2/model/SyntheticsTestResultType.java b/src/main/java/com/datadog/api/client/v2/model/SyntheticsTestResultType.java deleted file mode 100644 index b97fa609532..00000000000 --- a/src/main/java/com/datadog/api/client/v2/model/SyntheticsTestResultType.java +++ /dev/null @@ -1,55 +0,0 @@ -/* - * 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. - */ - -package com.datadog.api.client.v2.model; - -import com.datadog.api.client.ModelEnum; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.core.JsonGenerator; -import com.fasterxml.jackson.core.JsonProcessingException; -import com.fasterxml.jackson.databind.SerializerProvider; -import com.fasterxml.jackson.databind.annotation.JsonSerialize; -import com.fasterxml.jackson.databind.ser.std.StdSerializer; -import java.io.IOException; -import java.util.Arrays; -import java.util.HashSet; -import java.util.Set; - -/** Type of the Synthetic test result resource, result. */ -@JsonSerialize(using = SyntheticsTestResultType.SyntheticsTestResultTypeSerializer.class) -public class SyntheticsTestResultType extends ModelEnum { - - private static final Set allowedValues = new HashSet(Arrays.asList("result")); - - public static final SyntheticsTestResultType RESULT = new SyntheticsTestResultType("result"); - - SyntheticsTestResultType(String value) { - super(value, allowedValues); - } - - public static class SyntheticsTestResultTypeSerializer - extends StdSerializer { - public SyntheticsTestResultTypeSerializer(Class t) { - super(t); - } - - public SyntheticsTestResultTypeSerializer() { - this(null); - } - - @Override - public void serialize( - SyntheticsTestResultType value, JsonGenerator jgen, SerializerProvider provider) - throws IOException, JsonProcessingException { - jgen.writeObject(value.value); - } - } - - @JsonCreator - public static SyntheticsTestResultType fromValue(String value) { - return new SyntheticsTestResultType(value); - } -} diff --git a/src/main/java/com/datadog/api/client/v2/model/SyntheticsTestResultVariable.java b/src/main/java/com/datadog/api/client/v2/model/SyntheticsTestResultVariable.java deleted file mode 100644 index 1eb6e6496ca..00000000000 --- a/src/main/java/com/datadog/api/client/v2/model/SyntheticsTestResultVariable.java +++ /dev/null @@ -1,392 +0,0 @@ -/* - * 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. - */ - -package com.datadog.api.client.v2.model; - -import com.fasterxml.jackson.annotation.JsonAnyGetter; -import com.fasterxml.jackson.annotation.JsonAnySetter; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; - -/** A variable used or extracted during a test. */ -@JsonPropertyOrder({ - SyntheticsTestResultVariable.JSON_PROPERTY_ERR, - SyntheticsTestResultVariable.JSON_PROPERTY_ERROR_MESSAGE, - SyntheticsTestResultVariable.JSON_PROPERTY_EXAMPLE, - SyntheticsTestResultVariable.JSON_PROPERTY_ID, - SyntheticsTestResultVariable.JSON_PROPERTY_NAME, - SyntheticsTestResultVariable.JSON_PROPERTY_PATTERN, - SyntheticsTestResultVariable.JSON_PROPERTY_SECURE, - SyntheticsTestResultVariable.JSON_PROPERTY_TYPE, - SyntheticsTestResultVariable.JSON_PROPERTY_VAL, - SyntheticsTestResultVariable.JSON_PROPERTY_VALUE -}) -@jakarta.annotation.Generated( - value = "https://github.com/DataDog/datadog-api-client-java/blob/master/.generator") -public class SyntheticsTestResultVariable { - @JsonIgnore public boolean unparsed = false; - public static final String JSON_PROPERTY_ERR = "err"; - private String err; - - public static final String JSON_PROPERTY_ERROR_MESSAGE = "error_message"; - private String errorMessage; - - public static final String JSON_PROPERTY_EXAMPLE = "example"; - private String example; - - public static final String JSON_PROPERTY_ID = "id"; - private String id; - - public static final String JSON_PROPERTY_NAME = "name"; - private String name; - - public static final String JSON_PROPERTY_PATTERN = "pattern"; - private String pattern; - - public static final String JSON_PROPERTY_SECURE = "secure"; - private Boolean secure; - - public static final String JSON_PROPERTY_TYPE = "type"; - private String type; - - public static final String JSON_PROPERTY_VAL = "val"; - private String val; - - public static final String JSON_PROPERTY_VALUE = "value"; - private String value; - - public SyntheticsTestResultVariable err(String err) { - this.err = err; - return this; - } - - /** - * Error encountered when evaluating the variable. - * - * @return err - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ERR) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getErr() { - return err; - } - - public void setErr(String err) { - this.err = err; - } - - public SyntheticsTestResultVariable errorMessage(String errorMessage) { - this.errorMessage = errorMessage; - return this; - } - - /** - * Human-readable error message for variable evaluation. - * - * @return errorMessage - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ERROR_MESSAGE) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getErrorMessage() { - return errorMessage; - } - - public void setErrorMessage(String errorMessage) { - this.errorMessage = errorMessage; - } - - public SyntheticsTestResultVariable example(String example) { - this.example = example; - return this; - } - - /** - * Example value for the variable. - * - * @return example - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_EXAMPLE) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getExample() { - return example; - } - - public void setExample(String example) { - this.example = example; - } - - public SyntheticsTestResultVariable id(String id) { - this.id = id; - return this; - } - - /** - * Variable identifier. - * - * @return id - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ID) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getId() { - return id; - } - - public void setId(String id) { - this.id = id; - } - - public SyntheticsTestResultVariable name(String name) { - this.name = name; - return this; - } - - /** - * Variable name. - * - * @return name - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_NAME) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getName() { - return name; - } - - public void setName(String name) { - this.name = name; - } - - public SyntheticsTestResultVariable pattern(String pattern) { - this.pattern = pattern; - return this; - } - - /** - * Pattern used to extract the variable. - * - * @return pattern - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_PATTERN) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getPattern() { - return pattern; - } - - public void setPattern(String pattern) { - this.pattern = pattern; - } - - public SyntheticsTestResultVariable secure(Boolean secure) { - this.secure = secure; - return this; - } - - /** - * Whether the variable holds a secure value. - * - * @return secure - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_SECURE) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public Boolean getSecure() { - return secure; - } - - public void setSecure(Boolean secure) { - this.secure = secure; - } - - public SyntheticsTestResultVariable type(String type) { - this.type = type; - return this; - } - - /** - * Variable type. - * - * @return type - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_TYPE) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getType() { - return type; - } - - public void setType(String type) { - this.type = type; - } - - public SyntheticsTestResultVariable val(String val) { - this.val = val; - return this; - } - - /** - * Evaluated value of the variable. - * - * @return val - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_VAL) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getVal() { - return val; - } - - public void setVal(String val) { - this.val = val; - } - - public SyntheticsTestResultVariable value(String value) { - this.value = value; - return this; - } - - /** - * Current value of the variable. - * - * @return value - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_VALUE) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getValue() { - return value; - } - - public void setValue(String value) { - this.value = value; - } - - /** - * A container for additional, undeclared properties. This is a holder for any undeclared - * properties as specified with the 'additionalProperties' keyword in the OAS document. - */ - private Map additionalProperties; - - /** - * Set the additional (undeclared) property with the specified name and value. If the property - * does not already exist, create it otherwise replace it. - * - * @param key The arbitrary key to set - * @param value The associated value - * @return SyntheticsTestResultVariable - */ - @JsonAnySetter - public SyntheticsTestResultVariable putAdditionalProperty(String key, Object value) { - if (this.additionalProperties == null) { - this.additionalProperties = new HashMap(); - } - this.additionalProperties.put(key, value); - return this; - } - - /** - * Return the additional (undeclared) property. - * - * @return The additional properties - */ - @JsonAnyGetter - public Map getAdditionalProperties() { - return additionalProperties; - } - - /** - * Return the additional (undeclared) property with the specified name. - * - * @param key The arbitrary key to get - * @return The specific additional property for the given key - */ - public Object getAdditionalProperty(String key) { - if (this.additionalProperties == null) { - return null; - } - return this.additionalProperties.get(key); - } - - /** Return true if this SyntheticsTestResultVariable object is equal to o. */ - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - SyntheticsTestResultVariable syntheticsTestResultVariable = (SyntheticsTestResultVariable) o; - return Objects.equals(this.err, syntheticsTestResultVariable.err) - && Objects.equals(this.errorMessage, syntheticsTestResultVariable.errorMessage) - && Objects.equals(this.example, syntheticsTestResultVariable.example) - && Objects.equals(this.id, syntheticsTestResultVariable.id) - && Objects.equals(this.name, syntheticsTestResultVariable.name) - && Objects.equals(this.pattern, syntheticsTestResultVariable.pattern) - && Objects.equals(this.secure, syntheticsTestResultVariable.secure) - && Objects.equals(this.type, syntheticsTestResultVariable.type) - && Objects.equals(this.val, syntheticsTestResultVariable.val) - && Objects.equals(this.value, syntheticsTestResultVariable.value) - && Objects.equals( - this.additionalProperties, syntheticsTestResultVariable.additionalProperties); - } - - @Override - public int hashCode() { - return Objects.hash( - err, - errorMessage, - example, - id, - name, - pattern, - secure, - type, - val, - value, - additionalProperties); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class SyntheticsTestResultVariable {\n"); - sb.append(" err: ").append(toIndentedString(err)).append("\n"); - sb.append(" errorMessage: ").append(toIndentedString(errorMessage)).append("\n"); - sb.append(" example: ").append(toIndentedString(example)).append("\n"); - sb.append(" id: ").append(toIndentedString(id)).append("\n"); - sb.append(" name: ").append(toIndentedString(name)).append("\n"); - sb.append(" pattern: ").append(toIndentedString(pattern)).append("\n"); - sb.append(" secure: ").append(toIndentedString(secure)).append("\n"); - sb.append(" type: ").append(toIndentedString(type)).append("\n"); - sb.append(" val: ").append(toIndentedString(val)).append("\n"); - sb.append(" value: ").append(toIndentedString(value)).append("\n"); - sb.append(" additionalProperties: ") - .append(toIndentedString(additionalProperties)) - .append("\n"); - sb.append('}'); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } -} diff --git a/src/main/java/com/datadog/api/client/v2/model/SyntheticsTestResultVariables.java b/src/main/java/com/datadog/api/client/v2/model/SyntheticsTestResultVariables.java deleted file mode 100644 index dc5934559e9..00000000000 --- a/src/main/java/com/datadog/api/client/v2/model/SyntheticsTestResultVariables.java +++ /dev/null @@ -1,192 +0,0 @@ -/* - * 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. - */ - -package com.datadog.api.client.v2.model; - -import com.fasterxml.jackson.annotation.JsonAnyGetter; -import com.fasterxml.jackson.annotation.JsonAnySetter; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import java.util.ArrayList; -import java.util.HashMap; -import java.util.List; -import java.util.Map; -import java.util.Objects; - -/** Variables captured during a test step. */ -@JsonPropertyOrder({ - SyntheticsTestResultVariables.JSON_PROPERTY_CONFIG, - SyntheticsTestResultVariables.JSON_PROPERTY_EXTRACTED -}) -@jakarta.annotation.Generated( - value = "https://github.com/DataDog/datadog-api-client-java/blob/master/.generator") -public class SyntheticsTestResultVariables { - @JsonIgnore public boolean unparsed = false; - public static final String JSON_PROPERTY_CONFIG = "config"; - private List config = null; - - public static final String JSON_PROPERTY_EXTRACTED = "extracted"; - private List extracted = null; - - public SyntheticsTestResultVariables config(List config) { - this.config = config; - for (SyntheticsTestResultVariable item : config) { - this.unparsed |= item.unparsed; - } - return this; - } - - public SyntheticsTestResultVariables addConfigItem(SyntheticsTestResultVariable configItem) { - if (this.config == null) { - this.config = new ArrayList<>(); - } - this.config.add(configItem); - this.unparsed |= configItem.unparsed; - return this; - } - - /** - * Variables defined in the test configuration. - * - * @return config - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_CONFIG) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public List getConfig() { - return config; - } - - public void setConfig(List config) { - this.config = config; - } - - public SyntheticsTestResultVariables extracted(List extracted) { - this.extracted = extracted; - for (SyntheticsTestResultVariable item : extracted) { - this.unparsed |= item.unparsed; - } - return this; - } - - public SyntheticsTestResultVariables addExtractedItem( - SyntheticsTestResultVariable extractedItem) { - if (this.extracted == null) { - this.extracted = new ArrayList<>(); - } - this.extracted.add(extractedItem); - this.unparsed |= extractedItem.unparsed; - return this; - } - - /** - * Variables extracted during the test execution. - * - * @return extracted - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_EXTRACTED) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public List getExtracted() { - return extracted; - } - - public void setExtracted(List extracted) { - this.extracted = extracted; - } - - /** - * A container for additional, undeclared properties. This is a holder for any undeclared - * properties as specified with the 'additionalProperties' keyword in the OAS document. - */ - private Map additionalProperties; - - /** - * Set the additional (undeclared) property with the specified name and value. If the property - * does not already exist, create it otherwise replace it. - * - * @param key The arbitrary key to set - * @param value The associated value - * @return SyntheticsTestResultVariables - */ - @JsonAnySetter - public SyntheticsTestResultVariables putAdditionalProperty(String key, Object value) { - if (this.additionalProperties == null) { - this.additionalProperties = new HashMap(); - } - this.additionalProperties.put(key, value); - return this; - } - - /** - * Return the additional (undeclared) property. - * - * @return The additional properties - */ - @JsonAnyGetter - public Map getAdditionalProperties() { - return additionalProperties; - } - - /** - * Return the additional (undeclared) property with the specified name. - * - * @param key The arbitrary key to get - * @return The specific additional property for the given key - */ - public Object getAdditionalProperty(String key) { - if (this.additionalProperties == null) { - return null; - } - return this.additionalProperties.get(key); - } - - /** Return true if this SyntheticsTestResultVariables object is equal to o. */ - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - SyntheticsTestResultVariables syntheticsTestResultVariables = (SyntheticsTestResultVariables) o; - return Objects.equals(this.config, syntheticsTestResultVariables.config) - && Objects.equals(this.extracted, syntheticsTestResultVariables.extracted) - && Objects.equals( - this.additionalProperties, syntheticsTestResultVariables.additionalProperties); - } - - @Override - public int hashCode() { - return Objects.hash(config, extracted, additionalProperties); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class SyntheticsTestResultVariables {\n"); - sb.append(" config: ").append(toIndentedString(config)).append("\n"); - sb.append(" extracted: ").append(toIndentedString(extracted)).append("\n"); - sb.append(" additionalProperties: ") - .append(toIndentedString(additionalProperties)) - .append("\n"); - sb.append('}'); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } -} diff --git a/src/main/java/com/datadog/api/client/v2/model/SyntheticsTestResultVitalsMetrics.java b/src/main/java/com/datadog/api/client/v2/model/SyntheticsTestResultVitalsMetrics.java deleted file mode 100644 index d978f58ab38..00000000000 --- a/src/main/java/com/datadog/api/client/v2/model/SyntheticsTestResultVitalsMetrics.java +++ /dev/null @@ -1,274 +0,0 @@ -/* - * 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. - */ - -package com.datadog.api.client.v2.model; - -import com.fasterxml.jackson.annotation.JsonAnyGetter; -import com.fasterxml.jackson.annotation.JsonAnySetter; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; - -/** Web vitals metrics captured during a browser test step. */ -@JsonPropertyOrder({ - SyntheticsTestResultVitalsMetrics.JSON_PROPERTY_CLS, - SyntheticsTestResultVitalsMetrics.JSON_PROPERTY_FCP, - SyntheticsTestResultVitalsMetrics.JSON_PROPERTY_INP, - SyntheticsTestResultVitalsMetrics.JSON_PROPERTY_LCP, - SyntheticsTestResultVitalsMetrics.JSON_PROPERTY_TTFB, - SyntheticsTestResultVitalsMetrics.JSON_PROPERTY_URL -}) -@jakarta.annotation.Generated( - value = "https://github.com/DataDog/datadog-api-client-java/blob/master/.generator") -public class SyntheticsTestResultVitalsMetrics { - @JsonIgnore public boolean unparsed = false; - public static final String JSON_PROPERTY_CLS = "cls"; - private Double cls; - - public static final String JSON_PROPERTY_FCP = "fcp"; - private Double fcp; - - public static final String JSON_PROPERTY_INP = "inp"; - private Double inp; - - public static final String JSON_PROPERTY_LCP = "lcp"; - private Double lcp; - - public static final String JSON_PROPERTY_TTFB = "ttfb"; - private Double ttfb; - - public static final String JSON_PROPERTY_URL = "url"; - private String url; - - public SyntheticsTestResultVitalsMetrics cls(Double cls) { - this.cls = cls; - return this; - } - - /** - * Cumulative Layout Shift score. - * - * @return cls - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_CLS) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public Double getCls() { - return cls; - } - - public void setCls(Double cls) { - this.cls = cls; - } - - public SyntheticsTestResultVitalsMetrics fcp(Double fcp) { - this.fcp = fcp; - return this; - } - - /** - * First Contentful Paint in milliseconds. - * - * @return fcp - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_FCP) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public Double getFcp() { - return fcp; - } - - public void setFcp(Double fcp) { - this.fcp = fcp; - } - - public SyntheticsTestResultVitalsMetrics inp(Double inp) { - this.inp = inp; - return this; - } - - /** - * Interaction to Next Paint in milliseconds. - * - * @return inp - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_INP) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public Double getInp() { - return inp; - } - - public void setInp(Double inp) { - this.inp = inp; - } - - public SyntheticsTestResultVitalsMetrics lcp(Double lcp) { - this.lcp = lcp; - return this; - } - - /** - * Largest Contentful Paint in milliseconds. - * - * @return lcp - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_LCP) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public Double getLcp() { - return lcp; - } - - public void setLcp(Double lcp) { - this.lcp = lcp; - } - - public SyntheticsTestResultVitalsMetrics ttfb(Double ttfb) { - this.ttfb = ttfb; - return this; - } - - /** - * Time To First Byte in milliseconds. - * - * @return ttfb - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_TTFB) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public Double getTtfb() { - return ttfb; - } - - public void setTtfb(Double ttfb) { - this.ttfb = ttfb; - } - - public SyntheticsTestResultVitalsMetrics url(String url) { - this.url = url; - return this; - } - - /** - * URL that produced the metrics. - * - * @return url - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_URL) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getUrl() { - return url; - } - - public void setUrl(String url) { - this.url = url; - } - - /** - * A container for additional, undeclared properties. This is a holder for any undeclared - * properties as specified with the 'additionalProperties' keyword in the OAS document. - */ - private Map additionalProperties; - - /** - * Set the additional (undeclared) property with the specified name and value. If the property - * does not already exist, create it otherwise replace it. - * - * @param key The arbitrary key to set - * @param value The associated value - * @return SyntheticsTestResultVitalsMetrics - */ - @JsonAnySetter - public SyntheticsTestResultVitalsMetrics putAdditionalProperty(String key, Object value) { - if (this.additionalProperties == null) { - this.additionalProperties = new HashMap(); - } - this.additionalProperties.put(key, value); - return this; - } - - /** - * Return the additional (undeclared) property. - * - * @return The additional properties - */ - @JsonAnyGetter - public Map getAdditionalProperties() { - return additionalProperties; - } - - /** - * Return the additional (undeclared) property with the specified name. - * - * @param key The arbitrary key to get - * @return The specific additional property for the given key - */ - public Object getAdditionalProperty(String key) { - if (this.additionalProperties == null) { - return null; - } - return this.additionalProperties.get(key); - } - - /** Return true if this SyntheticsTestResultVitalsMetrics object is equal to o. */ - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - SyntheticsTestResultVitalsMetrics syntheticsTestResultVitalsMetrics = - (SyntheticsTestResultVitalsMetrics) o; - return Objects.equals(this.cls, syntheticsTestResultVitalsMetrics.cls) - && Objects.equals(this.fcp, syntheticsTestResultVitalsMetrics.fcp) - && Objects.equals(this.inp, syntheticsTestResultVitalsMetrics.inp) - && Objects.equals(this.lcp, syntheticsTestResultVitalsMetrics.lcp) - && Objects.equals(this.ttfb, syntheticsTestResultVitalsMetrics.ttfb) - && Objects.equals(this.url, syntheticsTestResultVitalsMetrics.url) - && Objects.equals( - this.additionalProperties, syntheticsTestResultVitalsMetrics.additionalProperties); - } - - @Override - public int hashCode() { - return Objects.hash(cls, fcp, inp, lcp, ttfb, url, additionalProperties); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class SyntheticsTestResultVitalsMetrics {\n"); - sb.append(" cls: ").append(toIndentedString(cls)).append("\n"); - sb.append(" fcp: ").append(toIndentedString(fcp)).append("\n"); - sb.append(" inp: ").append(toIndentedString(inp)).append("\n"); - sb.append(" lcp: ").append(toIndentedString(lcp)).append("\n"); - sb.append(" ttfb: ").append(toIndentedString(ttfb)).append("\n"); - sb.append(" url: ").append(toIndentedString(url)).append("\n"); - sb.append(" additionalProperties: ") - .append(toIndentedString(additionalProperties)) - .append("\n"); - sb.append('}'); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } -} diff --git a/src/main/java/com/datadog/api/client/v2/model/SyntheticsTestResultWarning.java b/src/main/java/com/datadog/api/client/v2/model/SyntheticsTestResultWarning.java deleted file mode 100644 index e2f78532a87..00000000000 --- a/src/main/java/com/datadog/api/client/v2/model/SyntheticsTestResultWarning.java +++ /dev/null @@ -1,207 +0,0 @@ -/* - * 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. - */ - -package com.datadog.api.client.v2.model; - -import com.fasterxml.jackson.annotation.JsonAnyGetter; -import com.fasterxml.jackson.annotation.JsonAnySetter; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import java.util.ArrayList; -import java.util.HashMap; -import java.util.List; -import java.util.Map; -import java.util.Objects; - -/** A warning captured during a browser test step. */ -@JsonPropertyOrder({ - SyntheticsTestResultWarning.JSON_PROPERTY_ELEMENT_BOUNDS, - SyntheticsTestResultWarning.JSON_PROPERTY_MESSAGE, - SyntheticsTestResultWarning.JSON_PROPERTY_TYPE -}) -@jakarta.annotation.Generated( - value = "https://github.com/DataDog/datadog-api-client-java/blob/master/.generator") -public class SyntheticsTestResultWarning { - @JsonIgnore public boolean unparsed = false; - public static final String JSON_PROPERTY_ELEMENT_BOUNDS = "element_bounds"; - private List elementBounds = null; - - public static final String JSON_PROPERTY_MESSAGE = "message"; - private String message; - - public static final String JSON_PROPERTY_TYPE = "type"; - private String type; - - public SyntheticsTestResultWarning elementBounds(List elementBounds) { - this.elementBounds = elementBounds; - for (SyntheticsTestResultBounds item : elementBounds) { - this.unparsed |= item.unparsed; - } - return this; - } - - public SyntheticsTestResultWarning addElementBoundsItem( - SyntheticsTestResultBounds elementBoundsItem) { - if (this.elementBounds == null) { - this.elementBounds = new ArrayList<>(); - } - this.elementBounds.add(elementBoundsItem); - this.unparsed |= elementBoundsItem.unparsed; - return this; - } - - /** - * Bounds of elements related to the warning. - * - * @return elementBounds - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_ELEMENT_BOUNDS) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public List getElementBounds() { - return elementBounds; - } - - public void setElementBounds(List elementBounds) { - this.elementBounds = elementBounds; - } - - public SyntheticsTestResultWarning message(String message) { - this.message = message; - return this; - } - - /** - * Warning message. - * - * @return message - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_MESSAGE) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getMessage() { - return message; - } - - public void setMessage(String message) { - this.message = message; - } - - public SyntheticsTestResultWarning type(String type) { - this.type = type; - return this; - } - - /** - * Type of the warning. - * - * @return type - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_TYPE) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getType() { - return type; - } - - public void setType(String type) { - this.type = type; - } - - /** - * A container for additional, undeclared properties. This is a holder for any undeclared - * properties as specified with the 'additionalProperties' keyword in the OAS document. - */ - private Map additionalProperties; - - /** - * Set the additional (undeclared) property with the specified name and value. If the property - * does not already exist, create it otherwise replace it. - * - * @param key The arbitrary key to set - * @param value The associated value - * @return SyntheticsTestResultWarning - */ - @JsonAnySetter - public SyntheticsTestResultWarning putAdditionalProperty(String key, Object value) { - if (this.additionalProperties == null) { - this.additionalProperties = new HashMap(); - } - this.additionalProperties.put(key, value); - return this; - } - - /** - * Return the additional (undeclared) property. - * - * @return The additional properties - */ - @JsonAnyGetter - public Map getAdditionalProperties() { - return additionalProperties; - } - - /** - * Return the additional (undeclared) property with the specified name. - * - * @param key The arbitrary key to get - * @return The specific additional property for the given key - */ - public Object getAdditionalProperty(String key) { - if (this.additionalProperties == null) { - return null; - } - return this.additionalProperties.get(key); - } - - /** Return true if this SyntheticsTestResultWarning object is equal to o. */ - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - SyntheticsTestResultWarning syntheticsTestResultWarning = (SyntheticsTestResultWarning) o; - return Objects.equals(this.elementBounds, syntheticsTestResultWarning.elementBounds) - && Objects.equals(this.message, syntheticsTestResultWarning.message) - && Objects.equals(this.type, syntheticsTestResultWarning.type) - && Objects.equals( - this.additionalProperties, syntheticsTestResultWarning.additionalProperties); - } - - @Override - public int hashCode() { - return Objects.hash(elementBounds, message, type, additionalProperties); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class SyntheticsTestResultWarning {\n"); - sb.append(" elementBounds: ").append(toIndentedString(elementBounds)).append("\n"); - sb.append(" message: ").append(toIndentedString(message)).append("\n"); - sb.append(" type: ").append(toIndentedString(type)).append("\n"); - sb.append(" additionalProperties: ") - .append(toIndentedString(additionalProperties)) - .append("\n"); - sb.append('}'); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } -} diff --git a/src/main/java/com/datadog/api/client/v2/model/SyntheticsTestResultWebSocketClose.java b/src/main/java/com/datadog/api/client/v2/model/SyntheticsTestResultWebSocketClose.java deleted file mode 100644 index 878369c2571..00000000000 --- a/src/main/java/com/datadog/api/client/v2/model/SyntheticsTestResultWebSocketClose.java +++ /dev/null @@ -1,166 +0,0 @@ -/* - * 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. - */ - -package com.datadog.api.client.v2.model; - -import com.fasterxml.jackson.annotation.JsonAnyGetter; -import com.fasterxml.jackson.annotation.JsonAnySetter; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; - -/** WebSocket close frame information for WebSocket test responses. */ -@JsonPropertyOrder({ - SyntheticsTestResultWebSocketClose.JSON_PROPERTY_REASON, - SyntheticsTestResultWebSocketClose.JSON_PROPERTY_STATUS_CODE -}) -@jakarta.annotation.Generated( - value = "https://github.com/DataDog/datadog-api-client-java/blob/master/.generator") -public class SyntheticsTestResultWebSocketClose { - @JsonIgnore public boolean unparsed = false; - public static final String JSON_PROPERTY_REASON = "reason"; - private String reason; - - public static final String JSON_PROPERTY_STATUS_CODE = "status_code"; - private Long statusCode; - - public SyntheticsTestResultWebSocketClose reason(String reason) { - this.reason = reason; - return this; - } - - /** - * Reason string received in the close frame. - * - * @return reason - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_REASON) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getReason() { - return reason; - } - - public void setReason(String reason) { - this.reason = reason; - } - - public SyntheticsTestResultWebSocketClose statusCode(Long statusCode) { - this.statusCode = statusCode; - return this; - } - - /** - * Status code received in the close frame. - * - * @return statusCode - */ - @jakarta.annotation.Nullable - @JsonProperty(JSON_PROPERTY_STATUS_CODE) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public Long getStatusCode() { - return statusCode; - } - - public void setStatusCode(Long statusCode) { - this.statusCode = statusCode; - } - - /** - * A container for additional, undeclared properties. This is a holder for any undeclared - * properties as specified with the 'additionalProperties' keyword in the OAS document. - */ - private Map additionalProperties; - - /** - * Set the additional (undeclared) property with the specified name and value. If the property - * does not already exist, create it otherwise replace it. - * - * @param key The arbitrary key to set - * @param value The associated value - * @return SyntheticsTestResultWebSocketClose - */ - @JsonAnySetter - public SyntheticsTestResultWebSocketClose putAdditionalProperty(String key, Object value) { - if (this.additionalProperties == null) { - this.additionalProperties = new HashMap(); - } - this.additionalProperties.put(key, value); - return this; - } - - /** - * Return the additional (undeclared) property. - * - * @return The additional properties - */ - @JsonAnyGetter - public Map getAdditionalProperties() { - return additionalProperties; - } - - /** - * Return the additional (undeclared) property with the specified name. - * - * @param key The arbitrary key to get - * @return The specific additional property for the given key - */ - public Object getAdditionalProperty(String key) { - if (this.additionalProperties == null) { - return null; - } - return this.additionalProperties.get(key); - } - - /** Return true if this SyntheticsTestResultWebSocketClose object is equal to o. */ - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - SyntheticsTestResultWebSocketClose syntheticsTestResultWebSocketClose = - (SyntheticsTestResultWebSocketClose) o; - return Objects.equals(this.reason, syntheticsTestResultWebSocketClose.reason) - && Objects.equals(this.statusCode, syntheticsTestResultWebSocketClose.statusCode) - && Objects.equals( - this.additionalProperties, syntheticsTestResultWebSocketClose.additionalProperties); - } - - @Override - public int hashCode() { - return Objects.hash(reason, statusCode, additionalProperties); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class SyntheticsTestResultWebSocketClose {\n"); - sb.append(" reason: ").append(toIndentedString(reason)).append("\n"); - sb.append(" statusCode: ").append(toIndentedString(statusCode)).append("\n"); - sb.append(" additionalProperties: ") - .append(toIndentedString(additionalProperties)) - .append("\n"); - sb.append('}'); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces (except the first line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } -} diff --git a/src/main/java/com/datadog/api/client/v2/model/SyntheticsTestSubType.java b/src/main/java/com/datadog/api/client/v2/model/SyntheticsTestSubType.java deleted file mode 100644 index c4792b6bbbe..00000000000 --- a/src/main/java/com/datadog/api/client/v2/model/SyntheticsTestSubType.java +++ /dev/null @@ -1,66 +0,0 @@ -/* - * 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. - */ - -package com.datadog.api.client.v2.model; - -import com.datadog.api.client.ModelEnum; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.core.JsonGenerator; -import com.fasterxml.jackson.core.JsonProcessingException; -import com.fasterxml.jackson.databind.SerializerProvider; -import com.fasterxml.jackson.databind.annotation.JsonSerialize; -import com.fasterxml.jackson.databind.ser.std.StdSerializer; -import java.io.IOException; -import java.util.Arrays; -import java.util.HashSet; -import java.util.Set; - -/** Subtype of the Synthetic test that produced this result. */ -@JsonSerialize(using = SyntheticsTestSubType.SyntheticsTestSubTypeSerializer.class) -public class SyntheticsTestSubType extends ModelEnum { - - private static final Set allowedValues = - new HashSet( - Arrays.asList( - "dns", "grpc", "http", "icmp", "mcp", "multi", "ssl", "tcp", "udp", "websocket")); - - public static final SyntheticsTestSubType DNS = new SyntheticsTestSubType("dns"); - public static final SyntheticsTestSubType GRPC = new SyntheticsTestSubType("grpc"); - public static final SyntheticsTestSubType HTTP = new SyntheticsTestSubType("http"); - public static final SyntheticsTestSubType ICMP = new SyntheticsTestSubType("icmp"); - public static final SyntheticsTestSubType MCP = new SyntheticsTestSubType("mcp"); - public static final SyntheticsTestSubType MULTI = new SyntheticsTestSubType("multi"); - public static final SyntheticsTestSubType SSL = new SyntheticsTestSubType("ssl"); - public static final SyntheticsTestSubType TCP = new SyntheticsTestSubType("tcp"); - public static final SyntheticsTestSubType UDP = new SyntheticsTestSubType("udp"); - public static final SyntheticsTestSubType WEBSOCKET = new SyntheticsTestSubType("websocket"); - - SyntheticsTestSubType(String value) { - super(value, allowedValues); - } - - public static class SyntheticsTestSubTypeSerializer extends StdSerializer { - public SyntheticsTestSubTypeSerializer(Class t) { - super(t); - } - - public SyntheticsTestSubTypeSerializer() { - this(null); - } - - @Override - public void serialize( - SyntheticsTestSubType value, JsonGenerator jgen, SerializerProvider provider) - throws IOException, JsonProcessingException { - jgen.writeObject(value.value); - } - } - - @JsonCreator - public static SyntheticsTestSubType fromValue(String value) { - return new SyntheticsTestSubType(value); - } -} diff --git a/src/main/java/com/datadog/api/client/v2/model/SyntheticsTestType.java b/src/main/java/com/datadog/api/client/v2/model/SyntheticsTestType.java deleted file mode 100644 index 3eb76e9228b..00000000000 --- a/src/main/java/com/datadog/api/client/v2/model/SyntheticsTestType.java +++ /dev/null @@ -1,57 +0,0 @@ -/* - * 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. - */ - -package com.datadog.api.client.v2.model; - -import com.datadog.api.client.ModelEnum; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.core.JsonGenerator; -import com.fasterxml.jackson.core.JsonProcessingException; -import com.fasterxml.jackson.databind.SerializerProvider; -import com.fasterxml.jackson.databind.annotation.JsonSerialize; -import com.fasterxml.jackson.databind.ser.std.StdSerializer; -import java.io.IOException; -import java.util.Arrays; -import java.util.HashSet; -import java.util.Set; - -/** Type of the Synthetic test that produced this result. */ -@JsonSerialize(using = SyntheticsTestType.SyntheticsTestTypeSerializer.class) -public class SyntheticsTestType extends ModelEnum { - - private static final Set allowedValues = - new HashSet(Arrays.asList("api", "browser", "mobile", "network")); - - public static final SyntheticsTestType API = new SyntheticsTestType("api"); - public static final SyntheticsTestType BROWSER = new SyntheticsTestType("browser"); - public static final SyntheticsTestType MOBILE = new SyntheticsTestType("mobile"); - public static final SyntheticsTestType NETWORK = new SyntheticsTestType("network"); - - SyntheticsTestType(String value) { - super(value, allowedValues); - } - - public static class SyntheticsTestTypeSerializer extends StdSerializer { - public SyntheticsTestTypeSerializer(Class t) { - super(t); - } - - public SyntheticsTestTypeSerializer() { - this(null); - } - - @Override - public void serialize(SyntheticsTestType value, JsonGenerator jgen, SerializerProvider provider) - throws IOException, JsonProcessingException { - jgen.writeObject(value.value); - } - } - - @JsonCreator - public static SyntheticsTestType fromValue(String value) { - return new SyntheticsTestType(value); - } -} diff --git a/src/test/resources/com/datadog/api/client/v2/api/synthetics.feature b/src/test/resources/com/datadog/api/client/v2/api/synthetics.feature index f847bc0e702..33f538109f9 100644 --- a/src/test/resources/com/datadog/api/client/v2/api/synthetics.feature +++ b/src/test/resources/com/datadog/api/client/v2/api/synthetics.feature @@ -151,36 +151,6 @@ Feature: Synthetics When the request is sent Then the response status is 200 OK - @generated @skip @team:DataDog/synthetics-orchestrating-managing - Scenario: Get a browser test result returns "API error response." response - Given new "GetSyntheticsBrowserTestResult" request - And request contains "public_id" parameter from "REPLACE.ME" - And request contains "result_id" parameter from "REPLACE.ME" - When the request is sent - Then the response status is 404 API error response. - - @generated @skip @team:DataDog/synthetics-orchestrating-managing - Scenario: Get a browser test result returns "OK" response - Given new "GetSyntheticsBrowserTestResult" request - And request contains "public_id" parameter from "REPLACE.ME" - And request contains "result_id" parameter from "REPLACE.ME" - When the request is sent - Then the response status is 200 OK - - @generated @skip @team:DataDog/synthetics-orchestrating-managing - Scenario: Get a browser test's latest results returns "API error response." response - Given new "ListSyntheticsBrowserTestLatestResults" request - And request contains "public_id" parameter from "REPLACE.ME" - When the request is sent - Then the response status is 404 API error response. - - @generated @skip @team:DataDog/synthetics-orchestrating-managing - Scenario: Get a browser test's latest results returns "OK" response - Given new "ListSyntheticsBrowserTestLatestResults" request - And request contains "public_id" parameter from "REPLACE.ME" - When the request is sent - Then the response status is 200 OK - @generated @skip @team:DataDog/synthetics-orchestrating-managing Scenario: Get a fast test result returns "API error response." response Given new "GetSyntheticsFastTestResult" request @@ -241,36 +211,6 @@ Feature: Synthetics When the request is sent Then the response status is 200 OK - @generated @skip @team:DataDog/synthetics-orchestrating-managing - Scenario: Get a test result returns "API error response." response - Given new "GetSyntheticsTestResult" request - And request contains "public_id" parameter from "REPLACE.ME" - And request contains "result_id" parameter from "REPLACE.ME" - When the request is sent - Then the response status is 404 API error response. - - @generated @skip @team:DataDog/synthetics-orchestrating-managing - Scenario: Get a test result returns "OK" response - Given new "GetSyntheticsTestResult" request - And request contains "public_id" parameter from "REPLACE.ME" - And request contains "result_id" parameter from "REPLACE.ME" - When the request is sent - Then the response status is 200 OK - - @generated @skip @team:DataDog/synthetics-orchestrating-managing - Scenario: Get a test's latest results returns "API error response." response - Given new "ListSyntheticsTestLatestResults" request - And request contains "public_id" parameter from "REPLACE.ME" - When the request is sent - Then the response status is 404 API error response. - - @generated @skip @team:DataDog/synthetics-orchestrating-managing - Scenario: Get a test's latest results returns "OK" response - Given new "ListSyntheticsTestLatestResults" request - And request contains "public_id" parameter from "REPLACE.ME" - When the request is sent - Then the response status is 200 OK - @generated @skip @team:DataDog/synthetics-orchestrating-managing Scenario: Get available subtests for a multistep test returns "OK" response Given new "GetApiMultistepSubtests" request @@ -382,20 +322,6 @@ Feature: Synthetics When the request is sent Then the response status is 200 OK - @generated @skip @team:DataDog/synthetics-orchestrating-managing - Scenario: Poll for test results returns "API error response." response - Given new "PollSyntheticsTestResults" request - And request contains "result_ids" parameter from "REPLACE.ME" - When the request is sent - Then the response status is 404 API error response. - - @generated @skip @team:DataDog/synthetics-orchestrating-managing - Scenario: Poll for test results returns "OK" response - Given new "PollSyntheticsTestResults" request - And request contains "result_ids" parameter from "REPLACE.ME" - When the request is sent - Then the response status is 200 OK - @team:DataDog/synthetics-orchestrating-managing Scenario: Save new value for on-demand concurrency cap returns "OK" response Given new "SetOnDemandConcurrencyCap" request diff --git a/src/test/resources/com/datadog/api/client/v2/api/undo.json b/src/test/resources/com/datadog/api/client/v2/api/undo.json index aa37a18fc34..061beded331 100644 --- a/src/test/resources/com/datadog/api/client/v2/api/undo.json +++ b/src/test/resources/com/datadog/api/client/v2/api/undo.json @@ -6447,18 +6447,6 @@ "type": "idempotent" } }, - "ListSyntheticsBrowserTestLatestResults": { - "tag": "Synthetics", - "undo": { - "type": "safe" - } - }, - "GetSyntheticsBrowserTestResult": { - "tag": "Synthetics", - "undo": { - "type": "safe" - } - }, "DeleteSyntheticsTests": { "tag": "Synthetics", "undo": { @@ -6496,12 +6484,6 @@ "type": "idempotent" } }, - "PollSyntheticsTestResults": { - "tag": "Synthetics", - "undo": { - "type": "safe" - } - }, "GetTestFileDownloadUrl": { "tag": "Synthetics", "undo": { @@ -6532,18 +6514,6 @@ "type": "safe" } }, - "ListSyntheticsTestLatestResults": { - "tag": "Synthetics", - "undo": { - "type": "safe" - } - }, - "GetSyntheticsTestResult": { - "tag": "Synthetics", - "undo": { - "type": "safe" - } - }, "ListSyntheticsTestVersions": { "tag": "Synthetics", "undo": {