Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions .apigentools-info
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,13 @@
"spec_versions": {
"v1": {
"apigentools_version": "1.6.6",
"regenerated": "2023-11-21 19:36:35.974226",
"spec_repo_commit": "83154a77"
"regenerated": "2023-11-21 20:41:04.448908",
"spec_repo_commit": "be350e98"
},
"v2": {
"apigentools_version": "1.6.6",
"regenerated": "2023-11-21 19:36:35.992140",
"spec_repo_commit": "83154a77"
"regenerated": "2023-11-21 20:41:04.462705",
"spec_repo_commit": "be350e98"
}
}
}
12 changes: 12 additions & 0 deletions .generator/schemas/v2/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6240,6 +6240,9 @@ components:
FullAPIKeyAttributes:
description: Attributes of a full API key.
properties:
category:
description: The category of the API key.
type: string
created_at:
description: Creation date of the API key.
example: '2020-11-23T10:00:00.000Z'
Expand All @@ -6265,6 +6268,9 @@ components:
description: Name of the API key.
example: API Key for submitting metrics
type: string
remote_config_read_enabled:
description: The remote config read enabled status.
type: boolean
type: object
FullApplicationKey:
description: Datadog application key.
Expand Down Expand Up @@ -11752,6 +11758,9 @@ components:
PartialAPIKeyAttributes:
description: Attributes of a partial API key.
properties:
category:
description: The category of the API key.
type: string
created_at:
description: Creation date of the API key.
example: '2020-11-23T10:00:00.000Z'
Expand All @@ -11773,6 +11782,9 @@ components:
description: Name of the API key.
example: API Key for submitting metrics
type: string
remote_config_read_enabled:
description: The remote config read enabled status.
type: boolean
type: object
PartialApplicationKey:
description: Partial Datadog application key.
Expand Down
28 changes: 24 additions & 4 deletions lib/datadog_api_client/v2/models/full_api_key_attributes.rb
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,9 @@ module DatadogAPIClient::V2
class FullAPIKeyAttributes
include BaseGenericModel

# The category of the API key.
attr_accessor :category

# Creation date of the API key.
attr_accessor :created_at

Expand All @@ -36,27 +39,34 @@ class FullAPIKeyAttributes
# Name of the API key.
attr_accessor :name

# The remote config read enabled status.
attr_accessor :remote_config_read_enabled

# Attribute mapping from ruby-style variable name to JSON key.
# @!visibility private
def self.attribute_map
{
:'category' => :'category',
:'created_at' => :'created_at',
:'key' => :'key',
:'last4' => :'last4',
:'modified_at' => :'modified_at',
:'name' => :'name'
:'name' => :'name',
:'remote_config_read_enabled' => :'remote_config_read_enabled'
}
end

# Attribute type mapping.
# @!visibility private
def self.openapi_types
{
:'category' => :'String',
:'created_at' => :'String',
:'key' => :'String',
:'last4' => :'String',
:'modified_at' => :'String',
:'name' => :'String'
:'name' => :'String',
:'remote_config_read_enabled' => :'Boolean'
}
end

Expand All @@ -76,6 +86,10 @@ def initialize(attributes = {})
h[k.to_sym] = v
}

if attributes.key?(:'category')
self.category = attributes[:'category']
end

if attributes.key?(:'created_at')
self.created_at = attributes[:'created_at']
end
Expand All @@ -95,6 +109,10 @@ def initialize(attributes = {})
if attributes.key?(:'name')
self.name = attributes[:'name']
end

if attributes.key?(:'remote_config_read_enabled')
self.remote_config_read_enabled = attributes[:'remote_config_read_enabled']
end
end

# Check to see if the all the properties in the model are valid
Expand Down Expand Up @@ -125,18 +143,20 @@ def last4=(last4)
def ==(o)
return true if self.equal?(o)
self.class == o.class &&
category == o.category &&
created_at == o.created_at &&
key == o.key &&
last4 == o.last4 &&
modified_at == o.modified_at &&
name == o.name
name == o.name &&
remote_config_read_enabled == o.remote_config_read_enabled
end

# Calculates hash code according to all attributes.
# @return [Integer] Hash code
# @!visibility private
def hash
[created_at, key, last4, modified_at, name].hash
[category, created_at, key, last4, modified_at, name, remote_config_read_enabled].hash
end
end
end
28 changes: 24 additions & 4 deletions lib/datadog_api_client/v2/models/partial_api_key_attributes.rb
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,9 @@ module DatadogAPIClient::V2
class PartialAPIKeyAttributes
include BaseGenericModel

# The category of the API key.
attr_accessor :category

# Creation date of the API key.
attr_accessor :created_at

Expand All @@ -33,25 +36,32 @@ class PartialAPIKeyAttributes
# Name of the API key.
attr_accessor :name

# The remote config read enabled status.
attr_accessor :remote_config_read_enabled

# Attribute mapping from ruby-style variable name to JSON key.
# @!visibility private
def self.attribute_map
{
:'category' => :'category',
:'created_at' => :'created_at',
:'last4' => :'last4',
:'modified_at' => :'modified_at',
:'name' => :'name'
:'name' => :'name',
:'remote_config_read_enabled' => :'remote_config_read_enabled'
}
end

# Attribute type mapping.
# @!visibility private
def self.openapi_types
{
:'category' => :'String',
:'created_at' => :'String',
:'last4' => :'String',
:'modified_at' => :'String',
:'name' => :'String'
:'name' => :'String',
:'remote_config_read_enabled' => :'Boolean'
}
end

Expand All @@ -71,6 +81,10 @@ def initialize(attributes = {})
h[k.to_sym] = v
}

if attributes.key?(:'category')
self.category = attributes[:'category']
end

if attributes.key?(:'created_at')
self.created_at = attributes[:'created_at']
end
Expand All @@ -86,6 +100,10 @@ def initialize(attributes = {})
if attributes.key?(:'name')
self.name = attributes[:'name']
end

if attributes.key?(:'remote_config_read_enabled')
self.remote_config_read_enabled = attributes[:'remote_config_read_enabled']
end
end

# Check to see if the all the properties in the model are valid
Expand Down Expand Up @@ -116,17 +134,19 @@ def last4=(last4)
def ==(o)
return true if self.equal?(o)
self.class == o.class &&
category == o.category &&
created_at == o.created_at &&
last4 == o.last4 &&
modified_at == o.modified_at &&
name == o.name
name == o.name &&
remote_config_read_enabled == o.remote_config_read_enabled
end

# Calculates hash code according to all attributes.
# @return [Integer] Hash code
# @!visibility private
def hash
[created_at, last4, modified_at, name].hash
[category, created_at, last4, modified_at, name, remote_config_read_enabled].hash
end
end
end