Skip to content

Commit 6d30d42

Browse files
api-clients-generation-pipeline[bot]ci.datadog-api-spec
andauthored
Add Query Parameters to ListOrgConnections Endpoint (#2663)
Co-authored-by: ci.datadog-api-spec <[email protected]>
1 parent 64d6a2d commit 6d30d42

File tree

3 files changed

+47
-0
lines changed

3 files changed

+47
-0
lines changed

.generator/schemas/v2/openapi.yaml

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62417,6 +62417,39 @@ paths:
6241762417
get:
6241862418
description: Returns a list of org connections.
6241962419
operationId: ListOrgConnections
62420+
parameters:
62421+
- description: The Org ID of the sink org.
62422+
example: 0879ce27-29a1-481f-a12e-bc2a48ec9ae1
62423+
in: query
62424+
name: sink_org_id
62425+
required: false
62426+
schema:
62427+
type: string
62428+
- description: The Org ID of the source org.
62429+
example: 0879ce27-29a1-481f-a12e-bc2a48ec9ae1
62430+
in: query
62431+
name: source_org_id
62432+
required: false
62433+
schema:
62434+
type: string
62435+
- description: The limit of number of entries you want to return. Default is
62436+
1000.
62437+
example: 1000
62438+
in: query
62439+
name: limit
62440+
required: false
62441+
schema:
62442+
format: int64
62443+
type: integer
62444+
- description: The pagination offset which you want to query from. Default is
62445+
0.
62446+
example: 0
62447+
in: query
62448+
name: offset
62449+
required: false
62450+
schema:
62451+
format: int64
62452+
type: integer
6242062453
responses:
6242162454
'200':
6242262455
content:

features/scenarios_model_mapping.rb

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2385,6 +2385,12 @@
23852385
"v2.UploadIdPMetadata" => {
23862386
"idp_file" => "File",
23872387
},
2388+
"v2.ListOrgConnections" => {
2389+
"sink_org_id" => "String",
2390+
"source_org_id" => "String",
2391+
"limit" => "Integer",
2392+
"offset" => "Integer",
2393+
},
23882394
"v2.CreateOrgConnections" => {
23892395
"body" => "OrgConnectionCreateRequest",
23902396
},

lib/datadog_api_client/v2/api/org_connections_api.rb

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -168,6 +168,10 @@ def list_org_connections(opts = {})
168168
# Returns a list of org connections.
169169
#
170170
# @param opts [Hash] the optional parameters
171+
# @option opts [String] :sink_org_id The Org ID of the sink org.
172+
# @option opts [String] :source_org_id The Org ID of the source org.
173+
# @option opts [Integer] :limit The limit of number of entries you want to return. Default is 1000.
174+
# @option opts [Integer] :offset The pagination offset which you want to query from. Default is 0.
171175
# @return [Array<(OrgConnectionListResponse, Integer, Hash)>] OrgConnectionListResponse data, response status code and response headers
172176
def list_org_connections_with_http_info(opts = {})
173177

@@ -179,6 +183,10 @@ def list_org_connections_with_http_info(opts = {})
179183

180184
# query parameters
181185
query_params = opts[:query_params] || {}
186+
query_params[:'sink_org_id'] = opts[:'sink_org_id'] if !opts[:'sink_org_id'].nil?
187+
query_params[:'source_org_id'] = opts[:'source_org_id'] if !opts[:'source_org_id'].nil?
188+
query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
189+
query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil?
182190

183191
# header parameters
184192
header_params = opts[:header_params] || {}

0 commit comments

Comments
 (0)