Skip to content

Commit

Permalink
Fix ListServiceDefinitions pagination information (#1897)
Browse files Browse the repository at this point in the history
Co-authored-by: ci.datadog-api-spec <[email protected]>
  • Loading branch information
api-clients-generation-pipeline[bot] and ci.datadog-api-spec authored Mar 7, 2024
1 parent 1599551 commit 70a0024
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 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.6.6",
"regenerated": "2024-03-07 14:48:21.110074",
"spec_repo_commit": "dbf17f07"
"regenerated": "2024-03-07 16:40:15.725956",
"spec_repo_commit": "ba5b230c"
},
"v2": {
"apigentools_version": "1.6.6",
"regenerated": "2024-03-07 14:48:21.127279",
"spec_repo_commit": "dbf17f07"
"regenerated": "2024-03-07 16:40:15.743321",
"spec_repo_commit": "ba5b230c"
}
}
}
2 changes: 1 addition & 1 deletion .generator/schemas/v2/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -32455,7 +32455,7 @@ paths:
- Service Definition
x-pagination:
limitParam: page[size]
pageOffsetParam: page[number]
pageParam: page[number]
resultsPath: data
post:
description: Create or update service definition in the Datadog Service Catalog.
Expand Down
2 changes: 1 addition & 1 deletion src/datadog_api_client/v2/api/service_definition_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -266,7 +266,7 @@ def list_service_definitions_with_pagination(
pagination = {
"limit_value": local_page_size,
"results_path": "data",
"page_offset_param": "page_number",
"page_param": "page_number",
"endpoint": endpoint,
"kwargs": kwargs,
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ interactions:
accept:
- application/json
method: GET
uri: https://api.datadoghq.com/api/v2/services/definitions?page%5Bsize%5D=2
uri: https://api.datadoghq.com/api/v2/services/definitions?page%5Bsize%5D=2&page%5Bnumber%5D=0
response:
body:
string: '{"data":[{"type":"service-definition","id":"000c4db9ae43787066748b39ad1c3059","attributes":{"meta":{"last-modified-time":"2023-04-03T20:23:00Z","github-html-url":"","ingestion-source":"api","origin":"unknown","origin-detail":"","warnings":[],"ingested-schema-version":"v2.1"},"schema":{"schema-version":"v2.1","dd-service":"service-examplecreateorupdateservicedefinitionusingschemav21returnscreatedresponse1680553380","team":"my-team","contacts":[{"name":"Team
Expand All @@ -29,7 +29,7 @@ interactions:
accept:
- application/json
method: GET
uri: https://api.datadoghq.com/api/v2/services/definitions?page%5Bsize%5D=2&page%5Bnumber%5D=2
uri: https://api.datadoghq.com/api/v2/services/definitions?page%5Bsize%5D=2&page%5Bnumber%5D=1
response:
body:
string: '{"data":[{"type":"service-definition","id":"0059bcab67b74e99cc832ca503019574","attributes":{"meta":{"last-modified-time":"2023-03-02T12:21:20Z","github-html-url":"","ingestion-source":"api","origin":"dd_terraform","origin-detail":"","warnings":[{"keyword-location":"/properties/contacts/items/$ref/allOf/1/then/properties/contact/pattern","instance-location":"/contacts/0/contact","message":"does
Expand Down

0 comments on commit 70a0024

Please sign in to comment.