Skip to content

Commit cc7f358

Browse files
api-clients-generation-pipeline[bot]ci.datadog-api-spec
andauthored
add mfa_enabled field and change created_at type to datetime (#1938)
Co-authored-by: ci.datadog-api-spec <[email protected]> Co-authored-by: api-clients-generation-pipeline[bot] <54105614+api-clients-generation-pipeline[bot]@users.noreply.github.com>
1 parent dfd4c78 commit cc7f358

File tree

4 files changed

+21
-6
lines changed

4 files changed

+21
-6
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": "2024-08-09 16:10:42.589994",
8-
"spec_repo_commit": "4a0f9e08"
7+
"regenerated": "2024-08-12 13:34:57.793193",
8+
"spec_repo_commit": "0360f6c8"
99
},
1010
"v2": {
1111
"apigentools_version": "1.6.6",
12-
"regenerated": "2024-08-09 16:10:42.608230",
13-
"spec_repo_commit": "4a0f9e08"
12+
"regenerated": "2024-08-12 13:34:57.811409",
13+
"spec_repo_commit": "0360f6c8"
1414
}
1515
}
1616
}

.generator/schemas/v2/openapi.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8496,6 +8496,7 @@ components:
84968496
created_at:
84978497
description: Creation date of the application key.
84988498
example: '2020-11-23T10:00:00.000Z'
8499+
format: date-time
84998500
readOnly: true
85008501
type: string
85018502
key:
@@ -23415,6 +23416,10 @@ components:
2341523416
icon:
2341623417
description: URL of the user's icon.
2341723418
type: string
23419+
mfa_enabled:
23420+
description: If user has MFA enabled.
23421+
readOnly: true
23422+
type: boolean
2341823423
modified_at:
2341923424
description: Time that the user was last modified.
2342023425
format: date-time

lib/datadog_api_client/v2/models/full_application_key_attributes.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ def self.attribute_map
5252
# @!visibility private
5353
def self.openapi_types
5454
{
55-
:'created_at' => :'String',
55+
:'created_at' => :'Time',
5656
:'key' => :'String',
5757
:'last4' => :'String',
5858
:'name' => :'String',

lib/datadog_api_client/v2/models/user_attributes.rb

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,9 @@ class UserAttributes
3636
# URL of the user's icon.
3737
attr_accessor :icon
3838

39+
# If user has MFA enabled.
40+
attr_accessor :mfa_enabled
41+
3942
# Time that the user was last modified.
4043
attr_accessor :modified_at
4144

@@ -63,6 +66,7 @@ def self.attribute_map
6366
:'email' => :'email',
6467
:'handle' => :'handle',
6568
:'icon' => :'icon',
69+
:'mfa_enabled' => :'mfa_enabled',
6670
:'modified_at' => :'modified_at',
6771
:'name' => :'name',
6872
:'service_account' => :'service_account',
@@ -81,6 +85,7 @@ def self.openapi_types
8185
:'email' => :'String',
8286
:'handle' => :'String',
8387
:'icon' => :'String',
88+
:'mfa_enabled' => :'Boolean',
8489
:'modified_at' => :'Time',
8590
:'name' => :'String',
8691
:'service_account' => :'Boolean',
@@ -135,6 +140,10 @@ def initialize(attributes = {})
135140
self.icon = attributes[:'icon']
136141
end
137142

143+
if attributes.key?(:'mfa_enabled')
144+
self.mfa_enabled = attributes[:'mfa_enabled']
145+
end
146+
138147
if attributes.key?(:'modified_at')
139148
self.modified_at = attributes[:'modified_at']
140149
end
@@ -171,6 +180,7 @@ def ==(o)
171180
email == o.email &&
172181
handle == o.handle &&
173182
icon == o.icon &&
183+
mfa_enabled == o.mfa_enabled &&
174184
modified_at == o.modified_at &&
175185
name == o.name &&
176186
service_account == o.service_account &&
@@ -183,7 +193,7 @@ def ==(o)
183193
# @return [Integer] Hash code
184194
# @!visibility private
185195
def hash
186-
[created_at, disabled, email, handle, icon, modified_at, name, service_account, status, title, verified].hash
196+
[created_at, disabled, email, handle, icon, mfa_enabled, modified_at, name, service_account, status, title, verified].hash
187197
end
188198
end
189199
end

0 commit comments

Comments
 (0)