Skip to content

Commit 4b6f42d

Browse files
api-clients-generation-pipeline[bot]ci.datadog-api-spec
andauthored
update query string for api/v2/reference-tables/tables (#2759)
Co-authored-by: ci.datadog-api-spec <packages@datadoghq.com>
1 parent bd54eba commit 4b6f42d

File tree

3 files changed

+14
-14
lines changed

3 files changed

+14
-14
lines changed

.generator/schemas/v2/openapi.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71031,7 +71031,7 @@ paths:
7103171031
- description: Number of tables to return.
7103271032
example: 15
7103371033
in: query
71034-
name: limit
71034+
name: page[limit]
7103571035
required: false
7103671036
schema:
7103771037
default: 15
@@ -71042,7 +71042,7 @@ paths:
7104271042
- description: Number of tables to skip for pagination.
7104371043
example: 0
7104471044
in: query
71045-
name: offset
71045+
name: page[offset]
7104671046
required: false
7104771047
schema:
7104871048
default: 0

features/scenarios_model_mapping.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2648,8 +2648,8 @@
26482648
"page_cursor" => "String",
26492649
},
26502650
"v2.ListTables" => {
2651-
"limit" => "Integer",
2652-
"offset" => "Integer",
2651+
"page_limit" => "Integer",
2652+
"page_offset" => "Integer",
26532653
"sort" => "ReferenceTableSortType",
26542654
"filter_status" => "String",
26552655
"filter_table_name_exact" => "String",

lib/datadog_api_client/v2/api/reference_tables_api.rb

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -372,8 +372,8 @@ def list_tables(opts = {})
372372
# List all reference tables in this organization.
373373
#
374374
# @param opts [Hash] the optional parameters
375-
# @option opts [Integer] :limit Number of tables to return.
376-
# @option opts [Integer] :offset Number of tables to skip for pagination.
375+
# @option opts [Integer] :page_limit Number of tables to return.
376+
# @option opts [Integer] :page_offset Number of tables to skip for pagination.
377377
# @option opts [ReferenceTableSortType] :sort Sort field and direction. Use field name for ascending, prefix with "-" for descending.
378378
# @option opts [String] :filter_status Filter by table status.
379379
# @option opts [String] :filter_table_name_exact Filter by exact table name match.
@@ -384,14 +384,14 @@ def list_tables_with_http_info(opts = {})
384384
if @api_client.config.debugging
385385
@api_client.config.logger.debug 'Calling API: ReferenceTablesAPI.list_tables ...'
386386
end
387-
if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] > 100
388-
fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling ReferenceTablesAPI.list_tables, must be smaller than or equal to 100.'
387+
if @api_client.config.client_side_validation && !opts[:'page_limit'].nil? && opts[:'page_limit'] > 100
388+
fail ArgumentError, 'invalid value for "opts[:"page_limit"]" when calling ReferenceTablesAPI.list_tables, must be smaller than or equal to 100.'
389389
end
390-
if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] < 1
391-
fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling ReferenceTablesAPI.list_tables, must be greater than or equal to 1.'
390+
if @api_client.config.client_side_validation && !opts[:'page_limit'].nil? && opts[:'page_limit'] < 1
391+
fail ArgumentError, 'invalid value for "opts[:"page_limit"]" when calling ReferenceTablesAPI.list_tables, must be greater than or equal to 1.'
392392
end
393-
if @api_client.config.client_side_validation && !opts[:'offset'].nil? && opts[:'offset'] < 0
394-
fail ArgumentError, 'invalid value for "opts[:"offset"]" when calling ReferenceTablesAPI.list_tables, must be greater than or equal to 0.'
393+
if @api_client.config.client_side_validation && !opts[:'page_offset'].nil? && opts[:'page_offset'] < 0
394+
fail ArgumentError, 'invalid value for "opts[:"page_offset"]" when calling ReferenceTablesAPI.list_tables, must be greater than or equal to 0.'
395395
end
396396
allowable_values = ['updated_at', 'table_name', 'status', '-updated_at', '-table_name', '-status']
397397
if @api_client.config.client_side_validation && opts[:'sort'] && !allowable_values.include?(opts[:'sort'])
@@ -402,8 +402,8 @@ def list_tables_with_http_info(opts = {})
402402

403403
# query parameters
404404
query_params = opts[:query_params] || {}
405-
query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
406-
query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil?
405+
query_params[:'page[limit]'] = opts[:'page_limit'] if !opts[:'page_limit'].nil?
406+
query_params[:'page[offset]'] = opts[:'page_offset'] if !opts[:'page_offset'].nil?
407407
query_params[:'sort'] = opts[:'sort'] if !opts[:'sort'].nil?
408408
query_params[:'filter[status]'] = opts[:'filter_status'] if !opts[:'filter_status'].nil?
409409
query_params[:'filter[table_name][exact]'] = opts[:'filter_table_name_exact'] if !opts[:'filter_table_name_exact'].nil?

0 commit comments

Comments
 (0)