Skip to content

Commit e047ebb

Browse files
author
ci.datadog-api-spec
committed
Regenerate client from commit be5cf1ee of spec repo
1 parent f835926 commit e047ebb

14 files changed

+888
-16
lines changed

.apigentools-info

+4-4
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": "2024-09-23 19:10:18.354958",
8-
"spec_repo_commit": "41592dc6"
7+
"regenerated": "2024-09-24 13:35:52.921300",
8+
"spec_repo_commit": "be5cf1ee"
99
},
1010
"v2": {
1111
"apigentools_version": "1.6.6",
12-
"regenerated": "2024-09-23 19:10:18.369556",
13-
"spec_repo_commit": "41592dc6"
12+
"regenerated": "2024-09-24 13:35:52.936120",
13+
"spec_repo_commit": "be5cf1ee"
1414
}
1515
}
1616
}

.generator/schemas/v2/openapi.yaml

+120
Original file line numberDiff line numberDiff line change
@@ -24635,16 +24635,36 @@ components:
2463524635
UserCreateAttributes:
2463624636
description: Attributes of the created user.
2463724637
properties:
24638+
created_at:
24639+
description: The `UserCreateAttributes` `created_at`.
24640+
format: date-time
24641+
type: string
24642+
disabled:
24643+
description: The `UserCreateAttributes` `disabled`.
24644+
type: boolean
2463824645
email:
2463924646
description: The email of the user.
2464024647
2464124648
type: string
24649+
handle:
24650+
description: The `UserCreateAttributes` `handle`.
24651+
type: string
24652+
modified_at:
24653+
description: The `UserCreateAttributes` `modified_at`.
24654+
format: date-time
24655+
type: string
2464224656
name:
2464324657
description: The name of the user.
2464424658
type: string
24659+
service_account:
24660+
description: The `UserCreateAttributes` `service_account`.
24661+
type: boolean
2464524662
title:
2464624663
description: The title of the user.
2464724664
type: string
24665+
verified:
24666+
description: The `UserCreateAttributes` `verified`.
24667+
type: boolean
2464824668
required:
2464924669
- email
2465024670
type: object
@@ -24694,6 +24714,10 @@ components:
2469424714
invite_type:
2469524715
description: Type of invitation.
2469624716
type: string
24717+
login_method:
24718+
description: The `UserInvitationDataAttributes` `login_method`.
24719+
nullable: true
24720+
type: string
2469724721
uuid:
2469824722
description: UUID of the user invitation.
2469924723
type: string
@@ -24755,6 +24779,79 @@ components:
2475524779
type: string
2475624780
x-enum-varnames:
2475724781
- USER_INVITATIONS
24782+
UserOrgsSerializable:
24783+
description: The definition of `UserOrgsSerializable` object.
24784+
properties:
24785+
attributes:
24786+
$ref: '#/components/schemas/UserOrgsSerializableAttributes'
24787+
id:
24788+
description: The `UserOrgsSerializable` `id`.
24789+
type: string
24790+
type:
24791+
$ref: '#/components/schemas/UserOrgsSerializableType'
24792+
required:
24793+
- type
24794+
type: object
24795+
UserOrgsSerializableAttributes:
24796+
description: The definition of `UserOrgsSerializableAttributes` object.
24797+
properties:
24798+
disabled:
24799+
description: The `UserOrgsSerializableAttributes` `disabled`.
24800+
type: boolean
24801+
email:
24802+
description: The `UserOrgsSerializableAttributes` `email`.
24803+
type: string
24804+
name:
24805+
description: The `UserOrgsSerializableAttributes` `name`.
24806+
type: string
24807+
org_id:
24808+
description: The `UserOrgsSerializableAttributes` `org_id`.
24809+
type: string
24810+
title:
24811+
description: The `UserOrgsSerializableAttributes` `title`.
24812+
type: string
24813+
verified:
24814+
description: The `UserOrgsSerializableAttributes` `verified`.
24815+
type: boolean
24816+
type: object
24817+
UserOrgsSerializableType:
24818+
default: users
24819+
description: The definition of `UserOrgsSerializableType` object.
24820+
enum:
24821+
- users
24822+
example: users
24823+
type: string
24824+
x-enum-varnames:
24825+
- USERS
24826+
UserOverrideIdentityProvider:
24827+
description: The definition of `UserOverrideIdentityProvider` object.
24828+
properties:
24829+
attributes:
24830+
$ref: '#/components/schemas/UserOverrideIdentityProviderAttributes'
24831+
id:
24832+
description: The `UserOverrideIdentityProvider` `id`.
24833+
type: string
24834+
type:
24835+
$ref: '#/components/schemas/UserOverrideIdentityProviderType'
24836+
required:
24837+
- type
24838+
type: object
24839+
UserOverrideIdentityProviderAttributes:
24840+
description: The definition of `UserOverrideIdentityProviderAttributes` object.
24841+
properties:
24842+
authentication_method:
24843+
description: The `UserOverrideIdentityProviderAttributes` `authentication_method`.
24844+
type: string
24845+
type: object
24846+
UserOverrideIdentityProviderType:
24847+
default: identity_providers
24848+
description: The definition of `UserOverrideIdentityProviderType` object.
24849+
enum:
24850+
- identity_providers
24851+
example: identity_providers
24852+
type: string
24853+
x-enum-varnames:
24854+
- IDENTITY_PROVIDERS
2475824855
UserRelationshipData:
2475924856
description: Relationship to user object.
2476024857
properties:
@@ -24800,6 +24897,8 @@ components:
2480024897
- $ref: '#/components/schemas/Organization'
2480124898
- $ref: '#/components/schemas/Permission'
2480224899
- $ref: '#/components/schemas/Role'
24900+
- $ref: '#/components/schemas/UserOverrideIdentityProvider'
24901+
- $ref: '#/components/schemas/UserOrgsSerializable'
2480324902
UserResponseRelationships:
2480424903
description: Relationships of the user object returned by the API.
2480524904
properties:
@@ -25038,15 +25137,36 @@ components:
2503825137
UserUpdateAttributes:
2503925138
description: Attributes of the edited user.
2504025139
properties:
25140+
created_at:
25141+
description: The `UserUpdateAttributes` `created_at`.
25142+
format: date-time
25143+
type: string
2504125144
disabled:
2504225145
description: If the user is enabled or disabled.
2504325146
type: boolean
2504425147
email:
2504525148
description: The email of the user.
2504625149
type: string
25150+
handle:
25151+
description: The `UserUpdateAttributes` `handle`.
25152+
type: string
25153+
modified_at:
25154+
description: The `UserUpdateAttributes` `modified_at`.
25155+
format: date-time
25156+
type: string
2504725157
name:
2504825158
description: The name of the user.
2504925159
type: string
25160+
service_account:
25161+
description: The `UserUpdateAttributes` `service_account`.
25162+
type: boolean
25163+
title:
25164+
description: The `UserUpdateAttributes` `title`.
25165+
nullable: true
25166+
type: string
25167+
verified:
25168+
description: The `UserUpdateAttributes` `verified`.
25169+
type: boolean
2505025170
type: object
2505125171
UserUpdateData:
2505225172
description: Object to update a user.

features/v2/users.feature

+2-2
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ Feature: Users
151151
Scenario: Update a user returns "Bad Request" response
152152
Given new "UpdateUser" request
153153
And request contains "user_id" parameter from "REPLACE.ME"
154-
And body with value {"data": {"attributes": {}, "id": "00000000-0000-feed-0000-000000000000", "type": "users"}}
154+
And body with value {"data": {"attributes": {"title": null}, "id": "00000000-0000-feed-0000-000000000000", "type": "users"}}
155155
When the request is sent
156156
Then the response status is 400 Bad Request
157157

@@ -189,6 +189,6 @@ Feature: Users
189189
Scenario: Update a user returns "Unprocessable Entity" response
190190
Given new "UpdateUser" request
191191
And request contains "user_id" parameter from "REPLACE.ME"
192-
And body with value {"data": {"attributes": {}, "id": "00000000-0000-feed-0000-000000000000", "type": "users"}}
192+
And body with value {"data": {"attributes": {"title": null}, "id": "00000000-0000-feed-0000-000000000000", "type": "users"}}
193193
When the request is sent
194194
Then the response status is 422 Unprocessable Entity

lib/datadog_api_client/inflector.rb

+6
Original file line numberDiff line numberDiff line change
@@ -2436,6 +2436,12 @@ def overrides
24362436
"v2.user_invitations_request" => "UserInvitationsRequest",
24372437
"v2.user_invitations_response" => "UserInvitationsResponse",
24382438
"v2.user_invitations_type" => "UserInvitationsType",
2439+
"v2.user_orgs_serializable" => "UserOrgsSerializable",
2440+
"v2.user_orgs_serializable_attributes" => "UserOrgsSerializableAttributes",
2441+
"v2.user_orgs_serializable_type" => "UserOrgsSerializableType",
2442+
"v2.user_override_identity_provider" => "UserOverrideIdentityProvider",
2443+
"v2.user_override_identity_provider_attributes" => "UserOverrideIdentityProviderAttributes",
2444+
"v2.user_override_identity_provider_type" => "UserOverrideIdentityProviderType",
24392445
"v2.user_relationship_data" => "UserRelationshipData",
24402446
"v2.user_relationships" => "UserRelationships",
24412447
"v2.user_resource_type" => "UserResourceType",

lib/datadog_api_client/v2/models/user_create_attributes.rb

+64-4
Original file line numberDiff line numberDiff line change
@@ -21,34 +21,64 @@ module DatadogAPIClient::V2
2121
class UserCreateAttributes
2222
include BaseGenericModel
2323

24+
# The `UserCreateAttributes` `created_at`.
25+
attr_accessor :created_at
26+
27+
# The `UserCreateAttributes` `disabled`.
28+
attr_accessor :disabled
29+
2430
# The email of the user.
2531
attr_reader :email
2632

33+
# The `UserCreateAttributes` `handle`.
34+
attr_accessor :handle
35+
36+
# The `UserCreateAttributes` `modified_at`.
37+
attr_accessor :modified_at
38+
2739
# The name of the user.
2840
attr_accessor :name
2941

42+
# The `UserCreateAttributes` `service_account`.
43+
attr_accessor :service_account
44+
3045
# The title of the user.
3146
attr_accessor :title
3247

48+
# The `UserCreateAttributes` `verified`.
49+
attr_accessor :verified
50+
3351
attr_accessor :additional_properties
3452

3553
# Attribute mapping from ruby-style variable name to JSON key.
3654
# @!visibility private
3755
def self.attribute_map
3856
{
57+
:'created_at' => :'created_at',
58+
:'disabled' => :'disabled',
3959
:'email' => :'email',
60+
:'handle' => :'handle',
61+
:'modified_at' => :'modified_at',
4062
:'name' => :'name',
41-
:'title' => :'title'
63+
:'service_account' => :'service_account',
64+
:'title' => :'title',
65+
:'verified' => :'verified'
4266
}
4367
end
4468

4569
# Attribute type mapping.
4670
# @!visibility private
4771
def self.openapi_types
4872
{
73+
:'created_at' => :'Time',
74+
:'disabled' => :'Boolean',
4975
:'email' => :'String',
76+
:'handle' => :'String',
77+
:'modified_at' => :'Time',
5078
:'name' => :'String',
51-
:'title' => :'String'
79+
:'service_account' => :'Boolean',
80+
:'title' => :'String',
81+
:'verified' => :'Boolean'
5282
}
5383
end
5484

@@ -70,17 +100,41 @@ def initialize(attributes = {})
70100
end
71101
}
72102

103+
if attributes.key?(:'created_at')
104+
self.created_at = attributes[:'created_at']
105+
end
106+
107+
if attributes.key?(:'disabled')
108+
self.disabled = attributes[:'disabled']
109+
end
110+
73111
if attributes.key?(:'email')
74112
self.email = attributes[:'email']
75113
end
76114

115+
if attributes.key?(:'handle')
116+
self.handle = attributes[:'handle']
117+
end
118+
119+
if attributes.key?(:'modified_at')
120+
self.modified_at = attributes[:'modified_at']
121+
end
122+
77123
if attributes.key?(:'name')
78124
self.name = attributes[:'name']
79125
end
80126

127+
if attributes.key?(:'service_account')
128+
self.service_account = attributes[:'service_account']
129+
end
130+
81131
if attributes.key?(:'title')
82132
self.title = attributes[:'title']
83133
end
134+
135+
if attributes.key?(:'verified')
136+
self.verified = attributes[:'verified']
137+
end
84138
end
85139

86140
# Check to see if the all the properties in the model are valid
@@ -127,17 +181,23 @@ def to_hash
127181
def ==(o)
128182
return true if self.equal?(o)
129183
self.class == o.class &&
184+
created_at == o.created_at &&
185+
disabled == o.disabled &&
130186
email == o.email &&
187+
handle == o.handle &&
188+
modified_at == o.modified_at &&
131189
name == o.name &&
132-
title == o.title
190+
service_account == o.service_account &&
191+
title == o.title &&
192+
verified == o.verified
133193
additional_properties == o.additional_properties
134194
end
135195

136196
# Calculates hash code according to all attributes.
137197
# @return [Integer] Hash code
138198
# @!visibility private
139199
def hash
140-
[email, name, title].hash
200+
[created_at, disabled, email, handle, modified_at, name, service_account, title, verified].hash
141201
end
142202
end
143203
end

0 commit comments

Comments
 (0)