workos 2.4.0

Official Rust SDK for the WorkOS API
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
// This file is auto-generated by oagen. Do not edit.

use crate::client::Client;
#[allow(unused_imports)]
use crate::enums::*;
use crate::error::Error;
#[allow(unused_imports)]
use crate::models::*;
use serde::Serialize;

pub struct PipesApi<'a> {
    pub(crate) client: &'a Client,
}

#[derive(Debug, Clone, Serialize)]
pub struct ListDataIntegrationsParams {
    /// An object ID that defines your place in the list. When the ID is not present, you are at the end of the list. For example, if you make a list request and receive 100 objects, ending with `"obj_123"`, your subsequent call can include `before="obj_123"` to fetch a new batch of objects before `"obj_123"`.
    #[serde(skip_serializing_if = "Option::is_none")]
    pub before: Option<String>,
    /// An object ID that defines your place in the list. When the ID is not present, you are at the end of the list. For example, if you make a list request and receive 100 objects, ending with `"obj_123"`, your subsequent call can include `after="obj_123"` to fetch a new batch of objects after `"obj_123"`.
    #[serde(skip_serializing_if = "Option::is_none")]
    pub after: Option<String>,
    /// Upper limit on the number of objects to return, between `1` and `100`.
    ///
    /// Defaults to `10`.
    #[serde(skip_serializing_if = "Option::is_none")]
    pub limit: Option<i64>,
    /// Order the results by the creation time. Supported values are `"asc"` (ascending), `"desc"` (descending), and `"normal"` (descending with reversed cursor semantics where `before` fetches older records and `after` fetches newer records).
    ///
    /// Defaults to `desc`.
    #[serde(skip_serializing_if = "Option::is_none")]
    pub order: Option<PaginationOrder>,
}

impl Default for ListDataIntegrationsParams {
    #[allow(deprecated)]
    fn default() -> Self {
        Self {
            before: Default::default(),
            after: Default::default(),
            limit: Some(10),
            order: Some(PaginationOrder::Desc),
        }
    }
}

#[derive(Debug, Clone, Serialize)]
pub struct CreateDataIntegrationParams {
    /// Request body sent with this call.
    ///
    /// Required.
    #[serde(skip)]
    pub body: CreateDataIntegration,
}

impl CreateDataIntegrationParams {
    /// Construct a new `CreateDataIntegrationParams` with the required fields set.
    #[allow(deprecated)]
    pub fn new(body: CreateDataIntegration) -> Self {
        Self { body }
    }
}

#[derive(Debug, Clone, Serialize)]
pub struct UpdateDataIntegrationParams {
    /// Request body sent with this call.
    ///
    /// Required.
    #[serde(skip)]
    pub body: UpdateDataIntegration,
}

impl UpdateDataIntegrationParams {
    /// Construct a new `UpdateDataIntegrationParams` with the required fields set.
    #[allow(deprecated)]
    pub fn new(body: UpdateDataIntegration) -> Self {
        Self { body }
    }
}

#[derive(Debug, Clone, Serialize)]
pub struct UpdateDataIntegrationApiKeyParams {
    /// Request body sent with this call.
    ///
    /// Required.
    #[serde(skip)]
    pub body: DataIntegrationsUpsertApiKeyRequest,
}

impl UpdateDataIntegrationApiKeyParams {
    /// Construct a new `UpdateDataIntegrationApiKeyParams` with the required fields set.
    #[allow(deprecated)]
    pub fn new(body: DataIntegrationsUpsertApiKeyRequest) -> Self {
        Self { body }
    }
}

#[derive(Debug, Clone, Serialize)]
pub struct AuthorizeDataIntegrationParams {
    /// Request body sent with this call.
    ///
    /// Required.
    #[serde(skip)]
    pub body: DataIntegrationsGetDataIntegrationAuthorizeUrlRequest,
}

impl AuthorizeDataIntegrationParams {
    /// Construct a new `AuthorizeDataIntegrationParams` with the required fields set.
    #[allow(deprecated)]
    pub fn new(body: DataIntegrationsGetDataIntegrationAuthorizeUrlRequest) -> Self {
        Self { body }
    }
}

#[derive(Debug, Clone, Serialize)]
pub struct CreateDataIntegrationCredentialParams {
    /// Request body sent with this call.
    ///
    /// Required.
    #[serde(skip)]
    pub body: DataIntegrationsVendCredentialsRequest,
}

impl CreateDataIntegrationCredentialParams {
    /// Construct a new `CreateDataIntegrationCredentialParams` with the required fields set.
    #[allow(deprecated)]
    pub fn new(body: DataIntegrationsVendCredentialsRequest) -> Self {
        Self { body }
    }
}

#[derive(Debug, Clone, Serialize)]
pub struct GetAccessTokenParams {
    /// Request body sent with this call.
    ///
    /// Required.
    #[serde(skip)]
    pub body: DataIntegrationsGetUserTokenRequest,
}

impl GetAccessTokenParams {
    /// Construct a new `GetAccessTokenParams` with the required fields set.
    #[allow(deprecated)]
    pub fn new(body: DataIntegrationsGetUserTokenRequest) -> Self {
        Self { body }
    }
}

#[derive(Debug, Clone, Default, Serialize)]
pub struct GetUserConnectedAccountParams {
    /// An [Organization](https://workos.com/docs/reference/organization) identifier. Optional parameter if the connection is scoped to an organization.
    #[serde(skip_serializing_if = "Option::is_none")]
    pub organization_id: Option<String>,
}

#[derive(Debug, Clone, Serialize)]
pub struct CreateUserConnectedAccountParams {
    /// An [Organization](https://workos.com/docs/reference/organization) identifier. Optional parameter if the connection is scoped to an organization.
    #[serde(skip_serializing_if = "Option::is_none")]
    pub organization_id: Option<String>,
    /// Request body sent with this call.
    ///
    /// Required.
    #[serde(skip)]
    pub body: ConnectedAccountDto,
}

impl CreateUserConnectedAccountParams {
    /// Construct a new `CreateUserConnectedAccountParams` with the required fields set.
    #[allow(deprecated)]
    pub fn new(body: ConnectedAccountDto) -> Self {
        Self {
            organization_id: Default::default(),
            body,
        }
    }
}

#[derive(Debug, Clone, Serialize)]
pub struct UpdateUserConnectedAccountParams {
    /// An [Organization](https://workos.com/docs/reference/organization) identifier. Optional parameter if the connection is scoped to an organization.
    #[serde(skip_serializing_if = "Option::is_none")]
    pub organization_id: Option<String>,
    /// Request body sent with this call.
    ///
    /// Required.
    #[serde(skip)]
    pub body: ConnectedAccountDto,
}

impl UpdateUserConnectedAccountParams {
    /// Construct a new `UpdateUserConnectedAccountParams` with the required fields set.
    #[allow(deprecated)]
    pub fn new(body: ConnectedAccountDto) -> Self {
        Self {
            organization_id: Default::default(),
            body,
        }
    }
}

#[derive(Debug, Clone, Default, Serialize)]
pub struct DeleteUserConnectedAccountParams {
    /// An [Organization](https://workos.com/docs/reference/organization) identifier. Optional parameter if the connection is scoped to an organization.
    #[serde(skip_serializing_if = "Option::is_none")]
    pub organization_id: Option<String>,
}

#[derive(Debug, Clone, Default, Serialize)]
pub struct ListUserDataProvidersParams {
    /// An [Organization](https://workos.com/docs/reference/organization) identifier. Optional parameter to filter connections for a specific organization.
    #[serde(skip_serializing_if = "Option::is_none")]
    pub organization_id: Option<String>,
}

impl<'a> PipesApi<'a> {
    /// List data integrations
    ///
    /// Lists the environment's data integrations configured with `custom` or `organization` credentials, including custom providers.
    pub async fn list_data_integrations(
        &self,
        params: ListDataIntegrationsParams,
    ) -> Result<DataIntegrationList, Error> {
        self.list_data_integrations_with_options(params, None).await
    }

    /// Variant of [`Self::list_data_integrations`] that accepts per-request [`crate::RequestOptions`].
    pub async fn list_data_integrations_with_options(
        &self,
        params: ListDataIntegrationsParams,
        options: Option<&crate::RequestOptions>,
    ) -> Result<DataIntegrationList, Error> {
        let path = "/data-integrations".to_string();
        let method = http::Method::GET;
        self.client
            .request_with_query_opts(method, &path, &params, options)
            .await
    }

    /// Returns an async [`futures_util::Stream`] that yields every `DataIntegration`
    /// across all pages, advancing the `after` cursor under the hood.
    ///
    /// ```ignore
    /// use futures_util::TryStreamExt;
    /// let all: Vec<DataIntegration> = self
    ///     .list_data_integrations_auto_paging(params)
    ///     .try_collect()
    ///     .await?;
    /// ```
    pub fn list_data_integrations_auto_paging(
        &self,
        params: ListDataIntegrationsParams,
    ) -> impl futures_util::Stream<Item = Result<DataIntegration, Error>> + '_ {
        crate::pagination::auto_paginate_pages(move |after| {
            let mut params = params.clone();
            params.after = after;
            async move {
                let page = self.list_data_integrations(params).await?;
                Ok((page.data, page.list_metadata.after))
            }
        })
    }

    /// Create a data integration
    ///
    /// Creates a data integration for a provider. Set `credentials.type` to `custom` to use your own OAuth app credentials, or `organization` to have each organization supply its own. For a built-in provider, pass its slug as `provider`. For a custom provider, pass a new slug plus a `custom_provider` definition.
    pub async fn create_data_integration(
        &self,
        params: CreateDataIntegrationParams,
    ) -> Result<DataIntegration, Error> {
        self.create_data_integration_with_options(params, None)
            .await
    }

    /// Variant of [`Self::create_data_integration`] that accepts per-request [`crate::RequestOptions`].
    pub async fn create_data_integration_with_options(
        &self,
        params: CreateDataIntegrationParams,
        options: Option<&crate::RequestOptions>,
    ) -> Result<DataIntegration, Error> {
        let path = "/data-integrations".to_string();
        let method = http::Method::POST;
        self.client
            .request_with_body_opts(method, &path, &params, Some(&params.body), options)
            .await
    }

    /// Get a data integration
    ///
    /// Retrieves a data integration by its slug.
    pub async fn get_data_integration(&self, slug: &str) -> Result<DataIntegration, Error> {
        self.get_data_integration_with_options(slug, None).await
    }

    /// Variant of [`Self::get_data_integration`] that accepts per-request [`crate::RequestOptions`].
    pub async fn get_data_integration_with_options(
        &self,
        slug: &str,
        options: Option<&crate::RequestOptions>,
    ) -> Result<DataIntegration, Error> {
        let slug = crate::client::path_segment(slug);
        let path = format!("/data-integrations/{slug}");
        let method = http::Method::GET;
        self.client
            .request_with_query_opts(method, &path, &(), options)
            .await
    }

    /// Update a data integration
    ///
    /// Updates the description, enabled state, or custom credentials of a data integration. For custom providers, `custom_provider` updates the OAuth definition.
    pub async fn update_data_integration(
        &self,
        slug: &str,
        params: UpdateDataIntegrationParams,
    ) -> Result<DataIntegration, Error> {
        self.update_data_integration_with_options(slug, params, None)
            .await
    }

    /// Variant of [`Self::update_data_integration`] that accepts per-request [`crate::RequestOptions`].
    pub async fn update_data_integration_with_options(
        &self,
        slug: &str,
        params: UpdateDataIntegrationParams,
        options: Option<&crate::RequestOptions>,
    ) -> Result<DataIntegration, Error> {
        let slug = crate::client::path_segment(slug);
        let path = format!("/data-integrations/{slug}");
        let method = http::Method::PUT;
        self.client
            .request_with_body_opts(method, &path, &params, Some(&params.body), options)
            .await
    }

    /// Delete a data integration
    ///
    /// Deletes a data integration and all of its connected installations. For a custom provider, also deletes the custom provider definition.
    pub async fn delete_data_integration(&self, slug: &str) -> Result<(), Error> {
        self.delete_data_integration_with_options(slug, None).await
    }

    /// Variant of [`Self::delete_data_integration`] that accepts per-request [`crate::RequestOptions`].
    pub async fn delete_data_integration_with_options(
        &self,
        slug: &str,
        options: Option<&crate::RequestOptions>,
    ) -> Result<(), Error> {
        let slug = crate::client::path_segment(slug);
        let path = format!("/data-integrations/{slug}");
        let method = http::Method::DELETE;
        self.client
            .request_with_query_opts_empty(method, &path, &(), options)
            .await
    }

    /// Upsert an API key for a connected account
    ///
    /// Creates or updates an API-key-based installation for the specified integration and user. If an installation already exists, the stored API key is rotated to the new value.
    pub async fn update_data_integration_api_key(
        &self,
        slug: &str,
        params: UpdateDataIntegrationApiKeyParams,
    ) -> Result<ConnectedAccount, Error> {
        self.update_data_integration_api_key_with_options(slug, params, None)
            .await
    }

    /// Variant of [`Self::update_data_integration_api_key`] that accepts per-request [`crate::RequestOptions`].
    pub async fn update_data_integration_api_key_with_options(
        &self,
        slug: &str,
        params: UpdateDataIntegrationApiKeyParams,
        options: Option<&crate::RequestOptions>,
    ) -> Result<ConnectedAccount, Error> {
        let slug = crate::client::path_segment(slug);
        let path = format!("/data-integrations/{slug}/api-key");
        let method = http::Method::PUT;
        self.client
            .request_with_body_opts(method, &path, &params, Some(&params.body), options)
            .await
    }

    /// Get authorization URL
    ///
    /// Generates an OAuth authorization URL to initiate the connection flow for a user. Redirect the user to the returned URL to begin the OAuth flow with the third-party provider.
    pub async fn authorize_data_integration(
        &self,
        slug: &str,
        params: AuthorizeDataIntegrationParams,
    ) -> Result<DataIntegrationAuthorizeUrlResponse, Error> {
        self.authorize_data_integration_with_options(slug, params, None)
            .await
    }

    /// Variant of [`Self::authorize_data_integration`] that accepts per-request [`crate::RequestOptions`].
    pub async fn authorize_data_integration_with_options(
        &self,
        slug: &str,
        params: AuthorizeDataIntegrationParams,
        options: Option<&crate::RequestOptions>,
    ) -> Result<DataIntegrationAuthorizeUrlResponse, Error> {
        let slug = crate::client::path_segment(slug);
        let path = format!("/data-integrations/{slug}/authorize");
        let method = http::Method::POST;
        self.client
            .request_with_body_opts(method, &path, &params, Some(&params.body), options)
            .await
    }

    /// Vend credentials for a connected account
    ///
    /// Returns credentials for a user's connected account. Branches on the installation's `auth_method`: OAuth installations return an access token (refreshed if needed); API-key installations return the stored secret.
    pub async fn create_data_integration_credential(
        &self,
        slug: &str,
        params: CreateDataIntegrationCredentialParams,
    ) -> Result<DataIntegrationCredentialsResponse, Error> {
        self.create_data_integration_credential_with_options(slug, params, None)
            .await
    }

    /// Variant of [`Self::create_data_integration_credential`] that accepts per-request [`crate::RequestOptions`].
    pub async fn create_data_integration_credential_with_options(
        &self,
        slug: &str,
        params: CreateDataIntegrationCredentialParams,
        options: Option<&crate::RequestOptions>,
    ) -> Result<DataIntegrationCredentialsResponse, Error> {
        let slug = crate::client::path_segment(slug);
        let path = format!("/data-integrations/{slug}/credentials");
        let method = http::Method::POST;
        self.client
            .request_with_body_opts(method, &path, &params, Some(&params.body), options)
            .await
    }

    /// Get an access token for a connected account
    ///
    /// Fetches a valid OAuth access token for a user's connected account. WorkOS automatically handles token refresh, ensuring you always receive a valid, non-expired token.
    pub async fn get_access_token(
        &self,
        provider: &str,
        params: GetAccessTokenParams,
    ) -> Result<DataIntegrationAccessTokenResponse, Error> {
        self.get_access_token_with_options(provider, params, None)
            .await
    }

    /// Variant of [`Self::get_access_token`] that accepts per-request [`crate::RequestOptions`].
    pub async fn get_access_token_with_options(
        &self,
        provider: &str,
        params: GetAccessTokenParams,
        options: Option<&crate::RequestOptions>,
    ) -> Result<DataIntegrationAccessTokenResponse, Error> {
        let provider = crate::client::path_segment(provider);
        let path = format!("/data-integrations/{provider}/token");
        let method = http::Method::POST;
        self.client
            .request_with_body_opts(method, &path, &params, Some(&params.body), options)
            .await
    }

    /// Get a connected account
    ///
    /// Retrieves a user's [connected account](https://workos.com/docs/reference/pipes/connected-account) for a specific provider.
    pub async fn get_user_connected_account(
        &self,
        user_id: &str,
        slug: &str,
        params: GetUserConnectedAccountParams,
    ) -> Result<ConnectedAccount, Error> {
        self.get_user_connected_account_with_options(user_id, slug, params, None)
            .await
    }

    /// Variant of [`Self::get_user_connected_account`] that accepts per-request [`crate::RequestOptions`].
    pub async fn get_user_connected_account_with_options(
        &self,
        user_id: &str,
        slug: &str,
        params: GetUserConnectedAccountParams,
        options: Option<&crate::RequestOptions>,
    ) -> Result<ConnectedAccount, Error> {
        let user_id = crate::client::path_segment(user_id);
        let slug = crate::client::path_segment(slug);
        let path = format!("/user_management/users/{user_id}/connected_accounts/{slug}");
        let method = http::Method::GET;
        self.client
            .request_with_query_opts(method, &path, &params, options)
            .await
    }

    /// Import a connected account
    ///
    /// Imports a [connected account](https://workos.com/docs/reference/pipes/connected-account) for a user by providing OAuth tokens directly. Use this to migrate existing connections or set up connections without going through the OAuth flow.
    pub async fn create_user_connected_account(
        &self,
        user_id: &str,
        slug: &str,
        params: CreateUserConnectedAccountParams,
    ) -> Result<ConnectedAccount, Error> {
        self.create_user_connected_account_with_options(user_id, slug, params, None)
            .await
    }

    /// Variant of [`Self::create_user_connected_account`] that accepts per-request [`crate::RequestOptions`].
    pub async fn create_user_connected_account_with_options(
        &self,
        user_id: &str,
        slug: &str,
        params: CreateUserConnectedAccountParams,
        options: Option<&crate::RequestOptions>,
    ) -> Result<ConnectedAccount, Error> {
        let user_id = crate::client::path_segment(user_id);
        let slug = crate::client::path_segment(slug);
        let path = format!("/user_management/users/{user_id}/connected_accounts/{slug}");
        let method = http::Method::POST;
        self.client
            .request_with_body_opts(method, &path, &params, Some(&params.body), options)
            .await
    }

    /// Update a connected account
    ///
    /// Updates a user's [connected account](https://workos.com/docs/reference/pipes/connected-account) tokens, scopes, or state for a specific provider.
    pub async fn update_user_connected_account(
        &self,
        user_id: &str,
        slug: &str,
        params: UpdateUserConnectedAccountParams,
    ) -> Result<ConnectedAccount, Error> {
        self.update_user_connected_account_with_options(user_id, slug, params, None)
            .await
    }

    /// Variant of [`Self::update_user_connected_account`] that accepts per-request [`crate::RequestOptions`].
    pub async fn update_user_connected_account_with_options(
        &self,
        user_id: &str,
        slug: &str,
        params: UpdateUserConnectedAccountParams,
        options: Option<&crate::RequestOptions>,
    ) -> Result<ConnectedAccount, Error> {
        let user_id = crate::client::path_segment(user_id);
        let slug = crate::client::path_segment(slug);
        let path = format!("/user_management/users/{user_id}/connected_accounts/{slug}");
        let method = http::Method::PUT;
        self.client
            .request_with_body_opts(method, &path, &params, Some(&params.body), options)
            .await
    }

    /// Delete a connected account
    ///
    /// Disconnects WorkOS's account for the user, including removing any stored access and refresh tokens. The user will need to reauthorize if they want to reconnect. This does not revoke access on the provider side.
    pub async fn delete_user_connected_account(
        &self,
        user_id: &str,
        slug: &str,
        params: DeleteUserConnectedAccountParams,
    ) -> Result<(), Error> {
        self.delete_user_connected_account_with_options(user_id, slug, params, None)
            .await
    }

    /// Variant of [`Self::delete_user_connected_account`] that accepts per-request [`crate::RequestOptions`].
    pub async fn delete_user_connected_account_with_options(
        &self,
        user_id: &str,
        slug: &str,
        params: DeleteUserConnectedAccountParams,
        options: Option<&crate::RequestOptions>,
    ) -> Result<(), Error> {
        let user_id = crate::client::path_segment(user_id);
        let slug = crate::client::path_segment(slug);
        let path = format!("/user_management/users/{user_id}/connected_accounts/{slug}");
        let method = http::Method::DELETE;
        self.client
            .request_with_query_opts_empty(method, &path, &params, options)
            .await
    }

    /// List providers for a user
    ///
    /// Retrieves a list of available providers and the user's connection status for each. Returns all providers configured for your environment, along with the user's [connected account](https://workos.com/docs/reference/pipes/connected-account) information where applicable.
    pub async fn list_user_data_providers(
        &self,
        user_id: &str,
        params: ListUserDataProvidersParams,
    ) -> Result<DataIntegrationsListResponse, Error> {
        self.list_user_data_providers_with_options(user_id, params, None)
            .await
    }

    /// Variant of [`Self::list_user_data_providers`] that accepts per-request [`crate::RequestOptions`].
    pub async fn list_user_data_providers_with_options(
        &self,
        user_id: &str,
        params: ListUserDataProvidersParams,
        options: Option<&crate::RequestOptions>,
    ) -> Result<DataIntegrationsListResponse, Error> {
        let user_id = crate::client::path_segment(user_id);
        let path = format!("/user_management/users/{user_id}/data_providers");
        let method = http::Method::GET;
        self.client
            .request_with_query_opts(method, &path, &params, options)
            .await
    }
}