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
35 changes: 35 additions & 0 deletions .generator/schemas/v2/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12763,9 +12763,25 @@ components:
- id: row_id_2
type: row
type: reference-tables-batch-rows-query
included:
- attributes:
values:
ip_address: 102.130.113.9
id: row_id_1
type: row
- attributes:
values:
ip_address: 102.130.113.10
id: row_id_2
type: row
properties:
data:
$ref: "#/components/schemas/BatchRowsQueryResponseData"
included:
description: Full row resources matching the query, included alongside the relationship references in `data`.
items:
$ref: "#/components/schemas/TableRowResourceData"
type: array
type: object
BatchRowsQueryResponseData:
description: Data object for a batch rows query response.
Expand Down Expand Up @@ -56966,6 +56982,9 @@ components:
links:
first: "/api/v2/reference-tables/tables/00000000-0000-0000-0000-000000000000/rows/list?page%5Blimit%5D=100"
self: "/api/v2/reference-tables/tables/00000000-0000-0000-0000-000000000000/rows/list?page%5Bcontinuation_token%5D=eyJzaWQiOjEyMzQ1LCJwayI6ImV4YW1wbGVfcGsifQ%3D%3D&page%5Blimit%5D=100"
meta:
page:
next_continuation_token: eyJzaWQiOjEyMzQ1LCJwayI6ImV4YW1wbGVfcGsifQ==
properties:
data:
description: The rows.
Expand All @@ -56974,6 +56993,8 @@ components:
type: array
links:
$ref: "#/components/schemas/ListRowsResponseLinks"
meta:
$ref: "#/components/schemas/ListRowsResponseMeta"
required:
- data
- links
Expand All @@ -56997,6 +57018,20 @@ components:
- self
- first
type: object
ListRowsResponseMeta:
description: Contains pagination details, including the continuation token for fetching additional rows.
properties:
page:
$ref: "#/components/schemas/ListRowsResponseMetaPage"
type: object
ListRowsResponseMetaPage:
description: Contains the continuation token for navigating to the next page of rows.
properties:
next_continuation_token:
description: Opaque token to pass as the `page[continuation_token]` query parameter to fetch the next page of results. Only present when more rows are available.
example: eyJzaWQiOjEyMzQ1LCJwayI6ImV4YW1wbGVfcGsifQ==
type: string
type: object
ListRulesResponse:
description: Scorecard rules response.
properties:
Expand Down
2 changes: 2 additions & 0 deletions lib/datadog_api_client/inflector.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4099,6 +4099,8 @@ def overrides
"v2.list_relation_catalog_response_links" => "ListRelationCatalogResponseLinks",
"v2.list_rows_response" => "ListRowsResponse",
"v2.list_rows_response_links" => "ListRowsResponseLinks",
"v2.list_rows_response_meta" => "ListRowsResponseMeta",
"v2.list_rows_response_meta_page" => "ListRowsResponseMetaPage",
"v2.list_rules_response" => "ListRulesResponse",
"v2.list_rules_response_data_item" => "ListRulesResponseDataItem",
"v2.list_rules_response_links" => "ListRulesResponseLinks",
Expand Down
18 changes: 15 additions & 3 deletions lib/datadog_api_client/v2/models/batch_rows_query_response.rb
Original file line number Diff line number Diff line change
Expand Up @@ -24,21 +24,26 @@ class BatchRowsQueryResponse
# Data object for a batch rows query response.
attr_accessor :data

# Full row resources matching the query, included alongside the relationship references in `data`.
attr_accessor :included

attr_accessor :additional_properties

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

# Attribute type mapping.
# @!visibility private
def self.openapi_types
{
:'data' => :'BatchRowsQueryResponseData'
:'data' => :'BatchRowsQueryResponseData',
:'included' => :'Array<TableRowResourceData>'
}
end

Expand All @@ -63,6 +68,12 @@ def initialize(attributes = {})
if attributes.key?(:'data')
self.data = attributes[:'data']
end

if attributes.key?(:'included')
if (value = attributes[:'included']).is_a?(Array)
self.included = value
end
end
end

# Returns the object in the form of hash, with additionalProperties support.
Expand Down Expand Up @@ -92,14 +103,15 @@ def ==(o)
return true if self.equal?(o)
self.class == o.class &&
data == o.data &&
included == o.included &&
additional_properties == o.additional_properties
end

# Calculates hash code according to all attributes.
# @return [Integer] Hash code
# @!visibility private
def hash
[data, additional_properties].hash
[data, included, additional_properties].hash
end
end
end
16 changes: 13 additions & 3 deletions lib/datadog_api_client/v2/models/list_rows_response.rb
Original file line number Diff line number Diff line change
Expand Up @@ -27,14 +27,18 @@ class ListRowsResponse
# Pagination links for the list rows response.
attr_reader :links

# Contains pagination details, including the continuation token for fetching additional rows.
attr_accessor :meta

attr_accessor :additional_properties

# Attribute mapping from ruby-style variable name to JSON key.
# @!visibility private
def self.attribute_map
{
:'data' => :'data',
:'links' => :'links'
:'links' => :'links',
:'meta' => :'meta'
}
end

Expand All @@ -43,7 +47,8 @@ def self.attribute_map
def self.openapi_types
{
:'data' => :'Array<TableRowResourceData>',
:'links' => :'ListRowsResponseLinks'
:'links' => :'ListRowsResponseLinks',
:'meta' => :'ListRowsResponseMeta'
}
end

Expand Down Expand Up @@ -74,6 +79,10 @@ def initialize(attributes = {})
if attributes.key?(:'links')
self.links = attributes[:'links']
end

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

# Check to see if the all the properties in the model are valid
Expand Down Expand Up @@ -133,14 +142,15 @@ def ==(o)
self.class == o.class &&
data == o.data &&
links == o.links &&
meta == o.meta &&
additional_properties == o.additional_properties
end

# Calculates hash code according to all attributes.
# @return [Integer] Hash code
# @!visibility private
def hash
[data, links, additional_properties].hash
[data, links, meta, additional_properties].hash
end
end
end
105 changes: 105 additions & 0 deletions lib/datadog_api_client/v2/models/list_rows_response_meta.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,105 @@
=begin
#Datadog API V2 Collection

#Collection of all Datadog Public endpoints.

The version of the OpenAPI document: 1.0
Contact: support@datadoghq.com
Generated by: https://github.com/DataDog/datadog-api-client-ruby/tree/master/.generator

Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License.
This product includes software developed at Datadog (https://www.datadoghq.com/).
Copyright 2020-Present Datadog, Inc.

=end

require 'date'
require 'time'

module DatadogAPIClient::V2
# Contains pagination details, including the continuation token for fetching additional rows.
class ListRowsResponseMeta
include BaseGenericModel

# Contains the continuation token for navigating to the next page of rows.
attr_accessor :page

attr_accessor :additional_properties

# Attribute mapping from ruby-style variable name to JSON key.
# @!visibility private
def self.attribute_map
{
:'page' => :'page'
}
end

# Attribute type mapping.
# @!visibility private
def self.openapi_types
{
:'page' => :'ListRowsResponseMetaPage'
}
end

# Initializes the object
# @param attributes [Hash] Model attributes in the form of hash
# @!visibility private
def initialize(attributes = {})
if (!attributes.is_a?(Hash))
fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::ListRowsResponseMeta` initialize method"
end

self.additional_properties = {}
# check to see if the attribute exists and convert string to symbol for hash key
attributes = attributes.each_with_object({}) { |(k, v), h|
if (!self.class.attribute_map.key?(k.to_sym))
self.additional_properties[k.to_sym] = v
else
h[k.to_sym] = v
end
}

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

# Returns the object in the form of hash, with additionalProperties support.
# @return [Hash] Returns the object in the form of hash
# @!visibility private
def to_hash
hash = {}
self.class.attribute_map.each_pair do |attr, param|
value = self.send(attr)
if value.nil?
is_nullable = self.class.openapi_nullable.include?(attr)
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
end

hash[param] = _to_hash(value)
end
self.additional_properties.each_pair do |attr, value|
hash[attr] = value
end
hash
end

# Checks equality by comparing each attribute.
# @param o [Object] Object to be compared
# @!visibility private
def ==(o)
return true if self.equal?(o)
self.class == o.class &&
page == o.page &&
additional_properties == o.additional_properties
end

# Calculates hash code according to all attributes.
# @return [Integer] Hash code
# @!visibility private
def hash
[page, additional_properties].hash
end
end
end
Loading
Loading