Skip to content

Commit 27299cb

Browse files
api-clients-generation-pipeline[bot]ci.datadog-api-spectherve
authored
Regenerate client from commit 31d44cb6 of spec repo (#805)
Co-authored-by: ci.datadog-api-spec <packages@datadoghq.com> Co-authored-by: api-clients-generation-pipeline[bot] <54105614+api-clients-generation-pipeline[bot]@users.noreply.github.com> Co-authored-by: Thomas Hervé <thomas.herve@datadoghq.com>
1 parent 85a166d commit 27299cb

5 files changed

Lines changed: 24 additions & 16 deletions

File tree

.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.2",
7-
"regenerated": "2022-03-16 20:25:00.973679",
8-
"spec_repo_commit": "1289c722"
7+
"regenerated": "2022-03-17 17:21:20.435225",
8+
"spec_repo_commit": "31d44cb6"
99
},
1010
"v2": {
1111
"apigentools_version": "1.6.2",
12-
"regenerated": "2022-03-16 20:25:00.998356",
13-
"spec_repo_commit": "1289c722"
12+
"regenerated": "2022-03-17 17:21:20.456223",
13+
"spec_repo_commit": "31d44cb6"
1414
}
1515
}
1616
}

.generator/schemas/v1/openapi.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7667,7 +7667,7 @@ components:
76677667
name:
76687668
description: The name of the new child-organization, limited to 32 characters.
76697669
example: New child org
7670-
maximum: 32
7670+
maxLength: 32
76717671
type: string
76727672
public_id:
76737673
description: The `public_id` of the organization you are operating within.
@@ -7696,7 +7696,7 @@ components:
76967696
name:
76977697
description: The name of the new child-organization, limited to 32 characters.
76987698
example: New child org
7699-
maximum: 32
7699+
maxLength: 32
77007700
type: string
77017701
subscription:
77027702
$ref: '#/components/schemas/OrganizationSubscription'

features/v1/logs.feature

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,14 @@ Feature: Logs
1414
When the request is sent
1515
Then the response status is 400 Bad Request
1616

17+
@generated @skip @team:DataDog/logs-app
18+
Scenario: Search logs returns "OK" response
19+
Given a valid "appKeyAuth" key in the system
20+
And new "ListLogs" request
21+
And body with value {"index": "retention-3,retention-15", "limit": null, "query": "service:web* AND @http.status_code:[200 TO 299]", "sort": "asc", "startAt": null, "time": {"from": "2020-02-02T02:02:02Z", "timezone": null, "to": "2020-02-02T20:20:20Z"}}
22+
When the request is sent
23+
Then the response status is 200 OK
24+
1725
@team:DataDog/logs-app
1826
Scenario: Search test logs returns "OK" response
1927
Given a valid "appKeyAuth" key in the system

lib/datadog_api_client/v1/models/organization.rb

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -137,8 +137,8 @@ def initialize(attributes = {})
137137
# @!visibility private
138138
def list_invalid_properties
139139
invalid_properties = Array.new
140-
if !@name.nil? && @name > 32
141-
invalid_properties.push('invalid value for "name", must be smaller than or equal to 32.')
140+
if !@name.nil? && @name.to_s.length > 32
141+
invalid_properties.push('invalid value for "name", the character length must be smaller than or equal to 32.')
142142
end
143143
invalid_properties
144144
end
@@ -147,16 +147,16 @@ def list_invalid_properties
147147
# @return true if the model is valid
148148
# @!visibility private
149149
def valid?
150-
return false if !@name.nil? && @name > 32
150+
return false if !@name.nil? && @name.to_s.length > 32
151151
true
152152
end
153153

154154
# Custom attribute writer method with validation
155155
# @param name [Object] Object to be assigned
156156
# @!visibility private
157157
def name=(name)
158-
if !name.nil? && name > 32
159-
fail ArgumentError, 'invalid value for "name", must be smaller than or equal to 32.'
158+
if !name.nil? && name.to_s.length > 32
159+
fail ArgumentError, 'invalid value for "name", the character length must be smaller than or equal to 32.'
160160
end
161161
@name = name
162162
end

lib/datadog_api_client/v1/models/organization_create_body.rb

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -104,8 +104,8 @@ def list_invalid_properties
104104
if @name.nil?
105105
invalid_properties.push('invalid value for "name", name cannot be nil.')
106106
end
107-
if @name > 32
108-
invalid_properties.push('invalid value for "name", must be smaller than or equal to 32.')
107+
if @name.to_s.length > 32
108+
invalid_properties.push('invalid value for "name", the character length must be smaller than or equal to 32.')
109109
end
110110
invalid_properties
111111
end
@@ -115,7 +115,7 @@ def list_invalid_properties
115115
# @!visibility private
116116
def valid?
117117
return false if @name.nil?
118-
return false if @name > 32
118+
return false if @name.to_s.length > 32
119119
true
120120
end
121121

@@ -126,8 +126,8 @@ def name=(name)
126126
if name.nil?
127127
fail ArgumentError, 'invalid value for "name", name cannot be nil.'
128128
end
129-
if name > 32
130-
fail ArgumentError, 'invalid value for "name", must be smaller than or equal to 32.'
129+
if name.to_s.length > 32
130+
fail ArgumentError, 'invalid value for "name", the character length must be smaller than or equal to 32.'
131131
end
132132
@name = name
133133
end

0 commit comments

Comments
 (0)