diff --git a/.generator/schemas/v1/openapi.yaml b/.generator/schemas/v1/openapi.yaml index dad68d43ee65..7ffcafb30797 100644 --- a/.generator/schemas/v1/openapi.yaml +++ b/.generator/schemas/v1/openapi.yaml @@ -28743,6 +28743,7 @@ paths: - us5.datadoghq.com - ap1.datadoghq.com - ap2.datadoghq.com + - uk1.datadoghq.com - datadoghq.eu - ddog-gov.com - us2.ddog-gov.com @@ -28752,6 +28753,7 @@ paths: - US5 - AP1 - AP2 + - UK1 - EU1 - GOV - US2_GOV @@ -44289,6 +44291,7 @@ paths: - us5.datadoghq.com - ap1.datadoghq.com - ap2.datadoghq.com + - uk1.datadoghq.com - datadoghq.eu - ddog-gov.com - us2.ddog-gov.com @@ -44298,6 +44301,7 @@ paths: - US5 - AP1 - AP2 + - UK1 - EU1 - GOV - US2_GOV @@ -44339,6 +44343,7 @@ servers: - us5.datadoghq.com - ap1.datadoghq.com - ap2.datadoghq.com + - uk1.datadoghq.com - datadoghq.eu - ddog-gov.com - us2.ddog-gov.com diff --git a/.generator/schemas/v2/openapi.yaml b/.generator/schemas/v2/openapi.yaml index e8790871ff0c..731b9e51606d 100644 --- a/.generator/schemas/v2/openapi.yaml +++ b/.generator/schemas/v2/openapi.yaml @@ -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. @@ -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. @@ -56974,6 +56993,8 @@ components: type: array links: $ref: "#/components/schemas/ListRowsResponseLinks" + meta: + $ref: "#/components/schemas/ListRowsResponseMeta" required: - data - links @@ -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: @@ -133398,6 +133433,7 @@ paths: - us5.datadoghq.com - ap1.datadoghq.com - ap2.datadoghq.com + - uk1.datadoghq.com - datadoghq.eu - ddog-gov.com - us2.ddog-gov.com @@ -133407,6 +133443,7 @@ paths: - US5 - AP1 - AP2 + - UK1 - EU1 - GOV - US2_GOV @@ -150760,6 +150797,7 @@ paths: - us5.datadoghq.com - ap1.datadoghq.com - ap2.datadoghq.com + - uk1.datadoghq.com - datadoghq.eu - ddog-gov.com - us2.ddog-gov.com @@ -150769,6 +150807,7 @@ paths: - US5 - AP1 - AP2 + - UK1 - EU1 - GOV - US2_GOV @@ -196473,6 +196512,7 @@ servers: - us5.datadoghq.com - ap1.datadoghq.com - ap2.datadoghq.com + - uk1.datadoghq.com - datadoghq.eu - ddog-gov.com - us2.ddog-gov.com diff --git a/lib/datadog_api_client/configuration.rb b/lib/datadog_api_client/configuration.rb index 850ba98a759c..7fdc9bf03046 100644 --- a/lib/datadog_api_client/configuration.rb +++ b/lib/datadog_api_client/configuration.rb @@ -836,6 +836,7 @@ def server_settings "us5.datadoghq.com", "ap1.datadoghq.com", "ap2.datadoghq.com", + "uk1.datadoghq.com", "datadoghq.eu", "ddog-gov.com", "us2.ddog-gov.com", @@ -895,6 +896,7 @@ def operation_server_settings "us5.datadoghq.com", "ap1.datadoghq.com", "ap2.datadoghq.com", + "uk1.datadoghq.com", "datadoghq.eu", "ddog-gov.com", "us2.ddog-gov.com" @@ -945,6 +947,7 @@ def operation_server_settings "us5.datadoghq.com", "ap1.datadoghq.com", "ap2.datadoghq.com", + "uk1.datadoghq.com", "datadoghq.eu", "ddog-gov.com", "us2.ddog-gov.com" @@ -999,6 +1002,7 @@ def operation_server_settings "us5.datadoghq.com", "ap1.datadoghq.com", "ap2.datadoghq.com", + "uk1.datadoghq.com", "datadoghq.eu", "ddog-gov.com", "us2.ddog-gov.com" @@ -1053,6 +1057,7 @@ def operation_server_settings "us5.datadoghq.com", "ap1.datadoghq.com", "ap2.datadoghq.com", + "uk1.datadoghq.com", "datadoghq.eu", "ddog-gov.com", "us2.ddog-gov.com" diff --git a/lib/datadog_api_client/inflector.rb b/lib/datadog_api_client/inflector.rb index 60146fbaa7eb..87d4548ec52d 100644 --- a/lib/datadog_api_client/inflector.rb +++ b/lib/datadog_api_client/inflector.rb @@ -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", diff --git a/lib/datadog_api_client/v2/models/batch_rows_query_response.rb b/lib/datadog_api_client/v2/models/batch_rows_query_response.rb index f1ff3fded1e4..9b7cc7f91f70 100644 --- a/lib/datadog_api_client/v2/models/batch_rows_query_response.rb +++ b/lib/datadog_api_client/v2/models/batch_rows_query_response.rb @@ -24,13 +24,17 @@ 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 @@ -38,7 +42,8 @@ def self.attribute_map # @!visibility private def self.openapi_types { - :'data' => :'BatchRowsQueryResponseData' + :'data' => :'BatchRowsQueryResponseData', + :'included' => :'Array' } end @@ -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. @@ -92,6 +103,7 @@ def ==(o) return true if self.equal?(o) self.class == o.class && data == o.data && + included == o.included && additional_properties == o.additional_properties end @@ -99,7 +111,7 @@ def ==(o) # @return [Integer] Hash code # @!visibility private def hash - [data, additional_properties].hash + [data, included, additional_properties].hash end end end diff --git a/lib/datadog_api_client/v2/models/list_rows_response.rb b/lib/datadog_api_client/v2/models/list_rows_response.rb index 83d562f457f8..a056745c0dd5 100644 --- a/lib/datadog_api_client/v2/models/list_rows_response.rb +++ b/lib/datadog_api_client/v2/models/list_rows_response.rb @@ -27,6 +27,9 @@ 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. @@ -34,7 +37,8 @@ class ListRowsResponse def self.attribute_map { :'data' => :'data', - :'links' => :'links' + :'links' => :'links', + :'meta' => :'meta' } end @@ -43,7 +47,8 @@ def self.attribute_map def self.openapi_types { :'data' => :'Array', - :'links' => :'ListRowsResponseLinks' + :'links' => :'ListRowsResponseLinks', + :'meta' => :'ListRowsResponseMeta' } end @@ -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 @@ -133,6 +142,7 @@ def ==(o) self.class == o.class && data == o.data && links == o.links && + meta == o.meta && additional_properties == o.additional_properties end @@ -140,7 +150,7 @@ def ==(o) # @return [Integer] Hash code # @!visibility private def hash - [data, links, additional_properties].hash + [data, links, meta, additional_properties].hash end end end diff --git a/lib/datadog_api_client/v2/models/list_rows_response_meta.rb b/lib/datadog_api_client/v2/models/list_rows_response_meta.rb new file mode 100644 index 000000000000..fec2f40b0136 --- /dev/null +++ b/lib/datadog_api_client/v2/models/list_rows_response_meta.rb @@ -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 diff --git a/lib/datadog_api_client/v2/models/list_rows_response_meta_page.rb b/lib/datadog_api_client/v2/models/list_rows_response_meta_page.rb new file mode 100644 index 000000000000..3051963394bd --- /dev/null +++ b/lib/datadog_api_client/v2/models/list_rows_response_meta_page.rb @@ -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 the continuation token for navigating to the next page of rows. + class ListRowsResponseMetaPage + include BaseGenericModel + + # 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. + attr_accessor :next_continuation_token + + attr_accessor :additional_properties + + # Attribute mapping from ruby-style variable name to JSON key. + # @!visibility private + def self.attribute_map + { + :'next_continuation_token' => :'next_continuation_token' + } + end + + # Attribute type mapping. + # @!visibility private + def self.openapi_types + { + :'next_continuation_token' => :'String' + } + 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::ListRowsResponseMetaPage` 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?(:'next_continuation_token') + self.next_continuation_token = attributes[:'next_continuation_token'] + 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 && + next_continuation_token == o.next_continuation_token && + additional_properties == o.additional_properties + end + + # Calculates hash code according to all attributes. + # @return [Integer] Hash code + # @!visibility private + def hash + [next_continuation_token, additional_properties].hash + end + end +end