Skip to content

Commit

Permalink
Regenerate client from commit 72023d7 of spec repo
Browse files Browse the repository at this point in the history
  • Loading branch information
ci.datadog-api-spec committed Dec 21, 2021
1 parent 145f7a8 commit 01750d6
Show file tree
Hide file tree
Showing 10 changed files with 144 additions and 24 deletions.
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.5.1.dev2",
"regenerated": "2021-12-21 21:26:04.263142",
"spec_repo_commit": "44311ae"
"regenerated": "2021-12-21 21:50:54.031889",
"spec_repo_commit": "72023d7"
},
"v2": {
"apigentools_version": "1.5.1.dev2",
"regenerated": "2021-12-21 21:26:04.293854",
"spec_repo_commit": "44311ae"
"regenerated": "2021-12-21 21:50:54.060961",
"spec_repo_commit": "72023d7"
}
}
}
24 changes: 24 additions & 0 deletions .generator/schemas/v1/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12282,6 +12282,12 @@ components:
hour.
format: int64
type: integer
org_name:
description: The organization name.
type: string
public_id:
description: The organization public ID.
type: string
type: object
UsageAuditLogsResponse:
description: Response containing the audit logs usage for each hour for a given
Expand Down Expand Up @@ -12450,6 +12456,12 @@ components:
description: The hour for the usage.
format: date-time
type: string
org_name:
description: The organization name.
type: string
public_id:
description: The organization public ID.
type: string
type: object
UsageCWSResponse:
description: Response containing the Cloud Workload Security usage for each
Expand Down Expand Up @@ -12479,6 +12491,12 @@ components:
description: The hour for the usage.
format: date-time
type: string
org_name:
description: The organization name.
type: string
public_id:
description: The organization public ID.
type: string
type: object
UsageCloudSecurityPostureManagementResponse:
description: The response containing the Cloud Security Posture Management usage
Expand Down Expand Up @@ -12568,6 +12586,12 @@ components:
description: The hour for the usage.
format: date-time
type: string
org_name:
description: The organization name.
type: string
public_id:
description: The organization public ID.
type: string
type: object
UsageDBMResponse:
description: Response containing the Database Monitoring usage for each hour
Expand Down
6 changes: 5 additions & 1 deletion docs/v1/UsageAuditLogsHour.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@
| ----------------- | ----------- | ----------------------------------------------------------------- | ---------- |
| **hour** | **Time** | The hour for the usage. | [optional] |
| **lines_indexed** | **Integer** | The total number of audit logs lines indexed during a given hour. | [optional] |
| **org_name** | **String** | The organization name. | [optional] |
| **public_id** | **String** | The organization public ID. | [optional] |

## Example

Expand All @@ -14,6 +16,8 @@ require 'datadog_api_client/v1'

instance = DatadogAPIClient::V1::UsageAuditLogsHour.new(
hour: null,
lines_indexed: null
lines_indexed: null,
org_name: null,
public_id: null
)
```
6 changes: 5 additions & 1 deletion docs/v1/UsageCWSHour.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@
| **cws_container_count** | **Integer** | The total number of Cloud Workload Security container hours from the start of the given hour’s month until the given hour. | [optional] |
| **cws_host_count** | **Integer** | The total number of Cloud Workload Security host hours from the start of the given hour’s month until the given hour. | [optional] |
| **hour** | **Time** | The hour for the usage. | [optional] |
| **org_name** | **String** | The organization name. | [optional] |
| **public_id** | **String** | The organization public ID. | [optional] |

## Example

Expand All @@ -16,6 +18,8 @@ require 'datadog_api_client/v1'
instance = DatadogAPIClient::V1::UsageCWSHour.new(
cws_container_count: null,
cws_host_count: null,
hour: null
hour: null,
org_name: null,
public_id: null
)
```
6 changes: 5 additions & 1 deletion docs/v1/UsageCloudSecurityPostureManagementHour.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@
| **container_count** | **Integer** | The total number of Cloud Security Posture Management containers during a given hour. | [optional] |
| **host_count** | **Integer** | The total number of Cloud Security Posture Management hosts during a given hour. | [optional] |
| **hour** | **Time** | The hour for the usage. | [optional] |
| **org_name** | **String** | The organization name. | [optional] |
| **public_id** | **String** | The organization public ID. | [optional] |

## Example

Expand All @@ -16,6 +18,8 @@ require 'datadog_api_client/v1'
instance = DatadogAPIClient::V1::UsageCloudSecurityPostureManagementHour.new(
container_count: null,
host_count: null,
hour: null
hour: null,
org_name: null,
public_id: null
)
```
6 changes: 5 additions & 1 deletion docs/v1/UsageDBMHour.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@
| **dbm_host_count** | **Integer** | The total number of Database Monitoring host hours from the start of the given hour’s month until the given hour. | [optional] |
| **dbm_queries_count** | **Integer** | The total number of normalized Database Monitoring queries from the start of the given hour’s month until the given hour. | [optional] |
| **hour** | **Time** | The hour for the usage. | [optional] |
| **org_name** | **String** | The organization name. | [optional] |
| **public_id** | **String** | The organization public ID. | [optional] |

## Example

Expand All @@ -16,6 +18,8 @@ require 'datadog_api_client/v1'
instance = DatadogAPIClient::V1::UsageDBMHour.new(
dbm_host_count: null,
dbm_queries_count: null,
hour: null
hour: null,
org_name: null,
public_id: null
)
```
28 changes: 24 additions & 4 deletions lib/datadog_api_client/v1/models/usage_audit_logs_hour.rb
Original file line number Diff line number Diff line change
Expand Up @@ -28,11 +28,19 @@ class UsageAuditLogsHour
# The total number of audit logs lines indexed during a given hour.
attr_accessor :lines_indexed

# The organization name.
attr_accessor :org_name

# The organization public ID.
attr_accessor :public_id

# Attribute mapping from ruby-style variable name to JSON key.
def self.attribute_map
{
:'hour' => :'hour',
:'lines_indexed' => :'lines_indexed'
:'lines_indexed' => :'lines_indexed',
:'org_name' => :'org_name',
:'public_id' => :'public_id'
}
end

Expand All @@ -45,7 +53,9 @@ def self.acceptable_attributes
def self.openapi_types
{
:'hour' => :'Time',
:'lines_indexed' => :'Integer'
:'lines_indexed' => :'Integer',
:'org_name' => :'String',
:'public_id' => :'String'
}
end

Expand Down Expand Up @@ -77,6 +87,14 @@ def initialize(attributes = {})
if attributes.key?(:'lines_indexed')
self.lines_indexed = attributes[:'lines_indexed']
end

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

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

# Show invalid properties with the reasons. Usually used together with valid?
Expand All @@ -98,7 +116,9 @@ def ==(o)
return true if self.equal?(o)
self.class == o.class &&
hour == o.hour &&
lines_indexed == o.lines_indexed
lines_indexed == o.lines_indexed &&
org_name == o.org_name &&
public_id == o.public_id
end

# @see the `==` method
Expand All @@ -110,7 +130,7 @@ def eql?(o)
# Calculates hash code according to all attributes.
# @return [Integer] Hash code
def hash
[hour, lines_indexed].hash
[hour, lines_indexed, org_name, public_id].hash
end

# Builds the object from hash
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,12 +31,20 @@ class UsageCloudSecurityPostureManagementHour
# The hour for the usage.
attr_accessor :hour

# The organization name.
attr_accessor :org_name

# The organization public ID.
attr_accessor :public_id

# Attribute mapping from ruby-style variable name to JSON key.
def self.attribute_map
{
:'container_count' => :'container_count',
:'host_count' => :'host_count',
:'hour' => :'hour'
:'hour' => :'hour',
:'org_name' => :'org_name',
:'public_id' => :'public_id'
}
end

Expand All @@ -50,7 +58,9 @@ def self.openapi_types
{
:'container_count' => :'Integer',
:'host_count' => :'Integer',
:'hour' => :'Time'
:'hour' => :'Time',
:'org_name' => :'String',
:'public_id' => :'String'
}
end

Expand Down Expand Up @@ -86,6 +96,14 @@ def initialize(attributes = {})
if attributes.key?(:'hour')
self.hour = attributes[:'hour']
end

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

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

# Show invalid properties with the reasons. Usually used together with valid?
Expand All @@ -108,7 +126,9 @@ def ==(o)
self.class == o.class &&
container_count == o.container_count &&
host_count == o.host_count &&
hour == o.hour
hour == o.hour &&
org_name == o.org_name &&
public_id == o.public_id
end

# @see the `==` method
Expand All @@ -120,7 +140,7 @@ def eql?(o)
# Calculates hash code according to all attributes.
# @return [Integer] Hash code
def hash
[container_count, host_count, hour].hash
[container_count, host_count, hour, org_name, public_id].hash
end

# Builds the object from hash
Expand Down
28 changes: 24 additions & 4 deletions lib/datadog_api_client/v1/models/usage_cws_hour.rb
Original file line number Diff line number Diff line change
Expand Up @@ -31,12 +31,20 @@ class UsageCWSHour
# The hour for the usage.
attr_accessor :hour

# The organization name.
attr_accessor :org_name

# The organization public ID.
attr_accessor :public_id

# Attribute mapping from ruby-style variable name to JSON key.
def self.attribute_map
{
:'cws_container_count' => :'cws_container_count',
:'cws_host_count' => :'cws_host_count',
:'hour' => :'hour'
:'hour' => :'hour',
:'org_name' => :'org_name',
:'public_id' => :'public_id'
}
end

Expand All @@ -50,7 +58,9 @@ def self.openapi_types
{
:'cws_container_count' => :'Integer',
:'cws_host_count' => :'Integer',
:'hour' => :'Time'
:'hour' => :'Time',
:'org_name' => :'String',
:'public_id' => :'String'
}
end

Expand Down Expand Up @@ -86,6 +96,14 @@ def initialize(attributes = {})
if attributes.key?(:'hour')
self.hour = attributes[:'hour']
end

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

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

# Show invalid properties with the reasons. Usually used together with valid?
Expand All @@ -108,7 +126,9 @@ def ==(o)
self.class == o.class &&
cws_container_count == o.cws_container_count &&
cws_host_count == o.cws_host_count &&
hour == o.hour
hour == o.hour &&
org_name == o.org_name &&
public_id == o.public_id
end

# @see the `==` method
Expand All @@ -120,7 +140,7 @@ def eql?(o)
# Calculates hash code according to all attributes.
# @return [Integer] Hash code
def hash
[cws_container_count, cws_host_count, hour].hash
[cws_container_count, cws_host_count, hour, org_name, public_id].hash
end

# Builds the object from hash
Expand Down
Loading

0 comments on commit 01750d6

Please sign in to comment.