Skip to content

Commit af69272

Browse files
author
ci.datadog-api-spec
committed
Regenerate client from commit 873a8485 of spec repo
1 parent f09b11b commit af69272

File tree

7 files changed

+69
-5
lines changed

7 files changed

+69
-5
lines changed

.apigentools-info

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,13 @@
44
"spec_versions": {
55
"v1": {
66
"apigentools_version": "1.6.6",
7-
"regenerated": "2025-06-26 17:56:17.204143",
8-
"spec_repo_commit": "76086f13"
7+
"regenerated": "2025-06-30 09:18:32.963395",
8+
"spec_repo_commit": "873a8485"
99
},
1010
"v2": {
1111
"apigentools_version": "1.6.6",
12-
"regenerated": "2025-06-26 17:56:17.219918",
13-
"spec_repo_commit": "76086f13"
12+
"regenerated": "2025-06-30 09:18:32.979766",
13+
"spec_repo_commit": "873a8485"
1414
}
1515
}
1616
}

.generator/schemas/v1/openapi.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16173,6 +16173,7 @@ components:
1617316173
- name
1617416174
- options
1617516175
- type
16176+
- message
1617616177
type: object
1617716178
SyntheticsMobileTestConfig:
1617816179
description: Configuration object for a Synthetic mobile test.
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
2025-06-30T08:28:52.972Z

cassettes/features/v1/synthetics/Create-a-mobile-test-returns-response.yml

Lines changed: 24 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

features/v1/synthetics.feature

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -128,6 +128,13 @@ Feature: Synthetics
128128
When the request is sent
129129
Then the response status is 200 OK
130130

131+
@team:DataDog/synthetics-ct
132+
Scenario: Create a mobile test returns "" response
133+
Given new "CreateSyntheticsMobileTest" request
134+
And body from file "synthetics_mobile_test_payload_missing_message.json"
135+
When the request is sent
136+
Then the response status is 400 - required message field is missing
137+
131138
@generated @skip @team:DataDog/synthetics-ct
132139
Scenario: Create a mobile test returns "- JSON format is wrong" response
133140
Given new "CreateSyntheticsMobileTest" request
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
{
2+
"name": "{{ unique }}",
3+
"status": "paused",
4+
"type": "mobile",
5+
"config": {
6+
"variables": []
7+
},
8+
"options": {
9+
"device_ids": [
10+
"synthetics:mobile:device:iphone_15_ios_17"
11+
],
12+
"mobileApplication": {
13+
"applicationId": "ab0e0aed-536d-411a-9a99-5428c27d8f8e",
14+
"referenceId": "6115922a-5f5d-455e-bc7e-7955a57f3815",
15+
"referenceType": "version"
16+
},
17+
"tick_every": 3600
18+
},
19+
"steps": []
20+
}

lib/datadog_api_client/v1/models/synthetics_mobile_test.rb

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ class SyntheticsMobileTest
2828
attr_accessor :device_ids
2929

3030
# Notification message associated with the test.
31-
attr_accessor :message
31+
attr_reader :message
3232

3333
# The associated monitor ID.
3434
attr_accessor :monitor_id
@@ -167,6 +167,7 @@ def initialize(attributes = {})
167167
# @!visibility private
168168
def valid?
169169
return false if @config.nil?
170+
return false if @message.nil?
170171
return false if @name.nil?
171172
return false if @options.nil?
172173
return false if @type.nil?
@@ -183,6 +184,16 @@ def config=(config)
183184
@config = config
184185
end
185186

187+
# Custom attribute writer method with validation
188+
# @param message [Object] Object to be assigned
189+
# @!visibility private
190+
def message=(message)
191+
if message.nil?
192+
fail ArgumentError, 'invalid value for "message", message cannot be nil.'
193+
end
194+
@message = message
195+
end
196+
186197
# Custom attribute writer method with validation
187198
# @param name [Object] Object to be assigned
188199
# @!visibility private

0 commit comments

Comments
 (0)