From df11fce8e82cd47a7e367005c4104dd91e702236 Mon Sep 17 00:00:00 2001 From: "ci.datadog-api-spec" Date: Tue, 21 Dec 2021 21:58:30 +0000 Subject: [PATCH] Regenerate client from commit b0939c4 of spec repo --- .apigentools-info | 8 +++--- .generator/schemas/v1/openapi.yaml | 24 ++++++++++++++++ docs/v1/UsageAuditLogsHour.md | 6 +++- docs/v1/UsageCWSHour.md | 6 +++- ...UsageCloudSecurityPostureManagementHour.md | 6 +++- docs/v1/UsageDBMHour.md | 6 +++- .../v1/models/usage_audit_logs_hour.rb | 28 ++++++++++++++++--- ..._cloud_security_posture_management_hour.rb | 28 ++++++++++++++++--- .../v1/models/usage_cws_hour.rb | 28 ++++++++++++++++--- .../v1/models/usage_dbm_hour.rb | 28 ++++++++++++++++--- 10 files changed, 144 insertions(+), 24 deletions(-) diff --git a/.apigentools-info b/.apigentools-info index cada946d0098..904f5cead30c 100644 --- a/.apigentools-info +++ b/.apigentools-info @@ -4,13 +4,13 @@ "spec_versions": { "v1": { "apigentools_version": "1.5.1.dev2", - "regenerated": "2021-12-21 21:41:49.248430", - "spec_repo_commit": "ee277b0" + "regenerated": "2021-12-21 21:56:56.828276", + "spec_repo_commit": "b0939c4" }, "v2": { "apigentools_version": "1.5.1.dev2", - "regenerated": "2021-12-21 21:41:49.275725", - "spec_repo_commit": "ee277b0" + "regenerated": "2021-12-21 21:56:56.862250", + "spec_repo_commit": "b0939c4" } } } \ No newline at end of file diff --git a/.generator/schemas/v1/openapi.yaml b/.generator/schemas/v1/openapi.yaml index 2532b9726349..b79d6b810891 100644 --- a/.generator/schemas/v1/openapi.yaml +++ b/.generator/schemas/v1/openapi.yaml @@ -12284,6 +12284,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 @@ -12452,6 +12458,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 @@ -12481,6 +12493,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 @@ -12570,6 +12588,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 diff --git a/docs/v1/UsageAuditLogsHour.md b/docs/v1/UsageAuditLogsHour.md index fbaa9f0d6d65..2c81800e5882 100644 --- a/docs/v1/UsageAuditLogsHour.md +++ b/docs/v1/UsageAuditLogsHour.md @@ -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 @@ -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 ) ``` diff --git a/docs/v1/UsageCWSHour.md b/docs/v1/UsageCWSHour.md index e801d5e7dacf..9f88001557bb 100644 --- a/docs/v1/UsageCWSHour.md +++ b/docs/v1/UsageCWSHour.md @@ -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 @@ -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 ) ``` diff --git a/docs/v1/UsageCloudSecurityPostureManagementHour.md b/docs/v1/UsageCloudSecurityPostureManagementHour.md index 4dc7fb44344d..59d7c7bde2fd 100644 --- a/docs/v1/UsageCloudSecurityPostureManagementHour.md +++ b/docs/v1/UsageCloudSecurityPostureManagementHour.md @@ -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 @@ -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 ) ``` diff --git a/docs/v1/UsageDBMHour.md b/docs/v1/UsageDBMHour.md index b2a32009b11a..8c01a1bc1282 100644 --- a/docs/v1/UsageDBMHour.md +++ b/docs/v1/UsageDBMHour.md @@ -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 @@ -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 ) ``` diff --git a/lib/datadog_api_client/v1/models/usage_audit_logs_hour.rb b/lib/datadog_api_client/v1/models/usage_audit_logs_hour.rb index 1e8e89812246..0de5edc67e3e 100644 --- a/lib/datadog_api_client/v1/models/usage_audit_logs_hour.rb +++ b/lib/datadog_api_client/v1/models/usage_audit_logs_hour.rb @@ -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 @@ -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 @@ -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? @@ -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 @@ -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 diff --git a/lib/datadog_api_client/v1/models/usage_cloud_security_posture_management_hour.rb b/lib/datadog_api_client/v1/models/usage_cloud_security_posture_management_hour.rb index 5a2b39010087..d4363bc3b657 100644 --- a/lib/datadog_api_client/v1/models/usage_cloud_security_posture_management_hour.rb +++ b/lib/datadog_api_client/v1/models/usage_cloud_security_posture_management_hour.rb @@ -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 @@ -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 @@ -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? @@ -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 @@ -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 diff --git a/lib/datadog_api_client/v1/models/usage_cws_hour.rb b/lib/datadog_api_client/v1/models/usage_cws_hour.rb index 3ab12de6a8c7..0ae4c64ffdb4 100644 --- a/lib/datadog_api_client/v1/models/usage_cws_hour.rb +++ b/lib/datadog_api_client/v1/models/usage_cws_hour.rb @@ -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 @@ -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 @@ -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? @@ -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 @@ -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 diff --git a/lib/datadog_api_client/v1/models/usage_dbm_hour.rb b/lib/datadog_api_client/v1/models/usage_dbm_hour.rb index 5ddeb37ace0d..dbc6e7141b76 100644 --- a/lib/datadog_api_client/v1/models/usage_dbm_hour.rb +++ b/lib/datadog_api_client/v1/models/usage_dbm_hour.rb @@ -31,12 +31,20 @@ class UsageDBMHour # 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 { :'dbm_host_count' => :'dbm_host_count', :'dbm_queries_count' => :'dbm_queries_count', - :'hour' => :'hour' + :'hour' => :'hour', + :'org_name' => :'org_name', + :'public_id' => :'public_id' } end @@ -50,7 +58,9 @@ def self.openapi_types { :'dbm_host_count' => :'Integer', :'dbm_queries_count' => :'Integer', - :'hour' => :'Time' + :'hour' => :'Time', + :'org_name' => :'String', + :'public_id' => :'String' } end @@ -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? @@ -108,7 +126,9 @@ def ==(o) self.class == o.class && dbm_host_count == o.dbm_host_count && dbm_queries_count == o.dbm_queries_count && - hour == o.hour + hour == o.hour && + org_name == o.org_name && + public_id == o.public_id end # @see the `==` method @@ -120,7 +140,7 @@ def eql?(o) # Calculates hash code according to all attributes. # @return [Integer] Hash code def hash - [dbm_host_count, dbm_queries_count, hour].hash + [dbm_host_count, dbm_queries_count, hour, org_name, public_id].hash end # Builds the object from hash