Skip to main content

akeyless_api/apis/
v2_api.rs

1/*
2 * Akeyless API
3 *
4 * The purpose of this application is to provide access to Akeyless API.
5 *
6 * The version of the OpenAPI document: 3.0
7 * Contact: support@akeyless.io
8 * Generated by: https://openapi-generator.tech
9 */
10
11
12use reqwest;
13use serde::{Deserialize, Serialize, de::Error as _};
14use crate::{apis::ResponseContent, models};
15use super::{Error, configuration, ContentType};
16
17
18/// struct for typed errors of method [`account_custom_field_create`]
19#[derive(Debug, Clone, Serialize, Deserialize)]
20#[serde(untagged)]
21pub enum AccountCustomFieldCreateError {
22    DefaultResponse(models::JsonError),
23    UnknownValue(serde_json::Value),
24}
25
26/// struct for typed errors of method [`account_custom_field_delete`]
27#[derive(Debug, Clone, Serialize, Deserialize)]
28#[serde(untagged)]
29pub enum AccountCustomFieldDeleteError {
30    DefaultResponse(models::JsonError),
31    UnknownValue(serde_json::Value),
32}
33
34/// struct for typed errors of method [`account_custom_field_get`]
35#[derive(Debug, Clone, Serialize, Deserialize)]
36#[serde(untagged)]
37pub enum AccountCustomFieldGetError {
38    DefaultResponse(models::JsonError),
39    UnknownValue(serde_json::Value),
40}
41
42/// struct for typed errors of method [`account_custom_field_list`]
43#[derive(Debug, Clone, Serialize, Deserialize)]
44#[serde(untagged)]
45pub enum AccountCustomFieldListError {
46    DefaultResponse(models::JsonError),
47    UnknownValue(serde_json::Value),
48}
49
50/// struct for typed errors of method [`account_custom_field_update`]
51#[derive(Debug, Clone, Serialize, Deserialize)]
52#[serde(untagged)]
53pub enum AccountCustomFieldUpdateError {
54    DefaultResponse(models::JsonError),
55    UnknownValue(serde_json::Value),
56}
57
58/// struct for typed errors of method [`alias_details`]
59#[derive(Debug, Clone, Serialize, Deserialize)]
60#[serde(untagged)]
61pub enum AliasDetailsError {
62    DefaultResponse(models::JsonError),
63    UnknownValue(serde_json::Value),
64}
65
66/// struct for typed errors of method [`assoc_role_auth_method`]
67#[derive(Debug, Clone, Serialize, Deserialize)]
68#[serde(untagged)]
69pub enum AssocRoleAuthMethodError {
70    DefaultResponse(models::JsonError),
71    UnknownValue(serde_json::Value),
72}
73
74/// struct for typed errors of method [`assoc_target_item`]
75#[derive(Debug, Clone, Serialize, Deserialize)]
76#[serde(untagged)]
77pub enum AssocTargetItemError {
78    DefaultResponse(models::JsonError),
79    UnknownValue(serde_json::Value),
80}
81
82/// struct for typed errors of method [`auth`]
83#[derive(Debug, Clone, Serialize, Deserialize)]
84#[serde(untagged)]
85pub enum AuthError {
86    Status401(models::JsonError),
87    DefaultResponse(models::JsonError),
88    UnknownValue(serde_json::Value),
89}
90
91/// struct for typed errors of method [`auth_method_create_api_key`]
92#[derive(Debug, Clone, Serialize, Deserialize)]
93#[serde(untagged)]
94pub enum AuthMethodCreateApiKeyError {
95    DefaultResponse(models::JsonError),
96    UnknownValue(serde_json::Value),
97}
98
99/// struct for typed errors of method [`auth_method_create_aws_iam`]
100#[derive(Debug, Clone, Serialize, Deserialize)]
101#[serde(untagged)]
102pub enum AuthMethodCreateAwsIamError {
103    DefaultResponse(models::JsonError),
104    UnknownValue(serde_json::Value),
105}
106
107/// struct for typed errors of method [`auth_method_create_azure_ad`]
108#[derive(Debug, Clone, Serialize, Deserialize)]
109#[serde(untagged)]
110pub enum AuthMethodCreateAzureAdError {
111    DefaultResponse(models::JsonError),
112    UnknownValue(serde_json::Value),
113}
114
115/// struct for typed errors of method [`auth_method_create_cert`]
116#[derive(Debug, Clone, Serialize, Deserialize)]
117#[serde(untagged)]
118pub enum AuthMethodCreateCertError {
119    DefaultResponse(models::JsonError),
120    UnknownValue(serde_json::Value),
121}
122
123/// struct for typed errors of method [`auth_method_create_email`]
124#[derive(Debug, Clone, Serialize, Deserialize)]
125#[serde(untagged)]
126pub enum AuthMethodCreateEmailError {
127    DefaultResponse(models::JsonError),
128    UnknownValue(serde_json::Value),
129}
130
131/// struct for typed errors of method [`auth_method_create_gcp`]
132#[derive(Debug, Clone, Serialize, Deserialize)]
133#[serde(untagged)]
134pub enum AuthMethodCreateGcpError {
135    DefaultResponse(models::JsonError),
136    UnknownValue(serde_json::Value),
137}
138
139/// struct for typed errors of method [`auth_method_create_k8s`]
140#[derive(Debug, Clone, Serialize, Deserialize)]
141#[serde(untagged)]
142pub enum AuthMethodCreateK8sError {
143    DefaultResponse(models::JsonError),
144    UnknownValue(serde_json::Value),
145}
146
147/// struct for typed errors of method [`auth_method_create_kerberos`]
148#[derive(Debug, Clone, Serialize, Deserialize)]
149#[serde(untagged)]
150pub enum AuthMethodCreateKerberosError {
151    DefaultResponse(models::JsonError),
152    UnknownValue(serde_json::Value),
153}
154
155/// struct for typed errors of method [`auth_method_create_ldap`]
156#[derive(Debug, Clone, Serialize, Deserialize)]
157#[serde(untagged)]
158pub enum AuthMethodCreateLdapError {
159    DefaultResponse(models::JsonError),
160    UnknownValue(serde_json::Value),
161}
162
163/// struct for typed errors of method [`auth_method_create_oauth2`]
164#[derive(Debug, Clone, Serialize, Deserialize)]
165#[serde(untagged)]
166pub enum AuthMethodCreateOauth2Error {
167    DefaultResponse(models::JsonError),
168    UnknownValue(serde_json::Value),
169}
170
171/// struct for typed errors of method [`auth_method_create_oci`]
172#[derive(Debug, Clone, Serialize, Deserialize)]
173#[serde(untagged)]
174pub enum AuthMethodCreateOciError {
175    DefaultResponse(models::JsonError),
176    UnknownValue(serde_json::Value),
177}
178
179/// struct for typed errors of method [`auth_method_create_oidc`]
180#[derive(Debug, Clone, Serialize, Deserialize)]
181#[serde(untagged)]
182pub enum AuthMethodCreateOidcError {
183    DefaultResponse(models::JsonError),
184    UnknownValue(serde_json::Value),
185}
186
187/// struct for typed errors of method [`auth_method_create_saml`]
188#[derive(Debug, Clone, Serialize, Deserialize)]
189#[serde(untagged)]
190pub enum AuthMethodCreateSamlError {
191    DefaultResponse(models::JsonError),
192    UnknownValue(serde_json::Value),
193}
194
195/// struct for typed errors of method [`auth_method_create_universal_identity`]
196#[derive(Debug, Clone, Serialize, Deserialize)]
197#[serde(untagged)]
198pub enum AuthMethodCreateUniversalIdentityError {
199    DefaultResponse(models::JsonError),
200    UnknownValue(serde_json::Value),
201}
202
203/// struct for typed errors of method [`auth_method_delete`]
204#[derive(Debug, Clone, Serialize, Deserialize)]
205#[serde(untagged)]
206pub enum AuthMethodDeleteError {
207    DefaultResponse(models::JsonError),
208    UnknownValue(serde_json::Value),
209}
210
211/// struct for typed errors of method [`auth_method_get`]
212#[derive(Debug, Clone, Serialize, Deserialize)]
213#[serde(untagged)]
214pub enum AuthMethodGetError {
215    DefaultResponse(models::JsonError),
216    UnknownValue(serde_json::Value),
217}
218
219/// struct for typed errors of method [`auth_method_list`]
220#[derive(Debug, Clone, Serialize, Deserialize)]
221#[serde(untagged)]
222pub enum AuthMethodListError {
223    DefaultResponse(models::JsonError),
224    UnknownValue(serde_json::Value),
225}
226
227/// struct for typed errors of method [`auth_method_update_api_key`]
228#[derive(Debug, Clone, Serialize, Deserialize)]
229#[serde(untagged)]
230pub enum AuthMethodUpdateApiKeyError {
231    DefaultResponse(models::JsonError),
232    UnknownValue(serde_json::Value),
233}
234
235/// struct for typed errors of method [`auth_method_update_aws_iam`]
236#[derive(Debug, Clone, Serialize, Deserialize)]
237#[serde(untagged)]
238pub enum AuthMethodUpdateAwsIamError {
239    DefaultResponse(models::JsonError),
240    UnknownValue(serde_json::Value),
241}
242
243/// struct for typed errors of method [`auth_method_update_azure_ad`]
244#[derive(Debug, Clone, Serialize, Deserialize)]
245#[serde(untagged)]
246pub enum AuthMethodUpdateAzureAdError {
247    DefaultResponse(models::JsonError),
248    UnknownValue(serde_json::Value),
249}
250
251/// struct for typed errors of method [`auth_method_update_cert`]
252#[derive(Debug, Clone, Serialize, Deserialize)]
253#[serde(untagged)]
254pub enum AuthMethodUpdateCertError {
255    DefaultResponse(models::JsonError),
256    UnknownValue(serde_json::Value),
257}
258
259/// struct for typed errors of method [`auth_method_update_email`]
260#[derive(Debug, Clone, Serialize, Deserialize)]
261#[serde(untagged)]
262pub enum AuthMethodUpdateEmailError {
263    DefaultResponse(models::JsonError),
264    UnknownValue(serde_json::Value),
265}
266
267/// struct for typed errors of method [`auth_method_update_gcp`]
268#[derive(Debug, Clone, Serialize, Deserialize)]
269#[serde(untagged)]
270pub enum AuthMethodUpdateGcpError {
271    DefaultResponse(models::JsonError),
272    UnknownValue(serde_json::Value),
273}
274
275/// struct for typed errors of method [`auth_method_update_k8s`]
276#[derive(Debug, Clone, Serialize, Deserialize)]
277#[serde(untagged)]
278pub enum AuthMethodUpdateK8sError {
279    DefaultResponse(models::JsonError),
280    UnknownValue(serde_json::Value),
281}
282
283/// struct for typed errors of method [`auth_method_update_kerberos`]
284#[derive(Debug, Clone, Serialize, Deserialize)]
285#[serde(untagged)]
286pub enum AuthMethodUpdateKerberosError {
287    DefaultResponse(models::JsonError),
288    UnknownValue(serde_json::Value),
289}
290
291/// struct for typed errors of method [`auth_method_update_ldap`]
292#[derive(Debug, Clone, Serialize, Deserialize)]
293#[serde(untagged)]
294pub enum AuthMethodUpdateLdapError {
295    DefaultResponse(models::JsonError),
296    UnknownValue(serde_json::Value),
297}
298
299/// struct for typed errors of method [`auth_method_update_oauth2`]
300#[derive(Debug, Clone, Serialize, Deserialize)]
301#[serde(untagged)]
302pub enum AuthMethodUpdateOauth2Error {
303    DefaultResponse(models::JsonError),
304    UnknownValue(serde_json::Value),
305}
306
307/// struct for typed errors of method [`auth_method_update_oci`]
308#[derive(Debug, Clone, Serialize, Deserialize)]
309#[serde(untagged)]
310pub enum AuthMethodUpdateOciError {
311    DefaultResponse(models::JsonError),
312    UnknownValue(serde_json::Value),
313}
314
315/// struct for typed errors of method [`auth_method_update_oidc`]
316#[derive(Debug, Clone, Serialize, Deserialize)]
317#[serde(untagged)]
318pub enum AuthMethodUpdateOidcError {
319    DefaultResponse(models::JsonError),
320    UnknownValue(serde_json::Value),
321}
322
323/// struct for typed errors of method [`auth_method_update_saml`]
324#[derive(Debug, Clone, Serialize, Deserialize)]
325#[serde(untagged)]
326pub enum AuthMethodUpdateSamlError {
327    DefaultResponse(models::JsonError),
328    UnknownValue(serde_json::Value),
329}
330
331/// struct for typed errors of method [`auth_method_update_universal_identity`]
332#[derive(Debug, Clone, Serialize, Deserialize)]
333#[serde(untagged)]
334pub enum AuthMethodUpdateUniversalIdentityError {
335    DefaultResponse(models::JsonError),
336    UnknownValue(serde_json::Value),
337}
338
339/// struct for typed errors of method [`calc_password_security_info`]
340#[derive(Debug, Clone, Serialize, Deserialize)]
341#[serde(untagged)]
342pub enum CalcPasswordSecurityInfoError {
343    DefaultResponse(models::JsonError),
344    UnknownValue(serde_json::Value),
345}
346
347/// struct for typed errors of method [`certificate_discovery`]
348#[derive(Debug, Clone, Serialize, Deserialize)]
349#[serde(untagged)]
350pub enum CertificateDiscoveryError {
351    DefaultResponse(models::JsonError),
352    UnknownValue(serde_json::Value),
353}
354
355/// struct for typed errors of method [`change_admin_account_password`]
356#[derive(Debug, Clone, Serialize, Deserialize)]
357#[serde(untagged)]
358pub enum ChangeAdminAccountPasswordError {
359    DefaultResponse(models::JsonError),
360    UnknownValue(serde_json::Value),
361}
362
363/// struct for typed errors of method [`configure`]
364#[derive(Debug, Clone, Serialize, Deserialize)]
365#[serde(untagged)]
366pub enum ConfigureError {
367    DefaultResponse(models::JsonError),
368    UnknownValue(serde_json::Value),
369}
370
371/// struct for typed errors of method [`connect`]
372#[derive(Debug, Clone, Serialize, Deserialize)]
373#[serde(untagged)]
374pub enum ConnectError {
375    DefaultResponse(models::JsonError),
376    UnknownValue(serde_json::Value),
377}
378
379/// struct for typed errors of method [`create_artifactory_target`]
380#[derive(Debug, Clone, Serialize, Deserialize)]
381#[serde(untagged)]
382pub enum CreateArtifactoryTargetError {
383    DefaultResponse(models::JsonError),
384    UnknownValue(serde_json::Value),
385}
386
387/// struct for typed errors of method [`create_auth_method`]
388#[derive(Debug, Clone, Serialize, Deserialize)]
389#[serde(untagged)]
390pub enum CreateAuthMethodError {
391    DefaultResponse(models::JsonError),
392    UnknownValue(serde_json::Value),
393}
394
395/// struct for typed errors of method [`create_auth_method_awsiam`]
396#[derive(Debug, Clone, Serialize, Deserialize)]
397#[serde(untagged)]
398pub enum CreateAuthMethodAwsiamError {
399    DefaultResponse(models::JsonError),
400    UnknownValue(serde_json::Value),
401}
402
403/// struct for typed errors of method [`create_auth_method_azure_ad`]
404#[derive(Debug, Clone, Serialize, Deserialize)]
405#[serde(untagged)]
406pub enum CreateAuthMethodAzureAdError {
407    DefaultResponse(models::JsonError),
408    UnknownValue(serde_json::Value),
409}
410
411/// struct for typed errors of method [`create_auth_method_cert`]
412#[derive(Debug, Clone, Serialize, Deserialize)]
413#[serde(untagged)]
414pub enum CreateAuthMethodCertError {
415    DefaultResponse(models::JsonError),
416    UnknownValue(serde_json::Value),
417}
418
419/// struct for typed errors of method [`create_auth_method_email`]
420#[derive(Debug, Clone, Serialize, Deserialize)]
421#[serde(untagged)]
422pub enum CreateAuthMethodEmailError {
423    DefaultResponse(models::JsonError),
424    UnknownValue(serde_json::Value),
425}
426
427/// struct for typed errors of method [`create_auth_method_gcp`]
428#[derive(Debug, Clone, Serialize, Deserialize)]
429#[serde(untagged)]
430pub enum CreateAuthMethodGcpError {
431    DefaultResponse(models::JsonError),
432    UnknownValue(serde_json::Value),
433}
434
435/// struct for typed errors of method [`create_auth_method_huawei`]
436#[derive(Debug, Clone, Serialize, Deserialize)]
437#[serde(untagged)]
438pub enum CreateAuthMethodHuaweiError {
439    DefaultResponse(models::JsonError),
440    UnknownValue(serde_json::Value),
441}
442
443/// struct for typed errors of method [`create_auth_method_k8_s`]
444#[derive(Debug, Clone, Serialize, Deserialize)]
445#[serde(untagged)]
446pub enum CreateAuthMethodK8SError {
447    DefaultResponse(models::JsonError),
448    UnknownValue(serde_json::Value),
449}
450
451/// struct for typed errors of method [`create_auth_method_ldap`]
452#[derive(Debug, Clone, Serialize, Deserialize)]
453#[serde(untagged)]
454pub enum CreateAuthMethodLdapError {
455    DefaultResponse(models::JsonError),
456    UnknownValue(serde_json::Value),
457}
458
459/// struct for typed errors of method [`create_auth_method_o_auth2`]
460#[derive(Debug, Clone, Serialize, Deserialize)]
461#[serde(untagged)]
462pub enum CreateAuthMethodOAuth2Error {
463    DefaultResponse(models::JsonError),
464    UnknownValue(serde_json::Value),
465}
466
467/// struct for typed errors of method [`create_auth_method_oci`]
468#[derive(Debug, Clone, Serialize, Deserialize)]
469#[serde(untagged)]
470pub enum CreateAuthMethodOciError {
471    DefaultResponse(models::JsonError),
472    UnknownValue(serde_json::Value),
473}
474
475/// struct for typed errors of method [`create_auth_method_oidc`]
476#[derive(Debug, Clone, Serialize, Deserialize)]
477#[serde(untagged)]
478pub enum CreateAuthMethodOidcError {
479    DefaultResponse(models::JsonError),
480    UnknownValue(serde_json::Value),
481}
482
483/// struct for typed errors of method [`create_auth_method_saml`]
484#[derive(Debug, Clone, Serialize, Deserialize)]
485#[serde(untagged)]
486pub enum CreateAuthMethodSamlError {
487    DefaultResponse(models::JsonError),
488    UnknownValue(serde_json::Value),
489}
490
491/// struct for typed errors of method [`create_auth_method_universal_identity`]
492#[derive(Debug, Clone, Serialize, Deserialize)]
493#[serde(untagged)]
494pub enum CreateAuthMethodUniversalIdentityError {
495    DefaultResponse(models::JsonError),
496    UnknownValue(serde_json::Value),
497}
498
499/// struct for typed errors of method [`create_aws_target`]
500#[derive(Debug, Clone, Serialize, Deserialize)]
501#[serde(untagged)]
502pub enum CreateAwsTargetError {
503    DefaultResponse(models::JsonError),
504    UnknownValue(serde_json::Value),
505}
506
507/// struct for typed errors of method [`create_azure_target`]
508#[derive(Debug, Clone, Serialize, Deserialize)]
509#[serde(untagged)]
510pub enum CreateAzureTargetError {
511    DefaultResponse(models::JsonError),
512    UnknownValue(serde_json::Value),
513}
514
515/// struct for typed errors of method [`create_certificate`]
516#[derive(Debug, Clone, Serialize, Deserialize)]
517#[serde(untagged)]
518pub enum CreateCertificateError {
519    DefaultResponse(models::JsonError),
520    UnknownValue(serde_json::Value),
521}
522
523/// struct for typed errors of method [`create_classic_key`]
524#[derive(Debug, Clone, Serialize, Deserialize)]
525#[serde(untagged)]
526pub enum CreateClassicKeyError {
527    DefaultResponse(models::JsonError),
528    UnknownValue(serde_json::Value),
529}
530
531/// struct for typed errors of method [`create_db_target`]
532#[derive(Debug, Clone, Serialize, Deserialize)]
533#[serde(untagged)]
534pub enum CreateDbTargetError {
535    DefaultResponse(models::JsonError),
536    UnknownValue(serde_json::Value),
537}
538
539/// struct for typed errors of method [`create_dfc_key`]
540#[derive(Debug, Clone, Serialize, Deserialize)]
541#[serde(untagged)]
542pub enum CreateDfcKeyError {
543    DefaultResponse(models::JsonError),
544    UnknownValue(serde_json::Value),
545}
546
547/// struct for typed errors of method [`create_dockerhub_target`]
548#[derive(Debug, Clone, Serialize, Deserialize)]
549#[serde(untagged)]
550pub enum CreateDockerhubTargetError {
551    DefaultResponse(models::JsonError),
552    UnknownValue(serde_json::Value),
553}
554
555/// struct for typed errors of method [`create_dynamic_secret`]
556#[derive(Debug, Clone, Serialize, Deserialize)]
557#[serde(untagged)]
558pub enum CreateDynamicSecretError {
559    DefaultResponse(models::JsonError),
560    UnknownValue(serde_json::Value),
561}
562
563/// struct for typed errors of method [`create_eks_target`]
564#[derive(Debug, Clone, Serialize, Deserialize)]
565#[serde(untagged)]
566pub enum CreateEksTargetError {
567    DefaultResponse(models::JsonError),
568    UnknownValue(serde_json::Value),
569}
570
571/// struct for typed errors of method [`create_esm`]
572#[derive(Debug, Clone, Serialize, Deserialize)]
573#[serde(untagged)]
574pub enum CreateEsmError {
575    DefaultResponse(models::JsonError),
576    UnknownValue(serde_json::Value),
577}
578
579/// struct for typed errors of method [`create_event_forwarder`]
580#[derive(Debug, Clone, Serialize, Deserialize)]
581#[serde(untagged)]
582pub enum CreateEventForwarderError {
583    DefaultResponse(models::JsonError),
584    UnknownValue(serde_json::Value),
585}
586
587/// struct for typed errors of method [`create_gcp_target`]
588#[derive(Debug, Clone, Serialize, Deserialize)]
589#[serde(untagged)]
590pub enum CreateGcpTargetError {
591    DefaultResponse(models::JsonError),
592    UnknownValue(serde_json::Value),
593}
594
595/// struct for typed errors of method [`create_github_target`]
596#[derive(Debug, Clone, Serialize, Deserialize)]
597#[serde(untagged)]
598pub enum CreateGithubTargetError {
599    DefaultResponse(models::JsonError),
600    UnknownValue(serde_json::Value),
601}
602
603/// struct for typed errors of method [`create_gitlab_target`]
604#[derive(Debug, Clone, Serialize, Deserialize)]
605#[serde(untagged)]
606pub enum CreateGitlabTargetError {
607    DefaultResponse(models::JsonError),
608    UnknownValue(serde_json::Value),
609}
610
611/// struct for typed errors of method [`create_gke_target`]
612#[derive(Debug, Clone, Serialize, Deserialize)]
613#[serde(untagged)]
614pub enum CreateGkeTargetError {
615    DefaultResponse(models::JsonError),
616    UnknownValue(serde_json::Value),
617}
618
619/// struct for typed errors of method [`create_global_sign_atlas_target`]
620#[derive(Debug, Clone, Serialize, Deserialize)]
621#[serde(untagged)]
622pub enum CreateGlobalSignAtlasTargetError {
623    DefaultResponse(models::JsonError),
624    UnknownValue(serde_json::Value),
625}
626
627/// struct for typed errors of method [`create_global_sign_target`]
628#[derive(Debug, Clone, Serialize, Deserialize)]
629#[serde(untagged)]
630pub enum CreateGlobalSignTargetError {
631    DefaultResponse(models::JsonError),
632    UnknownValue(serde_json::Value),
633}
634
635/// struct for typed errors of method [`create_godaddy_target`]
636#[derive(Debug, Clone, Serialize, Deserialize)]
637#[serde(untagged)]
638pub enum CreateGodaddyTargetError {
639    DefaultResponse(models::JsonError),
640    UnknownValue(serde_json::Value),
641}
642
643/// struct for typed errors of method [`create_group`]
644#[derive(Debug, Clone, Serialize, Deserialize)]
645#[serde(untagged)]
646pub enum CreateGroupError {
647    DefaultResponse(models::JsonError),
648    UnknownValue(serde_json::Value),
649}
650
651/// struct for typed errors of method [`create_hashi_vault_target`]
652#[derive(Debug, Clone, Serialize, Deserialize)]
653#[serde(untagged)]
654pub enum CreateHashiVaultTargetError {
655    DefaultResponse(models::JsonError),
656    UnknownValue(serde_json::Value),
657}
658
659/// struct for typed errors of method [`create_key`]
660#[derive(Debug, Clone, Serialize, Deserialize)]
661#[serde(untagged)]
662pub enum CreateKeyError {
663    DefaultResponse(models::JsonError),
664    UnknownValue(serde_json::Value),
665}
666
667/// struct for typed errors of method [`create_linked_target`]
668#[derive(Debug, Clone, Serialize, Deserialize)]
669#[serde(untagged)]
670pub enum CreateLinkedTargetError {
671    DefaultResponse(models::JsonError),
672    UnknownValue(serde_json::Value),
673}
674
675/// struct for typed errors of method [`create_native_k8_s_target`]
676#[derive(Debug, Clone, Serialize, Deserialize)]
677#[serde(untagged)]
678pub enum CreateNativeK8STargetError {
679    DefaultResponse(models::JsonError),
680    UnknownValue(serde_json::Value),
681}
682
683/// struct for typed errors of method [`create_oidc_app`]
684#[derive(Debug, Clone, Serialize, Deserialize)]
685#[serde(untagged)]
686pub enum CreateOidcAppError {
687    DefaultResponse(models::JsonError),
688    UnknownValue(serde_json::Value),
689}
690
691/// struct for typed errors of method [`create_passkey`]
692#[derive(Debug, Clone, Serialize, Deserialize)]
693#[serde(untagged)]
694pub enum CreatePasskeyError {
695    DefaultResponse(models::JsonError),
696    UnknownValue(serde_json::Value),
697}
698
699/// struct for typed errors of method [`create_ping_target`]
700#[derive(Debug, Clone, Serialize, Deserialize)]
701#[serde(untagged)]
702pub enum CreatePingTargetError {
703    DefaultResponse(models::JsonError),
704    UnknownValue(serde_json::Value),
705}
706
707/// struct for typed errors of method [`create_pki_cert_issuer`]
708#[derive(Debug, Clone, Serialize, Deserialize)]
709#[serde(untagged)]
710pub enum CreatePkiCertIssuerError {
711    DefaultResponse(models::JsonError),
712    UnknownValue(serde_json::Value),
713}
714
715/// struct for typed errors of method [`create_rabbit_mq_target`]
716#[derive(Debug, Clone, Serialize, Deserialize)]
717#[serde(untagged)]
718pub enum CreateRabbitMqTargetError {
719    DefaultResponse(models::JsonError),
720    UnknownValue(serde_json::Value),
721}
722
723/// struct for typed errors of method [`create_role`]
724#[derive(Debug, Clone, Serialize, Deserialize)]
725#[serde(untagged)]
726pub enum CreateRoleError {
727    DefaultResponse(models::JsonError),
728    UnknownValue(serde_json::Value),
729}
730
731/// struct for typed errors of method [`create_rotated_secret`]
732#[derive(Debug, Clone, Serialize, Deserialize)]
733#[serde(untagged)]
734pub enum CreateRotatedSecretError {
735    DefaultResponse(models::JsonError),
736    UnknownValue(serde_json::Value),
737}
738
739/// struct for typed errors of method [`create_salesforce_target`]
740#[derive(Debug, Clone, Serialize, Deserialize)]
741#[serde(untagged)]
742pub enum CreateSalesforceTargetError {
743    DefaultResponse(models::JsonError),
744    UnknownValue(serde_json::Value),
745}
746
747/// struct for typed errors of method [`create_secret`]
748#[derive(Debug, Clone, Serialize, Deserialize)]
749#[serde(untagged)]
750pub enum CreateSecretError {
751    DefaultResponse(models::JsonError),
752    UnknownValue(serde_json::Value),
753}
754
755/// struct for typed errors of method [`create_ssh_cert_issuer`]
756#[derive(Debug, Clone, Serialize, Deserialize)]
757#[serde(untagged)]
758pub enum CreateSshCertIssuerError {
759    DefaultResponse(models::JsonError),
760    UnknownValue(serde_json::Value),
761}
762
763/// struct for typed errors of method [`create_ssh_target`]
764#[derive(Debug, Clone, Serialize, Deserialize)]
765#[serde(untagged)]
766pub enum CreateSshTargetError {
767    DefaultResponse(models::JsonError),
768    UnknownValue(serde_json::Value),
769}
770
771/// struct for typed errors of method [`create_tokenizer`]
772#[derive(Debug, Clone, Serialize, Deserialize)]
773#[serde(untagged)]
774pub enum CreateTokenizerError {
775    DefaultResponse(models::JsonError),
776    UnknownValue(serde_json::Value),
777}
778
779/// struct for typed errors of method [`create_usc`]
780#[derive(Debug, Clone, Serialize, Deserialize)]
781#[serde(untagged)]
782pub enum CreateUscError {
783    DefaultResponse(models::JsonError),
784    UnknownValue(serde_json::Value),
785}
786
787/// struct for typed errors of method [`create_user_event`]
788#[derive(Debug, Clone, Serialize, Deserialize)]
789#[serde(untagged)]
790pub enum CreateUserEventError {
791    DefaultResponse(models::JsonError),
792    UnknownValue(serde_json::Value),
793}
794
795/// struct for typed errors of method [`create_web_target`]
796#[derive(Debug, Clone, Serialize, Deserialize)]
797#[serde(untagged)]
798pub enum CreateWebTargetError {
799    DefaultResponse(models::JsonError),
800    UnknownValue(serde_json::Value),
801}
802
803/// struct for typed errors of method [`create_windows_target`]
804#[derive(Debug, Clone, Serialize, Deserialize)]
805#[serde(untagged)]
806pub enum CreateWindowsTargetError {
807    DefaultResponse(models::JsonError),
808    UnknownValue(serde_json::Value),
809}
810
811/// struct for typed errors of method [`create_zero_ssl_target`]
812#[derive(Debug, Clone, Serialize, Deserialize)]
813#[serde(untagged)]
814pub enum CreateZeroSslTargetError {
815    DefaultResponse(models::JsonError),
816    UnknownValue(serde_json::Value),
817}
818
819/// struct for typed errors of method [`createldap_target`]
820#[derive(Debug, Clone, Serialize, Deserialize)]
821#[serde(untagged)]
822pub enum CreateldapTargetError {
823    DefaultResponse(models::JsonError),
824    UnknownValue(serde_json::Value),
825}
826
827/// struct for typed errors of method [`deactivate_acme_account`]
828#[derive(Debug, Clone, Serialize, Deserialize)]
829#[serde(untagged)]
830pub enum DeactivateAcmeAccountError {
831    DefaultResponse(models::JsonError),
832    UnknownValue(serde_json::Value),
833}
834
835/// struct for typed errors of method [`decrypt`]
836#[derive(Debug, Clone, Serialize, Deserialize)]
837#[serde(untagged)]
838pub enum DecryptError {
839    DefaultResponse(models::JsonError),
840    UnknownValue(serde_json::Value),
841}
842
843/// struct for typed errors of method [`decrypt_batch`]
844#[derive(Debug, Clone, Serialize, Deserialize)]
845#[serde(untagged)]
846pub enum DecryptBatchError {
847    DefaultResponse(models::JsonError),
848    UnknownValue(serde_json::Value),
849}
850
851/// struct for typed errors of method [`decrypt_gpg`]
852#[derive(Debug, Clone, Serialize, Deserialize)]
853#[serde(untagged)]
854pub enum DecryptGpgError {
855    DefaultResponse(models::JsonError),
856    UnknownValue(serde_json::Value),
857}
858
859/// struct for typed errors of method [`decrypt_pkcs1`]
860#[derive(Debug, Clone, Serialize, Deserialize)]
861#[serde(untagged)]
862pub enum DecryptPkcs1Error {
863    DefaultResponse(models::JsonError),
864    UnknownValue(serde_json::Value),
865}
866
867/// struct for typed errors of method [`decrypt_with_classic_key`]
868#[derive(Debug, Clone, Serialize, Deserialize)]
869#[serde(untagged)]
870pub enum DecryptWithClassicKeyError {
871    DefaultResponse(models::JsonError),
872    UnknownValue(serde_json::Value),
873}
874
875/// struct for typed errors of method [`delete_auth_method`]
876#[derive(Debug, Clone, Serialize, Deserialize)]
877#[serde(untagged)]
878pub enum DeleteAuthMethodError {
879    DefaultResponse(models::JsonError),
880    UnknownValue(serde_json::Value),
881}
882
883/// struct for typed errors of method [`delete_auth_methods`]
884#[derive(Debug, Clone, Serialize, Deserialize)]
885#[serde(untagged)]
886pub enum DeleteAuthMethodsError {
887    DefaultResponse(models::JsonError),
888    UnknownValue(serde_json::Value),
889}
890
891/// struct for typed errors of method [`delete_event_forwarder`]
892#[derive(Debug, Clone, Serialize, Deserialize)]
893#[serde(untagged)]
894pub enum DeleteEventForwarderError {
895    DefaultResponse(models::JsonError),
896    UnknownValue(serde_json::Value),
897}
898
899/// struct for typed errors of method [`delete_gateway_allowed_access_id`]
900#[derive(Debug, Clone, Serialize, Deserialize)]
901#[serde(untagged)]
902pub enum DeleteGatewayAllowedAccessIdError {
903    DefaultResponse(models::JsonError),
904    UnknownValue(serde_json::Value),
905}
906
907/// struct for typed errors of method [`delete_group`]
908#[derive(Debug, Clone, Serialize, Deserialize)]
909#[serde(untagged)]
910pub enum DeleteGroupError {
911    DefaultResponse(models::JsonError),
912    UnknownValue(serde_json::Value),
913}
914
915/// struct for typed errors of method [`delete_gw_cluster`]
916#[derive(Debug, Clone, Serialize, Deserialize)]
917#[serde(untagged)]
918pub enum DeleteGwClusterError {
919    DefaultResponse(models::JsonError),
920    UnknownValue(serde_json::Value),
921}
922
923/// struct for typed errors of method [`delete_item`]
924#[derive(Debug, Clone, Serialize, Deserialize)]
925#[serde(untagged)]
926pub enum DeleteItemError {
927    DefaultResponse(models::JsonError),
928    UnknownValue(serde_json::Value),
929}
930
931/// struct for typed errors of method [`delete_items`]
932#[derive(Debug, Clone, Serialize, Deserialize)]
933#[serde(untagged)]
934pub enum DeleteItemsError {
935    DefaultResponse(models::JsonError),
936    UnknownValue(serde_json::Value),
937}
938
939/// struct for typed errors of method [`delete_role`]
940#[derive(Debug, Clone, Serialize, Deserialize)]
941#[serde(untagged)]
942pub enum DeleteRoleError {
943    DefaultResponse(models::JsonError),
944    UnknownValue(serde_json::Value),
945}
946
947/// struct for typed errors of method [`delete_role_association`]
948#[derive(Debug, Clone, Serialize, Deserialize)]
949#[serde(untagged)]
950pub enum DeleteRoleAssociationError {
951    DefaultResponse(models::JsonError),
952    UnknownValue(serde_json::Value),
953}
954
955/// struct for typed errors of method [`delete_role_rule`]
956#[derive(Debug, Clone, Serialize, Deserialize)]
957#[serde(untagged)]
958pub enum DeleteRoleRuleError {
959    DefaultResponse(models::JsonError),
960    UnknownValue(serde_json::Value),
961}
962
963/// struct for typed errors of method [`delete_roles`]
964#[derive(Debug, Clone, Serialize, Deserialize)]
965#[serde(untagged)]
966pub enum DeleteRolesError {
967    DefaultResponse(models::JsonError),
968    UnknownValue(serde_json::Value),
969}
970
971/// struct for typed errors of method [`delete_target`]
972#[derive(Debug, Clone, Serialize, Deserialize)]
973#[serde(untagged)]
974pub enum DeleteTargetError {
975    DefaultResponse(models::JsonError),
976    UnknownValue(serde_json::Value),
977}
978
979/// struct for typed errors of method [`delete_target_association`]
980#[derive(Debug, Clone, Serialize, Deserialize)]
981#[serde(untagged)]
982pub enum DeleteTargetAssociationError {
983    DefaultResponse(models::JsonError),
984    UnknownValue(serde_json::Value),
985}
986
987/// struct for typed errors of method [`delete_targets`]
988#[derive(Debug, Clone, Serialize, Deserialize)]
989#[serde(untagged)]
990pub enum DeleteTargetsError {
991    DefaultResponse(models::JsonError),
992    UnknownValue(serde_json::Value),
993}
994
995/// struct for typed errors of method [`derive_key`]
996#[derive(Debug, Clone, Serialize, Deserialize)]
997#[serde(untagged)]
998pub enum DeriveKeyError {
999    DefaultResponse(models::JsonError),
1000    UnknownValue(serde_json::Value),
1001}
1002
1003/// struct for typed errors of method [`describe_assoc`]
1004#[derive(Debug, Clone, Serialize, Deserialize)]
1005#[serde(untagged)]
1006pub enum DescribeAssocError {
1007    DefaultResponse(models::JsonError),
1008    UnknownValue(serde_json::Value),
1009}
1010
1011/// struct for typed errors of method [`describe_item`]
1012#[derive(Debug, Clone, Serialize, Deserialize)]
1013#[serde(untagged)]
1014pub enum DescribeItemError {
1015    DefaultResponse(models::JsonError),
1016    UnknownValue(serde_json::Value),
1017}
1018
1019/// struct for typed errors of method [`describe_permissions`]
1020#[derive(Debug, Clone, Serialize, Deserialize)]
1021#[serde(untagged)]
1022pub enum DescribePermissionsError {
1023    DefaultResponse(models::JsonError),
1024    UnknownValue(serde_json::Value),
1025}
1026
1027/// struct for typed errors of method [`describe_sub_claims`]
1028#[derive(Debug, Clone, Serialize, Deserialize)]
1029#[serde(untagged)]
1030pub enum DescribeSubClaimsError {
1031    Status401(models::JsonError),
1032    DefaultResponse(models::JsonError),
1033    UnknownValue(serde_json::Value),
1034}
1035
1036/// struct for typed errors of method [`detokenize`]
1037#[derive(Debug, Clone, Serialize, Deserialize)]
1038#[serde(untagged)]
1039pub enum DetokenizeError {
1040    DefaultResponse(models::JsonError),
1041    UnknownValue(serde_json::Value),
1042}
1043
1044/// struct for typed errors of method [`detokenize_batch`]
1045#[derive(Debug, Clone, Serialize, Deserialize)]
1046#[serde(untagged)]
1047pub enum DetokenizeBatchError {
1048    DefaultResponse(models::JsonError),
1049    UnknownValue(serde_json::Value),
1050}
1051
1052/// struct for typed errors of method [`dynamic_secret_create_artifactory`]
1053#[derive(Debug, Clone, Serialize, Deserialize)]
1054#[serde(untagged)]
1055pub enum DynamicSecretCreateArtifactoryError {
1056    DefaultResponse(models::JsonError),
1057    UnknownValue(serde_json::Value),
1058}
1059
1060/// struct for typed errors of method [`dynamic_secret_create_aws`]
1061#[derive(Debug, Clone, Serialize, Deserialize)]
1062#[serde(untagged)]
1063pub enum DynamicSecretCreateAwsError {
1064    DefaultResponse(models::JsonError),
1065    UnknownValue(serde_json::Value),
1066}
1067
1068/// struct for typed errors of method [`dynamic_secret_create_azure`]
1069#[derive(Debug, Clone, Serialize, Deserialize)]
1070#[serde(untagged)]
1071pub enum DynamicSecretCreateAzureError {
1072    DefaultResponse(models::JsonError),
1073    UnknownValue(serde_json::Value),
1074}
1075
1076/// struct for typed errors of method [`dynamic_secret_create_cassandra`]
1077#[derive(Debug, Clone, Serialize, Deserialize)]
1078#[serde(untagged)]
1079pub enum DynamicSecretCreateCassandraError {
1080    DefaultResponse(models::JsonError),
1081    UnknownValue(serde_json::Value),
1082}
1083
1084/// struct for typed errors of method [`dynamic_secret_create_custom`]
1085#[derive(Debug, Clone, Serialize, Deserialize)]
1086#[serde(untagged)]
1087pub enum DynamicSecretCreateCustomError {
1088    DefaultResponse(models::JsonError),
1089    UnknownValue(serde_json::Value),
1090}
1091
1092/// struct for typed errors of method [`dynamic_secret_create_dockerhub`]
1093#[derive(Debug, Clone, Serialize, Deserialize)]
1094#[serde(untagged)]
1095pub enum DynamicSecretCreateDockerhubError {
1096    DefaultResponse(models::JsonError),
1097    UnknownValue(serde_json::Value),
1098}
1099
1100/// struct for typed errors of method [`dynamic_secret_create_eks`]
1101#[derive(Debug, Clone, Serialize, Deserialize)]
1102#[serde(untagged)]
1103pub enum DynamicSecretCreateEksError {
1104    DefaultResponse(models::JsonError),
1105    UnknownValue(serde_json::Value),
1106}
1107
1108/// struct for typed errors of method [`dynamic_secret_create_gcp`]
1109#[derive(Debug, Clone, Serialize, Deserialize)]
1110#[serde(untagged)]
1111pub enum DynamicSecretCreateGcpError {
1112    DefaultResponse(models::JsonError),
1113    UnknownValue(serde_json::Value),
1114}
1115
1116/// struct for typed errors of method [`dynamic_secret_create_github`]
1117#[derive(Debug, Clone, Serialize, Deserialize)]
1118#[serde(untagged)]
1119pub enum DynamicSecretCreateGithubError {
1120    DefaultResponse(models::JsonError),
1121    UnknownValue(serde_json::Value),
1122}
1123
1124/// struct for typed errors of method [`dynamic_secret_create_gitlab`]
1125#[derive(Debug, Clone, Serialize, Deserialize)]
1126#[serde(untagged)]
1127pub enum DynamicSecretCreateGitlabError {
1128    DefaultResponse(models::JsonError),
1129    UnknownValue(serde_json::Value),
1130}
1131
1132/// struct for typed errors of method [`dynamic_secret_create_gke`]
1133#[derive(Debug, Clone, Serialize, Deserialize)]
1134#[serde(untagged)]
1135pub enum DynamicSecretCreateGkeError {
1136    DefaultResponse(models::JsonError),
1137    UnknownValue(serde_json::Value),
1138}
1139
1140/// struct for typed errors of method [`dynamic_secret_create_google_workspace`]
1141#[derive(Debug, Clone, Serialize, Deserialize)]
1142#[serde(untagged)]
1143pub enum DynamicSecretCreateGoogleWorkspaceError {
1144    DefaultResponse(models::JsonError),
1145    UnknownValue(serde_json::Value),
1146}
1147
1148/// struct for typed errors of method [`dynamic_secret_create_hana_db`]
1149#[derive(Debug, Clone, Serialize, Deserialize)]
1150#[serde(untagged)]
1151pub enum DynamicSecretCreateHanaDbError {
1152    DefaultResponse(models::JsonError),
1153    UnknownValue(serde_json::Value),
1154}
1155
1156/// struct for typed errors of method [`dynamic_secret_create_k8s`]
1157#[derive(Debug, Clone, Serialize, Deserialize)]
1158#[serde(untagged)]
1159pub enum DynamicSecretCreateK8sError {
1160    DefaultResponse(models::JsonError),
1161    UnknownValue(serde_json::Value),
1162}
1163
1164/// struct for typed errors of method [`dynamic_secret_create_ldap`]
1165#[derive(Debug, Clone, Serialize, Deserialize)]
1166#[serde(untagged)]
1167pub enum DynamicSecretCreateLdapError {
1168    DefaultResponse(models::JsonError),
1169    UnknownValue(serde_json::Value),
1170}
1171
1172/// struct for typed errors of method [`dynamic_secret_create_mongo_db`]
1173#[derive(Debug, Clone, Serialize, Deserialize)]
1174#[serde(untagged)]
1175pub enum DynamicSecretCreateMongoDbError {
1176    DefaultResponse(models::JsonError),
1177    UnknownValue(serde_json::Value),
1178}
1179
1180/// struct for typed errors of method [`dynamic_secret_create_ms_sql`]
1181#[derive(Debug, Clone, Serialize, Deserialize)]
1182#[serde(untagged)]
1183pub enum DynamicSecretCreateMsSqlError {
1184    DefaultResponse(models::JsonError),
1185    UnknownValue(serde_json::Value),
1186}
1187
1188/// struct for typed errors of method [`dynamic_secret_create_my_sql`]
1189#[derive(Debug, Clone, Serialize, Deserialize)]
1190#[serde(untagged)]
1191pub enum DynamicSecretCreateMySqlError {
1192    DefaultResponse(models::JsonError),
1193    UnknownValue(serde_json::Value),
1194}
1195
1196/// struct for typed errors of method [`dynamic_secret_create_open_ai`]
1197#[derive(Debug, Clone, Serialize, Deserialize)]
1198#[serde(untagged)]
1199pub enum DynamicSecretCreateOpenAiError {
1200    DefaultResponse(models::JsonError),
1201    UnknownValue(serde_json::Value),
1202}
1203
1204/// struct for typed errors of method [`dynamic_secret_create_oracle_db`]
1205#[derive(Debug, Clone, Serialize, Deserialize)]
1206#[serde(untagged)]
1207pub enum DynamicSecretCreateOracleDbError {
1208    DefaultResponse(models::JsonError),
1209    UnknownValue(serde_json::Value),
1210}
1211
1212/// struct for typed errors of method [`dynamic_secret_create_ping`]
1213#[derive(Debug, Clone, Serialize, Deserialize)]
1214#[serde(untagged)]
1215pub enum DynamicSecretCreatePingError {
1216    DefaultResponse(models::JsonError),
1217    UnknownValue(serde_json::Value),
1218}
1219
1220/// struct for typed errors of method [`dynamic_secret_create_postgre_sql`]
1221#[derive(Debug, Clone, Serialize, Deserialize)]
1222#[serde(untagged)]
1223pub enum DynamicSecretCreatePostgreSqlError {
1224    DefaultResponse(models::JsonError),
1225    UnknownValue(serde_json::Value),
1226}
1227
1228/// struct for typed errors of method [`dynamic_secret_create_rabbit_mq`]
1229#[derive(Debug, Clone, Serialize, Deserialize)]
1230#[serde(untagged)]
1231pub enum DynamicSecretCreateRabbitMqError {
1232    DefaultResponse(models::JsonError),
1233    UnknownValue(serde_json::Value),
1234}
1235
1236/// struct for typed errors of method [`dynamic_secret_create_rdp`]
1237#[derive(Debug, Clone, Serialize, Deserialize)]
1238#[serde(untagged)]
1239pub enum DynamicSecretCreateRdpError {
1240    DefaultResponse(models::JsonError),
1241    UnknownValue(serde_json::Value),
1242}
1243
1244/// struct for typed errors of method [`dynamic_secret_create_redis`]
1245#[derive(Debug, Clone, Serialize, Deserialize)]
1246#[serde(untagged)]
1247pub enum DynamicSecretCreateRedisError {
1248    DefaultResponse(models::JsonError),
1249    UnknownValue(serde_json::Value),
1250}
1251
1252/// struct for typed errors of method [`dynamic_secret_create_redshift`]
1253#[derive(Debug, Clone, Serialize, Deserialize)]
1254#[serde(untagged)]
1255pub enum DynamicSecretCreateRedshiftError {
1256    DefaultResponse(models::JsonError),
1257    UnknownValue(serde_json::Value),
1258}
1259
1260/// struct for typed errors of method [`dynamic_secret_create_snowflake`]
1261#[derive(Debug, Clone, Serialize, Deserialize)]
1262#[serde(untagged)]
1263pub enum DynamicSecretCreateSnowflakeError {
1264    DefaultResponse(models::JsonError),
1265    UnknownValue(serde_json::Value),
1266}
1267
1268/// struct for typed errors of method [`dynamic_secret_create_venafi`]
1269#[derive(Debug, Clone, Serialize, Deserialize)]
1270#[serde(untagged)]
1271pub enum DynamicSecretCreateVenafiError {
1272    DefaultResponse(models::JsonError),
1273    UnknownValue(serde_json::Value),
1274}
1275
1276/// struct for typed errors of method [`dynamic_secret_delete`]
1277#[derive(Debug, Clone, Serialize, Deserialize)]
1278#[serde(untagged)]
1279pub enum DynamicSecretDeleteError {
1280    DefaultResponse(models::JsonError),
1281    UnknownValue(serde_json::Value),
1282}
1283
1284/// struct for typed errors of method [`dynamic_secret_get`]
1285#[derive(Debug, Clone, Serialize, Deserialize)]
1286#[serde(untagged)]
1287pub enum DynamicSecretGetError {
1288    DefaultResponse(models::JsonError),
1289    UnknownValue(serde_json::Value),
1290}
1291
1292/// struct for typed errors of method [`dynamic_secret_get_value`]
1293#[derive(Debug, Clone, Serialize, Deserialize)]
1294#[serde(untagged)]
1295pub enum DynamicSecretGetValueError {
1296    DefaultResponse(models::JsonError),
1297    UnknownValue(serde_json::Value),
1298}
1299
1300/// struct for typed errors of method [`dynamic_secret_list`]
1301#[derive(Debug, Clone, Serialize, Deserialize)]
1302#[serde(untagged)]
1303pub enum DynamicSecretListError {
1304    DefaultResponse(models::JsonError),
1305    UnknownValue(serde_json::Value),
1306}
1307
1308/// struct for typed errors of method [`dynamic_secret_tmp_creds_delete`]
1309#[derive(Debug, Clone, Serialize, Deserialize)]
1310#[serde(untagged)]
1311pub enum DynamicSecretTmpCredsDeleteError {
1312    DefaultResponse(models::JsonError),
1313    UnknownValue(serde_json::Value),
1314}
1315
1316/// struct for typed errors of method [`dynamic_secret_tmp_creds_get`]
1317#[derive(Debug, Clone, Serialize, Deserialize)]
1318#[serde(untagged)]
1319pub enum DynamicSecretTmpCredsGetError {
1320    DefaultResponse(models::JsonError),
1321    UnknownValue(serde_json::Value),
1322}
1323
1324/// struct for typed errors of method [`dynamic_secret_tmp_creds_update`]
1325#[derive(Debug, Clone, Serialize, Deserialize)]
1326#[serde(untagged)]
1327pub enum DynamicSecretTmpCredsUpdateError {
1328    DefaultResponse(models::JsonError),
1329    UnknownValue(serde_json::Value),
1330}
1331
1332/// struct for typed errors of method [`dynamic_secret_update_artifactory`]
1333#[derive(Debug, Clone, Serialize, Deserialize)]
1334#[serde(untagged)]
1335pub enum DynamicSecretUpdateArtifactoryError {
1336    DefaultResponse(models::JsonError),
1337    UnknownValue(serde_json::Value),
1338}
1339
1340/// struct for typed errors of method [`dynamic_secret_update_aws`]
1341#[derive(Debug, Clone, Serialize, Deserialize)]
1342#[serde(untagged)]
1343pub enum DynamicSecretUpdateAwsError {
1344    DefaultResponse(models::JsonError),
1345    UnknownValue(serde_json::Value),
1346}
1347
1348/// struct for typed errors of method [`dynamic_secret_update_azure`]
1349#[derive(Debug, Clone, Serialize, Deserialize)]
1350#[serde(untagged)]
1351pub enum DynamicSecretUpdateAzureError {
1352    DefaultResponse(models::JsonError),
1353    UnknownValue(serde_json::Value),
1354}
1355
1356/// struct for typed errors of method [`dynamic_secret_update_cassandra`]
1357#[derive(Debug, Clone, Serialize, Deserialize)]
1358#[serde(untagged)]
1359pub enum DynamicSecretUpdateCassandraError {
1360    DefaultResponse(models::JsonError),
1361    UnknownValue(serde_json::Value),
1362}
1363
1364/// struct for typed errors of method [`dynamic_secret_update_custom`]
1365#[derive(Debug, Clone, Serialize, Deserialize)]
1366#[serde(untagged)]
1367pub enum DynamicSecretUpdateCustomError {
1368    DefaultResponse(models::JsonError),
1369    UnknownValue(serde_json::Value),
1370}
1371
1372/// struct for typed errors of method [`dynamic_secret_update_dockerhub`]
1373#[derive(Debug, Clone, Serialize, Deserialize)]
1374#[serde(untagged)]
1375pub enum DynamicSecretUpdateDockerhubError {
1376    DefaultResponse(models::JsonError),
1377    UnknownValue(serde_json::Value),
1378}
1379
1380/// struct for typed errors of method [`dynamic_secret_update_eks`]
1381#[derive(Debug, Clone, Serialize, Deserialize)]
1382#[serde(untagged)]
1383pub enum DynamicSecretUpdateEksError {
1384    DefaultResponse(models::JsonError),
1385    UnknownValue(serde_json::Value),
1386}
1387
1388/// struct for typed errors of method [`dynamic_secret_update_gcp`]
1389#[derive(Debug, Clone, Serialize, Deserialize)]
1390#[serde(untagged)]
1391pub enum DynamicSecretUpdateGcpError {
1392    DefaultResponse(models::JsonError),
1393    UnknownValue(serde_json::Value),
1394}
1395
1396/// struct for typed errors of method [`dynamic_secret_update_github`]
1397#[derive(Debug, Clone, Serialize, Deserialize)]
1398#[serde(untagged)]
1399pub enum DynamicSecretUpdateGithubError {
1400    DefaultResponse(models::JsonError),
1401    UnknownValue(serde_json::Value),
1402}
1403
1404/// struct for typed errors of method [`dynamic_secret_update_gitlab`]
1405#[derive(Debug, Clone, Serialize, Deserialize)]
1406#[serde(untagged)]
1407pub enum DynamicSecretUpdateGitlabError {
1408    DefaultResponse(models::JsonError),
1409    UnknownValue(serde_json::Value),
1410}
1411
1412/// struct for typed errors of method [`dynamic_secret_update_gke`]
1413#[derive(Debug, Clone, Serialize, Deserialize)]
1414#[serde(untagged)]
1415pub enum DynamicSecretUpdateGkeError {
1416    DefaultResponse(models::JsonError),
1417    UnknownValue(serde_json::Value),
1418}
1419
1420/// struct for typed errors of method [`dynamic_secret_update_google_workspace`]
1421#[derive(Debug, Clone, Serialize, Deserialize)]
1422#[serde(untagged)]
1423pub enum DynamicSecretUpdateGoogleWorkspaceError {
1424    DefaultResponse(models::JsonError),
1425    UnknownValue(serde_json::Value),
1426}
1427
1428/// struct for typed errors of method [`dynamic_secret_update_hana_db`]
1429#[derive(Debug, Clone, Serialize, Deserialize)]
1430#[serde(untagged)]
1431pub enum DynamicSecretUpdateHanaDbError {
1432    DefaultResponse(models::JsonError),
1433    UnknownValue(serde_json::Value),
1434}
1435
1436/// struct for typed errors of method [`dynamic_secret_update_k8s`]
1437#[derive(Debug, Clone, Serialize, Deserialize)]
1438#[serde(untagged)]
1439pub enum DynamicSecretUpdateK8sError {
1440    DefaultResponse(models::JsonError),
1441    UnknownValue(serde_json::Value),
1442}
1443
1444/// struct for typed errors of method [`dynamic_secret_update_ldap`]
1445#[derive(Debug, Clone, Serialize, Deserialize)]
1446#[serde(untagged)]
1447pub enum DynamicSecretUpdateLdapError {
1448    DefaultResponse(models::JsonError),
1449    UnknownValue(serde_json::Value),
1450}
1451
1452/// struct for typed errors of method [`dynamic_secret_update_mongo_db`]
1453#[derive(Debug, Clone, Serialize, Deserialize)]
1454#[serde(untagged)]
1455pub enum DynamicSecretUpdateMongoDbError {
1456    DefaultResponse(models::JsonError),
1457    UnknownValue(serde_json::Value),
1458}
1459
1460/// struct for typed errors of method [`dynamic_secret_update_ms_sql`]
1461#[derive(Debug, Clone, Serialize, Deserialize)]
1462#[serde(untagged)]
1463pub enum DynamicSecretUpdateMsSqlError {
1464    DefaultResponse(models::JsonError),
1465    UnknownValue(serde_json::Value),
1466}
1467
1468/// struct for typed errors of method [`dynamic_secret_update_my_sql`]
1469#[derive(Debug, Clone, Serialize, Deserialize)]
1470#[serde(untagged)]
1471pub enum DynamicSecretUpdateMySqlError {
1472    DefaultResponse(models::JsonError),
1473    UnknownValue(serde_json::Value),
1474}
1475
1476/// struct for typed errors of method [`dynamic_secret_update_open_ai`]
1477#[derive(Debug, Clone, Serialize, Deserialize)]
1478#[serde(untagged)]
1479pub enum DynamicSecretUpdateOpenAiError {
1480    DefaultResponse(models::JsonError),
1481    UnknownValue(serde_json::Value),
1482}
1483
1484/// struct for typed errors of method [`dynamic_secret_update_oracle_db`]
1485#[derive(Debug, Clone, Serialize, Deserialize)]
1486#[serde(untagged)]
1487pub enum DynamicSecretUpdateOracleDbError {
1488    DefaultResponse(models::JsonError),
1489    UnknownValue(serde_json::Value),
1490}
1491
1492/// struct for typed errors of method [`dynamic_secret_update_ping`]
1493#[derive(Debug, Clone, Serialize, Deserialize)]
1494#[serde(untagged)]
1495pub enum DynamicSecretUpdatePingError {
1496    DefaultResponse(models::JsonError),
1497    UnknownValue(serde_json::Value),
1498}
1499
1500/// struct for typed errors of method [`dynamic_secret_update_postgre_sql`]
1501#[derive(Debug, Clone, Serialize, Deserialize)]
1502#[serde(untagged)]
1503pub enum DynamicSecretUpdatePostgreSqlError {
1504    DefaultResponse(models::JsonError),
1505    UnknownValue(serde_json::Value),
1506}
1507
1508/// struct for typed errors of method [`dynamic_secret_update_rabbit_mq`]
1509#[derive(Debug, Clone, Serialize, Deserialize)]
1510#[serde(untagged)]
1511pub enum DynamicSecretUpdateRabbitMqError {
1512    DefaultResponse(models::JsonError),
1513    UnknownValue(serde_json::Value),
1514}
1515
1516/// struct for typed errors of method [`dynamic_secret_update_rdp`]
1517#[derive(Debug, Clone, Serialize, Deserialize)]
1518#[serde(untagged)]
1519pub enum DynamicSecretUpdateRdpError {
1520    DefaultResponse(models::JsonError),
1521    UnknownValue(serde_json::Value),
1522}
1523
1524/// struct for typed errors of method [`dynamic_secret_update_redis`]
1525#[derive(Debug, Clone, Serialize, Deserialize)]
1526#[serde(untagged)]
1527pub enum DynamicSecretUpdateRedisError {
1528    DefaultResponse(models::JsonError),
1529    UnknownValue(serde_json::Value),
1530}
1531
1532/// struct for typed errors of method [`dynamic_secret_update_redshift`]
1533#[derive(Debug, Clone, Serialize, Deserialize)]
1534#[serde(untagged)]
1535pub enum DynamicSecretUpdateRedshiftError {
1536    DefaultResponse(models::JsonError),
1537    UnknownValue(serde_json::Value),
1538}
1539
1540/// struct for typed errors of method [`dynamic_secret_update_snowflake`]
1541#[derive(Debug, Clone, Serialize, Deserialize)]
1542#[serde(untagged)]
1543pub enum DynamicSecretUpdateSnowflakeError {
1544    DefaultResponse(models::JsonError),
1545    UnknownValue(serde_json::Value),
1546}
1547
1548/// struct for typed errors of method [`dynamic_secret_update_venafi`]
1549#[derive(Debug, Clone, Serialize, Deserialize)]
1550#[serde(untagged)]
1551pub enum DynamicSecretUpdateVenafiError {
1552    DefaultResponse(models::JsonError),
1553    UnknownValue(serde_json::Value),
1554}
1555
1556/// struct for typed errors of method [`encrypt`]
1557#[derive(Debug, Clone, Serialize, Deserialize)]
1558#[serde(untagged)]
1559pub enum EncryptError {
1560    DefaultResponse(models::JsonError),
1561    UnknownValue(serde_json::Value),
1562}
1563
1564/// struct for typed errors of method [`encrypt_batch`]
1565#[derive(Debug, Clone, Serialize, Deserialize)]
1566#[serde(untagged)]
1567pub enum EncryptBatchError {
1568    DefaultResponse(models::JsonError),
1569    UnknownValue(serde_json::Value),
1570}
1571
1572/// struct for typed errors of method [`encrypt_gpg`]
1573#[derive(Debug, Clone, Serialize, Deserialize)]
1574#[serde(untagged)]
1575pub enum EncryptGpgError {
1576    DefaultResponse(models::JsonError),
1577    UnknownValue(serde_json::Value),
1578}
1579
1580/// struct for typed errors of method [`encrypt_with_classic_key`]
1581#[derive(Debug, Clone, Serialize, Deserialize)]
1582#[serde(untagged)]
1583pub enum EncryptWithClassicKeyError {
1584    DefaultResponse(models::JsonError),
1585    UnknownValue(serde_json::Value),
1586}
1587
1588/// struct for typed errors of method [`esm_create`]
1589#[derive(Debug, Clone, Serialize, Deserialize)]
1590#[serde(untagged)]
1591pub enum EsmCreateError {
1592    DefaultResponse(models::JsonError),
1593    UnknownValue(serde_json::Value),
1594}
1595
1596/// struct for typed errors of method [`esm_delete`]
1597#[derive(Debug, Clone, Serialize, Deserialize)]
1598#[serde(untagged)]
1599pub enum EsmDeleteError {
1600    DefaultResponse(models::JsonError),
1601    UnknownValue(serde_json::Value),
1602}
1603
1604/// struct for typed errors of method [`esm_get`]
1605#[derive(Debug, Clone, Serialize, Deserialize)]
1606#[serde(untagged)]
1607pub enum EsmGetError {
1608    DefaultResponse(models::JsonError),
1609    UnknownValue(serde_json::Value),
1610}
1611
1612/// struct for typed errors of method [`esm_list`]
1613#[derive(Debug, Clone, Serialize, Deserialize)]
1614#[serde(untagged)]
1615pub enum EsmListError {
1616    DefaultResponse(models::JsonError),
1617    UnknownValue(serde_json::Value),
1618}
1619
1620/// struct for typed errors of method [`esm_update`]
1621#[derive(Debug, Clone, Serialize, Deserialize)]
1622#[serde(untagged)]
1623pub enum EsmUpdateError {
1624    DefaultResponse(models::JsonError),
1625    UnknownValue(serde_json::Value),
1626}
1627
1628/// struct for typed errors of method [`event_action`]
1629#[derive(Debug, Clone, Serialize, Deserialize)]
1630#[serde(untagged)]
1631pub enum EventActionError {
1632    DefaultResponse(models::JsonError),
1633    UnknownValue(serde_json::Value),
1634}
1635
1636/// struct for typed errors of method [`event_forwarder_create_email`]
1637#[derive(Debug, Clone, Serialize, Deserialize)]
1638#[serde(untagged)]
1639pub enum EventForwarderCreateEmailError {
1640    DefaultResponse(models::JsonError),
1641    UnknownValue(serde_json::Value),
1642}
1643
1644/// struct for typed errors of method [`event_forwarder_create_service_now`]
1645#[derive(Debug, Clone, Serialize, Deserialize)]
1646#[serde(untagged)]
1647pub enum EventForwarderCreateServiceNowError {
1648    DefaultResponse(models::JsonError),
1649    UnknownValue(serde_json::Value),
1650}
1651
1652/// struct for typed errors of method [`event_forwarder_create_slack`]
1653#[derive(Debug, Clone, Serialize, Deserialize)]
1654#[serde(untagged)]
1655pub enum EventForwarderCreateSlackError {
1656    DefaultResponse(models::JsonError),
1657    UnknownValue(serde_json::Value),
1658}
1659
1660/// struct for typed errors of method [`event_forwarder_create_teams`]
1661#[derive(Debug, Clone, Serialize, Deserialize)]
1662#[serde(untagged)]
1663pub enum EventForwarderCreateTeamsError {
1664    DefaultResponse(models::JsonError),
1665    UnknownValue(serde_json::Value),
1666}
1667
1668/// struct for typed errors of method [`event_forwarder_create_webhook`]
1669#[derive(Debug, Clone, Serialize, Deserialize)]
1670#[serde(untagged)]
1671pub enum EventForwarderCreateWebhookError {
1672    DefaultResponse(models::JsonError),
1673    UnknownValue(serde_json::Value),
1674}
1675
1676/// struct for typed errors of method [`event_forwarder_delete`]
1677#[derive(Debug, Clone, Serialize, Deserialize)]
1678#[serde(untagged)]
1679pub enum EventForwarderDeleteError {
1680    DefaultResponse(models::JsonError),
1681    UnknownValue(serde_json::Value),
1682}
1683
1684/// struct for typed errors of method [`event_forwarder_get`]
1685#[derive(Debug, Clone, Serialize, Deserialize)]
1686#[serde(untagged)]
1687pub enum EventForwarderGetError {
1688    DefaultResponse(models::JsonError),
1689    UnknownValue(serde_json::Value),
1690}
1691
1692/// struct for typed errors of method [`event_forwarder_update_email`]
1693#[derive(Debug, Clone, Serialize, Deserialize)]
1694#[serde(untagged)]
1695pub enum EventForwarderUpdateEmailError {
1696    DefaultResponse(models::JsonError),
1697    UnknownValue(serde_json::Value),
1698}
1699
1700/// struct for typed errors of method [`event_forwarder_update_service_now`]
1701#[derive(Debug, Clone, Serialize, Deserialize)]
1702#[serde(untagged)]
1703pub enum EventForwarderUpdateServiceNowError {
1704    DefaultResponse(models::JsonError),
1705    UnknownValue(serde_json::Value),
1706}
1707
1708/// struct for typed errors of method [`event_forwarder_update_slack`]
1709#[derive(Debug, Clone, Serialize, Deserialize)]
1710#[serde(untagged)]
1711pub enum EventForwarderUpdateSlackError {
1712    DefaultResponse(models::JsonError),
1713    UnknownValue(serde_json::Value),
1714}
1715
1716/// struct for typed errors of method [`event_forwarder_update_teams`]
1717#[derive(Debug, Clone, Serialize, Deserialize)]
1718#[serde(untagged)]
1719pub enum EventForwarderUpdateTeamsError {
1720    DefaultResponse(models::JsonError),
1721    UnknownValue(serde_json::Value),
1722}
1723
1724/// struct for typed errors of method [`event_forwarder_update_webhook`]
1725#[derive(Debug, Clone, Serialize, Deserialize)]
1726#[serde(untagged)]
1727pub enum EventForwarderUpdateWebhookError {
1728    DefaultResponse(models::JsonError),
1729    UnknownValue(serde_json::Value),
1730}
1731
1732/// struct for typed errors of method [`export_classic_key`]
1733#[derive(Debug, Clone, Serialize, Deserialize)]
1734#[serde(untagged)]
1735pub enum ExportClassicKeyError {
1736    DefaultResponse(models::JsonError),
1737    UnknownValue(serde_json::Value),
1738}
1739
1740/// struct for typed errors of method [`folder_create`]
1741#[derive(Debug, Clone, Serialize, Deserialize)]
1742#[serde(untagged)]
1743pub enum FolderCreateError {
1744    DefaultResponse(models::JsonError),
1745    UnknownValue(serde_json::Value),
1746}
1747
1748/// struct for typed errors of method [`folder_delete`]
1749#[derive(Debug, Clone, Serialize, Deserialize)]
1750#[serde(untagged)]
1751pub enum FolderDeleteError {
1752    DefaultResponse(models::JsonError),
1753    UnknownValue(serde_json::Value),
1754}
1755
1756/// struct for typed errors of method [`folder_get`]
1757#[derive(Debug, Clone, Serialize, Deserialize)]
1758#[serde(untagged)]
1759pub enum FolderGetError {
1760    DefaultResponse(models::JsonError),
1761    UnknownValue(serde_json::Value),
1762}
1763
1764/// struct for typed errors of method [`folder_update`]
1765#[derive(Debug, Clone, Serialize, Deserialize)]
1766#[serde(untagged)]
1767pub enum FolderUpdateError {
1768    DefaultResponse(models::JsonError),
1769    UnknownValue(serde_json::Value),
1770}
1771
1772/// struct for typed errors of method [`gateway_create_allowed_access`]
1773#[derive(Debug, Clone, Serialize, Deserialize)]
1774#[serde(untagged)]
1775pub enum GatewayCreateAllowedAccessError {
1776    DefaultResponse(models::JsonError),
1777    UnknownValue(serde_json::Value),
1778}
1779
1780/// struct for typed errors of method [`gateway_create_k8_s_auth_config`]
1781#[derive(Debug, Clone, Serialize, Deserialize)]
1782#[serde(untagged)]
1783pub enum GatewayCreateK8SAuthConfigError {
1784    DefaultResponse(models::JsonError),
1785    UnknownValue(serde_json::Value),
1786}
1787
1788/// struct for typed errors of method [`gateway_create_migration`]
1789#[derive(Debug, Clone, Serialize, Deserialize)]
1790#[serde(untagged)]
1791pub enum GatewayCreateMigrationError {
1792    DefaultResponse(models::JsonError),
1793    UnknownValue(serde_json::Value),
1794}
1795
1796/// struct for typed errors of method [`gateway_create_producer_artifactory`]
1797#[derive(Debug, Clone, Serialize, Deserialize)]
1798#[serde(untagged)]
1799pub enum GatewayCreateProducerArtifactoryError {
1800    DefaultResponse(models::JsonError),
1801    UnknownValue(serde_json::Value),
1802}
1803
1804/// struct for typed errors of method [`gateway_create_producer_aws`]
1805#[derive(Debug, Clone, Serialize, Deserialize)]
1806#[serde(untagged)]
1807pub enum GatewayCreateProducerAwsError {
1808    DefaultResponse(models::JsonError),
1809    UnknownValue(serde_json::Value),
1810}
1811
1812/// struct for typed errors of method [`gateway_create_producer_azure`]
1813#[derive(Debug, Clone, Serialize, Deserialize)]
1814#[serde(untagged)]
1815pub enum GatewayCreateProducerAzureError {
1816    DefaultResponse(models::JsonError),
1817    UnknownValue(serde_json::Value),
1818}
1819
1820/// struct for typed errors of method [`gateway_create_producer_cassandra`]
1821#[derive(Debug, Clone, Serialize, Deserialize)]
1822#[serde(untagged)]
1823pub enum GatewayCreateProducerCassandraError {
1824    DefaultResponse(models::JsonError),
1825    UnknownValue(serde_json::Value),
1826}
1827
1828/// struct for typed errors of method [`gateway_create_producer_chef`]
1829#[derive(Debug, Clone, Serialize, Deserialize)]
1830#[serde(untagged)]
1831pub enum GatewayCreateProducerChefError {
1832    DefaultResponse(models::JsonError),
1833    UnknownValue(serde_json::Value),
1834}
1835
1836/// struct for typed errors of method [`gateway_create_producer_custom`]
1837#[derive(Debug, Clone, Serialize, Deserialize)]
1838#[serde(untagged)]
1839pub enum GatewayCreateProducerCustomError {
1840    DefaultResponse(models::JsonError),
1841    UnknownValue(serde_json::Value),
1842}
1843
1844/// struct for typed errors of method [`gateway_create_producer_dockerhub`]
1845#[derive(Debug, Clone, Serialize, Deserialize)]
1846#[serde(untagged)]
1847pub enum GatewayCreateProducerDockerhubError {
1848    DefaultResponse(models::JsonError),
1849    UnknownValue(serde_json::Value),
1850}
1851
1852/// struct for typed errors of method [`gateway_create_producer_eks`]
1853#[derive(Debug, Clone, Serialize, Deserialize)]
1854#[serde(untagged)]
1855pub enum GatewayCreateProducerEksError {
1856    DefaultResponse(models::JsonError),
1857    UnknownValue(serde_json::Value),
1858}
1859
1860/// struct for typed errors of method [`gateway_create_producer_gcp`]
1861#[derive(Debug, Clone, Serialize, Deserialize)]
1862#[serde(untagged)]
1863pub enum GatewayCreateProducerGcpError {
1864    DefaultResponse(models::JsonError),
1865    UnknownValue(serde_json::Value),
1866}
1867
1868/// struct for typed errors of method [`gateway_create_producer_github`]
1869#[derive(Debug, Clone, Serialize, Deserialize)]
1870#[serde(untagged)]
1871pub enum GatewayCreateProducerGithubError {
1872    DefaultResponse(models::JsonError),
1873    UnknownValue(serde_json::Value),
1874}
1875
1876/// struct for typed errors of method [`gateway_create_producer_gke`]
1877#[derive(Debug, Clone, Serialize, Deserialize)]
1878#[serde(untagged)]
1879pub enum GatewayCreateProducerGkeError {
1880    DefaultResponse(models::JsonError),
1881    UnknownValue(serde_json::Value),
1882}
1883
1884/// struct for typed errors of method [`gateway_create_producer_hana_db`]
1885#[derive(Debug, Clone, Serialize, Deserialize)]
1886#[serde(untagged)]
1887pub enum GatewayCreateProducerHanaDbError {
1888    DefaultResponse(models::JsonError),
1889    UnknownValue(serde_json::Value),
1890}
1891
1892/// struct for typed errors of method [`gateway_create_producer_ldap`]
1893#[derive(Debug, Clone, Serialize, Deserialize)]
1894#[serde(untagged)]
1895pub enum GatewayCreateProducerLdapError {
1896    DefaultResponse(models::JsonError),
1897    UnknownValue(serde_json::Value),
1898}
1899
1900/// struct for typed errors of method [`gateway_create_producer_mongo`]
1901#[derive(Debug, Clone, Serialize, Deserialize)]
1902#[serde(untagged)]
1903pub enum GatewayCreateProducerMongoError {
1904    DefaultResponse(models::JsonError),
1905    UnknownValue(serde_json::Value),
1906}
1907
1908/// struct for typed errors of method [`gateway_create_producer_mssql`]
1909#[derive(Debug, Clone, Serialize, Deserialize)]
1910#[serde(untagged)]
1911pub enum GatewayCreateProducerMssqlError {
1912    DefaultResponse(models::JsonError),
1913    UnknownValue(serde_json::Value),
1914}
1915
1916/// struct for typed errors of method [`gateway_create_producer_my_sql`]
1917#[derive(Debug, Clone, Serialize, Deserialize)]
1918#[serde(untagged)]
1919pub enum GatewayCreateProducerMySqlError {
1920    DefaultResponse(models::JsonError),
1921    UnknownValue(serde_json::Value),
1922}
1923
1924/// struct for typed errors of method [`gateway_create_producer_native_k8_s`]
1925#[derive(Debug, Clone, Serialize, Deserialize)]
1926#[serde(untagged)]
1927pub enum GatewayCreateProducerNativeK8SError {
1928    DefaultResponse(models::JsonError),
1929    UnknownValue(serde_json::Value),
1930}
1931
1932/// struct for typed errors of method [`gateway_create_producer_oracle_db`]
1933#[derive(Debug, Clone, Serialize, Deserialize)]
1934#[serde(untagged)]
1935pub enum GatewayCreateProducerOracleDbError {
1936    DefaultResponse(models::JsonError),
1937    UnknownValue(serde_json::Value),
1938}
1939
1940/// struct for typed errors of method [`gateway_create_producer_ping`]
1941#[derive(Debug, Clone, Serialize, Deserialize)]
1942#[serde(untagged)]
1943pub enum GatewayCreateProducerPingError {
1944    DefaultResponse(models::JsonError),
1945    UnknownValue(serde_json::Value),
1946}
1947
1948/// struct for typed errors of method [`gateway_create_producer_postgre_sql`]
1949#[derive(Debug, Clone, Serialize, Deserialize)]
1950#[serde(untagged)]
1951pub enum GatewayCreateProducerPostgreSqlError {
1952    DefaultResponse(models::JsonError),
1953    UnknownValue(serde_json::Value),
1954}
1955
1956/// struct for typed errors of method [`gateway_create_producer_rabbit_mq`]
1957#[derive(Debug, Clone, Serialize, Deserialize)]
1958#[serde(untagged)]
1959pub enum GatewayCreateProducerRabbitMqError {
1960    DefaultResponse(models::JsonError),
1961    UnknownValue(serde_json::Value),
1962}
1963
1964/// struct for typed errors of method [`gateway_create_producer_rdp`]
1965#[derive(Debug, Clone, Serialize, Deserialize)]
1966#[serde(untagged)]
1967pub enum GatewayCreateProducerRdpError {
1968    DefaultResponse(models::JsonError),
1969    UnknownValue(serde_json::Value),
1970}
1971
1972/// struct for typed errors of method [`gateway_create_producer_redis`]
1973#[derive(Debug, Clone, Serialize, Deserialize)]
1974#[serde(untagged)]
1975pub enum GatewayCreateProducerRedisError {
1976    DefaultResponse(models::JsonError),
1977    UnknownValue(serde_json::Value),
1978}
1979
1980/// struct for typed errors of method [`gateway_create_producer_redshift`]
1981#[derive(Debug, Clone, Serialize, Deserialize)]
1982#[serde(untagged)]
1983pub enum GatewayCreateProducerRedshiftError {
1984    DefaultResponse(models::JsonError),
1985    UnknownValue(serde_json::Value),
1986}
1987
1988/// struct for typed errors of method [`gateway_create_producer_snowflake`]
1989#[derive(Debug, Clone, Serialize, Deserialize)]
1990#[serde(untagged)]
1991pub enum GatewayCreateProducerSnowflakeError {
1992    DefaultResponse(models::JsonError),
1993    UnknownValue(serde_json::Value),
1994}
1995
1996/// struct for typed errors of method [`gateway_create_producer_venafi`]
1997#[derive(Debug, Clone, Serialize, Deserialize)]
1998#[serde(untagged)]
1999pub enum GatewayCreateProducerVenafiError {
2000    DefaultResponse(models::JsonError),
2001    UnknownValue(serde_json::Value),
2002}
2003
2004/// struct for typed errors of method [`gateway_delete_allowed_access`]
2005#[derive(Debug, Clone, Serialize, Deserialize)]
2006#[serde(untagged)]
2007pub enum GatewayDeleteAllowedAccessError {
2008    DefaultResponse(models::JsonError),
2009    UnknownValue(serde_json::Value),
2010}
2011
2012/// struct for typed errors of method [`gateway_delete_k8_s_auth_config`]
2013#[derive(Debug, Clone, Serialize, Deserialize)]
2014#[serde(untagged)]
2015pub enum GatewayDeleteK8SAuthConfigError {
2016    DefaultResponse(models::JsonError),
2017    UnknownValue(serde_json::Value),
2018}
2019
2020/// struct for typed errors of method [`gateway_delete_migration`]
2021#[derive(Debug, Clone, Serialize, Deserialize)]
2022#[serde(untagged)]
2023pub enum GatewayDeleteMigrationError {
2024    DefaultResponse(models::JsonError),
2025    UnknownValue(serde_json::Value),
2026}
2027
2028/// struct for typed errors of method [`gateway_delete_producer`]
2029#[derive(Debug, Clone, Serialize, Deserialize)]
2030#[serde(untagged)]
2031pub enum GatewayDeleteProducerError {
2032    DefaultResponse(models::JsonError),
2033    UnknownValue(serde_json::Value),
2034}
2035
2036/// struct for typed errors of method [`gateway_download_customer_fragments`]
2037#[derive(Debug, Clone, Serialize, Deserialize)]
2038#[serde(untagged)]
2039pub enum GatewayDownloadCustomerFragmentsError {
2040    DefaultResponse(models::JsonError),
2041    UnknownValue(serde_json::Value),
2042}
2043
2044/// struct for typed errors of method [`gateway_get_allowed_access`]
2045#[derive(Debug, Clone, Serialize, Deserialize)]
2046#[serde(untagged)]
2047pub enum GatewayGetAllowedAccessError {
2048    DefaultResponse(models::JsonError),
2049    UnknownValue(serde_json::Value),
2050}
2051
2052/// struct for typed errors of method [`gateway_get_cache`]
2053#[derive(Debug, Clone, Serialize, Deserialize)]
2054#[serde(untagged)]
2055pub enum GatewayGetCacheError {
2056    DefaultResponse(models::JsonError),
2057    UnknownValue(serde_json::Value),
2058}
2059
2060/// struct for typed errors of method [`gateway_get_config`]
2061#[derive(Debug, Clone, Serialize, Deserialize)]
2062#[serde(untagged)]
2063pub enum GatewayGetConfigError {
2064    DefaultResponse(models::JsonError),
2065    UnknownValue(serde_json::Value),
2066}
2067
2068/// struct for typed errors of method [`gateway_get_defaults`]
2069#[derive(Debug, Clone, Serialize, Deserialize)]
2070#[serde(untagged)]
2071pub enum GatewayGetDefaultsError {
2072    DefaultResponse(models::JsonError),
2073    UnknownValue(serde_json::Value),
2074}
2075
2076/// struct for typed errors of method [`gateway_get_k8_s_auth_config`]
2077#[derive(Debug, Clone, Serialize, Deserialize)]
2078#[serde(untagged)]
2079pub enum GatewayGetK8SAuthConfigError {
2080    DefaultResponse(models::JsonError),
2081    UnknownValue(serde_json::Value),
2082}
2083
2084/// struct for typed errors of method [`gateway_get_ldap_auth_config`]
2085#[derive(Debug, Clone, Serialize, Deserialize)]
2086#[serde(untagged)]
2087pub enum GatewayGetLdapAuthConfigError {
2088    DefaultResponse(models::JsonError),
2089    UnknownValue(serde_json::Value),
2090}
2091
2092/// struct for typed errors of method [`gateway_get_log_forwarding`]
2093#[derive(Debug, Clone, Serialize, Deserialize)]
2094#[serde(untagged)]
2095pub enum GatewayGetLogForwardingError {
2096    DefaultResponse(models::JsonError),
2097    UnknownValue(serde_json::Value),
2098}
2099
2100/// struct for typed errors of method [`gateway_get_migration`]
2101#[derive(Debug, Clone, Serialize, Deserialize)]
2102#[serde(untagged)]
2103pub enum GatewayGetMigrationError {
2104    DefaultResponse(models::JsonError),
2105    UnknownValue(serde_json::Value),
2106}
2107
2108/// struct for typed errors of method [`gateway_get_producer`]
2109#[derive(Debug, Clone, Serialize, Deserialize)]
2110#[serde(untagged)]
2111pub enum GatewayGetProducerError {
2112    DefaultResponse(models::JsonError),
2113    UnknownValue(serde_json::Value),
2114}
2115
2116/// struct for typed errors of method [`gateway_get_remote_access`]
2117#[derive(Debug, Clone, Serialize, Deserialize)]
2118#[serde(untagged)]
2119pub enum GatewayGetRemoteAccessError {
2120    DefaultResponse(models::JsonError),
2121    UnknownValue(serde_json::Value),
2122}
2123
2124/// struct for typed errors of method [`gateway_get_tmp_users`]
2125#[derive(Debug, Clone, Serialize, Deserialize)]
2126#[serde(untagged)]
2127pub enum GatewayGetTmpUsersError {
2128    DefaultResponse(models::JsonError),
2129    UnknownValue(serde_json::Value),
2130}
2131
2132/// struct for typed errors of method [`gateway_list_customer_fragments`]
2133#[derive(Debug, Clone, Serialize, Deserialize)]
2134#[serde(untagged)]
2135pub enum GatewayListCustomerFragmentsError {
2136    DefaultResponse(models::JsonError),
2137    UnknownValue(serde_json::Value),
2138}
2139
2140/// struct for typed errors of method [`gateway_list_migration`]
2141#[derive(Debug, Clone, Serialize, Deserialize)]
2142#[serde(untagged)]
2143pub enum GatewayListMigrationError {
2144    DefaultResponse(models::JsonError),
2145    UnknownValue(serde_json::Value),
2146}
2147
2148/// struct for typed errors of method [`gateway_list_producers`]
2149#[derive(Debug, Clone, Serialize, Deserialize)]
2150#[serde(untagged)]
2151pub enum GatewayListProducersError {
2152    DefaultResponse(models::JsonError),
2153    UnknownValue(serde_json::Value),
2154}
2155
2156/// struct for typed errors of method [`gateway_list_rotated_secrets`]
2157#[derive(Debug, Clone, Serialize, Deserialize)]
2158#[serde(untagged)]
2159pub enum GatewayListRotatedSecretsError {
2160    DefaultResponse(models::JsonError),
2161    UnknownValue(serde_json::Value),
2162}
2163
2164/// struct for typed errors of method [`gateway_migrate_personal_items`]
2165#[derive(Debug, Clone, Serialize, Deserialize)]
2166#[serde(untagged)]
2167pub enum GatewayMigratePersonalItemsError {
2168    DefaultResponse(models::JsonError),
2169    UnknownValue(serde_json::Value),
2170}
2171
2172/// struct for typed errors of method [`gateway_revoke_tmp_users`]
2173#[derive(Debug, Clone, Serialize, Deserialize)]
2174#[serde(untagged)]
2175pub enum GatewayRevokeTmpUsersError {
2176    DefaultResponse(models::JsonError),
2177    UnknownValue(serde_json::Value),
2178}
2179
2180/// struct for typed errors of method [`gateway_start_producer`]
2181#[derive(Debug, Clone, Serialize, Deserialize)]
2182#[serde(untagged)]
2183pub enum GatewayStartProducerError {
2184    DefaultResponse(models::JsonError),
2185    UnknownValue(serde_json::Value),
2186}
2187
2188/// struct for typed errors of method [`gateway_status_migration`]
2189#[derive(Debug, Clone, Serialize, Deserialize)]
2190#[serde(untagged)]
2191pub enum GatewayStatusMigrationError {
2192    DefaultResponse(models::JsonError),
2193    UnknownValue(serde_json::Value),
2194}
2195
2196/// struct for typed errors of method [`gateway_stop_producer`]
2197#[derive(Debug, Clone, Serialize, Deserialize)]
2198#[serde(untagged)]
2199pub enum GatewayStopProducerError {
2200    DefaultResponse(models::JsonError),
2201    UnknownValue(serde_json::Value),
2202}
2203
2204/// struct for typed errors of method [`gateway_sync_migration`]
2205#[derive(Debug, Clone, Serialize, Deserialize)]
2206#[serde(untagged)]
2207pub enum GatewaySyncMigrationError {
2208    DefaultResponse(models::JsonError),
2209    UnknownValue(serde_json::Value),
2210}
2211
2212/// struct for typed errors of method [`gateway_update_allowed_access`]
2213#[derive(Debug, Clone, Serialize, Deserialize)]
2214#[serde(untagged)]
2215pub enum GatewayUpdateAllowedAccessError {
2216    DefaultResponse(models::JsonError),
2217    UnknownValue(serde_json::Value),
2218}
2219
2220/// struct for typed errors of method [`gateway_update_cache`]
2221#[derive(Debug, Clone, Serialize, Deserialize)]
2222#[serde(untagged)]
2223pub enum GatewayUpdateCacheError {
2224    DefaultResponse(models::JsonError),
2225    UnknownValue(serde_json::Value),
2226}
2227
2228/// struct for typed errors of method [`gateway_update_defaults`]
2229#[derive(Debug, Clone, Serialize, Deserialize)]
2230#[serde(untagged)]
2231pub enum GatewayUpdateDefaultsError {
2232    DefaultResponse(models::JsonError),
2233    UnknownValue(serde_json::Value),
2234}
2235
2236/// struct for typed errors of method [`gateway_update_item`]
2237#[derive(Debug, Clone, Serialize, Deserialize)]
2238#[serde(untagged)]
2239pub enum GatewayUpdateItemError {
2240    DefaultResponse(models::JsonError),
2241    UnknownValue(serde_json::Value),
2242}
2243
2244/// struct for typed errors of method [`gateway_update_k8_s_auth_config`]
2245#[derive(Debug, Clone, Serialize, Deserialize)]
2246#[serde(untagged)]
2247pub enum GatewayUpdateK8SAuthConfigError {
2248    DefaultResponse(models::JsonError),
2249    UnknownValue(serde_json::Value),
2250}
2251
2252/// struct for typed errors of method [`gateway_update_ldap_auth_config`]
2253#[derive(Debug, Clone, Serialize, Deserialize)]
2254#[serde(untagged)]
2255pub enum GatewayUpdateLdapAuthConfigError {
2256    DefaultResponse(models::JsonError),
2257    UnknownValue(serde_json::Value),
2258}
2259
2260/// struct for typed errors of method [`gateway_update_log_forwarding_aws_s3`]
2261#[derive(Debug, Clone, Serialize, Deserialize)]
2262#[serde(untagged)]
2263pub enum GatewayUpdateLogForwardingAwsS3Error {
2264    DefaultResponse(models::JsonError),
2265    UnknownValue(serde_json::Value),
2266}
2267
2268/// struct for typed errors of method [`gateway_update_log_forwarding_azure_analytics`]
2269#[derive(Debug, Clone, Serialize, Deserialize)]
2270#[serde(untagged)]
2271pub enum GatewayUpdateLogForwardingAzureAnalyticsError {
2272    DefaultResponse(models::JsonError),
2273    UnknownValue(serde_json::Value),
2274}
2275
2276/// struct for typed errors of method [`gateway_update_log_forwarding_datadog`]
2277#[derive(Debug, Clone, Serialize, Deserialize)]
2278#[serde(untagged)]
2279pub enum GatewayUpdateLogForwardingDatadogError {
2280    DefaultResponse(models::JsonError),
2281    UnknownValue(serde_json::Value),
2282}
2283
2284/// struct for typed errors of method [`gateway_update_log_forwarding_elasticsearch`]
2285#[derive(Debug, Clone, Serialize, Deserialize)]
2286#[serde(untagged)]
2287pub enum GatewayUpdateLogForwardingElasticsearchError {
2288    DefaultResponse(models::JsonError),
2289    UnknownValue(serde_json::Value),
2290}
2291
2292/// struct for typed errors of method [`gateway_update_log_forwarding_google_chronicle`]
2293#[derive(Debug, Clone, Serialize, Deserialize)]
2294#[serde(untagged)]
2295pub enum GatewayUpdateLogForwardingGoogleChronicleError {
2296    DefaultResponse(models::JsonError),
2297    UnknownValue(serde_json::Value),
2298}
2299
2300/// struct for typed errors of method [`gateway_update_log_forwarding_logstash`]
2301#[derive(Debug, Clone, Serialize, Deserialize)]
2302#[serde(untagged)]
2303pub enum GatewayUpdateLogForwardingLogstashError {
2304    DefaultResponse(models::JsonError),
2305    UnknownValue(serde_json::Value),
2306}
2307
2308/// struct for typed errors of method [`gateway_update_log_forwarding_logz_io`]
2309#[derive(Debug, Clone, Serialize, Deserialize)]
2310#[serde(untagged)]
2311pub enum GatewayUpdateLogForwardingLogzIoError {
2312    DefaultResponse(models::JsonError),
2313    UnknownValue(serde_json::Value),
2314}
2315
2316/// struct for typed errors of method [`gateway_update_log_forwarding_splunk`]
2317#[derive(Debug, Clone, Serialize, Deserialize)]
2318#[serde(untagged)]
2319pub enum GatewayUpdateLogForwardingSplunkError {
2320    DefaultResponse(models::JsonError),
2321    UnknownValue(serde_json::Value),
2322}
2323
2324/// struct for typed errors of method [`gateway_update_log_forwarding_stdout`]
2325#[derive(Debug, Clone, Serialize, Deserialize)]
2326#[serde(untagged)]
2327pub enum GatewayUpdateLogForwardingStdoutError {
2328    DefaultResponse(models::JsonError),
2329    UnknownValue(serde_json::Value),
2330}
2331
2332/// struct for typed errors of method [`gateway_update_log_forwarding_sumologic`]
2333#[derive(Debug, Clone, Serialize, Deserialize)]
2334#[serde(untagged)]
2335pub enum GatewayUpdateLogForwardingSumologicError {
2336    DefaultResponse(models::JsonError),
2337    UnknownValue(serde_json::Value),
2338}
2339
2340/// struct for typed errors of method [`gateway_update_log_forwarding_syslog`]
2341#[derive(Debug, Clone, Serialize, Deserialize)]
2342#[serde(untagged)]
2343pub enum GatewayUpdateLogForwardingSyslogError {
2344    DefaultResponse(models::JsonError),
2345    UnknownValue(serde_json::Value),
2346}
2347
2348/// struct for typed errors of method [`gateway_update_migration`]
2349#[derive(Debug, Clone, Serialize, Deserialize)]
2350#[serde(untagged)]
2351pub enum GatewayUpdateMigrationError {
2352    DefaultResponse(models::JsonError),
2353    UnknownValue(serde_json::Value),
2354}
2355
2356/// struct for typed errors of method [`gateway_update_producer_artifactory`]
2357#[derive(Debug, Clone, Serialize, Deserialize)]
2358#[serde(untagged)]
2359pub enum GatewayUpdateProducerArtifactoryError {
2360    DefaultResponse(models::JsonError),
2361    UnknownValue(serde_json::Value),
2362}
2363
2364/// struct for typed errors of method [`gateway_update_producer_aws`]
2365#[derive(Debug, Clone, Serialize, Deserialize)]
2366#[serde(untagged)]
2367pub enum GatewayUpdateProducerAwsError {
2368    DefaultResponse(models::JsonError),
2369    UnknownValue(serde_json::Value),
2370}
2371
2372/// struct for typed errors of method [`gateway_update_producer_azure`]
2373#[derive(Debug, Clone, Serialize, Deserialize)]
2374#[serde(untagged)]
2375pub enum GatewayUpdateProducerAzureError {
2376    DefaultResponse(models::JsonError),
2377    UnknownValue(serde_json::Value),
2378}
2379
2380/// struct for typed errors of method [`gateway_update_producer_cassandra`]
2381#[derive(Debug, Clone, Serialize, Deserialize)]
2382#[serde(untagged)]
2383pub enum GatewayUpdateProducerCassandraError {
2384    DefaultResponse(models::JsonError),
2385    UnknownValue(serde_json::Value),
2386}
2387
2388/// struct for typed errors of method [`gateway_update_producer_chef`]
2389#[derive(Debug, Clone, Serialize, Deserialize)]
2390#[serde(untagged)]
2391pub enum GatewayUpdateProducerChefError {
2392    DefaultResponse(models::JsonError),
2393    UnknownValue(serde_json::Value),
2394}
2395
2396/// struct for typed errors of method [`gateway_update_producer_custom`]
2397#[derive(Debug, Clone, Serialize, Deserialize)]
2398#[serde(untagged)]
2399pub enum GatewayUpdateProducerCustomError {
2400    DefaultResponse(models::JsonError),
2401    UnknownValue(serde_json::Value),
2402}
2403
2404/// struct for typed errors of method [`gateway_update_producer_dockerhub`]
2405#[derive(Debug, Clone, Serialize, Deserialize)]
2406#[serde(untagged)]
2407pub enum GatewayUpdateProducerDockerhubError {
2408    DefaultResponse(models::JsonError),
2409    UnknownValue(serde_json::Value),
2410}
2411
2412/// struct for typed errors of method [`gateway_update_producer_eks`]
2413#[derive(Debug, Clone, Serialize, Deserialize)]
2414#[serde(untagged)]
2415pub enum GatewayUpdateProducerEksError {
2416    DefaultResponse(models::JsonError),
2417    UnknownValue(serde_json::Value),
2418}
2419
2420/// struct for typed errors of method [`gateway_update_producer_gcp`]
2421#[derive(Debug, Clone, Serialize, Deserialize)]
2422#[serde(untagged)]
2423pub enum GatewayUpdateProducerGcpError {
2424    DefaultResponse(models::JsonError),
2425    UnknownValue(serde_json::Value),
2426}
2427
2428/// struct for typed errors of method [`gateway_update_producer_github`]
2429#[derive(Debug, Clone, Serialize, Deserialize)]
2430#[serde(untagged)]
2431pub enum GatewayUpdateProducerGithubError {
2432    DefaultResponse(models::JsonError),
2433    UnknownValue(serde_json::Value),
2434}
2435
2436/// struct for typed errors of method [`gateway_update_producer_gke`]
2437#[derive(Debug, Clone, Serialize, Deserialize)]
2438#[serde(untagged)]
2439pub enum GatewayUpdateProducerGkeError {
2440    DefaultResponse(models::JsonError),
2441    UnknownValue(serde_json::Value),
2442}
2443
2444/// struct for typed errors of method [`gateway_update_producer_hana_db`]
2445#[derive(Debug, Clone, Serialize, Deserialize)]
2446#[serde(untagged)]
2447pub enum GatewayUpdateProducerHanaDbError {
2448    DefaultResponse(models::JsonError),
2449    UnknownValue(serde_json::Value),
2450}
2451
2452/// struct for typed errors of method [`gateway_update_producer_ldap`]
2453#[derive(Debug, Clone, Serialize, Deserialize)]
2454#[serde(untagged)]
2455pub enum GatewayUpdateProducerLdapError {
2456    DefaultResponse(models::JsonError),
2457    UnknownValue(serde_json::Value),
2458}
2459
2460/// struct for typed errors of method [`gateway_update_producer_mongo`]
2461#[derive(Debug, Clone, Serialize, Deserialize)]
2462#[serde(untagged)]
2463pub enum GatewayUpdateProducerMongoError {
2464    DefaultResponse(models::JsonError),
2465    UnknownValue(serde_json::Value),
2466}
2467
2468/// struct for typed errors of method [`gateway_update_producer_mssql`]
2469#[derive(Debug, Clone, Serialize, Deserialize)]
2470#[serde(untagged)]
2471pub enum GatewayUpdateProducerMssqlError {
2472    DefaultResponse(models::JsonError),
2473    UnknownValue(serde_json::Value),
2474}
2475
2476/// struct for typed errors of method [`gateway_update_producer_my_sql`]
2477#[derive(Debug, Clone, Serialize, Deserialize)]
2478#[serde(untagged)]
2479pub enum GatewayUpdateProducerMySqlError {
2480    DefaultResponse(models::JsonError),
2481    UnknownValue(serde_json::Value),
2482}
2483
2484/// struct for typed errors of method [`gateway_update_producer_native_k8_s`]
2485#[derive(Debug, Clone, Serialize, Deserialize)]
2486#[serde(untagged)]
2487pub enum GatewayUpdateProducerNativeK8SError {
2488    DefaultResponse(models::JsonError),
2489    UnknownValue(serde_json::Value),
2490}
2491
2492/// struct for typed errors of method [`gateway_update_producer_oracle_db`]
2493#[derive(Debug, Clone, Serialize, Deserialize)]
2494#[serde(untagged)]
2495pub enum GatewayUpdateProducerOracleDbError {
2496    DefaultResponse(models::JsonError),
2497    UnknownValue(serde_json::Value),
2498}
2499
2500/// struct for typed errors of method [`gateway_update_producer_ping`]
2501#[derive(Debug, Clone, Serialize, Deserialize)]
2502#[serde(untagged)]
2503pub enum GatewayUpdateProducerPingError {
2504    DefaultResponse(models::JsonError),
2505    UnknownValue(serde_json::Value),
2506}
2507
2508/// struct for typed errors of method [`gateway_update_producer_postgre_sql`]
2509#[derive(Debug, Clone, Serialize, Deserialize)]
2510#[serde(untagged)]
2511pub enum GatewayUpdateProducerPostgreSqlError {
2512    DefaultResponse(models::JsonError),
2513    UnknownValue(serde_json::Value),
2514}
2515
2516/// struct for typed errors of method [`gateway_update_producer_rabbit_mq`]
2517#[derive(Debug, Clone, Serialize, Deserialize)]
2518#[serde(untagged)]
2519pub enum GatewayUpdateProducerRabbitMqError {
2520    DefaultResponse(models::JsonError),
2521    UnknownValue(serde_json::Value),
2522}
2523
2524/// struct for typed errors of method [`gateway_update_producer_rdp`]
2525#[derive(Debug, Clone, Serialize, Deserialize)]
2526#[serde(untagged)]
2527pub enum GatewayUpdateProducerRdpError {
2528    DefaultResponse(models::JsonError),
2529    UnknownValue(serde_json::Value),
2530}
2531
2532/// struct for typed errors of method [`gateway_update_producer_redis`]
2533#[derive(Debug, Clone, Serialize, Deserialize)]
2534#[serde(untagged)]
2535pub enum GatewayUpdateProducerRedisError {
2536    DefaultResponse(models::JsonError),
2537    UnknownValue(serde_json::Value),
2538}
2539
2540/// struct for typed errors of method [`gateway_update_producer_redshift`]
2541#[derive(Debug, Clone, Serialize, Deserialize)]
2542#[serde(untagged)]
2543pub enum GatewayUpdateProducerRedshiftError {
2544    DefaultResponse(models::JsonError),
2545    UnknownValue(serde_json::Value),
2546}
2547
2548/// struct for typed errors of method [`gateway_update_producer_snowflake`]
2549#[derive(Debug, Clone, Serialize, Deserialize)]
2550#[serde(untagged)]
2551pub enum GatewayUpdateProducerSnowflakeError {
2552    DefaultResponse(models::JsonError),
2553    UnknownValue(serde_json::Value),
2554}
2555
2556/// struct for typed errors of method [`gateway_update_producer_venafi`]
2557#[derive(Debug, Clone, Serialize, Deserialize)]
2558#[serde(untagged)]
2559pub enum GatewayUpdateProducerVenafiError {
2560    DefaultResponse(models::JsonError),
2561    UnknownValue(serde_json::Value),
2562}
2563
2564/// struct for typed errors of method [`gateway_update_remote_access`]
2565#[derive(Debug, Clone, Serialize, Deserialize)]
2566#[serde(untagged)]
2567pub enum GatewayUpdateRemoteAccessError {
2568    DefaultResponse(models::JsonError),
2569    UnknownValue(serde_json::Value),
2570}
2571
2572/// struct for typed errors of method [`gateway_update_remote_access_desktop_app`]
2573#[derive(Debug, Clone, Serialize, Deserialize)]
2574#[serde(untagged)]
2575pub enum GatewayUpdateRemoteAccessDesktopAppError {
2576    DefaultResponse(models::JsonError),
2577    UnknownValue(serde_json::Value),
2578}
2579
2580/// struct for typed errors of method [`gateway_update_remote_access_rdp_recordings`]
2581#[derive(Debug, Clone, Serialize, Deserialize)]
2582#[serde(untagged)]
2583pub enum GatewayUpdateRemoteAccessRdpRecordingsError {
2584    DefaultResponse(models::JsonError),
2585    UnknownValue(serde_json::Value),
2586}
2587
2588/// struct for typed errors of method [`gateway_update_tls_cert`]
2589#[derive(Debug, Clone, Serialize, Deserialize)]
2590#[serde(untagged)]
2591pub enum GatewayUpdateTlsCertError {
2592    DefaultResponse(models::JsonError),
2593    UnknownValue(serde_json::Value),
2594}
2595
2596/// struct for typed errors of method [`gateway_update_tmp_users`]
2597#[derive(Debug, Clone, Serialize, Deserialize)]
2598#[serde(untagged)]
2599pub enum GatewayUpdateTmpUsersError {
2600    DefaultResponse(models::JsonError),
2601    UnknownValue(serde_json::Value),
2602}
2603
2604/// struct for typed errors of method [`generate_acme_eab`]
2605#[derive(Debug, Clone, Serialize, Deserialize)]
2606#[serde(untagged)]
2607pub enum GenerateAcmeEabError {
2608    DefaultResponse(models::JsonError),
2609    UnknownValue(serde_json::Value),
2610}
2611
2612/// struct for typed errors of method [`generate_ca`]
2613#[derive(Debug, Clone, Serialize, Deserialize)]
2614#[serde(untagged)]
2615pub enum GenerateCaError {
2616    DefaultResponse(models::JsonError),
2617    UnknownValue(serde_json::Value),
2618}
2619
2620/// struct for typed errors of method [`generate_csr`]
2621#[derive(Debug, Clone, Serialize, Deserialize)]
2622#[serde(untagged)]
2623pub enum GenerateCsrError {
2624    DefaultResponse(models::JsonError),
2625    UnknownValue(serde_json::Value),
2626}
2627
2628/// struct for typed errors of method [`get_account_logo`]
2629#[derive(Debug, Clone, Serialize, Deserialize)]
2630#[serde(untagged)]
2631pub enum GetAccountLogoError {
2632    DefaultResponse(models::JsonError),
2633    UnknownValue(serde_json::Value),
2634}
2635
2636/// struct for typed errors of method [`get_account_settings`]
2637#[derive(Debug, Clone, Serialize, Deserialize)]
2638#[serde(untagged)]
2639pub enum GetAccountSettingsError {
2640    DefaultResponse(models::JsonError),
2641    UnknownValue(serde_json::Value),
2642}
2643
2644/// struct for typed errors of method [`get_analytics_data`]
2645#[derive(Debug, Clone, Serialize, Deserialize)]
2646#[serde(untagged)]
2647pub enum GetAnalyticsDataError {
2648    DefaultResponse(models::JsonError),
2649    UnknownValue(serde_json::Value),
2650}
2651
2652/// struct for typed errors of method [`get_auth_method`]
2653#[derive(Debug, Clone, Serialize, Deserialize)]
2654#[serde(untagged)]
2655pub enum GetAuthMethodError {
2656    DefaultResponse(models::JsonError),
2657    UnknownValue(serde_json::Value),
2658}
2659
2660/// struct for typed errors of method [`get_cert_challenge`]
2661#[derive(Debug, Clone, Serialize, Deserialize)]
2662#[serde(untagged)]
2663pub enum GetCertChallengeError {
2664    Status400(models::JsonError),
2665    DefaultResponse(models::JsonError),
2666    UnknownValue(serde_json::Value),
2667}
2668
2669/// struct for typed errors of method [`get_certificate_value`]
2670#[derive(Debug, Clone, Serialize, Deserialize)]
2671#[serde(untagged)]
2672pub enum GetCertificateValueError {
2673    DefaultResponse(models::JsonError),
2674    UnknownValue(serde_json::Value),
2675}
2676
2677/// struct for typed errors of method [`get_dynamic_secret_value`]
2678#[derive(Debug, Clone, Serialize, Deserialize)]
2679#[serde(untagged)]
2680pub enum GetDynamicSecretValueError {
2681    DefaultResponse(models::JsonError),
2682    UnknownValue(serde_json::Value),
2683}
2684
2685/// struct for typed errors of method [`get_event_forwarder`]
2686#[derive(Debug, Clone, Serialize, Deserialize)]
2687#[serde(untagged)]
2688pub enum GetEventForwarderError {
2689    DefaultResponse(models::JsonError),
2690    UnknownValue(serde_json::Value),
2691}
2692
2693/// struct for typed errors of method [`get_group`]
2694#[derive(Debug, Clone, Serialize, Deserialize)]
2695#[serde(untagged)]
2696pub enum GetGroupError {
2697    DefaultResponse(models::JsonError),
2698    UnknownValue(serde_json::Value),
2699}
2700
2701/// struct for typed errors of method [`get_kube_exec_creds`]
2702#[derive(Debug, Clone, Serialize, Deserialize)]
2703#[serde(untagged)]
2704pub enum GetKubeExecCredsError {
2705    DefaultResponse(models::JsonError),
2706    UnknownValue(serde_json::Value),
2707}
2708
2709/// struct for typed errors of method [`get_last_user_event_status`]
2710#[derive(Debug, Clone, Serialize, Deserialize)]
2711#[serde(untagged)]
2712pub enum GetLastUserEventStatusError {
2713    DefaultResponse(models::JsonError),
2714    UnknownValue(serde_json::Value),
2715}
2716
2717/// struct for typed errors of method [`get_pki_certificate`]
2718#[derive(Debug, Clone, Serialize, Deserialize)]
2719#[serde(untagged)]
2720pub enum GetPkiCertificateError {
2721    DefaultResponse(models::JsonError),
2722    UnknownValue(serde_json::Value),
2723}
2724
2725/// struct for typed errors of method [`get_role`]
2726#[derive(Debug, Clone, Serialize, Deserialize)]
2727#[serde(untagged)]
2728pub enum GetRoleError {
2729    DefaultResponse(models::JsonError),
2730    UnknownValue(serde_json::Value),
2731}
2732
2733/// struct for typed errors of method [`get_rotated_secret_value`]
2734#[derive(Debug, Clone, Serialize, Deserialize)]
2735#[serde(untagged)]
2736pub enum GetRotatedSecretValueError {
2737    DefaultResponse(models::JsonError),
2738    UnknownValue(serde_json::Value),
2739}
2740
2741/// struct for typed errors of method [`get_rsa_public`]
2742#[derive(Debug, Clone, Serialize, Deserialize)]
2743#[serde(untagged)]
2744pub enum GetRsaPublicError {
2745    DefaultResponse(models::JsonError),
2746    UnknownValue(serde_json::Value),
2747}
2748
2749/// struct for typed errors of method [`get_secret_value`]
2750#[derive(Debug, Clone, Serialize, Deserialize)]
2751#[serde(untagged)]
2752pub enum GetSecretValueError {
2753    DefaultResponse(models::JsonError),
2754    UnknownValue(serde_json::Value),
2755}
2756
2757/// struct for typed errors of method [`get_ssh_certificate`]
2758#[derive(Debug, Clone, Serialize, Deserialize)]
2759#[serde(untagged)]
2760pub enum GetSshCertificateError {
2761    DefaultResponse(models::JsonError),
2762    UnknownValue(serde_json::Value),
2763}
2764
2765/// struct for typed errors of method [`get_tags`]
2766#[derive(Debug, Clone, Serialize, Deserialize)]
2767#[serde(untagged)]
2768pub enum GetTagsError {
2769    DefaultResponse(models::JsonError),
2770    UnknownValue(serde_json::Value),
2771}
2772
2773/// struct for typed errors of method [`get_target`]
2774#[derive(Debug, Clone, Serialize, Deserialize)]
2775#[serde(untagged)]
2776pub enum GetTargetError {
2777    DefaultResponse(models::JsonError),
2778    UnknownValue(serde_json::Value),
2779}
2780
2781/// struct for typed errors of method [`get_target_details`]
2782#[derive(Debug, Clone, Serialize, Deserialize)]
2783#[serde(untagged)]
2784pub enum GetTargetDetailsError {
2785    DefaultResponse(models::JsonError),
2786    UnknownValue(serde_json::Value),
2787}
2788
2789/// struct for typed errors of method [`gw_update_remote_access_session_logs_aws_s3`]
2790#[derive(Debug, Clone, Serialize, Deserialize)]
2791#[serde(untagged)]
2792pub enum GwUpdateRemoteAccessSessionLogsAwsS3Error {
2793    DefaultResponse(models::JsonError),
2794    UnknownValue(serde_json::Value),
2795}
2796
2797/// struct for typed errors of method [`gw_update_remote_access_session_logs_azure_analytics`]
2798#[derive(Debug, Clone, Serialize, Deserialize)]
2799#[serde(untagged)]
2800pub enum GwUpdateRemoteAccessSessionLogsAzureAnalyticsError {
2801    DefaultResponse(models::JsonError),
2802    UnknownValue(serde_json::Value),
2803}
2804
2805/// struct for typed errors of method [`gw_update_remote_access_session_logs_datadog`]
2806#[derive(Debug, Clone, Serialize, Deserialize)]
2807#[serde(untagged)]
2808pub enum GwUpdateRemoteAccessSessionLogsDatadogError {
2809    DefaultResponse(models::JsonError),
2810    UnknownValue(serde_json::Value),
2811}
2812
2813/// struct for typed errors of method [`gw_update_remote_access_session_logs_elasticsearch`]
2814#[derive(Debug, Clone, Serialize, Deserialize)]
2815#[serde(untagged)]
2816pub enum GwUpdateRemoteAccessSessionLogsElasticsearchError {
2817    DefaultResponse(models::JsonError),
2818    UnknownValue(serde_json::Value),
2819}
2820
2821/// struct for typed errors of method [`gw_update_remote_access_session_logs_google_chronicle`]
2822#[derive(Debug, Clone, Serialize, Deserialize)]
2823#[serde(untagged)]
2824pub enum GwUpdateRemoteAccessSessionLogsGoogleChronicleError {
2825    DefaultResponse(models::JsonError),
2826    UnknownValue(serde_json::Value),
2827}
2828
2829/// struct for typed errors of method [`gw_update_remote_access_session_logs_logstash`]
2830#[derive(Debug, Clone, Serialize, Deserialize)]
2831#[serde(untagged)]
2832pub enum GwUpdateRemoteAccessSessionLogsLogstashError {
2833    DefaultResponse(models::JsonError),
2834    UnknownValue(serde_json::Value),
2835}
2836
2837/// struct for typed errors of method [`gw_update_remote_access_session_logs_logz_io`]
2838#[derive(Debug, Clone, Serialize, Deserialize)]
2839#[serde(untagged)]
2840pub enum GwUpdateRemoteAccessSessionLogsLogzIoError {
2841    DefaultResponse(models::JsonError),
2842    UnknownValue(serde_json::Value),
2843}
2844
2845/// struct for typed errors of method [`gw_update_remote_access_session_logs_splunk`]
2846#[derive(Debug, Clone, Serialize, Deserialize)]
2847#[serde(untagged)]
2848pub enum GwUpdateRemoteAccessSessionLogsSplunkError {
2849    DefaultResponse(models::JsonError),
2850    UnknownValue(serde_json::Value),
2851}
2852
2853/// struct for typed errors of method [`gw_update_remote_access_session_logs_stdout`]
2854#[derive(Debug, Clone, Serialize, Deserialize)]
2855#[serde(untagged)]
2856pub enum GwUpdateRemoteAccessSessionLogsStdoutError {
2857    DefaultResponse(models::JsonError),
2858    UnknownValue(serde_json::Value),
2859}
2860
2861/// struct for typed errors of method [`gw_update_remote_access_session_logs_sumologic`]
2862#[derive(Debug, Clone, Serialize, Deserialize)]
2863#[serde(untagged)]
2864pub enum GwUpdateRemoteAccessSessionLogsSumologicError {
2865    DefaultResponse(models::JsonError),
2866    UnknownValue(serde_json::Value),
2867}
2868
2869/// struct for typed errors of method [`gw_update_remote_access_session_logs_syslog`]
2870#[derive(Debug, Clone, Serialize, Deserialize)]
2871#[serde(untagged)]
2872pub enum GwUpdateRemoteAccessSessionLogsSyslogError {
2873    DefaultResponse(models::JsonError),
2874    UnknownValue(serde_json::Value),
2875}
2876
2877/// struct for typed errors of method [`hmac`]
2878#[derive(Debug, Clone, Serialize, Deserialize)]
2879#[serde(untagged)]
2880pub enum HmacError {
2881    DefaultResponse(models::JsonError),
2882    UnknownValue(serde_json::Value),
2883}
2884
2885/// struct for typed errors of method [`import_passwords`]
2886#[derive(Debug, Clone, Serialize, Deserialize)]
2887#[serde(untagged)]
2888pub enum ImportPasswordsError {
2889    DefaultResponse(models::JsonError),
2890    UnknownValue(serde_json::Value),
2891}
2892
2893/// struct for typed errors of method [`kmip_client_delete_rule`]
2894#[derive(Debug, Clone, Serialize, Deserialize)]
2895#[serde(untagged)]
2896pub enum KmipClientDeleteRuleError {
2897    DefaultResponse(models::JsonError),
2898    UnknownValue(serde_json::Value),
2899}
2900
2901/// struct for typed errors of method [`kmip_client_set_rule`]
2902#[derive(Debug, Clone, Serialize, Deserialize)]
2903#[serde(untagged)]
2904pub enum KmipClientSetRuleError {
2905    DefaultResponse(models::JsonError),
2906    UnknownValue(serde_json::Value),
2907}
2908
2909/// struct for typed errors of method [`kmip_create_client`]
2910#[derive(Debug, Clone, Serialize, Deserialize)]
2911#[serde(untagged)]
2912pub enum KmipCreateClientError {
2913    DefaultResponse(models::JsonError),
2914    UnknownValue(serde_json::Value),
2915}
2916
2917/// struct for typed errors of method [`kmip_delete_client`]
2918#[derive(Debug, Clone, Serialize, Deserialize)]
2919#[serde(untagged)]
2920pub enum KmipDeleteClientError {
2921    DefaultResponse(models::JsonError),
2922    UnknownValue(serde_json::Value),
2923}
2924
2925/// struct for typed errors of method [`kmip_delete_server`]
2926#[derive(Debug, Clone, Serialize, Deserialize)]
2927#[serde(untagged)]
2928pub enum KmipDeleteServerError {
2929    DefaultResponse(models::JsonError),
2930    UnknownValue(serde_json::Value),
2931}
2932
2933/// struct for typed errors of method [`kmip_describe_client`]
2934#[derive(Debug, Clone, Serialize, Deserialize)]
2935#[serde(untagged)]
2936pub enum KmipDescribeClientError {
2937    DefaultResponse(models::JsonError),
2938    UnknownValue(serde_json::Value),
2939}
2940
2941/// struct for typed errors of method [`kmip_describe_server`]
2942#[derive(Debug, Clone, Serialize, Deserialize)]
2943#[serde(untagged)]
2944pub enum KmipDescribeServerError {
2945    DefaultResponse(models::JsonError),
2946    UnknownValue(serde_json::Value),
2947}
2948
2949/// struct for typed errors of method [`kmip_list_clients`]
2950#[derive(Debug, Clone, Serialize, Deserialize)]
2951#[serde(untagged)]
2952pub enum KmipListClientsError {
2953    DefaultResponse(models::JsonError),
2954    UnknownValue(serde_json::Value),
2955}
2956
2957/// struct for typed errors of method [`kmip_move_server`]
2958#[derive(Debug, Clone, Serialize, Deserialize)]
2959#[serde(untagged)]
2960pub enum KmipMoveServerError {
2961    DefaultResponse(models::JsonError),
2962    UnknownValue(serde_json::Value),
2963}
2964
2965/// struct for typed errors of method [`kmip_renew_client_certificate`]
2966#[derive(Debug, Clone, Serialize, Deserialize)]
2967#[serde(untagged)]
2968pub enum KmipRenewClientCertificateError {
2969    DefaultResponse(models::JsonError),
2970    UnknownValue(serde_json::Value),
2971}
2972
2973/// struct for typed errors of method [`kmip_renew_server_certificate`]
2974#[derive(Debug, Clone, Serialize, Deserialize)]
2975#[serde(untagged)]
2976pub enum KmipRenewServerCertificateError {
2977    DefaultResponse(models::JsonError),
2978    UnknownValue(serde_json::Value),
2979}
2980
2981/// struct for typed errors of method [`kmip_server_setup`]
2982#[derive(Debug, Clone, Serialize, Deserialize)]
2983#[serde(untagged)]
2984pub enum KmipServerSetupError {
2985    DefaultResponse(models::JsonError),
2986    UnknownValue(serde_json::Value),
2987}
2988
2989/// struct for typed errors of method [`kmip_set_server_state`]
2990#[derive(Debug, Clone, Serialize, Deserialize)]
2991#[serde(untagged)]
2992pub enum KmipSetServerStateError {
2993    DefaultResponse(models::JsonError),
2994    UnknownValue(serde_json::Value),
2995}
2996
2997/// struct for typed errors of method [`kubeconfig_generate`]
2998#[derive(Debug, Clone, Serialize, Deserialize)]
2999#[serde(untagged)]
3000pub enum KubeconfigGenerateError {
3001    DefaultResponse(models::JsonError),
3002    UnknownValue(serde_json::Value),
3003}
3004
3005/// struct for typed errors of method [`list_acme_accounts`]
3006#[derive(Debug, Clone, Serialize, Deserialize)]
3007#[serde(untagged)]
3008pub enum ListAcmeAccountsError {
3009    DefaultResponse(models::JsonError),
3010    UnknownValue(serde_json::Value),
3011}
3012
3013/// struct for typed errors of method [`list_auth_methods`]
3014#[derive(Debug, Clone, Serialize, Deserialize)]
3015#[serde(untagged)]
3016pub enum ListAuthMethodsError {
3017    DefaultResponse(models::JsonError),
3018    UnknownValue(serde_json::Value),
3019}
3020
3021/// struct for typed errors of method [`list_gateways`]
3022#[derive(Debug, Clone, Serialize, Deserialize)]
3023#[serde(untagged)]
3024pub enum ListGatewaysError {
3025    DefaultResponse(models::JsonError),
3026    UnknownValue(serde_json::Value),
3027}
3028
3029/// struct for typed errors of method [`list_groups`]
3030#[derive(Debug, Clone, Serialize, Deserialize)]
3031#[serde(untagged)]
3032pub enum ListGroupsError {
3033    DefaultResponse(models::JsonError),
3034    UnknownValue(serde_json::Value),
3035}
3036
3037/// struct for typed errors of method [`list_items`]
3038#[derive(Debug, Clone, Serialize, Deserialize)]
3039#[serde(untagged)]
3040pub enum ListItemsError {
3041    DefaultResponse(models::JsonError),
3042    UnknownValue(serde_json::Value),
3043}
3044
3045/// struct for typed errors of method [`list_roles`]
3046#[derive(Debug, Clone, Serialize, Deserialize)]
3047#[serde(untagged)]
3048pub enum ListRolesError {
3049    DefaultResponse(models::JsonError),
3050    UnknownValue(serde_json::Value),
3051}
3052
3053/// struct for typed errors of method [`list_shared_items`]
3054#[derive(Debug, Clone, Serialize, Deserialize)]
3055#[serde(untagged)]
3056pub enum ListSharedItemsError {
3057    DefaultResponse(models::JsonError),
3058    UnknownValue(serde_json::Value),
3059}
3060
3061/// struct for typed errors of method [`list_sra_bastions`]
3062#[derive(Debug, Clone, Serialize, Deserialize)]
3063#[serde(untagged)]
3064pub enum ListSraBastionsError {
3065    DefaultResponse(models::JsonError),
3066    UnknownValue(serde_json::Value),
3067}
3068
3069/// struct for typed errors of method [`list_sra_sessions`]
3070#[derive(Debug, Clone, Serialize, Deserialize)]
3071#[serde(untagged)]
3072pub enum ListSraSessionsError {
3073    DefaultResponse(models::JsonError),
3074    UnknownValue(serde_json::Value),
3075}
3076
3077/// struct for typed errors of method [`list_targets`]
3078#[derive(Debug, Clone, Serialize, Deserialize)]
3079#[serde(untagged)]
3080pub enum ListTargetsError {
3081    DefaultResponse(models::JsonError),
3082    UnknownValue(serde_json::Value),
3083}
3084
3085/// struct for typed errors of method [`move_objects`]
3086#[derive(Debug, Clone, Serialize, Deserialize)]
3087#[serde(untagged)]
3088pub enum MoveObjectsError {
3089    DefaultResponse(models::JsonError),
3090    UnknownValue(serde_json::Value),
3091}
3092
3093/// struct for typed errors of method [`policies_delete`]
3094#[derive(Debug, Clone, Serialize, Deserialize)]
3095#[serde(untagged)]
3096pub enum PoliciesDeleteError {
3097    DefaultResponse(models::JsonError),
3098    UnknownValue(serde_json::Value),
3099}
3100
3101/// struct for typed errors of method [`policies_get`]
3102#[derive(Debug, Clone, Serialize, Deserialize)]
3103#[serde(untagged)]
3104pub enum PoliciesGetError {
3105    DefaultResponse(models::JsonError),
3106    UnknownValue(serde_json::Value),
3107}
3108
3109/// struct for typed errors of method [`policies_list`]
3110#[derive(Debug, Clone, Serialize, Deserialize)]
3111#[serde(untagged)]
3112pub enum PoliciesListError {
3113    DefaultResponse(models::JsonError),
3114    UnknownValue(serde_json::Value),
3115}
3116
3117/// struct for typed errors of method [`policy_create_keys`]
3118#[derive(Debug, Clone, Serialize, Deserialize)]
3119#[serde(untagged)]
3120pub enum PolicyCreateKeysError {
3121    DefaultResponse(models::JsonError),
3122    UnknownValue(serde_json::Value),
3123}
3124
3125/// struct for typed errors of method [`policy_update_keys`]
3126#[derive(Debug, Clone, Serialize, Deserialize)]
3127#[serde(untagged)]
3128pub enum PolicyUpdateKeysError {
3129    DefaultResponse(models::JsonError),
3130    UnknownValue(serde_json::Value),
3131}
3132
3133/// struct for typed errors of method [`provision_certificate`]
3134#[derive(Debug, Clone, Serialize, Deserialize)]
3135#[serde(untagged)]
3136pub enum ProvisionCertificateError {
3137    DefaultResponse(models::JsonError),
3138    UnknownValue(serde_json::Value),
3139}
3140
3141/// struct for typed errors of method [`raw_creds`]
3142#[derive(Debug, Clone, Serialize, Deserialize)]
3143#[serde(untagged)]
3144pub enum RawCredsError {
3145    DefaultResponse(models::JsonError),
3146    UnknownValue(serde_json::Value),
3147}
3148
3149/// struct for typed errors of method [`refresh_key`]
3150#[derive(Debug, Clone, Serialize, Deserialize)]
3151#[serde(untagged)]
3152pub enum RefreshKeyError {
3153    DefaultResponse(models::JsonError),
3154    UnknownValue(serde_json::Value),
3155}
3156
3157/// struct for typed errors of method [`renew_certificate`]
3158#[derive(Debug, Clone, Serialize, Deserialize)]
3159#[serde(untagged)]
3160pub enum RenewCertificateError {
3161    DefaultResponse(models::JsonError),
3162    UnknownValue(serde_json::Value),
3163}
3164
3165/// struct for typed errors of method [`request_access`]
3166#[derive(Debug, Clone, Serialize, Deserialize)]
3167#[serde(untagged)]
3168pub enum RequestAccessError {
3169    DefaultResponse(models::JsonError),
3170    UnknownValue(serde_json::Value),
3171}
3172
3173/// struct for typed errors of method [`reset_access_key`]
3174#[derive(Debug, Clone, Serialize, Deserialize)]
3175#[serde(untagged)]
3176pub enum ResetAccessKeyError {
3177    DefaultResponse(models::JsonError),
3178    UnknownValue(serde_json::Value),
3179}
3180
3181/// struct for typed errors of method [`reverse_rbac`]
3182#[derive(Debug, Clone, Serialize, Deserialize)]
3183#[serde(untagged)]
3184pub enum ReverseRbacError {
3185    DefaultResponse(models::JsonError),
3186    UnknownValue(serde_json::Value),
3187}
3188
3189/// struct for typed errors of method [`revoke_certificate`]
3190#[derive(Debug, Clone, Serialize, Deserialize)]
3191#[serde(untagged)]
3192pub enum RevokeCertificateError {
3193    DefaultResponse(models::JsonError),
3194    UnknownValue(serde_json::Value),
3195}
3196
3197/// struct for typed errors of method [`revoke_creds`]
3198#[derive(Debug, Clone, Serialize, Deserialize)]
3199#[serde(untagged)]
3200pub enum RevokeCredsError {
3201    DefaultResponse(models::JsonError),
3202    UnknownValue(serde_json::Value),
3203}
3204
3205/// struct for typed errors of method [`rollback_secret`]
3206#[derive(Debug, Clone, Serialize, Deserialize)]
3207#[serde(untagged)]
3208pub enum RollbackSecretError {
3209    DefaultResponse(models::JsonError),
3210    UnknownValue(serde_json::Value),
3211}
3212
3213/// struct for typed errors of method [`rotate_key`]
3214#[derive(Debug, Clone, Serialize, Deserialize)]
3215#[serde(untagged)]
3216pub enum RotateKeyError {
3217    DefaultResponse(models::JsonError),
3218    UnknownValue(serde_json::Value),
3219}
3220
3221/// struct for typed errors of method [`rotate_oidc_client_secret`]
3222#[derive(Debug, Clone, Serialize, Deserialize)]
3223#[serde(untagged)]
3224pub enum RotateOidcClientSecretError {
3225    DefaultResponse(models::JsonError),
3226    UnknownValue(serde_json::Value),
3227}
3228
3229/// struct for typed errors of method [`rotate_secret`]
3230#[derive(Debug, Clone, Serialize, Deserialize)]
3231#[serde(untagged)]
3232pub enum RotateSecretError {
3233    DefaultResponse(models::JsonError),
3234    UnknownValue(serde_json::Value),
3235}
3236
3237/// struct for typed errors of method [`rotated_secret_create_aws`]
3238#[derive(Debug, Clone, Serialize, Deserialize)]
3239#[serde(untagged)]
3240pub enum RotatedSecretCreateAwsError {
3241    DefaultResponse(models::JsonError),
3242    UnknownValue(serde_json::Value),
3243}
3244
3245/// struct for typed errors of method [`rotated_secret_create_azure`]
3246#[derive(Debug, Clone, Serialize, Deserialize)]
3247#[serde(untagged)]
3248pub enum RotatedSecretCreateAzureError {
3249    DefaultResponse(models::JsonError),
3250    UnknownValue(serde_json::Value),
3251}
3252
3253/// struct for typed errors of method [`rotated_secret_create_cassandra`]
3254#[derive(Debug, Clone, Serialize, Deserialize)]
3255#[serde(untagged)]
3256pub enum RotatedSecretCreateCassandraError {
3257    DefaultResponse(models::JsonError),
3258    UnknownValue(serde_json::Value),
3259}
3260
3261/// struct for typed errors of method [`rotated_secret_create_custom`]
3262#[derive(Debug, Clone, Serialize, Deserialize)]
3263#[serde(untagged)]
3264pub enum RotatedSecretCreateCustomError {
3265    DefaultResponse(models::JsonError),
3266    UnknownValue(serde_json::Value),
3267}
3268
3269/// struct for typed errors of method [`rotated_secret_create_dockerhub`]
3270#[derive(Debug, Clone, Serialize, Deserialize)]
3271#[serde(untagged)]
3272pub enum RotatedSecretCreateDockerhubError {
3273    DefaultResponse(models::JsonError),
3274    UnknownValue(serde_json::Value),
3275}
3276
3277/// struct for typed errors of method [`rotated_secret_create_gcp`]
3278#[derive(Debug, Clone, Serialize, Deserialize)]
3279#[serde(untagged)]
3280pub enum RotatedSecretCreateGcpError {
3281    DefaultResponse(models::JsonError),
3282    UnknownValue(serde_json::Value),
3283}
3284
3285/// struct for typed errors of method [`rotated_secret_create_hanadb`]
3286#[derive(Debug, Clone, Serialize, Deserialize)]
3287#[serde(untagged)]
3288pub enum RotatedSecretCreateHanadbError {
3289    DefaultResponse(models::JsonError),
3290    UnknownValue(serde_json::Value),
3291}
3292
3293/// struct for typed errors of method [`rotated_secret_create_ldap`]
3294#[derive(Debug, Clone, Serialize, Deserialize)]
3295#[serde(untagged)]
3296pub enum RotatedSecretCreateLdapError {
3297    DefaultResponse(models::JsonError),
3298    UnknownValue(serde_json::Value),
3299}
3300
3301/// struct for typed errors of method [`rotated_secret_create_mongodb`]
3302#[derive(Debug, Clone, Serialize, Deserialize)]
3303#[serde(untagged)]
3304pub enum RotatedSecretCreateMongodbError {
3305    DefaultResponse(models::JsonError),
3306    UnknownValue(serde_json::Value),
3307}
3308
3309/// struct for typed errors of method [`rotated_secret_create_mssql`]
3310#[derive(Debug, Clone, Serialize, Deserialize)]
3311#[serde(untagged)]
3312pub enum RotatedSecretCreateMssqlError {
3313    DefaultResponse(models::JsonError),
3314    UnknownValue(serde_json::Value),
3315}
3316
3317/// struct for typed errors of method [`rotated_secret_create_mysql`]
3318#[derive(Debug, Clone, Serialize, Deserialize)]
3319#[serde(untagged)]
3320pub enum RotatedSecretCreateMysqlError {
3321    DefaultResponse(models::JsonError),
3322    UnknownValue(serde_json::Value),
3323}
3324
3325/// struct for typed errors of method [`rotated_secret_create_open_ai`]
3326#[derive(Debug, Clone, Serialize, Deserialize)]
3327#[serde(untagged)]
3328pub enum RotatedSecretCreateOpenAiError {
3329    DefaultResponse(models::JsonError),
3330    UnknownValue(serde_json::Value),
3331}
3332
3333/// struct for typed errors of method [`rotated_secret_create_oracledb`]
3334#[derive(Debug, Clone, Serialize, Deserialize)]
3335#[serde(untagged)]
3336pub enum RotatedSecretCreateOracledbError {
3337    DefaultResponse(models::JsonError),
3338    UnknownValue(serde_json::Value),
3339}
3340
3341/// struct for typed errors of method [`rotated_secret_create_postgresql`]
3342#[derive(Debug, Clone, Serialize, Deserialize)]
3343#[serde(untagged)]
3344pub enum RotatedSecretCreatePostgresqlError {
3345    DefaultResponse(models::JsonError),
3346    UnknownValue(serde_json::Value),
3347}
3348
3349/// struct for typed errors of method [`rotated_secret_create_redis`]
3350#[derive(Debug, Clone, Serialize, Deserialize)]
3351#[serde(untagged)]
3352pub enum RotatedSecretCreateRedisError {
3353    DefaultResponse(models::JsonError),
3354    UnknownValue(serde_json::Value),
3355}
3356
3357/// struct for typed errors of method [`rotated_secret_create_redshift`]
3358#[derive(Debug, Clone, Serialize, Deserialize)]
3359#[serde(untagged)]
3360pub enum RotatedSecretCreateRedshiftError {
3361    DefaultResponse(models::JsonError),
3362    UnknownValue(serde_json::Value),
3363}
3364
3365/// struct for typed errors of method [`rotated_secret_create_snowflake`]
3366#[derive(Debug, Clone, Serialize, Deserialize)]
3367#[serde(untagged)]
3368pub enum RotatedSecretCreateSnowflakeError {
3369    DefaultResponse(models::JsonError),
3370    UnknownValue(serde_json::Value),
3371}
3372
3373/// struct for typed errors of method [`rotated_secret_create_splunk`]
3374#[derive(Debug, Clone, Serialize, Deserialize)]
3375#[serde(untagged)]
3376pub enum RotatedSecretCreateSplunkError {
3377    DefaultResponse(models::JsonError),
3378    UnknownValue(serde_json::Value),
3379}
3380
3381/// struct for typed errors of method [`rotated_secret_create_ssh`]
3382#[derive(Debug, Clone, Serialize, Deserialize)]
3383#[serde(untagged)]
3384pub enum RotatedSecretCreateSshError {
3385    DefaultResponse(models::JsonError),
3386    UnknownValue(serde_json::Value),
3387}
3388
3389/// struct for typed errors of method [`rotated_secret_create_windows`]
3390#[derive(Debug, Clone, Serialize, Deserialize)]
3391#[serde(untagged)]
3392pub enum RotatedSecretCreateWindowsError {
3393    DefaultResponse(models::JsonError),
3394    UnknownValue(serde_json::Value),
3395}
3396
3397/// struct for typed errors of method [`rotated_secret_delete`]
3398#[derive(Debug, Clone, Serialize, Deserialize)]
3399#[serde(untagged)]
3400pub enum RotatedSecretDeleteError {
3401    DefaultResponse(models::JsonError),
3402    UnknownValue(serde_json::Value),
3403}
3404
3405/// struct for typed errors of method [`rotated_secret_delete_sync`]
3406#[derive(Debug, Clone, Serialize, Deserialize)]
3407#[serde(untagged)]
3408pub enum RotatedSecretDeleteSyncError {
3409    DefaultResponse(models::JsonError),
3410    UnknownValue(serde_json::Value),
3411}
3412
3413/// struct for typed errors of method [`rotated_secret_get_value`]
3414#[derive(Debug, Clone, Serialize, Deserialize)]
3415#[serde(untagged)]
3416pub enum RotatedSecretGetValueError {
3417    DefaultResponse(models::JsonError),
3418    UnknownValue(serde_json::Value),
3419}
3420
3421/// struct for typed errors of method [`rotated_secret_list`]
3422#[derive(Debug, Clone, Serialize, Deserialize)]
3423#[serde(untagged)]
3424pub enum RotatedSecretListError {
3425    DefaultResponse(models::JsonError),
3426    UnknownValue(serde_json::Value),
3427}
3428
3429/// struct for typed errors of method [`rotated_secret_sync`]
3430#[derive(Debug, Clone, Serialize, Deserialize)]
3431#[serde(untagged)]
3432pub enum RotatedSecretSyncError {
3433    DefaultResponse(models::JsonError),
3434    UnknownValue(serde_json::Value),
3435}
3436
3437/// struct for typed errors of method [`rotated_secret_update_aws`]
3438#[derive(Debug, Clone, Serialize, Deserialize)]
3439#[serde(untagged)]
3440pub enum RotatedSecretUpdateAwsError {
3441    DefaultResponse(models::JsonError),
3442    UnknownValue(serde_json::Value),
3443}
3444
3445/// struct for typed errors of method [`rotated_secret_update_azure`]
3446#[derive(Debug, Clone, Serialize, Deserialize)]
3447#[serde(untagged)]
3448pub enum RotatedSecretUpdateAzureError {
3449    DefaultResponse(models::JsonError),
3450    UnknownValue(serde_json::Value),
3451}
3452
3453/// struct for typed errors of method [`rotated_secret_update_cassandra`]
3454#[derive(Debug, Clone, Serialize, Deserialize)]
3455#[serde(untagged)]
3456pub enum RotatedSecretUpdateCassandraError {
3457    DefaultResponse(models::JsonError),
3458    UnknownValue(serde_json::Value),
3459}
3460
3461/// struct for typed errors of method [`rotated_secret_update_custom`]
3462#[derive(Debug, Clone, Serialize, Deserialize)]
3463#[serde(untagged)]
3464pub enum RotatedSecretUpdateCustomError {
3465    DefaultResponse(models::JsonError),
3466    UnknownValue(serde_json::Value),
3467}
3468
3469/// struct for typed errors of method [`rotated_secret_update_dockerhub`]
3470#[derive(Debug, Clone, Serialize, Deserialize)]
3471#[serde(untagged)]
3472pub enum RotatedSecretUpdateDockerhubError {
3473    DefaultResponse(models::JsonError),
3474    UnknownValue(serde_json::Value),
3475}
3476
3477/// struct for typed errors of method [`rotated_secret_update_gcp`]
3478#[derive(Debug, Clone, Serialize, Deserialize)]
3479#[serde(untagged)]
3480pub enum RotatedSecretUpdateGcpError {
3481    DefaultResponse(models::JsonError),
3482    UnknownValue(serde_json::Value),
3483}
3484
3485/// struct for typed errors of method [`rotated_secret_update_hanadb`]
3486#[derive(Debug, Clone, Serialize, Deserialize)]
3487#[serde(untagged)]
3488pub enum RotatedSecretUpdateHanadbError {
3489    DefaultResponse(models::JsonError),
3490    UnknownValue(serde_json::Value),
3491}
3492
3493/// struct for typed errors of method [`rotated_secret_update_ldap`]
3494#[derive(Debug, Clone, Serialize, Deserialize)]
3495#[serde(untagged)]
3496pub enum RotatedSecretUpdateLdapError {
3497    DefaultResponse(models::JsonError),
3498    UnknownValue(serde_json::Value),
3499}
3500
3501/// struct for typed errors of method [`rotated_secret_update_mongodb`]
3502#[derive(Debug, Clone, Serialize, Deserialize)]
3503#[serde(untagged)]
3504pub enum RotatedSecretUpdateMongodbError {
3505    DefaultResponse(models::JsonError),
3506    UnknownValue(serde_json::Value),
3507}
3508
3509/// struct for typed errors of method [`rotated_secret_update_mssql`]
3510#[derive(Debug, Clone, Serialize, Deserialize)]
3511#[serde(untagged)]
3512pub enum RotatedSecretUpdateMssqlError {
3513    DefaultResponse(models::JsonError),
3514    UnknownValue(serde_json::Value),
3515}
3516
3517/// struct for typed errors of method [`rotated_secret_update_mysql`]
3518#[derive(Debug, Clone, Serialize, Deserialize)]
3519#[serde(untagged)]
3520pub enum RotatedSecretUpdateMysqlError {
3521    DefaultResponse(models::JsonError),
3522    UnknownValue(serde_json::Value),
3523}
3524
3525/// struct for typed errors of method [`rotated_secret_update_open_ai`]
3526#[derive(Debug, Clone, Serialize, Deserialize)]
3527#[serde(untagged)]
3528pub enum RotatedSecretUpdateOpenAiError {
3529    DefaultResponse(models::JsonError),
3530    UnknownValue(serde_json::Value),
3531}
3532
3533/// struct for typed errors of method [`rotated_secret_update_oracledb`]
3534#[derive(Debug, Clone, Serialize, Deserialize)]
3535#[serde(untagged)]
3536pub enum RotatedSecretUpdateOracledbError {
3537    DefaultResponse(models::JsonError),
3538    UnknownValue(serde_json::Value),
3539}
3540
3541/// struct for typed errors of method [`rotated_secret_update_postgresql`]
3542#[derive(Debug, Clone, Serialize, Deserialize)]
3543#[serde(untagged)]
3544pub enum RotatedSecretUpdatePostgresqlError {
3545    DefaultResponse(models::JsonError),
3546    UnknownValue(serde_json::Value),
3547}
3548
3549/// struct for typed errors of method [`rotated_secret_update_redis`]
3550#[derive(Debug, Clone, Serialize, Deserialize)]
3551#[serde(untagged)]
3552pub enum RotatedSecretUpdateRedisError {
3553    DefaultResponse(models::JsonError),
3554    UnknownValue(serde_json::Value),
3555}
3556
3557/// struct for typed errors of method [`rotated_secret_update_redshift`]
3558#[derive(Debug, Clone, Serialize, Deserialize)]
3559#[serde(untagged)]
3560pub enum RotatedSecretUpdateRedshiftError {
3561    DefaultResponse(models::JsonError),
3562    UnknownValue(serde_json::Value),
3563}
3564
3565/// struct for typed errors of method [`rotated_secret_update_snowflake`]
3566#[derive(Debug, Clone, Serialize, Deserialize)]
3567#[serde(untagged)]
3568pub enum RotatedSecretUpdateSnowflakeError {
3569    DefaultResponse(models::JsonError),
3570    UnknownValue(serde_json::Value),
3571}
3572
3573/// struct for typed errors of method [`rotated_secret_update_splunk`]
3574#[derive(Debug, Clone, Serialize, Deserialize)]
3575#[serde(untagged)]
3576pub enum RotatedSecretUpdateSplunkError {
3577    DefaultResponse(models::JsonError),
3578    UnknownValue(serde_json::Value),
3579}
3580
3581/// struct for typed errors of method [`rotated_secret_update_ssh`]
3582#[derive(Debug, Clone, Serialize, Deserialize)]
3583#[serde(untagged)]
3584pub enum RotatedSecretUpdateSshError {
3585    DefaultResponse(models::JsonError),
3586    UnknownValue(serde_json::Value),
3587}
3588
3589/// struct for typed errors of method [`rotated_secret_update_windows`]
3590#[derive(Debug, Clone, Serialize, Deserialize)]
3591#[serde(untagged)]
3592pub enum RotatedSecretUpdateWindowsError {
3593    DefaultResponse(models::JsonError),
3594    UnknownValue(serde_json::Value),
3595}
3596
3597/// struct for typed errors of method [`set_item_state`]
3598#[derive(Debug, Clone, Serialize, Deserialize)]
3599#[serde(untagged)]
3600pub enum SetItemStateError {
3601    DefaultResponse(models::JsonError),
3602    UnknownValue(serde_json::Value),
3603}
3604
3605/// struct for typed errors of method [`set_role_rule`]
3606#[derive(Debug, Clone, Serialize, Deserialize)]
3607#[serde(untagged)]
3608pub enum SetRoleRuleError {
3609    DefaultResponse(models::JsonError),
3610    UnknownValue(serde_json::Value),
3611}
3612
3613/// struct for typed errors of method [`share_item`]
3614#[derive(Debug, Clone, Serialize, Deserialize)]
3615#[serde(untagged)]
3616pub enum ShareItemError {
3617    DefaultResponse(models::JsonError),
3618    UnknownValue(serde_json::Value),
3619}
3620
3621/// struct for typed errors of method [`sign_data_with_classic_key`]
3622#[derive(Debug, Clone, Serialize, Deserialize)]
3623#[serde(untagged)]
3624pub enum SignDataWithClassicKeyError {
3625    DefaultResponse(models::JsonError),
3626    UnknownValue(serde_json::Value),
3627}
3628
3629/// struct for typed errors of method [`sign_ec_dsa`]
3630#[derive(Debug, Clone, Serialize, Deserialize)]
3631#[serde(untagged)]
3632pub enum SignEcDsaError {
3633    DefaultResponse(models::JsonError),
3634    UnknownValue(serde_json::Value),
3635}
3636
3637/// struct for typed errors of method [`sign_gpg`]
3638#[derive(Debug, Clone, Serialize, Deserialize)]
3639#[serde(untagged)]
3640pub enum SignGpgError {
3641    DefaultResponse(models::JsonError),
3642    UnknownValue(serde_json::Value),
3643}
3644
3645/// struct for typed errors of method [`sign_jwt_with_classic_key`]
3646#[derive(Debug, Clone, Serialize, Deserialize)]
3647#[serde(untagged)]
3648pub enum SignJwtWithClassicKeyError {
3649    DefaultResponse(models::JsonError),
3650    UnknownValue(serde_json::Value),
3651}
3652
3653/// struct for typed errors of method [`sign_pkcs1`]
3654#[derive(Debug, Clone, Serialize, Deserialize)]
3655#[serde(untagged)]
3656pub enum SignPkcs1Error {
3657    DefaultResponse(models::JsonError),
3658    UnknownValue(serde_json::Value),
3659}
3660
3661/// struct for typed errors of method [`sign_pki_cert_with_classic_key`]
3662#[derive(Debug, Clone, Serialize, Deserialize)]
3663#[serde(untagged)]
3664pub enum SignPkiCertWithClassicKeyError {
3665    DefaultResponse(models::JsonError),
3666    UnknownValue(serde_json::Value),
3667}
3668
3669/// struct for typed errors of method [`sign_rsa_ssa_pss`]
3670#[derive(Debug, Clone, Serialize, Deserialize)]
3671#[serde(untagged)]
3672pub enum SignRsaSsaPssError {
3673    DefaultResponse(models::JsonError),
3674    UnknownValue(serde_json::Value),
3675}
3676
3677/// struct for typed errors of method [`static_creds_auth`]
3678#[derive(Debug, Clone, Serialize, Deserialize)]
3679#[serde(untagged)]
3680pub enum StaticCredsAuthError {
3681    DefaultResponse(models::JsonError),
3682    UnknownValue(serde_json::Value),
3683}
3684
3685/// struct for typed errors of method [`static_secret_delete_sync`]
3686#[derive(Debug, Clone, Serialize, Deserialize)]
3687#[serde(untagged)]
3688pub enum StaticSecretDeleteSyncError {
3689    DefaultResponse(models::JsonError),
3690    UnknownValue(serde_json::Value),
3691}
3692
3693/// struct for typed errors of method [`static_secret_sync`]
3694#[derive(Debug, Clone, Serialize, Deserialize)]
3695#[serde(untagged)]
3696pub enum StaticSecretSyncError {
3697    DefaultResponse(models::JsonError),
3698    UnknownValue(serde_json::Value),
3699}
3700
3701/// struct for typed errors of method [`target_create_artifactory`]
3702#[derive(Debug, Clone, Serialize, Deserialize)]
3703#[serde(untagged)]
3704pub enum TargetCreateArtifactoryError {
3705    DefaultResponse(models::JsonError),
3706    UnknownValue(serde_json::Value),
3707}
3708
3709/// struct for typed errors of method [`target_create_aws`]
3710#[derive(Debug, Clone, Serialize, Deserialize)]
3711#[serde(untagged)]
3712pub enum TargetCreateAwsError {
3713    DefaultResponse(models::JsonError),
3714    UnknownValue(serde_json::Value),
3715}
3716
3717/// struct for typed errors of method [`target_create_azure`]
3718#[derive(Debug, Clone, Serialize, Deserialize)]
3719#[serde(untagged)]
3720pub enum TargetCreateAzureError {
3721    DefaultResponse(models::JsonError),
3722    UnknownValue(serde_json::Value),
3723}
3724
3725/// struct for typed errors of method [`target_create_db`]
3726#[derive(Debug, Clone, Serialize, Deserialize)]
3727#[serde(untagged)]
3728pub enum TargetCreateDbError {
3729    DefaultResponse(models::JsonError),
3730    UnknownValue(serde_json::Value),
3731}
3732
3733/// struct for typed errors of method [`target_create_dockerhub`]
3734#[derive(Debug, Clone, Serialize, Deserialize)]
3735#[serde(untagged)]
3736pub enum TargetCreateDockerhubError {
3737    DefaultResponse(models::JsonError),
3738    UnknownValue(serde_json::Value),
3739}
3740
3741/// struct for typed errors of method [`target_create_eks`]
3742#[derive(Debug, Clone, Serialize, Deserialize)]
3743#[serde(untagged)]
3744pub enum TargetCreateEksError {
3745    DefaultResponse(models::JsonError),
3746    UnknownValue(serde_json::Value),
3747}
3748
3749/// struct for typed errors of method [`target_create_gcp`]
3750#[derive(Debug, Clone, Serialize, Deserialize)]
3751#[serde(untagged)]
3752pub enum TargetCreateGcpError {
3753    DefaultResponse(models::JsonError),
3754    UnknownValue(serde_json::Value),
3755}
3756
3757/// struct for typed errors of method [`target_create_gemini`]
3758#[derive(Debug, Clone, Serialize, Deserialize)]
3759#[serde(untagged)]
3760pub enum TargetCreateGeminiError {
3761    DefaultResponse(models::JsonError),
3762    UnknownValue(serde_json::Value),
3763}
3764
3765/// struct for typed errors of method [`target_create_github`]
3766#[derive(Debug, Clone, Serialize, Deserialize)]
3767#[serde(untagged)]
3768pub enum TargetCreateGithubError {
3769    DefaultResponse(models::JsonError),
3770    UnknownValue(serde_json::Value),
3771}
3772
3773/// struct for typed errors of method [`target_create_gitlab`]
3774#[derive(Debug, Clone, Serialize, Deserialize)]
3775#[serde(untagged)]
3776pub enum TargetCreateGitlabError {
3777    DefaultResponse(models::JsonError),
3778    UnknownValue(serde_json::Value),
3779}
3780
3781/// struct for typed errors of method [`target_create_gke`]
3782#[derive(Debug, Clone, Serialize, Deserialize)]
3783#[serde(untagged)]
3784pub enum TargetCreateGkeError {
3785    DefaultResponse(models::JsonError),
3786    UnknownValue(serde_json::Value),
3787}
3788
3789/// struct for typed errors of method [`target_create_global_sign`]
3790#[derive(Debug, Clone, Serialize, Deserialize)]
3791#[serde(untagged)]
3792pub enum TargetCreateGlobalSignError {
3793    DefaultResponse(models::JsonError),
3794    UnknownValue(serde_json::Value),
3795}
3796
3797/// struct for typed errors of method [`target_create_global_sign_atlas`]
3798#[derive(Debug, Clone, Serialize, Deserialize)]
3799#[serde(untagged)]
3800pub enum TargetCreateGlobalSignAtlasError {
3801    DefaultResponse(models::JsonError),
3802    UnknownValue(serde_json::Value),
3803}
3804
3805/// struct for typed errors of method [`target_create_godaddy`]
3806#[derive(Debug, Clone, Serialize, Deserialize)]
3807#[serde(untagged)]
3808pub enum TargetCreateGodaddyError {
3809    DefaultResponse(models::JsonError),
3810    UnknownValue(serde_json::Value),
3811}
3812
3813/// struct for typed errors of method [`target_create_hashi_vault`]
3814#[derive(Debug, Clone, Serialize, Deserialize)]
3815#[serde(untagged)]
3816pub enum TargetCreateHashiVaultError {
3817    DefaultResponse(models::JsonError),
3818    UnknownValue(serde_json::Value),
3819}
3820
3821/// struct for typed errors of method [`target_create_k8s`]
3822#[derive(Debug, Clone, Serialize, Deserialize)]
3823#[serde(untagged)]
3824pub enum TargetCreateK8sError {
3825    DefaultResponse(models::JsonError),
3826    UnknownValue(serde_json::Value),
3827}
3828
3829/// struct for typed errors of method [`target_create_ldap`]
3830#[derive(Debug, Clone, Serialize, Deserialize)]
3831#[serde(untagged)]
3832pub enum TargetCreateLdapError {
3833    DefaultResponse(models::JsonError),
3834    UnknownValue(serde_json::Value),
3835}
3836
3837/// struct for typed errors of method [`target_create_lets_encrypt`]
3838#[derive(Debug, Clone, Serialize, Deserialize)]
3839#[serde(untagged)]
3840pub enum TargetCreateLetsEncryptError {
3841    DefaultResponse(models::JsonError),
3842    UnknownValue(serde_json::Value),
3843}
3844
3845/// struct for typed errors of method [`target_create_linked`]
3846#[derive(Debug, Clone, Serialize, Deserialize)]
3847#[serde(untagged)]
3848pub enum TargetCreateLinkedError {
3849    DefaultResponse(models::JsonError),
3850    UnknownValue(serde_json::Value),
3851}
3852
3853/// struct for typed errors of method [`target_create_open_ai`]
3854#[derive(Debug, Clone, Serialize, Deserialize)]
3855#[serde(untagged)]
3856pub enum TargetCreateOpenAiError {
3857    DefaultResponse(models::JsonError),
3858    UnknownValue(serde_json::Value),
3859}
3860
3861/// struct for typed errors of method [`target_create_ping`]
3862#[derive(Debug, Clone, Serialize, Deserialize)]
3863#[serde(untagged)]
3864pub enum TargetCreatePingError {
3865    DefaultResponse(models::JsonError),
3866    UnknownValue(serde_json::Value),
3867}
3868
3869/// struct for typed errors of method [`target_create_rabbit_mq`]
3870#[derive(Debug, Clone, Serialize, Deserialize)]
3871#[serde(untagged)]
3872pub enum TargetCreateRabbitMqError {
3873    DefaultResponse(models::JsonError),
3874    UnknownValue(serde_json::Value),
3875}
3876
3877/// struct for typed errors of method [`target_create_salesforce`]
3878#[derive(Debug, Clone, Serialize, Deserialize)]
3879#[serde(untagged)]
3880pub enum TargetCreateSalesforceError {
3881    DefaultResponse(models::JsonError),
3882    UnknownValue(serde_json::Value),
3883}
3884
3885/// struct for typed errors of method [`target_create_sectigo`]
3886#[derive(Debug, Clone, Serialize, Deserialize)]
3887#[serde(untagged)]
3888pub enum TargetCreateSectigoError {
3889    DefaultResponse(models::JsonError),
3890    UnknownValue(serde_json::Value),
3891}
3892
3893/// struct for typed errors of method [`target_create_splunk`]
3894#[derive(Debug, Clone, Serialize, Deserialize)]
3895#[serde(untagged)]
3896pub enum TargetCreateSplunkError {
3897    DefaultResponse(models::JsonError),
3898    UnknownValue(serde_json::Value),
3899}
3900
3901/// struct for typed errors of method [`target_create_ssh`]
3902#[derive(Debug, Clone, Serialize, Deserialize)]
3903#[serde(untagged)]
3904pub enum TargetCreateSshError {
3905    DefaultResponse(models::JsonError),
3906    UnknownValue(serde_json::Value),
3907}
3908
3909/// struct for typed errors of method [`target_create_web`]
3910#[derive(Debug, Clone, Serialize, Deserialize)]
3911#[serde(untagged)]
3912pub enum TargetCreateWebError {
3913    DefaultResponse(models::JsonError),
3914    UnknownValue(serde_json::Value),
3915}
3916
3917/// struct for typed errors of method [`target_create_windows`]
3918#[derive(Debug, Clone, Serialize, Deserialize)]
3919#[serde(untagged)]
3920pub enum TargetCreateWindowsError {
3921    DefaultResponse(models::JsonError),
3922    UnknownValue(serde_json::Value),
3923}
3924
3925/// struct for typed errors of method [`target_create_zero_ssl`]
3926#[derive(Debug, Clone, Serialize, Deserialize)]
3927#[serde(untagged)]
3928pub enum TargetCreateZeroSslError {
3929    DefaultResponse(models::JsonError),
3930    UnknownValue(serde_json::Value),
3931}
3932
3933/// struct for typed errors of method [`target_delete`]
3934#[derive(Debug, Clone, Serialize, Deserialize)]
3935#[serde(untagged)]
3936pub enum TargetDeleteError {
3937    DefaultResponse(models::JsonError),
3938    UnknownValue(serde_json::Value),
3939}
3940
3941/// struct for typed errors of method [`target_get`]
3942#[derive(Debug, Clone, Serialize, Deserialize)]
3943#[serde(untagged)]
3944pub enum TargetGetError {
3945    DefaultResponse(models::JsonError),
3946    UnknownValue(serde_json::Value),
3947}
3948
3949/// struct for typed errors of method [`target_get_details`]
3950#[derive(Debug, Clone, Serialize, Deserialize)]
3951#[serde(untagged)]
3952pub enum TargetGetDetailsError {
3953    DefaultResponse(models::JsonError),
3954    UnknownValue(serde_json::Value),
3955}
3956
3957/// struct for typed errors of method [`target_list`]
3958#[derive(Debug, Clone, Serialize, Deserialize)]
3959#[serde(untagged)]
3960pub enum TargetListError {
3961    DefaultResponse(models::JsonError),
3962    UnknownValue(serde_json::Value),
3963}
3964
3965/// struct for typed errors of method [`target_update_artifactory`]
3966#[derive(Debug, Clone, Serialize, Deserialize)]
3967#[serde(untagged)]
3968pub enum TargetUpdateArtifactoryError {
3969    DefaultResponse(models::JsonError),
3970    UnknownValue(serde_json::Value),
3971}
3972
3973/// struct for typed errors of method [`target_update_aws`]
3974#[derive(Debug, Clone, Serialize, Deserialize)]
3975#[serde(untagged)]
3976pub enum TargetUpdateAwsError {
3977    DefaultResponse(models::JsonError),
3978    UnknownValue(serde_json::Value),
3979}
3980
3981/// struct for typed errors of method [`target_update_azure`]
3982#[derive(Debug, Clone, Serialize, Deserialize)]
3983#[serde(untagged)]
3984pub enum TargetUpdateAzureError {
3985    DefaultResponse(models::JsonError),
3986    UnknownValue(serde_json::Value),
3987}
3988
3989/// struct for typed errors of method [`target_update_db`]
3990#[derive(Debug, Clone, Serialize, Deserialize)]
3991#[serde(untagged)]
3992pub enum TargetUpdateDbError {
3993    DefaultResponse(models::JsonError),
3994    UnknownValue(serde_json::Value),
3995}
3996
3997/// struct for typed errors of method [`target_update_dockerhub`]
3998#[derive(Debug, Clone, Serialize, Deserialize)]
3999#[serde(untagged)]
4000pub enum TargetUpdateDockerhubError {
4001    DefaultResponse(models::JsonError),
4002    UnknownValue(serde_json::Value),
4003}
4004
4005/// struct for typed errors of method [`target_update_eks`]
4006#[derive(Debug, Clone, Serialize, Deserialize)]
4007#[serde(untagged)]
4008pub enum TargetUpdateEksError {
4009    DefaultResponse(models::JsonError),
4010    UnknownValue(serde_json::Value),
4011}
4012
4013/// struct for typed errors of method [`target_update_gcp`]
4014#[derive(Debug, Clone, Serialize, Deserialize)]
4015#[serde(untagged)]
4016pub enum TargetUpdateGcpError {
4017    DefaultResponse(models::JsonError),
4018    UnknownValue(serde_json::Value),
4019}
4020
4021/// struct for typed errors of method [`target_update_gemini`]
4022#[derive(Debug, Clone, Serialize, Deserialize)]
4023#[serde(untagged)]
4024pub enum TargetUpdateGeminiError {
4025    DefaultResponse(models::JsonError),
4026    UnknownValue(serde_json::Value),
4027}
4028
4029/// struct for typed errors of method [`target_update_github`]
4030#[derive(Debug, Clone, Serialize, Deserialize)]
4031#[serde(untagged)]
4032pub enum TargetUpdateGithubError {
4033    DefaultResponse(models::JsonError),
4034    UnknownValue(serde_json::Value),
4035}
4036
4037/// struct for typed errors of method [`target_update_gitlab`]
4038#[derive(Debug, Clone, Serialize, Deserialize)]
4039#[serde(untagged)]
4040pub enum TargetUpdateGitlabError {
4041    DefaultResponse(models::JsonError),
4042    UnknownValue(serde_json::Value),
4043}
4044
4045/// struct for typed errors of method [`target_update_gke`]
4046#[derive(Debug, Clone, Serialize, Deserialize)]
4047#[serde(untagged)]
4048pub enum TargetUpdateGkeError {
4049    DefaultResponse(models::JsonError),
4050    UnknownValue(serde_json::Value),
4051}
4052
4053/// struct for typed errors of method [`target_update_global_sign`]
4054#[derive(Debug, Clone, Serialize, Deserialize)]
4055#[serde(untagged)]
4056pub enum TargetUpdateGlobalSignError {
4057    DefaultResponse(models::JsonError),
4058    UnknownValue(serde_json::Value),
4059}
4060
4061/// struct for typed errors of method [`target_update_global_sign_atlas`]
4062#[derive(Debug, Clone, Serialize, Deserialize)]
4063#[serde(untagged)]
4064pub enum TargetUpdateGlobalSignAtlasError {
4065    DefaultResponse(models::JsonError),
4066    UnknownValue(serde_json::Value),
4067}
4068
4069/// struct for typed errors of method [`target_update_godaddy`]
4070#[derive(Debug, Clone, Serialize, Deserialize)]
4071#[serde(untagged)]
4072pub enum TargetUpdateGodaddyError {
4073    DefaultResponse(models::JsonError),
4074    UnknownValue(serde_json::Value),
4075}
4076
4077/// struct for typed errors of method [`target_update_hashi_vault`]
4078#[derive(Debug, Clone, Serialize, Deserialize)]
4079#[serde(untagged)]
4080pub enum TargetUpdateHashiVaultError {
4081    DefaultResponse(models::JsonError),
4082    UnknownValue(serde_json::Value),
4083}
4084
4085/// struct for typed errors of method [`target_update_k8s`]
4086#[derive(Debug, Clone, Serialize, Deserialize)]
4087#[serde(untagged)]
4088pub enum TargetUpdateK8sError {
4089    DefaultResponse(models::JsonError),
4090    UnknownValue(serde_json::Value),
4091}
4092
4093/// struct for typed errors of method [`target_update_ldap`]
4094#[derive(Debug, Clone, Serialize, Deserialize)]
4095#[serde(untagged)]
4096pub enum TargetUpdateLdapError {
4097    DefaultResponse(models::JsonError),
4098    UnknownValue(serde_json::Value),
4099}
4100
4101/// struct for typed errors of method [`target_update_lets_encrypt`]
4102#[derive(Debug, Clone, Serialize, Deserialize)]
4103#[serde(untagged)]
4104pub enum TargetUpdateLetsEncryptError {
4105    DefaultResponse(models::JsonError),
4106    UnknownValue(serde_json::Value),
4107}
4108
4109/// struct for typed errors of method [`target_update_linked`]
4110#[derive(Debug, Clone, Serialize, Deserialize)]
4111#[serde(untagged)]
4112pub enum TargetUpdateLinkedError {
4113    DefaultResponse(models::JsonError),
4114    UnknownValue(serde_json::Value),
4115}
4116
4117/// struct for typed errors of method [`target_update_open_ai`]
4118#[derive(Debug, Clone, Serialize, Deserialize)]
4119#[serde(untagged)]
4120pub enum TargetUpdateOpenAiError {
4121    DefaultResponse(models::JsonError),
4122    UnknownValue(serde_json::Value),
4123}
4124
4125/// struct for typed errors of method [`target_update_ping`]
4126#[derive(Debug, Clone, Serialize, Deserialize)]
4127#[serde(untagged)]
4128pub enum TargetUpdatePingError {
4129    DefaultResponse(models::JsonError),
4130    UnknownValue(serde_json::Value),
4131}
4132
4133/// struct for typed errors of method [`target_update_rabbit_mq`]
4134#[derive(Debug, Clone, Serialize, Deserialize)]
4135#[serde(untagged)]
4136pub enum TargetUpdateRabbitMqError {
4137    DefaultResponse(models::JsonError),
4138    UnknownValue(serde_json::Value),
4139}
4140
4141/// struct for typed errors of method [`target_update_salesforce`]
4142#[derive(Debug, Clone, Serialize, Deserialize)]
4143#[serde(untagged)]
4144pub enum TargetUpdateSalesforceError {
4145    DefaultResponse(models::JsonError),
4146    UnknownValue(serde_json::Value),
4147}
4148
4149/// struct for typed errors of method [`target_update_sectigo`]
4150#[derive(Debug, Clone, Serialize, Deserialize)]
4151#[serde(untagged)]
4152pub enum TargetUpdateSectigoError {
4153    DefaultResponse(models::JsonError),
4154    UnknownValue(serde_json::Value),
4155}
4156
4157/// struct for typed errors of method [`target_update_ssh`]
4158#[derive(Debug, Clone, Serialize, Deserialize)]
4159#[serde(untagged)]
4160pub enum TargetUpdateSshError {
4161    DefaultResponse(models::JsonError),
4162    UnknownValue(serde_json::Value),
4163}
4164
4165/// struct for typed errors of method [`target_update_web`]
4166#[derive(Debug, Clone, Serialize, Deserialize)]
4167#[serde(untagged)]
4168pub enum TargetUpdateWebError {
4169    DefaultResponse(models::JsonError),
4170    UnknownValue(serde_json::Value),
4171}
4172
4173/// struct for typed errors of method [`target_update_windows`]
4174#[derive(Debug, Clone, Serialize, Deserialize)]
4175#[serde(untagged)]
4176pub enum TargetUpdateWindowsError {
4177    DefaultResponse(models::JsonError),
4178    UnknownValue(serde_json::Value),
4179}
4180
4181/// struct for typed errors of method [`target_update_zero_ssl`]
4182#[derive(Debug, Clone, Serialize, Deserialize)]
4183#[serde(untagged)]
4184pub enum TargetUpdateZeroSslError {
4185    DefaultResponse(models::JsonError),
4186    UnknownValue(serde_json::Value),
4187}
4188
4189/// struct for typed errors of method [`tokenize`]
4190#[derive(Debug, Clone, Serialize, Deserialize)]
4191#[serde(untagged)]
4192pub enum TokenizeError {
4193    DefaultResponse(models::JsonError),
4194    UnknownValue(serde_json::Value),
4195}
4196
4197/// struct for typed errors of method [`tokenize_batch`]
4198#[derive(Debug, Clone, Serialize, Deserialize)]
4199#[serde(untagged)]
4200pub enum TokenizeBatchError {
4201    DefaultResponse(models::JsonError),
4202    UnknownValue(serde_json::Value),
4203}
4204
4205/// struct for typed errors of method [`uid_create_child_token`]
4206#[derive(Debug, Clone, Serialize, Deserialize)]
4207#[serde(untagged)]
4208pub enum UidCreateChildTokenError {
4209    DefaultResponse(models::JsonError),
4210    UnknownValue(serde_json::Value),
4211}
4212
4213/// struct for typed errors of method [`uid_generate_token`]
4214#[derive(Debug, Clone, Serialize, Deserialize)]
4215#[serde(untagged)]
4216pub enum UidGenerateTokenError {
4217    DefaultResponse(models::JsonError),
4218    UnknownValue(serde_json::Value),
4219}
4220
4221/// struct for typed errors of method [`uid_list_children`]
4222#[derive(Debug, Clone, Serialize, Deserialize)]
4223#[serde(untagged)]
4224pub enum UidListChildrenError {
4225    DefaultResponse(models::JsonError),
4226    UnknownValue(serde_json::Value),
4227}
4228
4229/// struct for typed errors of method [`uid_revoke_token`]
4230#[derive(Debug, Clone, Serialize, Deserialize)]
4231#[serde(untagged)]
4232pub enum UidRevokeTokenError {
4233    DefaultResponse(models::JsonError),
4234    UnknownValue(serde_json::Value),
4235}
4236
4237/// struct for typed errors of method [`uid_rotate_token`]
4238#[derive(Debug, Clone, Serialize, Deserialize)]
4239#[serde(untagged)]
4240pub enum UidRotateTokenError {
4241    DefaultResponse(models::JsonError),
4242    UnknownValue(serde_json::Value),
4243}
4244
4245/// struct for typed errors of method [`unwrap_token`]
4246#[derive(Debug, Clone, Serialize, Deserialize)]
4247#[serde(untagged)]
4248pub enum UnwrapTokenError {
4249    DefaultResponse(models::JsonError),
4250    UnknownValue(serde_json::Value),
4251}
4252
4253/// struct for typed errors of method [`update_account_settings`]
4254#[derive(Debug, Clone, Serialize, Deserialize)]
4255#[serde(untagged)]
4256pub enum UpdateAccountSettingsError {
4257    DefaultResponse(models::JsonError),
4258    UnknownValue(serde_json::Value),
4259}
4260
4261/// struct for typed errors of method [`update_artifactory_target`]
4262#[derive(Debug, Clone, Serialize, Deserialize)]
4263#[serde(untagged)]
4264pub enum UpdateArtifactoryTargetError {
4265    DefaultResponse(models::JsonError),
4266    UnknownValue(serde_json::Value),
4267}
4268
4269/// struct for typed errors of method [`update_assoc`]
4270#[derive(Debug, Clone, Serialize, Deserialize)]
4271#[serde(untagged)]
4272pub enum UpdateAssocError {
4273    DefaultResponse(models::JsonError),
4274    UnknownValue(serde_json::Value),
4275}
4276
4277/// struct for typed errors of method [`update_auth_method`]
4278#[derive(Debug, Clone, Serialize, Deserialize)]
4279#[serde(untagged)]
4280pub enum UpdateAuthMethodError {
4281    DefaultResponse(models::JsonError),
4282    UnknownValue(serde_json::Value),
4283}
4284
4285/// struct for typed errors of method [`update_auth_method_awsiam`]
4286#[derive(Debug, Clone, Serialize, Deserialize)]
4287#[serde(untagged)]
4288pub enum UpdateAuthMethodAwsiamError {
4289    DefaultResponse(models::JsonError),
4290    UnknownValue(serde_json::Value),
4291}
4292
4293/// struct for typed errors of method [`update_auth_method_azure_ad`]
4294#[derive(Debug, Clone, Serialize, Deserialize)]
4295#[serde(untagged)]
4296pub enum UpdateAuthMethodAzureAdError {
4297    DefaultResponse(models::JsonError),
4298    UnknownValue(serde_json::Value),
4299}
4300
4301/// struct for typed errors of method [`update_auth_method_cert`]
4302#[derive(Debug, Clone, Serialize, Deserialize)]
4303#[serde(untagged)]
4304pub enum UpdateAuthMethodCertError {
4305    DefaultResponse(models::JsonError),
4306    UnknownValue(serde_json::Value),
4307}
4308
4309/// struct for typed errors of method [`update_auth_method_gcp`]
4310#[derive(Debug, Clone, Serialize, Deserialize)]
4311#[serde(untagged)]
4312pub enum UpdateAuthMethodGcpError {
4313    DefaultResponse(models::JsonError),
4314    UnknownValue(serde_json::Value),
4315}
4316
4317/// struct for typed errors of method [`update_auth_method_k8_s`]
4318#[derive(Debug, Clone, Serialize, Deserialize)]
4319#[serde(untagged)]
4320pub enum UpdateAuthMethodK8SError {
4321    DefaultResponse(models::JsonError),
4322    UnknownValue(serde_json::Value),
4323}
4324
4325/// struct for typed errors of method [`update_auth_method_ldap`]
4326#[derive(Debug, Clone, Serialize, Deserialize)]
4327#[serde(untagged)]
4328pub enum UpdateAuthMethodLdapError {
4329    DefaultResponse(models::JsonError),
4330    UnknownValue(serde_json::Value),
4331}
4332
4333/// struct for typed errors of method [`update_auth_method_o_auth2`]
4334#[derive(Debug, Clone, Serialize, Deserialize)]
4335#[serde(untagged)]
4336pub enum UpdateAuthMethodOAuth2Error {
4337    DefaultResponse(models::JsonError),
4338    UnknownValue(serde_json::Value),
4339}
4340
4341/// struct for typed errors of method [`update_auth_method_oci`]
4342#[derive(Debug, Clone, Serialize, Deserialize)]
4343#[serde(untagged)]
4344pub enum UpdateAuthMethodOciError {
4345    DefaultResponse(models::JsonError),
4346    UnknownValue(serde_json::Value),
4347}
4348
4349/// struct for typed errors of method [`update_auth_method_oidc`]
4350#[derive(Debug, Clone, Serialize, Deserialize)]
4351#[serde(untagged)]
4352pub enum UpdateAuthMethodOidcError {
4353    DefaultResponse(models::JsonError),
4354    UnknownValue(serde_json::Value),
4355}
4356
4357/// struct for typed errors of method [`update_auth_method_saml`]
4358#[derive(Debug, Clone, Serialize, Deserialize)]
4359#[serde(untagged)]
4360pub enum UpdateAuthMethodSamlError {
4361    DefaultResponse(models::JsonError),
4362    UnknownValue(serde_json::Value),
4363}
4364
4365/// struct for typed errors of method [`update_auth_method_universal_identity`]
4366#[derive(Debug, Clone, Serialize, Deserialize)]
4367#[serde(untagged)]
4368pub enum UpdateAuthMethodUniversalIdentityError {
4369    DefaultResponse(models::JsonError),
4370    UnknownValue(serde_json::Value),
4371}
4372
4373/// struct for typed errors of method [`update_aws_target`]
4374#[derive(Debug, Clone, Serialize, Deserialize)]
4375#[serde(untagged)]
4376pub enum UpdateAwsTargetError {
4377    DefaultResponse(models::JsonError),
4378    UnknownValue(serde_json::Value),
4379}
4380
4381/// struct for typed errors of method [`update_aws_target_details`]
4382#[derive(Debug, Clone, Serialize, Deserialize)]
4383#[serde(untagged)]
4384pub enum UpdateAwsTargetDetailsError {
4385    DefaultResponse(models::JsonError),
4386    UnknownValue(serde_json::Value),
4387}
4388
4389/// struct for typed errors of method [`update_azure_target`]
4390#[derive(Debug, Clone, Serialize, Deserialize)]
4391#[serde(untagged)]
4392pub enum UpdateAzureTargetError {
4393    DefaultResponse(models::JsonError),
4394    UnknownValue(serde_json::Value),
4395}
4396
4397/// struct for typed errors of method [`update_certificate_value`]
4398#[derive(Debug, Clone, Serialize, Deserialize)]
4399#[serde(untagged)]
4400pub enum UpdateCertificateValueError {
4401    DefaultResponse(models::JsonError),
4402    UnknownValue(serde_json::Value),
4403}
4404
4405/// struct for typed errors of method [`update_classic_key_certificate`]
4406#[derive(Debug, Clone, Serialize, Deserialize)]
4407#[serde(untagged)]
4408pub enum UpdateClassicKeyCertificateError {
4409    DefaultResponse(models::JsonError),
4410    UnknownValue(serde_json::Value),
4411}
4412
4413/// struct for typed errors of method [`update_db_target`]
4414#[derive(Debug, Clone, Serialize, Deserialize)]
4415#[serde(untagged)]
4416pub enum UpdateDbTargetError {
4417    DefaultResponse(models::JsonError),
4418    UnknownValue(serde_json::Value),
4419}
4420
4421/// struct for typed errors of method [`update_db_target_details`]
4422#[derive(Debug, Clone, Serialize, Deserialize)]
4423#[serde(untagged)]
4424pub enum UpdateDbTargetDetailsError {
4425    DefaultResponse(models::JsonError),
4426    UnknownValue(serde_json::Value),
4427}
4428
4429/// struct for typed errors of method [`update_dockerhub_target`]
4430#[derive(Debug, Clone, Serialize, Deserialize)]
4431#[serde(untagged)]
4432pub enum UpdateDockerhubTargetError {
4433    DefaultResponse(models::JsonError),
4434    UnknownValue(serde_json::Value),
4435}
4436
4437/// struct for typed errors of method [`update_eks_target`]
4438#[derive(Debug, Clone, Serialize, Deserialize)]
4439#[serde(untagged)]
4440pub enum UpdateEksTargetError {
4441    DefaultResponse(models::JsonError),
4442    UnknownValue(serde_json::Value),
4443}
4444
4445/// struct for typed errors of method [`update_event_forwarder`]
4446#[derive(Debug, Clone, Serialize, Deserialize)]
4447#[serde(untagged)]
4448pub enum UpdateEventForwarderError {
4449    DefaultResponse(models::JsonError),
4450    UnknownValue(serde_json::Value),
4451}
4452
4453/// struct for typed errors of method [`update_gcp_target`]
4454#[derive(Debug, Clone, Serialize, Deserialize)]
4455#[serde(untagged)]
4456pub enum UpdateGcpTargetError {
4457    DefaultResponse(models::JsonError),
4458    UnknownValue(serde_json::Value),
4459}
4460
4461/// struct for typed errors of method [`update_github_target`]
4462#[derive(Debug, Clone, Serialize, Deserialize)]
4463#[serde(untagged)]
4464pub enum UpdateGithubTargetError {
4465    DefaultResponse(models::JsonError),
4466    UnknownValue(serde_json::Value),
4467}
4468
4469/// struct for typed errors of method [`update_gitlab_target`]
4470#[derive(Debug, Clone, Serialize, Deserialize)]
4471#[serde(untagged)]
4472pub enum UpdateGitlabTargetError {
4473    DefaultResponse(models::JsonError),
4474    UnknownValue(serde_json::Value),
4475}
4476
4477/// struct for typed errors of method [`update_gke_target`]
4478#[derive(Debug, Clone, Serialize, Deserialize)]
4479#[serde(untagged)]
4480pub enum UpdateGkeTargetError {
4481    DefaultResponse(models::JsonError),
4482    UnknownValue(serde_json::Value),
4483}
4484
4485/// struct for typed errors of method [`update_global_sign_atlas_target`]
4486#[derive(Debug, Clone, Serialize, Deserialize)]
4487#[serde(untagged)]
4488pub enum UpdateGlobalSignAtlasTargetError {
4489    DefaultResponse(models::JsonError),
4490    UnknownValue(serde_json::Value),
4491}
4492
4493/// struct for typed errors of method [`update_global_sign_target`]
4494#[derive(Debug, Clone, Serialize, Deserialize)]
4495#[serde(untagged)]
4496pub enum UpdateGlobalSignTargetError {
4497    DefaultResponse(models::JsonError),
4498    UnknownValue(serde_json::Value),
4499}
4500
4501/// struct for typed errors of method [`update_godaddy_target`]
4502#[derive(Debug, Clone, Serialize, Deserialize)]
4503#[serde(untagged)]
4504pub enum UpdateGodaddyTargetError {
4505    DefaultResponse(models::JsonError),
4506    UnknownValue(serde_json::Value),
4507}
4508
4509/// struct for typed errors of method [`update_group`]
4510#[derive(Debug, Clone, Serialize, Deserialize)]
4511#[serde(untagged)]
4512pub enum UpdateGroupError {
4513    DefaultResponse(models::JsonError),
4514    UnknownValue(serde_json::Value),
4515}
4516
4517/// struct for typed errors of method [`update_hashi_vault_target`]
4518#[derive(Debug, Clone, Serialize, Deserialize)]
4519#[serde(untagged)]
4520pub enum UpdateHashiVaultTargetError {
4521    DefaultResponse(models::JsonError),
4522    UnknownValue(serde_json::Value),
4523}
4524
4525/// struct for typed errors of method [`update_item`]
4526#[derive(Debug, Clone, Serialize, Deserialize)]
4527#[serde(untagged)]
4528pub enum UpdateItemError {
4529    DefaultResponse(models::JsonError),
4530    UnknownValue(serde_json::Value),
4531}
4532
4533/// struct for typed errors of method [`update_ldap_target`]
4534#[derive(Debug, Clone, Serialize, Deserialize)]
4535#[serde(untagged)]
4536pub enum UpdateLdapTargetError {
4537    DefaultResponse(models::JsonError),
4538    UnknownValue(serde_json::Value),
4539}
4540
4541/// struct for typed errors of method [`update_ldap_target_details`]
4542#[derive(Debug, Clone, Serialize, Deserialize)]
4543#[serde(untagged)]
4544pub enum UpdateLdapTargetDetailsError {
4545    DefaultResponse(models::JsonError),
4546    UnknownValue(serde_json::Value),
4547}
4548
4549/// struct for typed errors of method [`update_linked_target`]
4550#[derive(Debug, Clone, Serialize, Deserialize)]
4551#[serde(untagged)]
4552pub enum UpdateLinkedTargetError {
4553    DefaultResponse(models::JsonError),
4554    UnknownValue(serde_json::Value),
4555}
4556
4557/// struct for typed errors of method [`update_native_k8_s_target`]
4558#[derive(Debug, Clone, Serialize, Deserialize)]
4559#[serde(untagged)]
4560pub enum UpdateNativeK8STargetError {
4561    DefaultResponse(models::JsonError),
4562    UnknownValue(serde_json::Value),
4563}
4564
4565/// struct for typed errors of method [`update_oidc_app`]
4566#[derive(Debug, Clone, Serialize, Deserialize)]
4567#[serde(untagged)]
4568pub enum UpdateOidcAppError {
4569    DefaultResponse(models::JsonError),
4570    UnknownValue(serde_json::Value),
4571}
4572
4573/// struct for typed errors of method [`update_ping_target`]
4574#[derive(Debug, Clone, Serialize, Deserialize)]
4575#[serde(untagged)]
4576pub enum UpdatePingTargetError {
4577    DefaultResponse(models::JsonError),
4578    UnknownValue(serde_json::Value),
4579}
4580
4581/// struct for typed errors of method [`update_pki_cert_issuer`]
4582#[derive(Debug, Clone, Serialize, Deserialize)]
4583#[serde(untagged)]
4584pub enum UpdatePkiCertIssuerError {
4585    DefaultResponse(models::JsonError),
4586    UnknownValue(serde_json::Value),
4587}
4588
4589/// struct for typed errors of method [`update_rabbit_mq_target`]
4590#[derive(Debug, Clone, Serialize, Deserialize)]
4591#[serde(untagged)]
4592pub enum UpdateRabbitMqTargetError {
4593    DefaultResponse(models::JsonError),
4594    UnknownValue(serde_json::Value),
4595}
4596
4597/// struct for typed errors of method [`update_rabbit_mq_target_details`]
4598#[derive(Debug, Clone, Serialize, Deserialize)]
4599#[serde(untagged)]
4600pub enum UpdateRabbitMqTargetDetailsError {
4601    DefaultResponse(models::JsonError),
4602    UnknownValue(serde_json::Value),
4603}
4604
4605/// struct for typed errors of method [`update_rdp_target_details`]
4606#[derive(Debug, Clone, Serialize, Deserialize)]
4607#[serde(untagged)]
4608pub enum UpdateRdpTargetDetailsError {
4609    DefaultResponse(models::JsonError),
4610    UnknownValue(serde_json::Value),
4611}
4612
4613/// struct for typed errors of method [`update_role`]
4614#[derive(Debug, Clone, Serialize, Deserialize)]
4615#[serde(untagged)]
4616pub enum UpdateRoleError {
4617    DefaultResponse(models::JsonError),
4618    UnknownValue(serde_json::Value),
4619}
4620
4621/// struct for typed errors of method [`update_rotated_secret`]
4622#[derive(Debug, Clone, Serialize, Deserialize)]
4623#[serde(untagged)]
4624pub enum UpdateRotatedSecretError {
4625    DefaultResponse(models::JsonError),
4626    UnknownValue(serde_json::Value),
4627}
4628
4629/// struct for typed errors of method [`update_rotation_settings`]
4630#[derive(Debug, Clone, Serialize, Deserialize)]
4631#[serde(untagged)]
4632pub enum UpdateRotationSettingsError {
4633    DefaultResponse(models::JsonError),
4634    UnknownValue(serde_json::Value),
4635}
4636
4637/// struct for typed errors of method [`update_salesforce_target`]
4638#[derive(Debug, Clone, Serialize, Deserialize)]
4639#[serde(untagged)]
4640pub enum UpdateSalesforceTargetError {
4641    DefaultResponse(models::JsonError),
4642    UnknownValue(serde_json::Value),
4643}
4644
4645/// struct for typed errors of method [`update_secret_val`]
4646#[derive(Debug, Clone, Serialize, Deserialize)]
4647#[serde(untagged)]
4648pub enum UpdateSecretValError {
4649    DefaultResponse(models::JsonError),
4650    UnknownValue(serde_json::Value),
4651}
4652
4653/// struct for typed errors of method [`update_ssh_cert_issuer`]
4654#[derive(Debug, Clone, Serialize, Deserialize)]
4655#[serde(untagged)]
4656pub enum UpdateSshCertIssuerError {
4657    DefaultResponse(models::JsonError),
4658    UnknownValue(serde_json::Value),
4659}
4660
4661/// struct for typed errors of method [`update_ssh_target`]
4662#[derive(Debug, Clone, Serialize, Deserialize)]
4663#[serde(untagged)]
4664pub enum UpdateSshTargetError {
4665    DefaultResponse(models::JsonError),
4666    UnknownValue(serde_json::Value),
4667}
4668
4669/// struct for typed errors of method [`update_ssh_target_details`]
4670#[derive(Debug, Clone, Serialize, Deserialize)]
4671#[serde(untagged)]
4672pub enum UpdateSshTargetDetailsError {
4673    DefaultResponse(models::JsonError),
4674    UnknownValue(serde_json::Value),
4675}
4676
4677/// struct for typed errors of method [`update_target`]
4678#[derive(Debug, Clone, Serialize, Deserialize)]
4679#[serde(untagged)]
4680pub enum UpdateTargetError {
4681    DefaultResponse(models::JsonError),
4682    UnknownValue(serde_json::Value),
4683}
4684
4685/// struct for typed errors of method [`update_target_details`]
4686#[derive(Debug, Clone, Serialize, Deserialize)]
4687#[serde(untagged)]
4688pub enum UpdateTargetDetailsError {
4689    DefaultResponse(models::JsonError),
4690    UnknownValue(serde_json::Value),
4691}
4692
4693/// struct for typed errors of method [`update_web_target`]
4694#[derive(Debug, Clone, Serialize, Deserialize)]
4695#[serde(untagged)]
4696pub enum UpdateWebTargetError {
4697    DefaultResponse(models::JsonError),
4698    UnknownValue(serde_json::Value),
4699}
4700
4701/// struct for typed errors of method [`update_web_target_details`]
4702#[derive(Debug, Clone, Serialize, Deserialize)]
4703#[serde(untagged)]
4704pub enum UpdateWebTargetDetailsError {
4705    DefaultResponse(models::JsonError),
4706    UnknownValue(serde_json::Value),
4707}
4708
4709/// struct for typed errors of method [`update_windows_target`]
4710#[derive(Debug, Clone, Serialize, Deserialize)]
4711#[serde(untagged)]
4712pub enum UpdateWindowsTargetError {
4713    DefaultResponse(models::JsonError),
4714    UnknownValue(serde_json::Value),
4715}
4716
4717/// struct for typed errors of method [`update_zero_ssl_target`]
4718#[derive(Debug, Clone, Serialize, Deserialize)]
4719#[serde(untagged)]
4720pub enum UpdateZeroSslTargetError {
4721    DefaultResponse(models::JsonError),
4722    UnknownValue(serde_json::Value),
4723}
4724
4725/// struct for typed errors of method [`upload_rsa`]
4726#[derive(Debug, Clone, Serialize, Deserialize)]
4727#[serde(untagged)]
4728pub enum UploadRsaError {
4729    DefaultResponse(models::JsonError),
4730    UnknownValue(serde_json::Value),
4731}
4732
4733/// struct for typed errors of method [`usc_create`]
4734#[derive(Debug, Clone, Serialize, Deserialize)]
4735#[serde(untagged)]
4736pub enum UscCreateError {
4737    DefaultResponse(models::JsonError),
4738    UnknownValue(serde_json::Value),
4739}
4740
4741/// struct for typed errors of method [`usc_delete`]
4742#[derive(Debug, Clone, Serialize, Deserialize)]
4743#[serde(untagged)]
4744pub enum UscDeleteError {
4745    DefaultResponse(models::JsonError),
4746    UnknownValue(serde_json::Value),
4747}
4748
4749/// struct for typed errors of method [`usc_get`]
4750#[derive(Debug, Clone, Serialize, Deserialize)]
4751#[serde(untagged)]
4752pub enum UscGetError {
4753    DefaultResponse(models::JsonError),
4754    UnknownValue(serde_json::Value),
4755}
4756
4757/// struct for typed errors of method [`usc_list`]
4758#[derive(Debug, Clone, Serialize, Deserialize)]
4759#[serde(untagged)]
4760pub enum UscListError {
4761    DefaultResponse(models::JsonError),
4762    UnknownValue(serde_json::Value),
4763}
4764
4765/// struct for typed errors of method [`usc_update`]
4766#[derive(Debug, Clone, Serialize, Deserialize)]
4767#[serde(untagged)]
4768pub enum UscUpdateError {
4769    DefaultResponse(models::JsonError),
4770    UnknownValue(serde_json::Value),
4771}
4772
4773/// struct for typed errors of method [`validate_certificate_challenge`]
4774#[derive(Debug, Clone, Serialize, Deserialize)]
4775#[serde(untagged)]
4776pub enum ValidateCertificateChallengeError {
4777    DefaultResponse(models::JsonError),
4778    UnknownValue(serde_json::Value),
4779}
4780
4781/// struct for typed errors of method [`validate_token`]
4782#[derive(Debug, Clone, Serialize, Deserialize)]
4783#[serde(untagged)]
4784pub enum ValidateTokenError {
4785    Status401(models::JsonError),
4786    DefaultResponse(models::JsonError),
4787    UnknownValue(serde_json::Value),
4788}
4789
4790/// struct for typed errors of method [`vault_address`]
4791#[derive(Debug, Clone, Serialize, Deserialize)]
4792#[serde(untagged)]
4793pub enum VaultAddressError {
4794    DefaultResponse(models::JsonError),
4795    UnknownValue(serde_json::Value),
4796}
4797
4798/// struct for typed errors of method [`verify_data_with_classic_key`]
4799#[derive(Debug, Clone, Serialize, Deserialize)]
4800#[serde(untagged)]
4801pub enum VerifyDataWithClassicKeyError {
4802    DefaultResponse(models::JsonError),
4803    UnknownValue(serde_json::Value),
4804}
4805
4806/// struct for typed errors of method [`verify_ec_dsa`]
4807#[derive(Debug, Clone, Serialize, Deserialize)]
4808#[serde(untagged)]
4809pub enum VerifyEcDsaError {
4810    DefaultResponse(models::JsonError),
4811    UnknownValue(serde_json::Value),
4812}
4813
4814/// struct for typed errors of method [`verify_gpg`]
4815#[derive(Debug, Clone, Serialize, Deserialize)]
4816#[serde(untagged)]
4817pub enum VerifyGpgError {
4818    DefaultResponse(models::JsonError),
4819    UnknownValue(serde_json::Value),
4820}
4821
4822/// struct for typed errors of method [`verify_jwt_with_classic_key`]
4823#[derive(Debug, Clone, Serialize, Deserialize)]
4824#[serde(untagged)]
4825pub enum VerifyJwtWithClassicKeyError {
4826    DefaultResponse(models::JsonError),
4827    UnknownValue(serde_json::Value),
4828}
4829
4830/// struct for typed errors of method [`verify_pkcs1`]
4831#[derive(Debug, Clone, Serialize, Deserialize)]
4832#[serde(untagged)]
4833pub enum VerifyPkcs1Error {
4834    DefaultResponse(models::JsonError),
4835    UnknownValue(serde_json::Value),
4836}
4837
4838/// struct for typed errors of method [`verify_pki_cert_with_classic_key`]
4839#[derive(Debug, Clone, Serialize, Deserialize)]
4840#[serde(untagged)]
4841pub enum VerifyPkiCertWithClassicKeyError {
4842    DefaultResponse(models::JsonError),
4843    UnknownValue(serde_json::Value),
4844}
4845
4846/// struct for typed errors of method [`verify_rsa_ssa_pss`]
4847#[derive(Debug, Clone, Serialize, Deserialize)]
4848#[serde(untagged)]
4849pub enum VerifyRsaSsaPssError {
4850    DefaultResponse(models::JsonError),
4851    UnknownValue(serde_json::Value),
4852}
4853
4854
4855pub async fn account_custom_field_create(configuration: &configuration::Configuration, account_custom_field_create: models::AccountCustomFieldCreate) -> Result<models::AccountCustomFieldCreateOutput, Error<AccountCustomFieldCreateError>> {
4856    // add a prefix to parameters to efficiently prevent name collisions
4857    let p_body_account_custom_field_create = account_custom_field_create;
4858
4859    let uri_str = format!("{}/account-custom-field-create", configuration.base_path);
4860    let mut req_builder = configuration.client.request(reqwest::Method::POST, &uri_str);
4861
4862    if let Some(ref user_agent) = configuration.user_agent {
4863        req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone());
4864    }
4865    req_builder = req_builder.json(&p_body_account_custom_field_create);
4866
4867    let req = req_builder.build()?;
4868    let resp = configuration.client.execute(req).await?;
4869
4870    let status = resp.status();
4871    let content_type = resp
4872        .headers()
4873        .get("content-type")
4874        .and_then(|v| v.to_str().ok())
4875        .unwrap_or("application/octet-stream");
4876    let content_type = super::ContentType::from(content_type);
4877
4878    if !status.is_client_error() && !status.is_server_error() {
4879        let content = resp.text().await?;
4880        match content_type {
4881            ContentType::Json => serde_json::from_str(&content).map_err(Error::from),
4882            ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `models::AccountCustomFieldCreateOutput`"))),
4883            ContentType::Unsupported(unknown_type) => return Err(Error::from(serde_json::Error::custom(format!("Received `{unknown_type}` content type response that cannot be converted to `models::AccountCustomFieldCreateOutput`")))),
4884        }
4885    } else {
4886        let content = resp.text().await?;
4887        let entity: Option<AccountCustomFieldCreateError> = serde_json::from_str(&content).ok();
4888        Err(Error::ResponseError(ResponseContent { status, content, entity }))
4889    }
4890}
4891
4892pub async fn account_custom_field_delete(configuration: &configuration::Configuration, account_custom_field_delete: models::AccountCustomFieldDelete) -> Result<serde_json::Value, Error<AccountCustomFieldDeleteError>> {
4893    // add a prefix to parameters to efficiently prevent name collisions
4894    let p_body_account_custom_field_delete = account_custom_field_delete;
4895
4896    let uri_str = format!("{}/account-custom-field-delete", configuration.base_path);
4897    let mut req_builder = configuration.client.request(reqwest::Method::POST, &uri_str);
4898
4899    if let Some(ref user_agent) = configuration.user_agent {
4900        req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone());
4901    }
4902    req_builder = req_builder.json(&p_body_account_custom_field_delete);
4903
4904    let req = req_builder.build()?;
4905    let resp = configuration.client.execute(req).await?;
4906
4907    let status = resp.status();
4908    let content_type = resp
4909        .headers()
4910        .get("content-type")
4911        .and_then(|v| v.to_str().ok())
4912        .unwrap_or("application/octet-stream");
4913    let content_type = super::ContentType::from(content_type);
4914
4915    if !status.is_client_error() && !status.is_server_error() {
4916        let content = resp.text().await?;
4917        match content_type {
4918            ContentType::Json => serde_json::from_str(&content).map_err(Error::from),
4919            ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `serde_json::Value`"))),
4920            ContentType::Unsupported(unknown_type) => return Err(Error::from(serde_json::Error::custom(format!("Received `{unknown_type}` content type response that cannot be converted to `serde_json::Value`")))),
4921        }
4922    } else {
4923        let content = resp.text().await?;
4924        let entity: Option<AccountCustomFieldDeleteError> = serde_json::from_str(&content).ok();
4925        Err(Error::ResponseError(ResponseContent { status, content, entity }))
4926    }
4927}
4928
4929pub async fn account_custom_field_get(configuration: &configuration::Configuration, account_custom_field_get: models::AccountCustomFieldGet) -> Result<models::AccountCustomFieldGetOutput, Error<AccountCustomFieldGetError>> {
4930    // add a prefix to parameters to efficiently prevent name collisions
4931    let p_body_account_custom_field_get = account_custom_field_get;
4932
4933    let uri_str = format!("{}/account-custom-field-get", configuration.base_path);
4934    let mut req_builder = configuration.client.request(reqwest::Method::POST, &uri_str);
4935
4936    if let Some(ref user_agent) = configuration.user_agent {
4937        req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone());
4938    }
4939    req_builder = req_builder.json(&p_body_account_custom_field_get);
4940
4941    let req = req_builder.build()?;
4942    let resp = configuration.client.execute(req).await?;
4943
4944    let status = resp.status();
4945    let content_type = resp
4946        .headers()
4947        .get("content-type")
4948        .and_then(|v| v.to_str().ok())
4949        .unwrap_or("application/octet-stream");
4950    let content_type = super::ContentType::from(content_type);
4951
4952    if !status.is_client_error() && !status.is_server_error() {
4953        let content = resp.text().await?;
4954        match content_type {
4955            ContentType::Json => serde_json::from_str(&content).map_err(Error::from),
4956            ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `models::AccountCustomFieldGetOutput`"))),
4957            ContentType::Unsupported(unknown_type) => return Err(Error::from(serde_json::Error::custom(format!("Received `{unknown_type}` content type response that cannot be converted to `models::AccountCustomFieldGetOutput`")))),
4958        }
4959    } else {
4960        let content = resp.text().await?;
4961        let entity: Option<AccountCustomFieldGetError> = serde_json::from_str(&content).ok();
4962        Err(Error::ResponseError(ResponseContent { status, content, entity }))
4963    }
4964}
4965
4966/// Returns a list of all custom fields configured for the account, optionally filtered by object and object type.
4967pub async fn account_custom_field_list(configuration: &configuration::Configuration, account_custom_field_list: models::AccountCustomFieldList) -> Result<serde_json::Value, Error<AccountCustomFieldListError>> {
4968    // add a prefix to parameters to efficiently prevent name collisions
4969    let p_body_account_custom_field_list = account_custom_field_list;
4970
4971    let uri_str = format!("{}/account-custom-field-list", configuration.base_path);
4972    let mut req_builder = configuration.client.request(reqwest::Method::POST, &uri_str);
4973
4974    if let Some(ref user_agent) = configuration.user_agent {
4975        req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone());
4976    }
4977    req_builder = req_builder.json(&p_body_account_custom_field_list);
4978
4979    let req = req_builder.build()?;
4980    let resp = configuration.client.execute(req).await?;
4981
4982    let status = resp.status();
4983    let content_type = resp
4984        .headers()
4985        .get("content-type")
4986        .and_then(|v| v.to_str().ok())
4987        .unwrap_or("application/octet-stream");
4988    let content_type = super::ContentType::from(content_type);
4989
4990    if !status.is_client_error() && !status.is_server_error() {
4991        let content = resp.text().await?;
4992        match content_type {
4993            ContentType::Json => serde_json::from_str(&content).map_err(Error::from),
4994            ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `serde_json::Value`"))),
4995            ContentType::Unsupported(unknown_type) => return Err(Error::from(serde_json::Error::custom(format!("Received `{unknown_type}` content type response that cannot be converted to `serde_json::Value`")))),
4996        }
4997    } else {
4998        let content = resp.text().await?;
4999        let entity: Option<AccountCustomFieldListError> = serde_json::from_str(&content).ok();
5000        Err(Error::ResponseError(ResponseContent { status, content, entity }))
5001    }
5002}
5003
5004pub async fn account_custom_field_update(configuration: &configuration::Configuration, account_custom_field_update: models::AccountCustomFieldUpdate) -> Result<serde_json::Value, Error<AccountCustomFieldUpdateError>> {
5005    // add a prefix to parameters to efficiently prevent name collisions
5006    let p_body_account_custom_field_update = account_custom_field_update;
5007
5008    let uri_str = format!("{}/account-custom-field-update", configuration.base_path);
5009    let mut req_builder = configuration.client.request(reqwest::Method::POST, &uri_str);
5010
5011    if let Some(ref user_agent) = configuration.user_agent {
5012        req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone());
5013    }
5014    req_builder = req_builder.json(&p_body_account_custom_field_update);
5015
5016    let req = req_builder.build()?;
5017    let resp = configuration.client.execute(req).await?;
5018
5019    let status = resp.status();
5020    let content_type = resp
5021        .headers()
5022        .get("content-type")
5023        .and_then(|v| v.to_str().ok())
5024        .unwrap_or("application/octet-stream");
5025    let content_type = super::ContentType::from(content_type);
5026
5027    if !status.is_client_error() && !status.is_server_error() {
5028        let content = resp.text().await?;
5029        match content_type {
5030            ContentType::Json => serde_json::from_str(&content).map_err(Error::from),
5031            ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `serde_json::Value`"))),
5032            ContentType::Unsupported(unknown_type) => return Err(Error::from(serde_json::Error::custom(format!("Received `{unknown_type}` content type response that cannot be converted to `serde_json::Value`")))),
5033        }
5034    } else {
5035        let content = resp.text().await?;
5036        let entity: Option<AccountCustomFieldUpdateError> = serde_json::from_str(&content).ok();
5037        Err(Error::ResponseError(ResponseContent { status, content, entity }))
5038    }
5039}
5040
5041pub async fn alias_details(configuration: &configuration::Configuration, alias_details: models::AliasDetails) -> Result<serde_json::Value, Error<AliasDetailsError>> {
5042    // add a prefix to parameters to efficiently prevent name collisions
5043    let p_body_alias_details = alias_details;
5044
5045    let uri_str = format!("{}/alias-details", configuration.base_path);
5046    let mut req_builder = configuration.client.request(reqwest::Method::POST, &uri_str);
5047
5048    if let Some(ref user_agent) = configuration.user_agent {
5049        req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone());
5050    }
5051    req_builder = req_builder.json(&p_body_alias_details);
5052
5053    let req = req_builder.build()?;
5054    let resp = configuration.client.execute(req).await?;
5055
5056    let status = resp.status();
5057    let content_type = resp
5058        .headers()
5059        .get("content-type")
5060        .and_then(|v| v.to_str().ok())
5061        .unwrap_or("application/octet-stream");
5062    let content_type = super::ContentType::from(content_type);
5063
5064    if !status.is_client_error() && !status.is_server_error() {
5065        let content = resp.text().await?;
5066        match content_type {
5067            ContentType::Json => serde_json::from_str(&content).map_err(Error::from),
5068            ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `serde_json::Value`"))),
5069            ContentType::Unsupported(unknown_type) => return Err(Error::from(serde_json::Error::custom(format!("Received `{unknown_type}` content type response that cannot be converted to `serde_json::Value`")))),
5070        }
5071    } else {
5072        let content = resp.text().await?;
5073        let entity: Option<AliasDetailsError> = serde_json::from_str(&content).ok();
5074        Err(Error::ResponseError(ResponseContent { status, content, entity }))
5075    }
5076}
5077
5078pub async fn assoc_role_auth_method(configuration: &configuration::Configuration, assoc_role_auth_method: models::AssocRoleAuthMethod) -> Result<models::CreateRoleAuthMethodAssocOutput, Error<AssocRoleAuthMethodError>> {
5079    // add a prefix to parameters to efficiently prevent name collisions
5080    let p_body_assoc_role_auth_method = assoc_role_auth_method;
5081
5082    let uri_str = format!("{}/assoc-role-am", configuration.base_path);
5083    let mut req_builder = configuration.client.request(reqwest::Method::POST, &uri_str);
5084
5085    if let Some(ref user_agent) = configuration.user_agent {
5086        req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone());
5087    }
5088    req_builder = req_builder.json(&p_body_assoc_role_auth_method);
5089
5090    let req = req_builder.build()?;
5091    let resp = configuration.client.execute(req).await?;
5092
5093    let status = resp.status();
5094    let content_type = resp
5095        .headers()
5096        .get("content-type")
5097        .and_then(|v| v.to_str().ok())
5098        .unwrap_or("application/octet-stream");
5099    let content_type = super::ContentType::from(content_type);
5100
5101    if !status.is_client_error() && !status.is_server_error() {
5102        let content = resp.text().await?;
5103        match content_type {
5104            ContentType::Json => serde_json::from_str(&content).map_err(Error::from),
5105            ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `models::CreateRoleAuthMethodAssocOutput`"))),
5106            ContentType::Unsupported(unknown_type) => return Err(Error::from(serde_json::Error::custom(format!("Received `{unknown_type}` content type response that cannot be converted to `models::CreateRoleAuthMethodAssocOutput`")))),
5107        }
5108    } else {
5109        let content = resp.text().await?;
5110        let entity: Option<AssocRoleAuthMethodError> = serde_json::from_str(&content).ok();
5111        Err(Error::ResponseError(ResponseContent { status, content, entity }))
5112    }
5113}
5114
5115pub async fn assoc_target_item(configuration: &configuration::Configuration, assoc_target_item: models::AssocTargetItem) -> Result<models::CreateTargetItemAssocOutput, Error<AssocTargetItemError>> {
5116    // add a prefix to parameters to efficiently prevent name collisions
5117    let p_body_assoc_target_item = assoc_target_item;
5118
5119    let uri_str = format!("{}/assoc-target-item", configuration.base_path);
5120    let mut req_builder = configuration.client.request(reqwest::Method::POST, &uri_str);
5121
5122    if let Some(ref user_agent) = configuration.user_agent {
5123        req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone());
5124    }
5125    req_builder = req_builder.json(&p_body_assoc_target_item);
5126
5127    let req = req_builder.build()?;
5128    let resp = configuration.client.execute(req).await?;
5129
5130    let status = resp.status();
5131    let content_type = resp
5132        .headers()
5133        .get("content-type")
5134        .and_then(|v| v.to_str().ok())
5135        .unwrap_or("application/octet-stream");
5136    let content_type = super::ContentType::from(content_type);
5137
5138    if !status.is_client_error() && !status.is_server_error() {
5139        let content = resp.text().await?;
5140        match content_type {
5141            ContentType::Json => serde_json::from_str(&content).map_err(Error::from),
5142            ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `models::CreateTargetItemAssocOutput`"))),
5143            ContentType::Unsupported(unknown_type) => return Err(Error::from(serde_json::Error::custom(format!("Received `{unknown_type}` content type response that cannot be converted to `models::CreateTargetItemAssocOutput`")))),
5144        }
5145    } else {
5146        let content = resp.text().await?;
5147        let entity: Option<AssocTargetItemError> = serde_json::from_str(&content).ok();
5148        Err(Error::ResponseError(ResponseContent { status, content, entity }))
5149    }
5150}
5151
5152pub async fn auth(configuration: &configuration::Configuration, auth: models::Auth) -> Result<models::AuthOutput, Error<AuthError>> {
5153    // add a prefix to parameters to efficiently prevent name collisions
5154    let p_body_auth = auth;
5155
5156    let uri_str = format!("{}/auth", configuration.base_path);
5157    let mut req_builder = configuration.client.request(reqwest::Method::POST, &uri_str);
5158
5159    if let Some(ref user_agent) = configuration.user_agent {
5160        req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone());
5161    }
5162    req_builder = req_builder.json(&p_body_auth);
5163
5164    let req = req_builder.build()?;
5165    let resp = configuration.client.execute(req).await?;
5166
5167    let status = resp.status();
5168    let content_type = resp
5169        .headers()
5170        .get("content-type")
5171        .and_then(|v| v.to_str().ok())
5172        .unwrap_or("application/octet-stream");
5173    let content_type = super::ContentType::from(content_type);
5174
5175    if !status.is_client_error() && !status.is_server_error() {
5176        let content = resp.text().await?;
5177        match content_type {
5178            ContentType::Json => serde_json::from_str(&content).map_err(Error::from),
5179            ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `models::AuthOutput`"))),
5180            ContentType::Unsupported(unknown_type) => return Err(Error::from(serde_json::Error::custom(format!("Received `{unknown_type}` content type response that cannot be converted to `models::AuthOutput`")))),
5181        }
5182    } else {
5183        let content = resp.text().await?;
5184        let entity: Option<AuthError> = serde_json::from_str(&content).ok();
5185        Err(Error::ResponseError(ResponseContent { status, content, entity }))
5186    }
5187}
5188
5189pub async fn auth_method_create_api_key(configuration: &configuration::Configuration, auth_method_create_api_key: models::AuthMethodCreateApiKey) -> Result<models::AuthMethodCreateOutput, Error<AuthMethodCreateApiKeyError>> {
5190    // add a prefix to parameters to efficiently prevent name collisions
5191    let p_body_auth_method_create_api_key = auth_method_create_api_key;
5192
5193    let uri_str = format!("{}/auth-method-create-api-key", configuration.base_path);
5194    let mut req_builder = configuration.client.request(reqwest::Method::POST, &uri_str);
5195
5196    if let Some(ref user_agent) = configuration.user_agent {
5197        req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone());
5198    }
5199    req_builder = req_builder.json(&p_body_auth_method_create_api_key);
5200
5201    let req = req_builder.build()?;
5202    let resp = configuration.client.execute(req).await?;
5203
5204    let status = resp.status();
5205    let content_type = resp
5206        .headers()
5207        .get("content-type")
5208        .and_then(|v| v.to_str().ok())
5209        .unwrap_or("application/octet-stream");
5210    let content_type = super::ContentType::from(content_type);
5211
5212    if !status.is_client_error() && !status.is_server_error() {
5213        let content = resp.text().await?;
5214        match content_type {
5215            ContentType::Json => serde_json::from_str(&content).map_err(Error::from),
5216            ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `models::AuthMethodCreateOutput`"))),
5217            ContentType::Unsupported(unknown_type) => return Err(Error::from(serde_json::Error::custom(format!("Received `{unknown_type}` content type response that cannot be converted to `models::AuthMethodCreateOutput`")))),
5218        }
5219    } else {
5220        let content = resp.text().await?;
5221        let entity: Option<AuthMethodCreateApiKeyError> = serde_json::from_str(&content).ok();
5222        Err(Error::ResponseError(ResponseContent { status, content, entity }))
5223    }
5224}
5225
5226pub async fn auth_method_create_aws_iam(configuration: &configuration::Configuration, auth_method_create_aws_iam: models::AuthMethodCreateAwsIam) -> Result<models::AuthMethodCreateOutput, Error<AuthMethodCreateAwsIamError>> {
5227    // add a prefix to parameters to efficiently prevent name collisions
5228    let p_body_auth_method_create_aws_iam = auth_method_create_aws_iam;
5229
5230    let uri_str = format!("{}/auth-method-create-aws-iam", configuration.base_path);
5231    let mut req_builder = configuration.client.request(reqwest::Method::POST, &uri_str);
5232
5233    if let Some(ref user_agent) = configuration.user_agent {
5234        req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone());
5235    }
5236    req_builder = req_builder.json(&p_body_auth_method_create_aws_iam);
5237
5238    let req = req_builder.build()?;
5239    let resp = configuration.client.execute(req).await?;
5240
5241    let status = resp.status();
5242    let content_type = resp
5243        .headers()
5244        .get("content-type")
5245        .and_then(|v| v.to_str().ok())
5246        .unwrap_or("application/octet-stream");
5247    let content_type = super::ContentType::from(content_type);
5248
5249    if !status.is_client_error() && !status.is_server_error() {
5250        let content = resp.text().await?;
5251        match content_type {
5252            ContentType::Json => serde_json::from_str(&content).map_err(Error::from),
5253            ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `models::AuthMethodCreateOutput`"))),
5254            ContentType::Unsupported(unknown_type) => return Err(Error::from(serde_json::Error::custom(format!("Received `{unknown_type}` content type response that cannot be converted to `models::AuthMethodCreateOutput`")))),
5255        }
5256    } else {
5257        let content = resp.text().await?;
5258        let entity: Option<AuthMethodCreateAwsIamError> = serde_json::from_str(&content).ok();
5259        Err(Error::ResponseError(ResponseContent { status, content, entity }))
5260    }
5261}
5262
5263pub async fn auth_method_create_azure_ad(configuration: &configuration::Configuration, auth_method_create_azure_ad: models::AuthMethodCreateAzureAd) -> Result<models::AuthMethodCreateOutput, Error<AuthMethodCreateAzureAdError>> {
5264    // add a prefix to parameters to efficiently prevent name collisions
5265    let p_body_auth_method_create_azure_ad = auth_method_create_azure_ad;
5266
5267    let uri_str = format!("{}/auth-method-create-azure-ad", configuration.base_path);
5268    let mut req_builder = configuration.client.request(reqwest::Method::POST, &uri_str);
5269
5270    if let Some(ref user_agent) = configuration.user_agent {
5271        req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone());
5272    }
5273    req_builder = req_builder.json(&p_body_auth_method_create_azure_ad);
5274
5275    let req = req_builder.build()?;
5276    let resp = configuration.client.execute(req).await?;
5277
5278    let status = resp.status();
5279    let content_type = resp
5280        .headers()
5281        .get("content-type")
5282        .and_then(|v| v.to_str().ok())
5283        .unwrap_or("application/octet-stream");
5284    let content_type = super::ContentType::from(content_type);
5285
5286    if !status.is_client_error() && !status.is_server_error() {
5287        let content = resp.text().await?;
5288        match content_type {
5289            ContentType::Json => serde_json::from_str(&content).map_err(Error::from),
5290            ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `models::AuthMethodCreateOutput`"))),
5291            ContentType::Unsupported(unknown_type) => return Err(Error::from(serde_json::Error::custom(format!("Received `{unknown_type}` content type response that cannot be converted to `models::AuthMethodCreateOutput`")))),
5292        }
5293    } else {
5294        let content = resp.text().await?;
5295        let entity: Option<AuthMethodCreateAzureAdError> = serde_json::from_str(&content).ok();
5296        Err(Error::ResponseError(ResponseContent { status, content, entity }))
5297    }
5298}
5299
5300pub async fn auth_method_create_cert(configuration: &configuration::Configuration, auth_method_create_cert: models::AuthMethodCreateCert) -> Result<models::AuthMethodCreateOutput, Error<AuthMethodCreateCertError>> {
5301    // add a prefix to parameters to efficiently prevent name collisions
5302    let p_body_auth_method_create_cert = auth_method_create_cert;
5303
5304    let uri_str = format!("{}/auth-method-create-cert", configuration.base_path);
5305    let mut req_builder = configuration.client.request(reqwest::Method::POST, &uri_str);
5306
5307    if let Some(ref user_agent) = configuration.user_agent {
5308        req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone());
5309    }
5310    req_builder = req_builder.json(&p_body_auth_method_create_cert);
5311
5312    let req = req_builder.build()?;
5313    let resp = configuration.client.execute(req).await?;
5314
5315    let status = resp.status();
5316    let content_type = resp
5317        .headers()
5318        .get("content-type")
5319        .and_then(|v| v.to_str().ok())
5320        .unwrap_or("application/octet-stream");
5321    let content_type = super::ContentType::from(content_type);
5322
5323    if !status.is_client_error() && !status.is_server_error() {
5324        let content = resp.text().await?;
5325        match content_type {
5326            ContentType::Json => serde_json::from_str(&content).map_err(Error::from),
5327            ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `models::AuthMethodCreateOutput`"))),
5328            ContentType::Unsupported(unknown_type) => return Err(Error::from(serde_json::Error::custom(format!("Received `{unknown_type}` content type response that cannot be converted to `models::AuthMethodCreateOutput`")))),
5329        }
5330    } else {
5331        let content = resp.text().await?;
5332        let entity: Option<AuthMethodCreateCertError> = serde_json::from_str(&content).ok();
5333        Err(Error::ResponseError(ResponseContent { status, content, entity }))
5334    }
5335}
5336
5337pub async fn auth_method_create_email(configuration: &configuration::Configuration, auth_method_create_email: models::AuthMethodCreateEmail) -> Result<models::AuthMethodCreateOutput, Error<AuthMethodCreateEmailError>> {
5338    // add a prefix to parameters to efficiently prevent name collisions
5339    let p_body_auth_method_create_email = auth_method_create_email;
5340
5341    let uri_str = format!("{}/auth-method-create-email", configuration.base_path);
5342    let mut req_builder = configuration.client.request(reqwest::Method::POST, &uri_str);
5343
5344    if let Some(ref user_agent) = configuration.user_agent {
5345        req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone());
5346    }
5347    req_builder = req_builder.json(&p_body_auth_method_create_email);
5348
5349    let req = req_builder.build()?;
5350    let resp = configuration.client.execute(req).await?;
5351
5352    let status = resp.status();
5353    let content_type = resp
5354        .headers()
5355        .get("content-type")
5356        .and_then(|v| v.to_str().ok())
5357        .unwrap_or("application/octet-stream");
5358    let content_type = super::ContentType::from(content_type);
5359
5360    if !status.is_client_error() && !status.is_server_error() {
5361        let content = resp.text().await?;
5362        match content_type {
5363            ContentType::Json => serde_json::from_str(&content).map_err(Error::from),
5364            ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `models::AuthMethodCreateOutput`"))),
5365            ContentType::Unsupported(unknown_type) => return Err(Error::from(serde_json::Error::custom(format!("Received `{unknown_type}` content type response that cannot be converted to `models::AuthMethodCreateOutput`")))),
5366        }
5367    } else {
5368        let content = resp.text().await?;
5369        let entity: Option<AuthMethodCreateEmailError> = serde_json::from_str(&content).ok();
5370        Err(Error::ResponseError(ResponseContent { status, content, entity }))
5371    }
5372}
5373
5374pub async fn auth_method_create_gcp(configuration: &configuration::Configuration, auth_method_create_gcp: models::AuthMethodCreateGcp) -> Result<models::AuthMethodCreateOutput, Error<AuthMethodCreateGcpError>> {
5375    // add a prefix to parameters to efficiently prevent name collisions
5376    let p_body_auth_method_create_gcp = auth_method_create_gcp;
5377
5378    let uri_str = format!("{}/auth-method-create-gcp", configuration.base_path);
5379    let mut req_builder = configuration.client.request(reqwest::Method::POST, &uri_str);
5380
5381    if let Some(ref user_agent) = configuration.user_agent {
5382        req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone());
5383    }
5384    req_builder = req_builder.json(&p_body_auth_method_create_gcp);
5385
5386    let req = req_builder.build()?;
5387    let resp = configuration.client.execute(req).await?;
5388
5389    let status = resp.status();
5390    let content_type = resp
5391        .headers()
5392        .get("content-type")
5393        .and_then(|v| v.to_str().ok())
5394        .unwrap_or("application/octet-stream");
5395    let content_type = super::ContentType::from(content_type);
5396
5397    if !status.is_client_error() && !status.is_server_error() {
5398        let content = resp.text().await?;
5399        match content_type {
5400            ContentType::Json => serde_json::from_str(&content).map_err(Error::from),
5401            ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `models::AuthMethodCreateOutput`"))),
5402            ContentType::Unsupported(unknown_type) => return Err(Error::from(serde_json::Error::custom(format!("Received `{unknown_type}` content type response that cannot be converted to `models::AuthMethodCreateOutput`")))),
5403        }
5404    } else {
5405        let content = resp.text().await?;
5406        let entity: Option<AuthMethodCreateGcpError> = serde_json::from_str(&content).ok();
5407        Err(Error::ResponseError(ResponseContent { status, content, entity }))
5408    }
5409}
5410
5411pub async fn auth_method_create_k8s(configuration: &configuration::Configuration, auth_method_create_k8s: models::AuthMethodCreateK8s) -> Result<models::AuthMethodCreateOutput, Error<AuthMethodCreateK8sError>> {
5412    // add a prefix to parameters to efficiently prevent name collisions
5413    let p_body_auth_method_create_k8s = auth_method_create_k8s;
5414
5415    let uri_str = format!("{}/auth-method-create-k8s", configuration.base_path);
5416    let mut req_builder = configuration.client.request(reqwest::Method::POST, &uri_str);
5417
5418    if let Some(ref user_agent) = configuration.user_agent {
5419        req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone());
5420    }
5421    req_builder = req_builder.json(&p_body_auth_method_create_k8s);
5422
5423    let req = req_builder.build()?;
5424    let resp = configuration.client.execute(req).await?;
5425
5426    let status = resp.status();
5427    let content_type = resp
5428        .headers()
5429        .get("content-type")
5430        .and_then(|v| v.to_str().ok())
5431        .unwrap_or("application/octet-stream");
5432    let content_type = super::ContentType::from(content_type);
5433
5434    if !status.is_client_error() && !status.is_server_error() {
5435        let content = resp.text().await?;
5436        match content_type {
5437            ContentType::Json => serde_json::from_str(&content).map_err(Error::from),
5438            ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `models::AuthMethodCreateOutput`"))),
5439            ContentType::Unsupported(unknown_type) => return Err(Error::from(serde_json::Error::custom(format!("Received `{unknown_type}` content type response that cannot be converted to `models::AuthMethodCreateOutput`")))),
5440        }
5441    } else {
5442        let content = resp.text().await?;
5443        let entity: Option<AuthMethodCreateK8sError> = serde_json::from_str(&content).ok();
5444        Err(Error::ResponseError(ResponseContent { status, content, entity }))
5445    }
5446}
5447
5448pub async fn auth_method_create_kerberos(configuration: &configuration::Configuration, auth_method_create_kerberos: models::AuthMethodCreateKerberos) -> Result<models::AuthMethodCreateOutput, Error<AuthMethodCreateKerberosError>> {
5449    // add a prefix to parameters to efficiently prevent name collisions
5450    let p_body_auth_method_create_kerberos = auth_method_create_kerberos;
5451
5452    let uri_str = format!("{}/auth-method-create-kerberos", configuration.base_path);
5453    let mut req_builder = configuration.client.request(reqwest::Method::POST, &uri_str);
5454
5455    if let Some(ref user_agent) = configuration.user_agent {
5456        req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone());
5457    }
5458    req_builder = req_builder.json(&p_body_auth_method_create_kerberos);
5459
5460    let req = req_builder.build()?;
5461    let resp = configuration.client.execute(req).await?;
5462
5463    let status = resp.status();
5464    let content_type = resp
5465        .headers()
5466        .get("content-type")
5467        .and_then(|v| v.to_str().ok())
5468        .unwrap_or("application/octet-stream");
5469    let content_type = super::ContentType::from(content_type);
5470
5471    if !status.is_client_error() && !status.is_server_error() {
5472        let content = resp.text().await?;
5473        match content_type {
5474            ContentType::Json => serde_json::from_str(&content).map_err(Error::from),
5475            ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `models::AuthMethodCreateOutput`"))),
5476            ContentType::Unsupported(unknown_type) => return Err(Error::from(serde_json::Error::custom(format!("Received `{unknown_type}` content type response that cannot be converted to `models::AuthMethodCreateOutput`")))),
5477        }
5478    } else {
5479        let content = resp.text().await?;
5480        let entity: Option<AuthMethodCreateKerberosError> = serde_json::from_str(&content).ok();
5481        Err(Error::ResponseError(ResponseContent { status, content, entity }))
5482    }
5483}
5484
5485pub async fn auth_method_create_ldap(configuration: &configuration::Configuration, auth_method_create_ldap: models::AuthMethodCreateLdap) -> Result<models::AuthMethodCreateOutput, Error<AuthMethodCreateLdapError>> {
5486    // add a prefix to parameters to efficiently prevent name collisions
5487    let p_body_auth_method_create_ldap = auth_method_create_ldap;
5488
5489    let uri_str = format!("{}/auth-method-create-ldap", configuration.base_path);
5490    let mut req_builder = configuration.client.request(reqwest::Method::POST, &uri_str);
5491
5492    if let Some(ref user_agent) = configuration.user_agent {
5493        req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone());
5494    }
5495    req_builder = req_builder.json(&p_body_auth_method_create_ldap);
5496
5497    let req = req_builder.build()?;
5498    let resp = configuration.client.execute(req).await?;
5499
5500    let status = resp.status();
5501    let content_type = resp
5502        .headers()
5503        .get("content-type")
5504        .and_then(|v| v.to_str().ok())
5505        .unwrap_or("application/octet-stream");
5506    let content_type = super::ContentType::from(content_type);
5507
5508    if !status.is_client_error() && !status.is_server_error() {
5509        let content = resp.text().await?;
5510        match content_type {
5511            ContentType::Json => serde_json::from_str(&content).map_err(Error::from),
5512            ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `models::AuthMethodCreateOutput`"))),
5513            ContentType::Unsupported(unknown_type) => return Err(Error::from(serde_json::Error::custom(format!("Received `{unknown_type}` content type response that cannot be converted to `models::AuthMethodCreateOutput`")))),
5514        }
5515    } else {
5516        let content = resp.text().await?;
5517        let entity: Option<AuthMethodCreateLdapError> = serde_json::from_str(&content).ok();
5518        Err(Error::ResponseError(ResponseContent { status, content, entity }))
5519    }
5520}
5521
5522pub async fn auth_method_create_oauth2(configuration: &configuration::Configuration, auth_method_create_oauth2: models::AuthMethodCreateOauth2) -> Result<models::AuthMethodCreateOutput, Error<AuthMethodCreateOauth2Error>> {
5523    // add a prefix to parameters to efficiently prevent name collisions
5524    let p_body_auth_method_create_oauth2 = auth_method_create_oauth2;
5525
5526    let uri_str = format!("{}/auth-method-create-oauth2", configuration.base_path);
5527    let mut req_builder = configuration.client.request(reqwest::Method::POST, &uri_str);
5528
5529    if let Some(ref user_agent) = configuration.user_agent {
5530        req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone());
5531    }
5532    req_builder = req_builder.json(&p_body_auth_method_create_oauth2);
5533
5534    let req = req_builder.build()?;
5535    let resp = configuration.client.execute(req).await?;
5536
5537    let status = resp.status();
5538    let content_type = resp
5539        .headers()
5540        .get("content-type")
5541        .and_then(|v| v.to_str().ok())
5542        .unwrap_or("application/octet-stream");
5543    let content_type = super::ContentType::from(content_type);
5544
5545    if !status.is_client_error() && !status.is_server_error() {
5546        let content = resp.text().await?;
5547        match content_type {
5548            ContentType::Json => serde_json::from_str(&content).map_err(Error::from),
5549            ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `models::AuthMethodCreateOutput`"))),
5550            ContentType::Unsupported(unknown_type) => return Err(Error::from(serde_json::Error::custom(format!("Received `{unknown_type}` content type response that cannot be converted to `models::AuthMethodCreateOutput`")))),
5551        }
5552    } else {
5553        let content = resp.text().await?;
5554        let entity: Option<AuthMethodCreateOauth2Error> = serde_json::from_str(&content).ok();
5555        Err(Error::ResponseError(ResponseContent { status, content, entity }))
5556    }
5557}
5558
5559pub async fn auth_method_create_oci(configuration: &configuration::Configuration, auth_method_create_oci: models::AuthMethodCreateOci) -> Result<models::AuthMethodCreateOutput, Error<AuthMethodCreateOciError>> {
5560    // add a prefix to parameters to efficiently prevent name collisions
5561    let p_body_auth_method_create_oci = auth_method_create_oci;
5562
5563    let uri_str = format!("{}/auth-method-create-oci", configuration.base_path);
5564    let mut req_builder = configuration.client.request(reqwest::Method::POST, &uri_str);
5565
5566    if let Some(ref user_agent) = configuration.user_agent {
5567        req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone());
5568    }
5569    req_builder = req_builder.json(&p_body_auth_method_create_oci);
5570
5571    let req = req_builder.build()?;
5572    let resp = configuration.client.execute(req).await?;
5573
5574    let status = resp.status();
5575    let content_type = resp
5576        .headers()
5577        .get("content-type")
5578        .and_then(|v| v.to_str().ok())
5579        .unwrap_or("application/octet-stream");
5580    let content_type = super::ContentType::from(content_type);
5581
5582    if !status.is_client_error() && !status.is_server_error() {
5583        let content = resp.text().await?;
5584        match content_type {
5585            ContentType::Json => serde_json::from_str(&content).map_err(Error::from),
5586            ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `models::AuthMethodCreateOutput`"))),
5587            ContentType::Unsupported(unknown_type) => return Err(Error::from(serde_json::Error::custom(format!("Received `{unknown_type}` content type response that cannot be converted to `models::AuthMethodCreateOutput`")))),
5588        }
5589    } else {
5590        let content = resp.text().await?;
5591        let entity: Option<AuthMethodCreateOciError> = serde_json::from_str(&content).ok();
5592        Err(Error::ResponseError(ResponseContent { status, content, entity }))
5593    }
5594}
5595
5596pub async fn auth_method_create_oidc(configuration: &configuration::Configuration, auth_method_create_oidc: models::AuthMethodCreateOidc) -> Result<models::AuthMethodCreateOutput, Error<AuthMethodCreateOidcError>> {
5597    // add a prefix to parameters to efficiently prevent name collisions
5598    let p_body_auth_method_create_oidc = auth_method_create_oidc;
5599
5600    let uri_str = format!("{}/auth-method-create-oidc", configuration.base_path);
5601    let mut req_builder = configuration.client.request(reqwest::Method::POST, &uri_str);
5602
5603    if let Some(ref user_agent) = configuration.user_agent {
5604        req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone());
5605    }
5606    req_builder = req_builder.json(&p_body_auth_method_create_oidc);
5607
5608    let req = req_builder.build()?;
5609    let resp = configuration.client.execute(req).await?;
5610
5611    let status = resp.status();
5612    let content_type = resp
5613        .headers()
5614        .get("content-type")
5615        .and_then(|v| v.to_str().ok())
5616        .unwrap_or("application/octet-stream");
5617    let content_type = super::ContentType::from(content_type);
5618
5619    if !status.is_client_error() && !status.is_server_error() {
5620        let content = resp.text().await?;
5621        match content_type {
5622            ContentType::Json => serde_json::from_str(&content).map_err(Error::from),
5623            ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `models::AuthMethodCreateOutput`"))),
5624            ContentType::Unsupported(unknown_type) => return Err(Error::from(serde_json::Error::custom(format!("Received `{unknown_type}` content type response that cannot be converted to `models::AuthMethodCreateOutput`")))),
5625        }
5626    } else {
5627        let content = resp.text().await?;
5628        let entity: Option<AuthMethodCreateOidcError> = serde_json::from_str(&content).ok();
5629        Err(Error::ResponseError(ResponseContent { status, content, entity }))
5630    }
5631}
5632
5633pub async fn auth_method_create_saml(configuration: &configuration::Configuration, auth_method_create_saml: models::AuthMethodCreateSaml) -> Result<models::AuthMethodCreateOutput, Error<AuthMethodCreateSamlError>> {
5634    // add a prefix to parameters to efficiently prevent name collisions
5635    let p_body_auth_method_create_saml = auth_method_create_saml;
5636
5637    let uri_str = format!("{}/auth-method-create-saml", configuration.base_path);
5638    let mut req_builder = configuration.client.request(reqwest::Method::POST, &uri_str);
5639
5640    if let Some(ref user_agent) = configuration.user_agent {
5641        req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone());
5642    }
5643    req_builder = req_builder.json(&p_body_auth_method_create_saml);
5644
5645    let req = req_builder.build()?;
5646    let resp = configuration.client.execute(req).await?;
5647
5648    let status = resp.status();
5649    let content_type = resp
5650        .headers()
5651        .get("content-type")
5652        .and_then(|v| v.to_str().ok())
5653        .unwrap_or("application/octet-stream");
5654    let content_type = super::ContentType::from(content_type);
5655
5656    if !status.is_client_error() && !status.is_server_error() {
5657        let content = resp.text().await?;
5658        match content_type {
5659            ContentType::Json => serde_json::from_str(&content).map_err(Error::from),
5660            ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `models::AuthMethodCreateOutput`"))),
5661            ContentType::Unsupported(unknown_type) => return Err(Error::from(serde_json::Error::custom(format!("Received `{unknown_type}` content type response that cannot be converted to `models::AuthMethodCreateOutput`")))),
5662        }
5663    } else {
5664        let content = resp.text().await?;
5665        let entity: Option<AuthMethodCreateSamlError> = serde_json::from_str(&content).ok();
5666        Err(Error::ResponseError(ResponseContent { status, content, entity }))
5667    }
5668}
5669
5670pub async fn auth_method_create_universal_identity(configuration: &configuration::Configuration, auth_method_create_universal_identity: models::AuthMethodCreateUniversalIdentity) -> Result<models::AuthMethodCreateOutput, Error<AuthMethodCreateUniversalIdentityError>> {
5671    // add a prefix to parameters to efficiently prevent name collisions
5672    let p_body_auth_method_create_universal_identity = auth_method_create_universal_identity;
5673
5674    let uri_str = format!("{}/auth-method-create-universal-identity", configuration.base_path);
5675    let mut req_builder = configuration.client.request(reqwest::Method::POST, &uri_str);
5676
5677    if let Some(ref user_agent) = configuration.user_agent {
5678        req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone());
5679    }
5680    req_builder = req_builder.json(&p_body_auth_method_create_universal_identity);
5681
5682    let req = req_builder.build()?;
5683    let resp = configuration.client.execute(req).await?;
5684
5685    let status = resp.status();
5686    let content_type = resp
5687        .headers()
5688        .get("content-type")
5689        .and_then(|v| v.to_str().ok())
5690        .unwrap_or("application/octet-stream");
5691    let content_type = super::ContentType::from(content_type);
5692
5693    if !status.is_client_error() && !status.is_server_error() {
5694        let content = resp.text().await?;
5695        match content_type {
5696            ContentType::Json => serde_json::from_str(&content).map_err(Error::from),
5697            ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `models::AuthMethodCreateOutput`"))),
5698            ContentType::Unsupported(unknown_type) => return Err(Error::from(serde_json::Error::custom(format!("Received `{unknown_type}` content type response that cannot be converted to `models::AuthMethodCreateOutput`")))),
5699        }
5700    } else {
5701        let content = resp.text().await?;
5702        let entity: Option<AuthMethodCreateUniversalIdentityError> = serde_json::from_str(&content).ok();
5703        Err(Error::ResponseError(ResponseContent { status, content, entity }))
5704    }
5705}
5706
5707pub async fn auth_method_delete(configuration: &configuration::Configuration, auth_method_delete: models::AuthMethodDelete) -> Result<models::AuthMethodDeleteOutput, Error<AuthMethodDeleteError>> {
5708    // add a prefix to parameters to efficiently prevent name collisions
5709    let p_body_auth_method_delete = auth_method_delete;
5710
5711    let uri_str = format!("{}/auth-method-delete", configuration.base_path);
5712    let mut req_builder = configuration.client.request(reqwest::Method::POST, &uri_str);
5713
5714    if let Some(ref user_agent) = configuration.user_agent {
5715        req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone());
5716    }
5717    req_builder = req_builder.json(&p_body_auth_method_delete);
5718
5719    let req = req_builder.build()?;
5720    let resp = configuration.client.execute(req).await?;
5721
5722    let status = resp.status();
5723    let content_type = resp
5724        .headers()
5725        .get("content-type")
5726        .and_then(|v| v.to_str().ok())
5727        .unwrap_or("application/octet-stream");
5728    let content_type = super::ContentType::from(content_type);
5729
5730    if !status.is_client_error() && !status.is_server_error() {
5731        let content = resp.text().await?;
5732        match content_type {
5733            ContentType::Json => serde_json::from_str(&content).map_err(Error::from),
5734            ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `models::AuthMethodDeleteOutput`"))),
5735            ContentType::Unsupported(unknown_type) => return Err(Error::from(serde_json::Error::custom(format!("Received `{unknown_type}` content type response that cannot be converted to `models::AuthMethodDeleteOutput`")))),
5736        }
5737    } else {
5738        let content = resp.text().await?;
5739        let entity: Option<AuthMethodDeleteError> = serde_json::from_str(&content).ok();
5740        Err(Error::ResponseError(ResponseContent { status, content, entity }))
5741    }
5742}
5743
5744pub async fn auth_method_get(configuration: &configuration::Configuration, auth_method_get: models::AuthMethodGet) -> Result<models::AuthMethod, Error<AuthMethodGetError>> {
5745    // add a prefix to parameters to efficiently prevent name collisions
5746    let p_body_auth_method_get = auth_method_get;
5747
5748    let uri_str = format!("{}/auth-method-get", configuration.base_path);
5749    let mut req_builder = configuration.client.request(reqwest::Method::POST, &uri_str);
5750
5751    if let Some(ref user_agent) = configuration.user_agent {
5752        req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone());
5753    }
5754    req_builder = req_builder.json(&p_body_auth_method_get);
5755
5756    let req = req_builder.build()?;
5757    let resp = configuration.client.execute(req).await?;
5758
5759    let status = resp.status();
5760    let content_type = resp
5761        .headers()
5762        .get("content-type")
5763        .and_then(|v| v.to_str().ok())
5764        .unwrap_or("application/octet-stream");
5765    let content_type = super::ContentType::from(content_type);
5766
5767    if !status.is_client_error() && !status.is_server_error() {
5768        let content = resp.text().await?;
5769        match content_type {
5770            ContentType::Json => serde_json::from_str(&content).map_err(Error::from),
5771            ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `models::AuthMethod`"))),
5772            ContentType::Unsupported(unknown_type) => return Err(Error::from(serde_json::Error::custom(format!("Received `{unknown_type}` content type response that cannot be converted to `models::AuthMethod`")))),
5773        }
5774    } else {
5775        let content = resp.text().await?;
5776        let entity: Option<AuthMethodGetError> = serde_json::from_str(&content).ok();
5777        Err(Error::ResponseError(ResponseContent { status, content, entity }))
5778    }
5779}
5780
5781pub async fn auth_method_list(configuration: &configuration::Configuration, auth_method_list: models::AuthMethodList) -> Result<models::ListAuthMethodsOutput, Error<AuthMethodListError>> {
5782    // add a prefix to parameters to efficiently prevent name collisions
5783    let p_body_auth_method_list = auth_method_list;
5784
5785    let uri_str = format!("{}/auth-method-list", configuration.base_path);
5786    let mut req_builder = configuration.client.request(reqwest::Method::POST, &uri_str);
5787
5788    if let Some(ref user_agent) = configuration.user_agent {
5789        req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone());
5790    }
5791    req_builder = req_builder.json(&p_body_auth_method_list);
5792
5793    let req = req_builder.build()?;
5794    let resp = configuration.client.execute(req).await?;
5795
5796    let status = resp.status();
5797    let content_type = resp
5798        .headers()
5799        .get("content-type")
5800        .and_then(|v| v.to_str().ok())
5801        .unwrap_or("application/octet-stream");
5802    let content_type = super::ContentType::from(content_type);
5803
5804    if !status.is_client_error() && !status.is_server_error() {
5805        let content = resp.text().await?;
5806        match content_type {
5807            ContentType::Json => serde_json::from_str(&content).map_err(Error::from),
5808            ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `models::ListAuthMethodsOutput`"))),
5809            ContentType::Unsupported(unknown_type) => return Err(Error::from(serde_json::Error::custom(format!("Received `{unknown_type}` content type response that cannot be converted to `models::ListAuthMethodsOutput`")))),
5810        }
5811    } else {
5812        let content = resp.text().await?;
5813        let entity: Option<AuthMethodListError> = serde_json::from_str(&content).ok();
5814        Err(Error::ResponseError(ResponseContent { status, content, entity }))
5815    }
5816}
5817
5818pub async fn auth_method_update_api_key(configuration: &configuration::Configuration, auth_method_update_api_key: models::AuthMethodUpdateApiKey) -> Result<models::AuthMethodUpdateOutput, Error<AuthMethodUpdateApiKeyError>> {
5819    // add a prefix to parameters to efficiently prevent name collisions
5820    let p_body_auth_method_update_api_key = auth_method_update_api_key;
5821
5822    let uri_str = format!("{}/auth-method-update-api-key", configuration.base_path);
5823    let mut req_builder = configuration.client.request(reqwest::Method::POST, &uri_str);
5824
5825    if let Some(ref user_agent) = configuration.user_agent {
5826        req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone());
5827    }
5828    req_builder = req_builder.json(&p_body_auth_method_update_api_key);
5829
5830    let req = req_builder.build()?;
5831    let resp = configuration.client.execute(req).await?;
5832
5833    let status = resp.status();
5834    let content_type = resp
5835        .headers()
5836        .get("content-type")
5837        .and_then(|v| v.to_str().ok())
5838        .unwrap_or("application/octet-stream");
5839    let content_type = super::ContentType::from(content_type);
5840
5841    if !status.is_client_error() && !status.is_server_error() {
5842        let content = resp.text().await?;
5843        match content_type {
5844            ContentType::Json => serde_json::from_str(&content).map_err(Error::from),
5845            ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `models::AuthMethodUpdateOutput`"))),
5846            ContentType::Unsupported(unknown_type) => return Err(Error::from(serde_json::Error::custom(format!("Received `{unknown_type}` content type response that cannot be converted to `models::AuthMethodUpdateOutput`")))),
5847        }
5848    } else {
5849        let content = resp.text().await?;
5850        let entity: Option<AuthMethodUpdateApiKeyError> = serde_json::from_str(&content).ok();
5851        Err(Error::ResponseError(ResponseContent { status, content, entity }))
5852    }
5853}
5854
5855pub async fn auth_method_update_aws_iam(configuration: &configuration::Configuration, auth_method_update_aws_iam: models::AuthMethodUpdateAwsIam) -> Result<models::AuthMethodUpdateOutput, Error<AuthMethodUpdateAwsIamError>> {
5856    // add a prefix to parameters to efficiently prevent name collisions
5857    let p_body_auth_method_update_aws_iam = auth_method_update_aws_iam;
5858
5859    let uri_str = format!("{}/auth-method-update-aws-iam", configuration.base_path);
5860    let mut req_builder = configuration.client.request(reqwest::Method::POST, &uri_str);
5861
5862    if let Some(ref user_agent) = configuration.user_agent {
5863        req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone());
5864    }
5865    req_builder = req_builder.json(&p_body_auth_method_update_aws_iam);
5866
5867    let req = req_builder.build()?;
5868    let resp = configuration.client.execute(req).await?;
5869
5870    let status = resp.status();
5871    let content_type = resp
5872        .headers()
5873        .get("content-type")
5874        .and_then(|v| v.to_str().ok())
5875        .unwrap_or("application/octet-stream");
5876    let content_type = super::ContentType::from(content_type);
5877
5878    if !status.is_client_error() && !status.is_server_error() {
5879        let content = resp.text().await?;
5880        match content_type {
5881            ContentType::Json => serde_json::from_str(&content).map_err(Error::from),
5882            ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `models::AuthMethodUpdateOutput`"))),
5883            ContentType::Unsupported(unknown_type) => return Err(Error::from(serde_json::Error::custom(format!("Received `{unknown_type}` content type response that cannot be converted to `models::AuthMethodUpdateOutput`")))),
5884        }
5885    } else {
5886        let content = resp.text().await?;
5887        let entity: Option<AuthMethodUpdateAwsIamError> = serde_json::from_str(&content).ok();
5888        Err(Error::ResponseError(ResponseContent { status, content, entity }))
5889    }
5890}
5891
5892pub async fn auth_method_update_azure_ad(configuration: &configuration::Configuration, auth_method_update_azure_ad: models::AuthMethodUpdateAzureAd) -> Result<models::AuthMethodUpdateOutput, Error<AuthMethodUpdateAzureAdError>> {
5893    // add a prefix to parameters to efficiently prevent name collisions
5894    let p_body_auth_method_update_azure_ad = auth_method_update_azure_ad;
5895
5896    let uri_str = format!("{}/auth-method-update-azure-ad", configuration.base_path);
5897    let mut req_builder = configuration.client.request(reqwest::Method::POST, &uri_str);
5898
5899    if let Some(ref user_agent) = configuration.user_agent {
5900        req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone());
5901    }
5902    req_builder = req_builder.json(&p_body_auth_method_update_azure_ad);
5903
5904    let req = req_builder.build()?;
5905    let resp = configuration.client.execute(req).await?;
5906
5907    let status = resp.status();
5908    let content_type = resp
5909        .headers()
5910        .get("content-type")
5911        .and_then(|v| v.to_str().ok())
5912        .unwrap_or("application/octet-stream");
5913    let content_type = super::ContentType::from(content_type);
5914
5915    if !status.is_client_error() && !status.is_server_error() {
5916        let content = resp.text().await?;
5917        match content_type {
5918            ContentType::Json => serde_json::from_str(&content).map_err(Error::from),
5919            ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `models::AuthMethodUpdateOutput`"))),
5920            ContentType::Unsupported(unknown_type) => return Err(Error::from(serde_json::Error::custom(format!("Received `{unknown_type}` content type response that cannot be converted to `models::AuthMethodUpdateOutput`")))),
5921        }
5922    } else {
5923        let content = resp.text().await?;
5924        let entity: Option<AuthMethodUpdateAzureAdError> = serde_json::from_str(&content).ok();
5925        Err(Error::ResponseError(ResponseContent { status, content, entity }))
5926    }
5927}
5928
5929pub async fn auth_method_update_cert(configuration: &configuration::Configuration, auth_method_update_cert: models::AuthMethodUpdateCert) -> Result<models::AuthMethodUpdateOutput, Error<AuthMethodUpdateCertError>> {
5930    // add a prefix to parameters to efficiently prevent name collisions
5931    let p_body_auth_method_update_cert = auth_method_update_cert;
5932
5933    let uri_str = format!("{}/auth-method-update-cert", configuration.base_path);
5934    let mut req_builder = configuration.client.request(reqwest::Method::POST, &uri_str);
5935
5936    if let Some(ref user_agent) = configuration.user_agent {
5937        req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone());
5938    }
5939    req_builder = req_builder.json(&p_body_auth_method_update_cert);
5940
5941    let req = req_builder.build()?;
5942    let resp = configuration.client.execute(req).await?;
5943
5944    let status = resp.status();
5945    let content_type = resp
5946        .headers()
5947        .get("content-type")
5948        .and_then(|v| v.to_str().ok())
5949        .unwrap_or("application/octet-stream");
5950    let content_type = super::ContentType::from(content_type);
5951
5952    if !status.is_client_error() && !status.is_server_error() {
5953        let content = resp.text().await?;
5954        match content_type {
5955            ContentType::Json => serde_json::from_str(&content).map_err(Error::from),
5956            ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `models::AuthMethodUpdateOutput`"))),
5957            ContentType::Unsupported(unknown_type) => return Err(Error::from(serde_json::Error::custom(format!("Received `{unknown_type}` content type response that cannot be converted to `models::AuthMethodUpdateOutput`")))),
5958        }
5959    } else {
5960        let content = resp.text().await?;
5961        let entity: Option<AuthMethodUpdateCertError> = serde_json::from_str(&content).ok();
5962        Err(Error::ResponseError(ResponseContent { status, content, entity }))
5963    }
5964}
5965
5966pub async fn auth_method_update_email(configuration: &configuration::Configuration, auth_method_update_email: models::AuthMethodUpdateEmail) -> Result<models::AuthMethodUpdateOutput, Error<AuthMethodUpdateEmailError>> {
5967    // add a prefix to parameters to efficiently prevent name collisions
5968    let p_body_auth_method_update_email = auth_method_update_email;
5969
5970    let uri_str = format!("{}/auth-method-update-email", configuration.base_path);
5971    let mut req_builder = configuration.client.request(reqwest::Method::POST, &uri_str);
5972
5973    if let Some(ref user_agent) = configuration.user_agent {
5974        req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone());
5975    }
5976    req_builder = req_builder.json(&p_body_auth_method_update_email);
5977
5978    let req = req_builder.build()?;
5979    let resp = configuration.client.execute(req).await?;
5980
5981    let status = resp.status();
5982    let content_type = resp
5983        .headers()
5984        .get("content-type")
5985        .and_then(|v| v.to_str().ok())
5986        .unwrap_or("application/octet-stream");
5987    let content_type = super::ContentType::from(content_type);
5988
5989    if !status.is_client_error() && !status.is_server_error() {
5990        let content = resp.text().await?;
5991        match content_type {
5992            ContentType::Json => serde_json::from_str(&content).map_err(Error::from),
5993            ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `models::AuthMethodUpdateOutput`"))),
5994            ContentType::Unsupported(unknown_type) => return Err(Error::from(serde_json::Error::custom(format!("Received `{unknown_type}` content type response that cannot be converted to `models::AuthMethodUpdateOutput`")))),
5995        }
5996    } else {
5997        let content = resp.text().await?;
5998        let entity: Option<AuthMethodUpdateEmailError> = serde_json::from_str(&content).ok();
5999        Err(Error::ResponseError(ResponseContent { status, content, entity }))
6000    }
6001}
6002
6003pub async fn auth_method_update_gcp(configuration: &configuration::Configuration, auth_method_update_gcp: models::AuthMethodUpdateGcp) -> Result<models::AuthMethodUpdateOutput, Error<AuthMethodUpdateGcpError>> {
6004    // add a prefix to parameters to efficiently prevent name collisions
6005    let p_body_auth_method_update_gcp = auth_method_update_gcp;
6006
6007    let uri_str = format!("{}/auth-method-update-gcp", configuration.base_path);
6008    let mut req_builder = configuration.client.request(reqwest::Method::POST, &uri_str);
6009
6010    if let Some(ref user_agent) = configuration.user_agent {
6011        req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone());
6012    }
6013    req_builder = req_builder.json(&p_body_auth_method_update_gcp);
6014
6015    let req = req_builder.build()?;
6016    let resp = configuration.client.execute(req).await?;
6017
6018    let status = resp.status();
6019    let content_type = resp
6020        .headers()
6021        .get("content-type")
6022        .and_then(|v| v.to_str().ok())
6023        .unwrap_or("application/octet-stream");
6024    let content_type = super::ContentType::from(content_type);
6025
6026    if !status.is_client_error() && !status.is_server_error() {
6027        let content = resp.text().await?;
6028        match content_type {
6029            ContentType::Json => serde_json::from_str(&content).map_err(Error::from),
6030            ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `models::AuthMethodUpdateOutput`"))),
6031            ContentType::Unsupported(unknown_type) => return Err(Error::from(serde_json::Error::custom(format!("Received `{unknown_type}` content type response that cannot be converted to `models::AuthMethodUpdateOutput`")))),
6032        }
6033    } else {
6034        let content = resp.text().await?;
6035        let entity: Option<AuthMethodUpdateGcpError> = serde_json::from_str(&content).ok();
6036        Err(Error::ResponseError(ResponseContent { status, content, entity }))
6037    }
6038}
6039
6040pub async fn auth_method_update_k8s(configuration: &configuration::Configuration, auth_method_update_k8s: models::AuthMethodUpdateK8s) -> Result<models::AuthMethodUpdateOutput, Error<AuthMethodUpdateK8sError>> {
6041    // add a prefix to parameters to efficiently prevent name collisions
6042    let p_body_auth_method_update_k8s = auth_method_update_k8s;
6043
6044    let uri_str = format!("{}/auth-method-update-k8s", configuration.base_path);
6045    let mut req_builder = configuration.client.request(reqwest::Method::POST, &uri_str);
6046
6047    if let Some(ref user_agent) = configuration.user_agent {
6048        req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone());
6049    }
6050    req_builder = req_builder.json(&p_body_auth_method_update_k8s);
6051
6052    let req = req_builder.build()?;
6053    let resp = configuration.client.execute(req).await?;
6054
6055    let status = resp.status();
6056    let content_type = resp
6057        .headers()
6058        .get("content-type")
6059        .and_then(|v| v.to_str().ok())
6060        .unwrap_or("application/octet-stream");
6061    let content_type = super::ContentType::from(content_type);
6062
6063    if !status.is_client_error() && !status.is_server_error() {
6064        let content = resp.text().await?;
6065        match content_type {
6066            ContentType::Json => serde_json::from_str(&content).map_err(Error::from),
6067            ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `models::AuthMethodUpdateOutput`"))),
6068            ContentType::Unsupported(unknown_type) => return Err(Error::from(serde_json::Error::custom(format!("Received `{unknown_type}` content type response that cannot be converted to `models::AuthMethodUpdateOutput`")))),
6069        }
6070    } else {
6071        let content = resp.text().await?;
6072        let entity: Option<AuthMethodUpdateK8sError> = serde_json::from_str(&content).ok();
6073        Err(Error::ResponseError(ResponseContent { status, content, entity }))
6074    }
6075}
6076
6077pub async fn auth_method_update_kerberos(configuration: &configuration::Configuration, auth_method_update_kerberos: models::AuthMethodUpdateKerberos) -> Result<models::AuthMethodCreateOutput, Error<AuthMethodUpdateKerberosError>> {
6078    // add a prefix to parameters to efficiently prevent name collisions
6079    let p_body_auth_method_update_kerberos = auth_method_update_kerberos;
6080
6081    let uri_str = format!("{}/auth-method-update-kerberos", configuration.base_path);
6082    let mut req_builder = configuration.client.request(reqwest::Method::POST, &uri_str);
6083
6084    if let Some(ref user_agent) = configuration.user_agent {
6085        req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone());
6086    }
6087    req_builder = req_builder.json(&p_body_auth_method_update_kerberos);
6088
6089    let req = req_builder.build()?;
6090    let resp = configuration.client.execute(req).await?;
6091
6092    let status = resp.status();
6093    let content_type = resp
6094        .headers()
6095        .get("content-type")
6096        .and_then(|v| v.to_str().ok())
6097        .unwrap_or("application/octet-stream");
6098    let content_type = super::ContentType::from(content_type);
6099
6100    if !status.is_client_error() && !status.is_server_error() {
6101        let content = resp.text().await?;
6102        match content_type {
6103            ContentType::Json => serde_json::from_str(&content).map_err(Error::from),
6104            ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `models::AuthMethodCreateOutput`"))),
6105            ContentType::Unsupported(unknown_type) => return Err(Error::from(serde_json::Error::custom(format!("Received `{unknown_type}` content type response that cannot be converted to `models::AuthMethodCreateOutput`")))),
6106        }
6107    } else {
6108        let content = resp.text().await?;
6109        let entity: Option<AuthMethodUpdateKerberosError> = serde_json::from_str(&content).ok();
6110        Err(Error::ResponseError(ResponseContent { status, content, entity }))
6111    }
6112}
6113
6114pub async fn auth_method_update_ldap(configuration: &configuration::Configuration, auth_method_update_ldap: models::AuthMethodUpdateLdap) -> Result<models::AuthMethodUpdateOutput, Error<AuthMethodUpdateLdapError>> {
6115    // add a prefix to parameters to efficiently prevent name collisions
6116    let p_body_auth_method_update_ldap = auth_method_update_ldap;
6117
6118    let uri_str = format!("{}/auth-method-update-ldap", configuration.base_path);
6119    let mut req_builder = configuration.client.request(reqwest::Method::POST, &uri_str);
6120
6121    if let Some(ref user_agent) = configuration.user_agent {
6122        req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone());
6123    }
6124    req_builder = req_builder.json(&p_body_auth_method_update_ldap);
6125
6126    let req = req_builder.build()?;
6127    let resp = configuration.client.execute(req).await?;
6128
6129    let status = resp.status();
6130    let content_type = resp
6131        .headers()
6132        .get("content-type")
6133        .and_then(|v| v.to_str().ok())
6134        .unwrap_or("application/octet-stream");
6135    let content_type = super::ContentType::from(content_type);
6136
6137    if !status.is_client_error() && !status.is_server_error() {
6138        let content = resp.text().await?;
6139        match content_type {
6140            ContentType::Json => serde_json::from_str(&content).map_err(Error::from),
6141            ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `models::AuthMethodUpdateOutput`"))),
6142            ContentType::Unsupported(unknown_type) => return Err(Error::from(serde_json::Error::custom(format!("Received `{unknown_type}` content type response that cannot be converted to `models::AuthMethodUpdateOutput`")))),
6143        }
6144    } else {
6145        let content = resp.text().await?;
6146        let entity: Option<AuthMethodUpdateLdapError> = serde_json::from_str(&content).ok();
6147        Err(Error::ResponseError(ResponseContent { status, content, entity }))
6148    }
6149}
6150
6151pub async fn auth_method_update_oauth2(configuration: &configuration::Configuration, auth_method_update_oauth2: models::AuthMethodUpdateOauth2) -> Result<models::AuthMethodUpdateOutput, Error<AuthMethodUpdateOauth2Error>> {
6152    // add a prefix to parameters to efficiently prevent name collisions
6153    let p_body_auth_method_update_oauth2 = auth_method_update_oauth2;
6154
6155    let uri_str = format!("{}/auth-method-update-oauth2", configuration.base_path);
6156    let mut req_builder = configuration.client.request(reqwest::Method::POST, &uri_str);
6157
6158    if let Some(ref user_agent) = configuration.user_agent {
6159        req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone());
6160    }
6161    req_builder = req_builder.json(&p_body_auth_method_update_oauth2);
6162
6163    let req = req_builder.build()?;
6164    let resp = configuration.client.execute(req).await?;
6165
6166    let status = resp.status();
6167    let content_type = resp
6168        .headers()
6169        .get("content-type")
6170        .and_then(|v| v.to_str().ok())
6171        .unwrap_or("application/octet-stream");
6172    let content_type = super::ContentType::from(content_type);
6173
6174    if !status.is_client_error() && !status.is_server_error() {
6175        let content = resp.text().await?;
6176        match content_type {
6177            ContentType::Json => serde_json::from_str(&content).map_err(Error::from),
6178            ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `models::AuthMethodUpdateOutput`"))),
6179            ContentType::Unsupported(unknown_type) => return Err(Error::from(serde_json::Error::custom(format!("Received `{unknown_type}` content type response that cannot be converted to `models::AuthMethodUpdateOutput`")))),
6180        }
6181    } else {
6182        let content = resp.text().await?;
6183        let entity: Option<AuthMethodUpdateOauth2Error> = serde_json::from_str(&content).ok();
6184        Err(Error::ResponseError(ResponseContent { status, content, entity }))
6185    }
6186}
6187
6188pub async fn auth_method_update_oci(configuration: &configuration::Configuration, auth_method_update_oci: models::AuthMethodUpdateOci) -> Result<models::AuthMethodUpdateOutput, Error<AuthMethodUpdateOciError>> {
6189    // add a prefix to parameters to efficiently prevent name collisions
6190    let p_body_auth_method_update_oci = auth_method_update_oci;
6191
6192    let uri_str = format!("{}/auth-method-update-oci", configuration.base_path);
6193    let mut req_builder = configuration.client.request(reqwest::Method::POST, &uri_str);
6194
6195    if let Some(ref user_agent) = configuration.user_agent {
6196        req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone());
6197    }
6198    req_builder = req_builder.json(&p_body_auth_method_update_oci);
6199
6200    let req = req_builder.build()?;
6201    let resp = configuration.client.execute(req).await?;
6202
6203    let status = resp.status();
6204    let content_type = resp
6205        .headers()
6206        .get("content-type")
6207        .and_then(|v| v.to_str().ok())
6208        .unwrap_or("application/octet-stream");
6209    let content_type = super::ContentType::from(content_type);
6210
6211    if !status.is_client_error() && !status.is_server_error() {
6212        let content = resp.text().await?;
6213        match content_type {
6214            ContentType::Json => serde_json::from_str(&content).map_err(Error::from),
6215            ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `models::AuthMethodUpdateOutput`"))),
6216            ContentType::Unsupported(unknown_type) => return Err(Error::from(serde_json::Error::custom(format!("Received `{unknown_type}` content type response that cannot be converted to `models::AuthMethodUpdateOutput`")))),
6217        }
6218    } else {
6219        let content = resp.text().await?;
6220        let entity: Option<AuthMethodUpdateOciError> = serde_json::from_str(&content).ok();
6221        Err(Error::ResponseError(ResponseContent { status, content, entity }))
6222    }
6223}
6224
6225pub async fn auth_method_update_oidc(configuration: &configuration::Configuration, auth_method_update_oidc: models::AuthMethodUpdateOidc) -> Result<models::AuthMethodUpdateOutput, Error<AuthMethodUpdateOidcError>> {
6226    // add a prefix to parameters to efficiently prevent name collisions
6227    let p_body_auth_method_update_oidc = auth_method_update_oidc;
6228
6229    let uri_str = format!("{}/auth-method-update-oidc", configuration.base_path);
6230    let mut req_builder = configuration.client.request(reqwest::Method::POST, &uri_str);
6231
6232    if let Some(ref user_agent) = configuration.user_agent {
6233        req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone());
6234    }
6235    req_builder = req_builder.json(&p_body_auth_method_update_oidc);
6236
6237    let req = req_builder.build()?;
6238    let resp = configuration.client.execute(req).await?;
6239
6240    let status = resp.status();
6241    let content_type = resp
6242        .headers()
6243        .get("content-type")
6244        .and_then(|v| v.to_str().ok())
6245        .unwrap_or("application/octet-stream");
6246    let content_type = super::ContentType::from(content_type);
6247
6248    if !status.is_client_error() && !status.is_server_error() {
6249        let content = resp.text().await?;
6250        match content_type {
6251            ContentType::Json => serde_json::from_str(&content).map_err(Error::from),
6252            ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `models::AuthMethodUpdateOutput`"))),
6253            ContentType::Unsupported(unknown_type) => return Err(Error::from(serde_json::Error::custom(format!("Received `{unknown_type}` content type response that cannot be converted to `models::AuthMethodUpdateOutput`")))),
6254        }
6255    } else {
6256        let content = resp.text().await?;
6257        let entity: Option<AuthMethodUpdateOidcError> = serde_json::from_str(&content).ok();
6258        Err(Error::ResponseError(ResponseContent { status, content, entity }))
6259    }
6260}
6261
6262pub async fn auth_method_update_saml(configuration: &configuration::Configuration, auth_method_update_saml: models::AuthMethodUpdateSaml) -> Result<models::AuthMethodUpdateOutput, Error<AuthMethodUpdateSamlError>> {
6263    // add a prefix to parameters to efficiently prevent name collisions
6264    let p_body_auth_method_update_saml = auth_method_update_saml;
6265
6266    let uri_str = format!("{}/auth-method-update-saml", configuration.base_path);
6267    let mut req_builder = configuration.client.request(reqwest::Method::POST, &uri_str);
6268
6269    if let Some(ref user_agent) = configuration.user_agent {
6270        req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone());
6271    }
6272    req_builder = req_builder.json(&p_body_auth_method_update_saml);
6273
6274    let req = req_builder.build()?;
6275    let resp = configuration.client.execute(req).await?;
6276
6277    let status = resp.status();
6278    let content_type = resp
6279        .headers()
6280        .get("content-type")
6281        .and_then(|v| v.to_str().ok())
6282        .unwrap_or("application/octet-stream");
6283    let content_type = super::ContentType::from(content_type);
6284
6285    if !status.is_client_error() && !status.is_server_error() {
6286        let content = resp.text().await?;
6287        match content_type {
6288            ContentType::Json => serde_json::from_str(&content).map_err(Error::from),
6289            ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `models::AuthMethodUpdateOutput`"))),
6290            ContentType::Unsupported(unknown_type) => return Err(Error::from(serde_json::Error::custom(format!("Received `{unknown_type}` content type response that cannot be converted to `models::AuthMethodUpdateOutput`")))),
6291        }
6292    } else {
6293        let content = resp.text().await?;
6294        let entity: Option<AuthMethodUpdateSamlError> = serde_json::from_str(&content).ok();
6295        Err(Error::ResponseError(ResponseContent { status, content, entity }))
6296    }
6297}
6298
6299pub async fn auth_method_update_universal_identity(configuration: &configuration::Configuration, auth_method_update_universal_identity: models::AuthMethodUpdateUniversalIdentity) -> Result<models::AuthMethodUpdateOutput, Error<AuthMethodUpdateUniversalIdentityError>> {
6300    // add a prefix to parameters to efficiently prevent name collisions
6301    let p_body_auth_method_update_universal_identity = auth_method_update_universal_identity;
6302
6303    let uri_str = format!("{}/auth-method-update-universal-identity", configuration.base_path);
6304    let mut req_builder = configuration.client.request(reqwest::Method::POST, &uri_str);
6305
6306    if let Some(ref user_agent) = configuration.user_agent {
6307        req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone());
6308    }
6309    req_builder = req_builder.json(&p_body_auth_method_update_universal_identity);
6310
6311    let req = req_builder.build()?;
6312    let resp = configuration.client.execute(req).await?;
6313
6314    let status = resp.status();
6315    let content_type = resp
6316        .headers()
6317        .get("content-type")
6318        .and_then(|v| v.to_str().ok())
6319        .unwrap_or("application/octet-stream");
6320    let content_type = super::ContentType::from(content_type);
6321
6322    if !status.is_client_error() && !status.is_server_error() {
6323        let content = resp.text().await?;
6324        match content_type {
6325            ContentType::Json => serde_json::from_str(&content).map_err(Error::from),
6326            ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `models::AuthMethodUpdateOutput`"))),
6327            ContentType::Unsupported(unknown_type) => return Err(Error::from(serde_json::Error::custom(format!("Received `{unknown_type}` content type response that cannot be converted to `models::AuthMethodUpdateOutput`")))),
6328        }
6329    } else {
6330        let content = resp.text().await?;
6331        let entity: Option<AuthMethodUpdateUniversalIdentityError> = serde_json::from_str(&content).ok();
6332        Err(Error::ResponseError(ResponseContent { status, content, entity }))
6333    }
6334}
6335
6336pub async fn calc_password_security_info(configuration: &configuration::Configuration, calc_password_security_info: models::CalcPasswordSecurityInfo) -> Result<models::PasswordSecurityInfo, Error<CalcPasswordSecurityInfoError>> {
6337    // add a prefix to parameters to efficiently prevent name collisions
6338    let p_body_calc_password_security_info = calc_password_security_info;
6339
6340    let uri_str = format!("{}/calc-password-security-info", configuration.base_path);
6341    let mut req_builder = configuration.client.request(reqwest::Method::POST, &uri_str);
6342
6343    if let Some(ref user_agent) = configuration.user_agent {
6344        req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone());
6345    }
6346    req_builder = req_builder.json(&p_body_calc_password_security_info);
6347
6348    let req = req_builder.build()?;
6349    let resp = configuration.client.execute(req).await?;
6350
6351    let status = resp.status();
6352    let content_type = resp
6353        .headers()
6354        .get("content-type")
6355        .and_then(|v| v.to_str().ok())
6356        .unwrap_or("application/octet-stream");
6357    let content_type = super::ContentType::from(content_type);
6358
6359    if !status.is_client_error() && !status.is_server_error() {
6360        let content = resp.text().await?;
6361        match content_type {
6362            ContentType::Json => serde_json::from_str(&content).map_err(Error::from),
6363            ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `models::PasswordSecurityInfo`"))),
6364            ContentType::Unsupported(unknown_type) => return Err(Error::from(serde_json::Error::custom(format!("Received `{unknown_type}` content type response that cannot be converted to `models::PasswordSecurityInfo`")))),
6365        }
6366    } else {
6367        let content = resp.text().await?;
6368        let entity: Option<CalcPasswordSecurityInfoError> = serde_json::from_str(&content).ok();
6369        Err(Error::ResponseError(ResponseContent { status, content, entity }))
6370    }
6371}
6372
6373pub async fn certificate_discovery(configuration: &configuration::Configuration, certificate_discovery: models::CertificateDiscovery) -> Result<models::CertificateDiscoveryOutput, Error<CertificateDiscoveryError>> {
6374    // add a prefix to parameters to efficiently prevent name collisions
6375    let p_body_certificate_discovery = certificate_discovery;
6376
6377    let uri_str = format!("{}/certificate-discovery", configuration.base_path);
6378    let mut req_builder = configuration.client.request(reqwest::Method::POST, &uri_str);
6379
6380    if let Some(ref user_agent) = configuration.user_agent {
6381        req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone());
6382    }
6383    req_builder = req_builder.json(&p_body_certificate_discovery);
6384
6385    let req = req_builder.build()?;
6386    let resp = configuration.client.execute(req).await?;
6387
6388    let status = resp.status();
6389    let content_type = resp
6390        .headers()
6391        .get("content-type")
6392        .and_then(|v| v.to_str().ok())
6393        .unwrap_or("application/octet-stream");
6394    let content_type = super::ContentType::from(content_type);
6395
6396    if !status.is_client_error() && !status.is_server_error() {
6397        let content = resp.text().await?;
6398        match content_type {
6399            ContentType::Json => serde_json::from_str(&content).map_err(Error::from),
6400            ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `models::CertificateDiscoveryOutput`"))),
6401            ContentType::Unsupported(unknown_type) => return Err(Error::from(serde_json::Error::custom(format!("Received `{unknown_type}` content type response that cannot be converted to `models::CertificateDiscoveryOutput`")))),
6402        }
6403    } else {
6404        let content = resp.text().await?;
6405        let entity: Option<CertificateDiscoveryError> = serde_json::from_str(&content).ok();
6406        Err(Error::ResponseError(ResponseContent { status, content, entity }))
6407    }
6408}
6409
6410pub async fn change_admin_account_password(configuration: &configuration::Configuration, change_admin_account_password: models::ChangeAdminAccountPassword) -> Result<serde_json::Value, Error<ChangeAdminAccountPasswordError>> {
6411    // add a prefix to parameters to efficiently prevent name collisions
6412    let p_body_change_admin_account_password = change_admin_account_password;
6413
6414    let uri_str = format!("{}/change-admin-account-password", configuration.base_path);
6415    let mut req_builder = configuration.client.request(reqwest::Method::POST, &uri_str);
6416
6417    if let Some(ref user_agent) = configuration.user_agent {
6418        req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone());
6419    }
6420    req_builder = req_builder.json(&p_body_change_admin_account_password);
6421
6422    let req = req_builder.build()?;
6423    let resp = configuration.client.execute(req).await?;
6424
6425    let status = resp.status();
6426    let content_type = resp
6427        .headers()
6428        .get("content-type")
6429        .and_then(|v| v.to_str().ok())
6430        .unwrap_or("application/octet-stream");
6431    let content_type = super::ContentType::from(content_type);
6432
6433    if !status.is_client_error() && !status.is_server_error() {
6434        let content = resp.text().await?;
6435        match content_type {
6436            ContentType::Json => serde_json::from_str(&content).map_err(Error::from),
6437            ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `serde_json::Value`"))),
6438            ContentType::Unsupported(unknown_type) => return Err(Error::from(serde_json::Error::custom(format!("Received `{unknown_type}` content type response that cannot be converted to `serde_json::Value`")))),
6439        }
6440    } else {
6441        let content = resp.text().await?;
6442        let entity: Option<ChangeAdminAccountPasswordError> = serde_json::from_str(&content).ok();
6443        Err(Error::ResponseError(ResponseContent { status, content, entity }))
6444    }
6445}
6446
6447pub async fn configure(configuration: &configuration::Configuration, configure: models::Configure) -> Result<models::ConfigureOutput, Error<ConfigureError>> {
6448    // add a prefix to parameters to efficiently prevent name collisions
6449    let p_body_configure = configure;
6450
6451    let uri_str = format!("{}/configure", configuration.base_path);
6452    let mut req_builder = configuration.client.request(reqwest::Method::POST, &uri_str);
6453
6454    if let Some(ref user_agent) = configuration.user_agent {
6455        req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone());
6456    }
6457    req_builder = req_builder.json(&p_body_configure);
6458
6459    let req = req_builder.build()?;
6460    let resp = configuration.client.execute(req).await?;
6461
6462    let status = resp.status();
6463    let content_type = resp
6464        .headers()
6465        .get("content-type")
6466        .and_then(|v| v.to_str().ok())
6467        .unwrap_or("application/octet-stream");
6468    let content_type = super::ContentType::from(content_type);
6469
6470    if !status.is_client_error() && !status.is_server_error() {
6471        let content = resp.text().await?;
6472        match content_type {
6473            ContentType::Json => serde_json::from_str(&content).map_err(Error::from),
6474            ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `models::ConfigureOutput`"))),
6475            ContentType::Unsupported(unknown_type) => return Err(Error::from(serde_json::Error::custom(format!("Received `{unknown_type}` content type response that cannot be converted to `models::ConfigureOutput`")))),
6476        }
6477    } else {
6478        let content = resp.text().await?;
6479        let entity: Option<ConfigureError> = serde_json::from_str(&content).ok();
6480        Err(Error::ResponseError(ResponseContent { status, content, entity }))
6481    }
6482}
6483
6484pub async fn connect(configuration: &configuration::Configuration, connect: models::Connect) -> Result<serde_json::Value, Error<ConnectError>> {
6485    // add a prefix to parameters to efficiently prevent name collisions
6486    let p_body_connect = connect;
6487
6488    let uri_str = format!("{}/connect", configuration.base_path);
6489    let mut req_builder = configuration.client.request(reqwest::Method::POST, &uri_str);
6490
6491    if let Some(ref user_agent) = configuration.user_agent {
6492        req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone());
6493    }
6494    req_builder = req_builder.json(&p_body_connect);
6495
6496    let req = req_builder.build()?;
6497    let resp = configuration.client.execute(req).await?;
6498
6499    let status = resp.status();
6500    let content_type = resp
6501        .headers()
6502        .get("content-type")
6503        .and_then(|v| v.to_str().ok())
6504        .unwrap_or("application/octet-stream");
6505    let content_type = super::ContentType::from(content_type);
6506
6507    if !status.is_client_error() && !status.is_server_error() {
6508        let content = resp.text().await?;
6509        match content_type {
6510            ContentType::Json => serde_json::from_str(&content).map_err(Error::from),
6511            ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `serde_json::Value`"))),
6512            ContentType::Unsupported(unknown_type) => return Err(Error::from(serde_json::Error::custom(format!("Received `{unknown_type}` content type response that cannot be converted to `serde_json::Value`")))),
6513        }
6514    } else {
6515        let content = resp.text().await?;
6516        let entity: Option<ConnectError> = serde_json::from_str(&content).ok();
6517        Err(Error::ResponseError(ResponseContent { status, content, entity }))
6518    }
6519}
6520
6521pub async fn create_artifactory_target(configuration: &configuration::Configuration, create_artifactory_target: models::CreateArtifactoryTarget) -> Result<models::CreateArtifactoryTargetOutput, Error<CreateArtifactoryTargetError>> {
6522    // add a prefix to parameters to efficiently prevent name collisions
6523    let p_body_create_artifactory_target = create_artifactory_target;
6524
6525    let uri_str = format!("{}/create-artifactory-target", configuration.base_path);
6526    let mut req_builder = configuration.client.request(reqwest::Method::POST, &uri_str);
6527
6528    if let Some(ref user_agent) = configuration.user_agent {
6529        req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone());
6530    }
6531    req_builder = req_builder.json(&p_body_create_artifactory_target);
6532
6533    let req = req_builder.build()?;
6534    let resp = configuration.client.execute(req).await?;
6535
6536    let status = resp.status();
6537    let content_type = resp
6538        .headers()
6539        .get("content-type")
6540        .and_then(|v| v.to_str().ok())
6541        .unwrap_or("application/octet-stream");
6542    let content_type = super::ContentType::from(content_type);
6543
6544    if !status.is_client_error() && !status.is_server_error() {
6545        let content = resp.text().await?;
6546        match content_type {
6547            ContentType::Json => serde_json::from_str(&content).map_err(Error::from),
6548            ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `models::CreateArtifactoryTargetOutput`"))),
6549            ContentType::Unsupported(unknown_type) => return Err(Error::from(serde_json::Error::custom(format!("Received `{unknown_type}` content type response that cannot be converted to `models::CreateArtifactoryTargetOutput`")))),
6550        }
6551    } else {
6552        let content = resp.text().await?;
6553        let entity: Option<CreateArtifactoryTargetError> = serde_json::from_str(&content).ok();
6554        Err(Error::ResponseError(ResponseContent { status, content, entity }))
6555    }
6556}
6557
6558pub async fn create_auth_method(configuration: &configuration::Configuration, create_auth_method: models::CreateAuthMethod) -> Result<models::CreateAuthMethodOutput, Error<CreateAuthMethodError>> {
6559    // add a prefix to parameters to efficiently prevent name collisions
6560    let p_body_create_auth_method = create_auth_method;
6561
6562    let uri_str = format!("{}/create-auth-method", configuration.base_path);
6563    let mut req_builder = configuration.client.request(reqwest::Method::POST, &uri_str);
6564
6565    if let Some(ref user_agent) = configuration.user_agent {
6566        req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone());
6567    }
6568    req_builder = req_builder.json(&p_body_create_auth_method);
6569
6570    let req = req_builder.build()?;
6571    let resp = configuration.client.execute(req).await?;
6572
6573    let status = resp.status();
6574    let content_type = resp
6575        .headers()
6576        .get("content-type")
6577        .and_then(|v| v.to_str().ok())
6578        .unwrap_or("application/octet-stream");
6579    let content_type = super::ContentType::from(content_type);
6580
6581    if !status.is_client_error() && !status.is_server_error() {
6582        let content = resp.text().await?;
6583        match content_type {
6584            ContentType::Json => serde_json::from_str(&content).map_err(Error::from),
6585            ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `models::CreateAuthMethodOutput`"))),
6586            ContentType::Unsupported(unknown_type) => return Err(Error::from(serde_json::Error::custom(format!("Received `{unknown_type}` content type response that cannot be converted to `models::CreateAuthMethodOutput`")))),
6587        }
6588    } else {
6589        let content = resp.text().await?;
6590        let entity: Option<CreateAuthMethodError> = serde_json::from_str(&content).ok();
6591        Err(Error::ResponseError(ResponseContent { status, content, entity }))
6592    }
6593}
6594
6595pub async fn create_auth_method_awsiam(configuration: &configuration::Configuration, create_auth_method_awsiam: models::CreateAuthMethodAwsiam) -> Result<models::CreateAuthMethodAwsiamOutput, Error<CreateAuthMethodAwsiamError>> {
6596    // add a prefix to parameters to efficiently prevent name collisions
6597    let p_body_create_auth_method_awsiam = create_auth_method_awsiam;
6598
6599    let uri_str = format!("{}/create-auth-method-aws-iam", configuration.base_path);
6600    let mut req_builder = configuration.client.request(reqwest::Method::POST, &uri_str);
6601
6602    if let Some(ref user_agent) = configuration.user_agent {
6603        req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone());
6604    }
6605    req_builder = req_builder.json(&p_body_create_auth_method_awsiam);
6606
6607    let req = req_builder.build()?;
6608    let resp = configuration.client.execute(req).await?;
6609
6610    let status = resp.status();
6611    let content_type = resp
6612        .headers()
6613        .get("content-type")
6614        .and_then(|v| v.to_str().ok())
6615        .unwrap_or("application/octet-stream");
6616    let content_type = super::ContentType::from(content_type);
6617
6618    if !status.is_client_error() && !status.is_server_error() {
6619        let content = resp.text().await?;
6620        match content_type {
6621            ContentType::Json => serde_json::from_str(&content).map_err(Error::from),
6622            ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `models::CreateAuthMethodAwsiamOutput`"))),
6623            ContentType::Unsupported(unknown_type) => return Err(Error::from(serde_json::Error::custom(format!("Received `{unknown_type}` content type response that cannot be converted to `models::CreateAuthMethodAwsiamOutput`")))),
6624        }
6625    } else {
6626        let content = resp.text().await?;
6627        let entity: Option<CreateAuthMethodAwsiamError> = serde_json::from_str(&content).ok();
6628        Err(Error::ResponseError(ResponseContent { status, content, entity }))
6629    }
6630}
6631
6632pub async fn create_auth_method_azure_ad(configuration: &configuration::Configuration, create_auth_method_azure_ad: models::CreateAuthMethodAzureAd) -> Result<models::CreateAuthMethodAzureAdOutput, Error<CreateAuthMethodAzureAdError>> {
6633    // add a prefix to parameters to efficiently prevent name collisions
6634    let p_body_create_auth_method_azure_ad = create_auth_method_azure_ad;
6635
6636    let uri_str = format!("{}/create-auth-method-azure-ad", configuration.base_path);
6637    let mut req_builder = configuration.client.request(reqwest::Method::POST, &uri_str);
6638
6639    if let Some(ref user_agent) = configuration.user_agent {
6640        req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone());
6641    }
6642    req_builder = req_builder.json(&p_body_create_auth_method_azure_ad);
6643
6644    let req = req_builder.build()?;
6645    let resp = configuration.client.execute(req).await?;
6646
6647    let status = resp.status();
6648    let content_type = resp
6649        .headers()
6650        .get("content-type")
6651        .and_then(|v| v.to_str().ok())
6652        .unwrap_or("application/octet-stream");
6653    let content_type = super::ContentType::from(content_type);
6654
6655    if !status.is_client_error() && !status.is_server_error() {
6656        let content = resp.text().await?;
6657        match content_type {
6658            ContentType::Json => serde_json::from_str(&content).map_err(Error::from),
6659            ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `models::CreateAuthMethodAzureAdOutput`"))),
6660            ContentType::Unsupported(unknown_type) => return Err(Error::from(serde_json::Error::custom(format!("Received `{unknown_type}` content type response that cannot be converted to `models::CreateAuthMethodAzureAdOutput`")))),
6661        }
6662    } else {
6663        let content = resp.text().await?;
6664        let entity: Option<CreateAuthMethodAzureAdError> = serde_json::from_str(&content).ok();
6665        Err(Error::ResponseError(ResponseContent { status, content, entity }))
6666    }
6667}
6668
6669pub async fn create_auth_method_cert(configuration: &configuration::Configuration, create_auth_method_cert: models::CreateAuthMethodCert) -> Result<models::CreateAuthMethodCertOutput, Error<CreateAuthMethodCertError>> {
6670    // add a prefix to parameters to efficiently prevent name collisions
6671    let p_body_create_auth_method_cert = create_auth_method_cert;
6672
6673    let uri_str = format!("{}/create-auth-method-cert", configuration.base_path);
6674    let mut req_builder = configuration.client.request(reqwest::Method::POST, &uri_str);
6675
6676    if let Some(ref user_agent) = configuration.user_agent {
6677        req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone());
6678    }
6679    req_builder = req_builder.json(&p_body_create_auth_method_cert);
6680
6681    let req = req_builder.build()?;
6682    let resp = configuration.client.execute(req).await?;
6683
6684    let status = resp.status();
6685    let content_type = resp
6686        .headers()
6687        .get("content-type")
6688        .and_then(|v| v.to_str().ok())
6689        .unwrap_or("application/octet-stream");
6690    let content_type = super::ContentType::from(content_type);
6691
6692    if !status.is_client_error() && !status.is_server_error() {
6693        let content = resp.text().await?;
6694        match content_type {
6695            ContentType::Json => serde_json::from_str(&content).map_err(Error::from),
6696            ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `models::CreateAuthMethodCertOutput`"))),
6697            ContentType::Unsupported(unknown_type) => return Err(Error::from(serde_json::Error::custom(format!("Received `{unknown_type}` content type response that cannot be converted to `models::CreateAuthMethodCertOutput`")))),
6698        }
6699    } else {
6700        let content = resp.text().await?;
6701        let entity: Option<CreateAuthMethodCertError> = serde_json::from_str(&content).ok();
6702        Err(Error::ResponseError(ResponseContent { status, content, entity }))
6703    }
6704}
6705
6706pub async fn create_auth_method_email(configuration: &configuration::Configuration, create_auth_method_email: models::CreateAuthMethodEmail) -> Result<models::CreateAuthMethodEmailOutput, Error<CreateAuthMethodEmailError>> {
6707    // add a prefix to parameters to efficiently prevent name collisions
6708    let p_body_create_auth_method_email = create_auth_method_email;
6709
6710    let uri_str = format!("{}/create-auth-method-email", configuration.base_path);
6711    let mut req_builder = configuration.client.request(reqwest::Method::POST, &uri_str);
6712
6713    if let Some(ref user_agent) = configuration.user_agent {
6714        req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone());
6715    }
6716    req_builder = req_builder.json(&p_body_create_auth_method_email);
6717
6718    let req = req_builder.build()?;
6719    let resp = configuration.client.execute(req).await?;
6720
6721    let status = resp.status();
6722    let content_type = resp
6723        .headers()
6724        .get("content-type")
6725        .and_then(|v| v.to_str().ok())
6726        .unwrap_or("application/octet-stream");
6727    let content_type = super::ContentType::from(content_type);
6728
6729    if !status.is_client_error() && !status.is_server_error() {
6730        let content = resp.text().await?;
6731        match content_type {
6732            ContentType::Json => serde_json::from_str(&content).map_err(Error::from),
6733            ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `models::CreateAuthMethodEmailOutput`"))),
6734            ContentType::Unsupported(unknown_type) => return Err(Error::from(serde_json::Error::custom(format!("Received `{unknown_type}` content type response that cannot be converted to `models::CreateAuthMethodEmailOutput`")))),
6735        }
6736    } else {
6737        let content = resp.text().await?;
6738        let entity: Option<CreateAuthMethodEmailError> = serde_json::from_str(&content).ok();
6739        Err(Error::ResponseError(ResponseContent { status, content, entity }))
6740    }
6741}
6742
6743pub async fn create_auth_method_gcp(configuration: &configuration::Configuration, create_auth_method_gcp: models::CreateAuthMethodGcp) -> Result<models::CreateAuthMethodGcpOutput, Error<CreateAuthMethodGcpError>> {
6744    // add a prefix to parameters to efficiently prevent name collisions
6745    let p_body_create_auth_method_gcp = create_auth_method_gcp;
6746
6747    let uri_str = format!("{}/create-auth-method-gcp", configuration.base_path);
6748    let mut req_builder = configuration.client.request(reqwest::Method::POST, &uri_str);
6749
6750    if let Some(ref user_agent) = configuration.user_agent {
6751        req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone());
6752    }
6753    req_builder = req_builder.json(&p_body_create_auth_method_gcp);
6754
6755    let req = req_builder.build()?;
6756    let resp = configuration.client.execute(req).await?;
6757
6758    let status = resp.status();
6759    let content_type = resp
6760        .headers()
6761        .get("content-type")
6762        .and_then(|v| v.to_str().ok())
6763        .unwrap_or("application/octet-stream");
6764    let content_type = super::ContentType::from(content_type);
6765
6766    if !status.is_client_error() && !status.is_server_error() {
6767        let content = resp.text().await?;
6768        match content_type {
6769            ContentType::Json => serde_json::from_str(&content).map_err(Error::from),
6770            ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `models::CreateAuthMethodGcpOutput`"))),
6771            ContentType::Unsupported(unknown_type) => return Err(Error::from(serde_json::Error::custom(format!("Received `{unknown_type}` content type response that cannot be converted to `models::CreateAuthMethodGcpOutput`")))),
6772        }
6773    } else {
6774        let content = resp.text().await?;
6775        let entity: Option<CreateAuthMethodGcpError> = serde_json::from_str(&content).ok();
6776        Err(Error::ResponseError(ResponseContent { status, content, entity }))
6777    }
6778}
6779
6780pub async fn create_auth_method_huawei(configuration: &configuration::Configuration, create_auth_method_huawei: models::CreateAuthMethodHuawei) -> Result<models::CreateAuthMethodHuaweiOutput, Error<CreateAuthMethodHuaweiError>> {
6781    // add a prefix to parameters to efficiently prevent name collisions
6782    let p_body_create_auth_method_huawei = create_auth_method_huawei;
6783
6784    let uri_str = format!("{}/create-auth-method-huawei", configuration.base_path);
6785    let mut req_builder = configuration.client.request(reqwest::Method::POST, &uri_str);
6786
6787    if let Some(ref user_agent) = configuration.user_agent {
6788        req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone());
6789    }
6790    req_builder = req_builder.json(&p_body_create_auth_method_huawei);
6791
6792    let req = req_builder.build()?;
6793    let resp = configuration.client.execute(req).await?;
6794
6795    let status = resp.status();
6796    let content_type = resp
6797        .headers()
6798        .get("content-type")
6799        .and_then(|v| v.to_str().ok())
6800        .unwrap_or("application/octet-stream");
6801    let content_type = super::ContentType::from(content_type);
6802
6803    if !status.is_client_error() && !status.is_server_error() {
6804        let content = resp.text().await?;
6805        match content_type {
6806            ContentType::Json => serde_json::from_str(&content).map_err(Error::from),
6807            ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `models::CreateAuthMethodHuaweiOutput`"))),
6808            ContentType::Unsupported(unknown_type) => return Err(Error::from(serde_json::Error::custom(format!("Received `{unknown_type}` content type response that cannot be converted to `models::CreateAuthMethodHuaweiOutput`")))),
6809        }
6810    } else {
6811        let content = resp.text().await?;
6812        let entity: Option<CreateAuthMethodHuaweiError> = serde_json::from_str(&content).ok();
6813        Err(Error::ResponseError(ResponseContent { status, content, entity }))
6814    }
6815}
6816
6817pub async fn create_auth_method_k8_s(configuration: &configuration::Configuration, create_auth_method_k8_s: models::CreateAuthMethodK8S) -> Result<models::CreateAuthMethodK8SOutput, Error<CreateAuthMethodK8SError>> {
6818    // add a prefix to parameters to efficiently prevent name collisions
6819    let p_body_create_auth_method_k8_s = create_auth_method_k8_s;
6820
6821    let uri_str = format!("{}/create-auth-method-k8s", configuration.base_path);
6822    let mut req_builder = configuration.client.request(reqwest::Method::POST, &uri_str);
6823
6824    if let Some(ref user_agent) = configuration.user_agent {
6825        req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone());
6826    }
6827    req_builder = req_builder.json(&p_body_create_auth_method_k8_s);
6828
6829    let req = req_builder.build()?;
6830    let resp = configuration.client.execute(req).await?;
6831
6832    let status = resp.status();
6833    let content_type = resp
6834        .headers()
6835        .get("content-type")
6836        .and_then(|v| v.to_str().ok())
6837        .unwrap_or("application/octet-stream");
6838    let content_type = super::ContentType::from(content_type);
6839
6840    if !status.is_client_error() && !status.is_server_error() {
6841        let content = resp.text().await?;
6842        match content_type {
6843            ContentType::Json => serde_json::from_str(&content).map_err(Error::from),
6844            ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `models::CreateAuthMethodK8SOutput`"))),
6845            ContentType::Unsupported(unknown_type) => return Err(Error::from(serde_json::Error::custom(format!("Received `{unknown_type}` content type response that cannot be converted to `models::CreateAuthMethodK8SOutput`")))),
6846        }
6847    } else {
6848        let content = resp.text().await?;
6849        let entity: Option<CreateAuthMethodK8SError> = serde_json::from_str(&content).ok();
6850        Err(Error::ResponseError(ResponseContent { status, content, entity }))
6851    }
6852}
6853
6854pub async fn create_auth_method_ldap(configuration: &configuration::Configuration, create_auth_method_ldap: models::CreateAuthMethodLdap) -> Result<models::CreateAuthMethodLdapOutput, Error<CreateAuthMethodLdapError>> {
6855    // add a prefix to parameters to efficiently prevent name collisions
6856    let p_body_create_auth_method_ldap = create_auth_method_ldap;
6857
6858    let uri_str = format!("{}/create-auth-method-ldap", configuration.base_path);
6859    let mut req_builder = configuration.client.request(reqwest::Method::POST, &uri_str);
6860
6861    if let Some(ref user_agent) = configuration.user_agent {
6862        req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone());
6863    }
6864    req_builder = req_builder.json(&p_body_create_auth_method_ldap);
6865
6866    let req = req_builder.build()?;
6867    let resp = configuration.client.execute(req).await?;
6868
6869    let status = resp.status();
6870    let content_type = resp
6871        .headers()
6872        .get("content-type")
6873        .and_then(|v| v.to_str().ok())
6874        .unwrap_or("application/octet-stream");
6875    let content_type = super::ContentType::from(content_type);
6876
6877    if !status.is_client_error() && !status.is_server_error() {
6878        let content = resp.text().await?;
6879        match content_type {
6880            ContentType::Json => serde_json::from_str(&content).map_err(Error::from),
6881            ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `models::CreateAuthMethodLdapOutput`"))),
6882            ContentType::Unsupported(unknown_type) => return Err(Error::from(serde_json::Error::custom(format!("Received `{unknown_type}` content type response that cannot be converted to `models::CreateAuthMethodLdapOutput`")))),
6883        }
6884    } else {
6885        let content = resp.text().await?;
6886        let entity: Option<CreateAuthMethodLdapError> = serde_json::from_str(&content).ok();
6887        Err(Error::ResponseError(ResponseContent { status, content, entity }))
6888    }
6889}
6890
6891pub async fn create_auth_method_o_auth2(configuration: &configuration::Configuration, create_auth_method_o_auth2: models::CreateAuthMethodOAuth2) -> Result<models::CreateAuthMethodOAuth2Output, Error<CreateAuthMethodOAuth2Error>> {
6892    // add a prefix to parameters to efficiently prevent name collisions
6893    let p_body_create_auth_method_o_auth2 = create_auth_method_o_auth2;
6894
6895    let uri_str = format!("{}/create-auth-method-oauth2", configuration.base_path);
6896    let mut req_builder = configuration.client.request(reqwest::Method::POST, &uri_str);
6897
6898    if let Some(ref user_agent) = configuration.user_agent {
6899        req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone());
6900    }
6901    req_builder = req_builder.json(&p_body_create_auth_method_o_auth2);
6902
6903    let req = req_builder.build()?;
6904    let resp = configuration.client.execute(req).await?;
6905
6906    let status = resp.status();
6907    let content_type = resp
6908        .headers()
6909        .get("content-type")
6910        .and_then(|v| v.to_str().ok())
6911        .unwrap_or("application/octet-stream");
6912    let content_type = super::ContentType::from(content_type);
6913
6914    if !status.is_client_error() && !status.is_server_error() {
6915        let content = resp.text().await?;
6916        match content_type {
6917            ContentType::Json => serde_json::from_str(&content).map_err(Error::from),
6918            ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `models::CreateAuthMethodOAuth2Output`"))),
6919            ContentType::Unsupported(unknown_type) => return Err(Error::from(serde_json::Error::custom(format!("Received `{unknown_type}` content type response that cannot be converted to `models::CreateAuthMethodOAuth2Output`")))),
6920        }
6921    } else {
6922        let content = resp.text().await?;
6923        let entity: Option<CreateAuthMethodOAuth2Error> = serde_json::from_str(&content).ok();
6924        Err(Error::ResponseError(ResponseContent { status, content, entity }))
6925    }
6926}
6927
6928pub async fn create_auth_method_oci(configuration: &configuration::Configuration, create_auth_method_oci: models::CreateAuthMethodOci) -> Result<models::CreateAuthMethodOciOutput, Error<CreateAuthMethodOciError>> {
6929    // add a prefix to parameters to efficiently prevent name collisions
6930    let p_body_create_auth_method_oci = create_auth_method_oci;
6931
6932    let uri_str = format!("{}/create-auth-method-oci", configuration.base_path);
6933    let mut req_builder = configuration.client.request(reqwest::Method::POST, &uri_str);
6934
6935    if let Some(ref user_agent) = configuration.user_agent {
6936        req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone());
6937    }
6938    req_builder = req_builder.json(&p_body_create_auth_method_oci);
6939
6940    let req = req_builder.build()?;
6941    let resp = configuration.client.execute(req).await?;
6942
6943    let status = resp.status();
6944    let content_type = resp
6945        .headers()
6946        .get("content-type")
6947        .and_then(|v| v.to_str().ok())
6948        .unwrap_or("application/octet-stream");
6949    let content_type = super::ContentType::from(content_type);
6950
6951    if !status.is_client_error() && !status.is_server_error() {
6952        let content = resp.text().await?;
6953        match content_type {
6954            ContentType::Json => serde_json::from_str(&content).map_err(Error::from),
6955            ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `models::CreateAuthMethodOciOutput`"))),
6956            ContentType::Unsupported(unknown_type) => return Err(Error::from(serde_json::Error::custom(format!("Received `{unknown_type}` content type response that cannot be converted to `models::CreateAuthMethodOciOutput`")))),
6957        }
6958    } else {
6959        let content = resp.text().await?;
6960        let entity: Option<CreateAuthMethodOciError> = serde_json::from_str(&content).ok();
6961        Err(Error::ResponseError(ResponseContent { status, content, entity }))
6962    }
6963}
6964
6965pub async fn create_auth_method_oidc(configuration: &configuration::Configuration, create_auth_method_oidc: models::CreateAuthMethodOidc) -> Result<models::CreateAuthMethodOidcOutput, Error<CreateAuthMethodOidcError>> {
6966    // add a prefix to parameters to efficiently prevent name collisions
6967    let p_body_create_auth_method_oidc = create_auth_method_oidc;
6968
6969    let uri_str = format!("{}/create-auth-method-oidc", configuration.base_path);
6970    let mut req_builder = configuration.client.request(reqwest::Method::POST, &uri_str);
6971
6972    if let Some(ref user_agent) = configuration.user_agent {
6973        req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone());
6974    }
6975    req_builder = req_builder.json(&p_body_create_auth_method_oidc);
6976
6977    let req = req_builder.build()?;
6978    let resp = configuration.client.execute(req).await?;
6979
6980    let status = resp.status();
6981    let content_type = resp
6982        .headers()
6983        .get("content-type")
6984        .and_then(|v| v.to_str().ok())
6985        .unwrap_or("application/octet-stream");
6986    let content_type = super::ContentType::from(content_type);
6987
6988    if !status.is_client_error() && !status.is_server_error() {
6989        let content = resp.text().await?;
6990        match content_type {
6991            ContentType::Json => serde_json::from_str(&content).map_err(Error::from),
6992            ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `models::CreateAuthMethodOidcOutput`"))),
6993            ContentType::Unsupported(unknown_type) => return Err(Error::from(serde_json::Error::custom(format!("Received `{unknown_type}` content type response that cannot be converted to `models::CreateAuthMethodOidcOutput`")))),
6994        }
6995    } else {
6996        let content = resp.text().await?;
6997        let entity: Option<CreateAuthMethodOidcError> = serde_json::from_str(&content).ok();
6998        Err(Error::ResponseError(ResponseContent { status, content, entity }))
6999    }
7000}
7001
7002pub async fn create_auth_method_saml(configuration: &configuration::Configuration, create_auth_method_saml: models::CreateAuthMethodSaml) -> Result<models::CreateAuthMethodSamlOutput, Error<CreateAuthMethodSamlError>> {
7003    // add a prefix to parameters to efficiently prevent name collisions
7004    let p_body_create_auth_method_saml = create_auth_method_saml;
7005
7006    let uri_str = format!("{}/create-auth-method-saml", configuration.base_path);
7007    let mut req_builder = configuration.client.request(reqwest::Method::POST, &uri_str);
7008
7009    if let Some(ref user_agent) = configuration.user_agent {
7010        req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone());
7011    }
7012    req_builder = req_builder.json(&p_body_create_auth_method_saml);
7013
7014    let req = req_builder.build()?;
7015    let resp = configuration.client.execute(req).await?;
7016
7017    let status = resp.status();
7018    let content_type = resp
7019        .headers()
7020        .get("content-type")
7021        .and_then(|v| v.to_str().ok())
7022        .unwrap_or("application/octet-stream");
7023    let content_type = super::ContentType::from(content_type);
7024
7025    if !status.is_client_error() && !status.is_server_error() {
7026        let content = resp.text().await?;
7027        match content_type {
7028            ContentType::Json => serde_json::from_str(&content).map_err(Error::from),
7029            ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `models::CreateAuthMethodSamlOutput`"))),
7030            ContentType::Unsupported(unknown_type) => return Err(Error::from(serde_json::Error::custom(format!("Received `{unknown_type}` content type response that cannot be converted to `models::CreateAuthMethodSamlOutput`")))),
7031        }
7032    } else {
7033        let content = resp.text().await?;
7034        let entity: Option<CreateAuthMethodSamlError> = serde_json::from_str(&content).ok();
7035        Err(Error::ResponseError(ResponseContent { status, content, entity }))
7036    }
7037}
7038
7039pub async fn create_auth_method_universal_identity(configuration: &configuration::Configuration, create_auth_method_universal_identity: models::CreateAuthMethodUniversalIdentity) -> Result<models::CreateAuthMethodUniversalIdentityOutput, Error<CreateAuthMethodUniversalIdentityError>> {
7040    // add a prefix to parameters to efficiently prevent name collisions
7041    let p_body_create_auth_method_universal_identity = create_auth_method_universal_identity;
7042
7043    let uri_str = format!("{}/create-auth-method-universal-identity", configuration.base_path);
7044    let mut req_builder = configuration.client.request(reqwest::Method::POST, &uri_str);
7045
7046    if let Some(ref user_agent) = configuration.user_agent {
7047        req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone());
7048    }
7049    req_builder = req_builder.json(&p_body_create_auth_method_universal_identity);
7050
7051    let req = req_builder.build()?;
7052    let resp = configuration.client.execute(req).await?;
7053
7054    let status = resp.status();
7055    let content_type = resp
7056        .headers()
7057        .get("content-type")
7058        .and_then(|v| v.to_str().ok())
7059        .unwrap_or("application/octet-stream");
7060    let content_type = super::ContentType::from(content_type);
7061
7062    if !status.is_client_error() && !status.is_server_error() {
7063        let content = resp.text().await?;
7064        match content_type {
7065            ContentType::Json => serde_json::from_str(&content).map_err(Error::from),
7066            ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `models::CreateAuthMethodUniversalIdentityOutput`"))),
7067            ContentType::Unsupported(unknown_type) => return Err(Error::from(serde_json::Error::custom(format!("Received `{unknown_type}` content type response that cannot be converted to `models::CreateAuthMethodUniversalIdentityOutput`")))),
7068        }
7069    } else {
7070        let content = resp.text().await?;
7071        let entity: Option<CreateAuthMethodUniversalIdentityError> = serde_json::from_str(&content).ok();
7072        Err(Error::ResponseError(ResponseContent { status, content, entity }))
7073    }
7074}
7075
7076pub async fn create_aws_target(configuration: &configuration::Configuration, create_aws_target: models::CreateAwsTarget) -> Result<models::CreateAwsTargetOutput, Error<CreateAwsTargetError>> {
7077    // add a prefix to parameters to efficiently prevent name collisions
7078    let p_body_create_aws_target = create_aws_target;
7079
7080    let uri_str = format!("{}/create-aws-target", configuration.base_path);
7081    let mut req_builder = configuration.client.request(reqwest::Method::POST, &uri_str);
7082
7083    if let Some(ref user_agent) = configuration.user_agent {
7084        req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone());
7085    }
7086    req_builder = req_builder.json(&p_body_create_aws_target);
7087
7088    let req = req_builder.build()?;
7089    let resp = configuration.client.execute(req).await?;
7090
7091    let status = resp.status();
7092    let content_type = resp
7093        .headers()
7094        .get("content-type")
7095        .and_then(|v| v.to_str().ok())
7096        .unwrap_or("application/octet-stream");
7097    let content_type = super::ContentType::from(content_type);
7098
7099    if !status.is_client_error() && !status.is_server_error() {
7100        let content = resp.text().await?;
7101        match content_type {
7102            ContentType::Json => serde_json::from_str(&content).map_err(Error::from),
7103            ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `models::CreateAwsTargetOutput`"))),
7104            ContentType::Unsupported(unknown_type) => return Err(Error::from(serde_json::Error::custom(format!("Received `{unknown_type}` content type response that cannot be converted to `models::CreateAwsTargetOutput`")))),
7105        }
7106    } else {
7107        let content = resp.text().await?;
7108        let entity: Option<CreateAwsTargetError> = serde_json::from_str(&content).ok();
7109        Err(Error::ResponseError(ResponseContent { status, content, entity }))
7110    }
7111}
7112
7113pub async fn create_azure_target(configuration: &configuration::Configuration, create_azure_target: models::CreateAzureTarget) -> Result<models::CreateAzureTargetOutput, Error<CreateAzureTargetError>> {
7114    // add a prefix to parameters to efficiently prevent name collisions
7115    let p_body_create_azure_target = create_azure_target;
7116
7117    let uri_str = format!("{}/create-azure-target", configuration.base_path);
7118    let mut req_builder = configuration.client.request(reqwest::Method::POST, &uri_str);
7119
7120    if let Some(ref user_agent) = configuration.user_agent {
7121        req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone());
7122    }
7123    req_builder = req_builder.json(&p_body_create_azure_target);
7124
7125    let req = req_builder.build()?;
7126    let resp = configuration.client.execute(req).await?;
7127
7128    let status = resp.status();
7129    let content_type = resp
7130        .headers()
7131        .get("content-type")
7132        .and_then(|v| v.to_str().ok())
7133        .unwrap_or("application/octet-stream");
7134    let content_type = super::ContentType::from(content_type);
7135
7136    if !status.is_client_error() && !status.is_server_error() {
7137        let content = resp.text().await?;
7138        match content_type {
7139            ContentType::Json => serde_json::from_str(&content).map_err(Error::from),
7140            ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `models::CreateAzureTargetOutput`"))),
7141            ContentType::Unsupported(unknown_type) => return Err(Error::from(serde_json::Error::custom(format!("Received `{unknown_type}` content type response that cannot be converted to `models::CreateAzureTargetOutput`")))),
7142        }
7143    } else {
7144        let content = resp.text().await?;
7145        let entity: Option<CreateAzureTargetError> = serde_json::from_str(&content).ok();
7146        Err(Error::ResponseError(ResponseContent { status, content, entity }))
7147    }
7148}
7149
7150pub async fn create_certificate(configuration: &configuration::Configuration, create_certificate: models::CreateCertificate) -> Result<models::CreateCertificateOutput, Error<CreateCertificateError>> {
7151    // add a prefix to parameters to efficiently prevent name collisions
7152    let p_body_create_certificate = create_certificate;
7153
7154    let uri_str = format!("{}/create-certificate", configuration.base_path);
7155    let mut req_builder = configuration.client.request(reqwest::Method::POST, &uri_str);
7156
7157    if let Some(ref user_agent) = configuration.user_agent {
7158        req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone());
7159    }
7160    req_builder = req_builder.json(&p_body_create_certificate);
7161
7162    let req = req_builder.build()?;
7163    let resp = configuration.client.execute(req).await?;
7164
7165    let status = resp.status();
7166    let content_type = resp
7167        .headers()
7168        .get("content-type")
7169        .and_then(|v| v.to_str().ok())
7170        .unwrap_or("application/octet-stream");
7171    let content_type = super::ContentType::from(content_type);
7172
7173    if !status.is_client_error() && !status.is_server_error() {
7174        let content = resp.text().await?;
7175        match content_type {
7176            ContentType::Json => serde_json::from_str(&content).map_err(Error::from),
7177            ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `models::CreateCertificateOutput`"))),
7178            ContentType::Unsupported(unknown_type) => return Err(Error::from(serde_json::Error::custom(format!("Received `{unknown_type}` content type response that cannot be converted to `models::CreateCertificateOutput`")))),
7179        }
7180    } else {
7181        let content = resp.text().await?;
7182        let entity: Option<CreateCertificateError> = serde_json::from_str(&content).ok();
7183        Err(Error::ResponseError(ResponseContent { status, content, entity }))
7184    }
7185}
7186
7187pub async fn create_classic_key(configuration: &configuration::Configuration, create_classic_key: models::CreateClassicKey) -> Result<models::CreateClassicKeyOutput, Error<CreateClassicKeyError>> {
7188    // add a prefix to parameters to efficiently prevent name collisions
7189    let p_body_create_classic_key = create_classic_key;
7190
7191    let uri_str = format!("{}/create-classic-key", configuration.base_path);
7192    let mut req_builder = configuration.client.request(reqwest::Method::POST, &uri_str);
7193
7194    if let Some(ref user_agent) = configuration.user_agent {
7195        req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone());
7196    }
7197    req_builder = req_builder.json(&p_body_create_classic_key);
7198
7199    let req = req_builder.build()?;
7200    let resp = configuration.client.execute(req).await?;
7201
7202    let status = resp.status();
7203    let content_type = resp
7204        .headers()
7205        .get("content-type")
7206        .and_then(|v| v.to_str().ok())
7207        .unwrap_or("application/octet-stream");
7208    let content_type = super::ContentType::from(content_type);
7209
7210    if !status.is_client_error() && !status.is_server_error() {
7211        let content = resp.text().await?;
7212        match content_type {
7213            ContentType::Json => serde_json::from_str(&content).map_err(Error::from),
7214            ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `models::CreateClassicKeyOutput`"))),
7215            ContentType::Unsupported(unknown_type) => return Err(Error::from(serde_json::Error::custom(format!("Received `{unknown_type}` content type response that cannot be converted to `models::CreateClassicKeyOutput`")))),
7216        }
7217    } else {
7218        let content = resp.text().await?;
7219        let entity: Option<CreateClassicKeyError> = serde_json::from_str(&content).ok();
7220        Err(Error::ResponseError(ResponseContent { status, content, entity }))
7221    }
7222}
7223
7224pub async fn create_db_target(configuration: &configuration::Configuration, create_db_target: models::CreateDbTarget) -> Result<models::CreateDbTargetOutput, Error<CreateDbTargetError>> {
7225    // add a prefix to parameters to efficiently prevent name collisions
7226    let p_body_create_db_target = create_db_target;
7227
7228    let uri_str = format!("{}/create-db-target", configuration.base_path);
7229    let mut req_builder = configuration.client.request(reqwest::Method::POST, &uri_str);
7230
7231    if let Some(ref user_agent) = configuration.user_agent {
7232        req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone());
7233    }
7234    req_builder = req_builder.json(&p_body_create_db_target);
7235
7236    let req = req_builder.build()?;
7237    let resp = configuration.client.execute(req).await?;
7238
7239    let status = resp.status();
7240    let content_type = resp
7241        .headers()
7242        .get("content-type")
7243        .and_then(|v| v.to_str().ok())
7244        .unwrap_or("application/octet-stream");
7245    let content_type = super::ContentType::from(content_type);
7246
7247    if !status.is_client_error() && !status.is_server_error() {
7248        let content = resp.text().await?;
7249        match content_type {
7250            ContentType::Json => serde_json::from_str(&content).map_err(Error::from),
7251            ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `models::CreateDbTargetOutput`"))),
7252            ContentType::Unsupported(unknown_type) => return Err(Error::from(serde_json::Error::custom(format!("Received `{unknown_type}` content type response that cannot be converted to `models::CreateDbTargetOutput`")))),
7253        }
7254    } else {
7255        let content = resp.text().await?;
7256        let entity: Option<CreateDbTargetError> = serde_json::from_str(&content).ok();
7257        Err(Error::ResponseError(ResponseContent { status, content, entity }))
7258    }
7259}
7260
7261pub async fn create_dfc_key(configuration: &configuration::Configuration, create_dfc_key: models::CreateDfcKey) -> Result<models::CreateDfcKeyOutput, Error<CreateDfcKeyError>> {
7262    // add a prefix to parameters to efficiently prevent name collisions
7263    let p_body_create_dfc_key = create_dfc_key;
7264
7265    let uri_str = format!("{}/create-dfc-key", configuration.base_path);
7266    let mut req_builder = configuration.client.request(reqwest::Method::POST, &uri_str);
7267
7268    if let Some(ref user_agent) = configuration.user_agent {
7269        req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone());
7270    }
7271    req_builder = req_builder.json(&p_body_create_dfc_key);
7272
7273    let req = req_builder.build()?;
7274    let resp = configuration.client.execute(req).await?;
7275
7276    let status = resp.status();
7277    let content_type = resp
7278        .headers()
7279        .get("content-type")
7280        .and_then(|v| v.to_str().ok())
7281        .unwrap_or("application/octet-stream");
7282    let content_type = super::ContentType::from(content_type);
7283
7284    if !status.is_client_error() && !status.is_server_error() {
7285        let content = resp.text().await?;
7286        match content_type {
7287            ContentType::Json => serde_json::from_str(&content).map_err(Error::from),
7288            ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `models::CreateDfcKeyOutput`"))),
7289            ContentType::Unsupported(unknown_type) => return Err(Error::from(serde_json::Error::custom(format!("Received `{unknown_type}` content type response that cannot be converted to `models::CreateDfcKeyOutput`")))),
7290        }
7291    } else {
7292        let content = resp.text().await?;
7293        let entity: Option<CreateDfcKeyError> = serde_json::from_str(&content).ok();
7294        Err(Error::ResponseError(ResponseContent { status, content, entity }))
7295    }
7296}
7297
7298pub async fn create_dockerhub_target(configuration: &configuration::Configuration, create_dockerhub_target: models::CreateDockerhubTarget) -> Result<models::CreateDockerhubTargetOutput, Error<CreateDockerhubTargetError>> {
7299    // add a prefix to parameters to efficiently prevent name collisions
7300    let p_body_create_dockerhub_target = create_dockerhub_target;
7301
7302    let uri_str = format!("{}/create-dockerhub-target", configuration.base_path);
7303    let mut req_builder = configuration.client.request(reqwest::Method::POST, &uri_str);
7304
7305    if let Some(ref user_agent) = configuration.user_agent {
7306        req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone());
7307    }
7308    req_builder = req_builder.json(&p_body_create_dockerhub_target);
7309
7310    let req = req_builder.build()?;
7311    let resp = configuration.client.execute(req).await?;
7312
7313    let status = resp.status();
7314    let content_type = resp
7315        .headers()
7316        .get("content-type")
7317        .and_then(|v| v.to_str().ok())
7318        .unwrap_or("application/octet-stream");
7319    let content_type = super::ContentType::from(content_type);
7320
7321    if !status.is_client_error() && !status.is_server_error() {
7322        let content = resp.text().await?;
7323        match content_type {
7324            ContentType::Json => serde_json::from_str(&content).map_err(Error::from),
7325            ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `models::CreateDockerhubTargetOutput`"))),
7326            ContentType::Unsupported(unknown_type) => return Err(Error::from(serde_json::Error::custom(format!("Received `{unknown_type}` content type response that cannot be converted to `models::CreateDockerhubTargetOutput`")))),
7327        }
7328    } else {
7329        let content = resp.text().await?;
7330        let entity: Option<CreateDockerhubTargetError> = serde_json::from_str(&content).ok();
7331        Err(Error::ResponseError(ResponseContent { status, content, entity }))
7332    }
7333}
7334
7335pub async fn create_dynamic_secret(configuration: &configuration::Configuration, create_dynamic_secret: models::CreateDynamicSecret) -> Result<serde_json::Value, Error<CreateDynamicSecretError>> {
7336    // add a prefix to parameters to efficiently prevent name collisions
7337    let p_body_create_dynamic_secret = create_dynamic_secret;
7338
7339    let uri_str = format!("{}/create-dynamic-secret", configuration.base_path);
7340    let mut req_builder = configuration.client.request(reqwest::Method::POST, &uri_str);
7341
7342    if let Some(ref user_agent) = configuration.user_agent {
7343        req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone());
7344    }
7345    req_builder = req_builder.json(&p_body_create_dynamic_secret);
7346
7347    let req = req_builder.build()?;
7348    let resp = configuration.client.execute(req).await?;
7349
7350    let status = resp.status();
7351    let content_type = resp
7352        .headers()
7353        .get("content-type")
7354        .and_then(|v| v.to_str().ok())
7355        .unwrap_or("application/octet-stream");
7356    let content_type = super::ContentType::from(content_type);
7357
7358    if !status.is_client_error() && !status.is_server_error() {
7359        let content = resp.text().await?;
7360        match content_type {
7361            ContentType::Json => serde_json::from_str(&content).map_err(Error::from),
7362            ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `serde_json::Value`"))),
7363            ContentType::Unsupported(unknown_type) => return Err(Error::from(serde_json::Error::custom(format!("Received `{unknown_type}` content type response that cannot be converted to `serde_json::Value`")))),
7364        }
7365    } else {
7366        let content = resp.text().await?;
7367        let entity: Option<CreateDynamicSecretError> = serde_json::from_str(&content).ok();
7368        Err(Error::ResponseError(ResponseContent { status, content, entity }))
7369    }
7370}
7371
7372pub async fn create_eks_target(configuration: &configuration::Configuration, create_eks_target: models::CreateEksTarget) -> Result<models::CreateEksTargetOutput, Error<CreateEksTargetError>> {
7373    // add a prefix to parameters to efficiently prevent name collisions
7374    let p_body_create_eks_target = create_eks_target;
7375
7376    let uri_str = format!("{}/create-eks-target", configuration.base_path);
7377    let mut req_builder = configuration.client.request(reqwest::Method::POST, &uri_str);
7378
7379    if let Some(ref user_agent) = configuration.user_agent {
7380        req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone());
7381    }
7382    req_builder = req_builder.json(&p_body_create_eks_target);
7383
7384    let req = req_builder.build()?;
7385    let resp = configuration.client.execute(req).await?;
7386
7387    let status = resp.status();
7388    let content_type = resp
7389        .headers()
7390        .get("content-type")
7391        .and_then(|v| v.to_str().ok())
7392        .unwrap_or("application/octet-stream");
7393    let content_type = super::ContentType::from(content_type);
7394
7395    if !status.is_client_error() && !status.is_server_error() {
7396        let content = resp.text().await?;
7397        match content_type {
7398            ContentType::Json => serde_json::from_str(&content).map_err(Error::from),
7399            ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `models::CreateEksTargetOutput`"))),
7400            ContentType::Unsupported(unknown_type) => return Err(Error::from(serde_json::Error::custom(format!("Received `{unknown_type}` content type response that cannot be converted to `models::CreateEksTargetOutput`")))),
7401        }
7402    } else {
7403        let content = resp.text().await?;
7404        let entity: Option<CreateEksTargetError> = serde_json::from_str(&content).ok();
7405        Err(Error::ResponseError(ResponseContent { status, content, entity }))
7406    }
7407}
7408
7409pub async fn create_esm(configuration: &configuration::Configuration, create_esm: models::CreateEsm) -> Result<models::CreateEsmOutput, Error<CreateEsmError>> {
7410    // add a prefix to parameters to efficiently prevent name collisions
7411    let p_body_create_esm = create_esm;
7412
7413    let uri_str = format!("{}/create-esm", configuration.base_path);
7414    let mut req_builder = configuration.client.request(reqwest::Method::POST, &uri_str);
7415
7416    if let Some(ref user_agent) = configuration.user_agent {
7417        req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone());
7418    }
7419    req_builder = req_builder.json(&p_body_create_esm);
7420
7421    let req = req_builder.build()?;
7422    let resp = configuration.client.execute(req).await?;
7423
7424    let status = resp.status();
7425    let content_type = resp
7426        .headers()
7427        .get("content-type")
7428        .and_then(|v| v.to_str().ok())
7429        .unwrap_or("application/octet-stream");
7430    let content_type = super::ContentType::from(content_type);
7431
7432    if !status.is_client_error() && !status.is_server_error() {
7433        let content = resp.text().await?;
7434        match content_type {
7435            ContentType::Json => serde_json::from_str(&content).map_err(Error::from),
7436            ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `models::CreateEsmOutput`"))),
7437            ContentType::Unsupported(unknown_type) => return Err(Error::from(serde_json::Error::custom(format!("Received `{unknown_type}` content type response that cannot be converted to `models::CreateEsmOutput`")))),
7438        }
7439    } else {
7440        let content = resp.text().await?;
7441        let entity: Option<CreateEsmError> = serde_json::from_str(&content).ok();
7442        Err(Error::ResponseError(ResponseContent { status, content, entity }))
7443    }
7444}
7445
7446pub async fn create_event_forwarder(configuration: &configuration::Configuration, create_event_forwarder: models::CreateEventForwarder) -> Result<models::CreateEventForwarderOutput, Error<CreateEventForwarderError>> {
7447    // add a prefix to parameters to efficiently prevent name collisions
7448    let p_body_create_event_forwarder = create_event_forwarder;
7449
7450    let uri_str = format!("{}/create-event-forwarder", configuration.base_path);
7451    let mut req_builder = configuration.client.request(reqwest::Method::POST, &uri_str);
7452
7453    if let Some(ref user_agent) = configuration.user_agent {
7454        req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone());
7455    }
7456    req_builder = req_builder.json(&p_body_create_event_forwarder);
7457
7458    let req = req_builder.build()?;
7459    let resp = configuration.client.execute(req).await?;
7460
7461    let status = resp.status();
7462    let content_type = resp
7463        .headers()
7464        .get("content-type")
7465        .and_then(|v| v.to_str().ok())
7466        .unwrap_or("application/octet-stream");
7467    let content_type = super::ContentType::from(content_type);
7468
7469    if !status.is_client_error() && !status.is_server_error() {
7470        let content = resp.text().await?;
7471        match content_type {
7472            ContentType::Json => serde_json::from_str(&content).map_err(Error::from),
7473            ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `models::CreateEventForwarderOutput`"))),
7474            ContentType::Unsupported(unknown_type) => return Err(Error::from(serde_json::Error::custom(format!("Received `{unknown_type}` content type response that cannot be converted to `models::CreateEventForwarderOutput`")))),
7475        }
7476    } else {
7477        let content = resp.text().await?;
7478        let entity: Option<CreateEventForwarderError> = serde_json::from_str(&content).ok();
7479        Err(Error::ResponseError(ResponseContent { status, content, entity }))
7480    }
7481}
7482
7483pub async fn create_gcp_target(configuration: &configuration::Configuration, create_gcp_target: models::CreateGcpTarget) -> Result<models::CreateGcpTargetOutput, Error<CreateGcpTargetError>> {
7484    // add a prefix to parameters to efficiently prevent name collisions
7485    let p_body_create_gcp_target = create_gcp_target;
7486
7487    let uri_str = format!("{}/create-gcp-target", configuration.base_path);
7488    let mut req_builder = configuration.client.request(reqwest::Method::POST, &uri_str);
7489
7490    if let Some(ref user_agent) = configuration.user_agent {
7491        req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone());
7492    }
7493    req_builder = req_builder.json(&p_body_create_gcp_target);
7494
7495    let req = req_builder.build()?;
7496    let resp = configuration.client.execute(req).await?;
7497
7498    let status = resp.status();
7499    let content_type = resp
7500        .headers()
7501        .get("content-type")
7502        .and_then(|v| v.to_str().ok())
7503        .unwrap_or("application/octet-stream");
7504    let content_type = super::ContentType::from(content_type);
7505
7506    if !status.is_client_error() && !status.is_server_error() {
7507        let content = resp.text().await?;
7508        match content_type {
7509            ContentType::Json => serde_json::from_str(&content).map_err(Error::from),
7510            ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `models::CreateGcpTargetOutput`"))),
7511            ContentType::Unsupported(unknown_type) => return Err(Error::from(serde_json::Error::custom(format!("Received `{unknown_type}` content type response that cannot be converted to `models::CreateGcpTargetOutput`")))),
7512        }
7513    } else {
7514        let content = resp.text().await?;
7515        let entity: Option<CreateGcpTargetError> = serde_json::from_str(&content).ok();
7516        Err(Error::ResponseError(ResponseContent { status, content, entity }))
7517    }
7518}
7519
7520pub async fn create_github_target(configuration: &configuration::Configuration, create_github_target: models::CreateGithubTarget) -> Result<models::CreateGithubTargetOutput, Error<CreateGithubTargetError>> {
7521    // add a prefix to parameters to efficiently prevent name collisions
7522    let p_body_create_github_target = create_github_target;
7523
7524    let uri_str = format!("{}/create-github-target", configuration.base_path);
7525    let mut req_builder = configuration.client.request(reqwest::Method::POST, &uri_str);
7526
7527    if let Some(ref user_agent) = configuration.user_agent {
7528        req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone());
7529    }
7530    req_builder = req_builder.json(&p_body_create_github_target);
7531
7532    let req = req_builder.build()?;
7533    let resp = configuration.client.execute(req).await?;
7534
7535    let status = resp.status();
7536    let content_type = resp
7537        .headers()
7538        .get("content-type")
7539        .and_then(|v| v.to_str().ok())
7540        .unwrap_or("application/octet-stream");
7541    let content_type = super::ContentType::from(content_type);
7542
7543    if !status.is_client_error() && !status.is_server_error() {
7544        let content = resp.text().await?;
7545        match content_type {
7546            ContentType::Json => serde_json::from_str(&content).map_err(Error::from),
7547            ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `models::CreateGithubTargetOutput`"))),
7548            ContentType::Unsupported(unknown_type) => return Err(Error::from(serde_json::Error::custom(format!("Received `{unknown_type}` content type response that cannot be converted to `models::CreateGithubTargetOutput`")))),
7549        }
7550    } else {
7551        let content = resp.text().await?;
7552        let entity: Option<CreateGithubTargetError> = serde_json::from_str(&content).ok();
7553        Err(Error::ResponseError(ResponseContent { status, content, entity }))
7554    }
7555}
7556
7557pub async fn create_gitlab_target(configuration: &configuration::Configuration, create_gitlab_target: models::CreateGitlabTarget) -> Result<models::CreateGitlabTargetOutput, Error<CreateGitlabTargetError>> {
7558    // add a prefix to parameters to efficiently prevent name collisions
7559    let p_body_create_gitlab_target = create_gitlab_target;
7560
7561    let uri_str = format!("{}/create-gitlab-target", configuration.base_path);
7562    let mut req_builder = configuration.client.request(reqwest::Method::POST, &uri_str);
7563
7564    if let Some(ref user_agent) = configuration.user_agent {
7565        req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone());
7566    }
7567    req_builder = req_builder.json(&p_body_create_gitlab_target);
7568
7569    let req = req_builder.build()?;
7570    let resp = configuration.client.execute(req).await?;
7571
7572    let status = resp.status();
7573    let content_type = resp
7574        .headers()
7575        .get("content-type")
7576        .and_then(|v| v.to_str().ok())
7577        .unwrap_or("application/octet-stream");
7578    let content_type = super::ContentType::from(content_type);
7579
7580    if !status.is_client_error() && !status.is_server_error() {
7581        let content = resp.text().await?;
7582        match content_type {
7583            ContentType::Json => serde_json::from_str(&content).map_err(Error::from),
7584            ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `models::CreateGitlabTargetOutput`"))),
7585            ContentType::Unsupported(unknown_type) => return Err(Error::from(serde_json::Error::custom(format!("Received `{unknown_type}` content type response that cannot be converted to `models::CreateGitlabTargetOutput`")))),
7586        }
7587    } else {
7588        let content = resp.text().await?;
7589        let entity: Option<CreateGitlabTargetError> = serde_json::from_str(&content).ok();
7590        Err(Error::ResponseError(ResponseContent { status, content, entity }))
7591    }
7592}
7593
7594pub async fn create_gke_target(configuration: &configuration::Configuration, create_gke_target: models::CreateGkeTarget) -> Result<models::CreateGkeTargetOutput, Error<CreateGkeTargetError>> {
7595    // add a prefix to parameters to efficiently prevent name collisions
7596    let p_body_create_gke_target = create_gke_target;
7597
7598    let uri_str = format!("{}/create-gke-target", configuration.base_path);
7599    let mut req_builder = configuration.client.request(reqwest::Method::POST, &uri_str);
7600
7601    if let Some(ref user_agent) = configuration.user_agent {
7602        req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone());
7603    }
7604    req_builder = req_builder.json(&p_body_create_gke_target);
7605
7606    let req = req_builder.build()?;
7607    let resp = configuration.client.execute(req).await?;
7608
7609    let status = resp.status();
7610    let content_type = resp
7611        .headers()
7612        .get("content-type")
7613        .and_then(|v| v.to_str().ok())
7614        .unwrap_or("application/octet-stream");
7615    let content_type = super::ContentType::from(content_type);
7616
7617    if !status.is_client_error() && !status.is_server_error() {
7618        let content = resp.text().await?;
7619        match content_type {
7620            ContentType::Json => serde_json::from_str(&content).map_err(Error::from),
7621            ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `models::CreateGkeTargetOutput`"))),
7622            ContentType::Unsupported(unknown_type) => return Err(Error::from(serde_json::Error::custom(format!("Received `{unknown_type}` content type response that cannot be converted to `models::CreateGkeTargetOutput`")))),
7623        }
7624    } else {
7625        let content = resp.text().await?;
7626        let entity: Option<CreateGkeTargetError> = serde_json::from_str(&content).ok();
7627        Err(Error::ResponseError(ResponseContent { status, content, entity }))
7628    }
7629}
7630
7631pub async fn create_global_sign_atlas_target(configuration: &configuration::Configuration, create_global_sign_atlas_target: models::CreateGlobalSignAtlasTarget) -> Result<models::CreateGlobalSignAtlasTargetOutput, Error<CreateGlobalSignAtlasTargetError>> {
7632    // add a prefix to parameters to efficiently prevent name collisions
7633    let p_body_create_global_sign_atlas_target = create_global_sign_atlas_target;
7634
7635    let uri_str = format!("{}/create-globalsign-atlas-target", configuration.base_path);
7636    let mut req_builder = configuration.client.request(reqwest::Method::POST, &uri_str);
7637
7638    if let Some(ref user_agent) = configuration.user_agent {
7639        req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone());
7640    }
7641    req_builder = req_builder.json(&p_body_create_global_sign_atlas_target);
7642
7643    let req = req_builder.build()?;
7644    let resp = configuration.client.execute(req).await?;
7645
7646    let status = resp.status();
7647    let content_type = resp
7648        .headers()
7649        .get("content-type")
7650        .and_then(|v| v.to_str().ok())
7651        .unwrap_or("application/octet-stream");
7652    let content_type = super::ContentType::from(content_type);
7653
7654    if !status.is_client_error() && !status.is_server_error() {
7655        let content = resp.text().await?;
7656        match content_type {
7657            ContentType::Json => serde_json::from_str(&content).map_err(Error::from),
7658            ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `models::CreateGlobalSignAtlasTargetOutput`"))),
7659            ContentType::Unsupported(unknown_type) => return Err(Error::from(serde_json::Error::custom(format!("Received `{unknown_type}` content type response that cannot be converted to `models::CreateGlobalSignAtlasTargetOutput`")))),
7660        }
7661    } else {
7662        let content = resp.text().await?;
7663        let entity: Option<CreateGlobalSignAtlasTargetError> = serde_json::from_str(&content).ok();
7664        Err(Error::ResponseError(ResponseContent { status, content, entity }))
7665    }
7666}
7667
7668pub async fn create_global_sign_target(configuration: &configuration::Configuration, create_global_sign_target: models::CreateGlobalSignTarget) -> Result<models::CreateGlobalSignTargetOutput, Error<CreateGlobalSignTargetError>> {
7669    // add a prefix to parameters to efficiently prevent name collisions
7670    let p_body_create_global_sign_target = create_global_sign_target;
7671
7672    let uri_str = format!("{}/create-globalsign-target", configuration.base_path);
7673    let mut req_builder = configuration.client.request(reqwest::Method::POST, &uri_str);
7674
7675    if let Some(ref user_agent) = configuration.user_agent {
7676        req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone());
7677    }
7678    req_builder = req_builder.json(&p_body_create_global_sign_target);
7679
7680    let req = req_builder.build()?;
7681    let resp = configuration.client.execute(req).await?;
7682
7683    let status = resp.status();
7684    let content_type = resp
7685        .headers()
7686        .get("content-type")
7687        .and_then(|v| v.to_str().ok())
7688        .unwrap_or("application/octet-stream");
7689    let content_type = super::ContentType::from(content_type);
7690
7691    if !status.is_client_error() && !status.is_server_error() {
7692        let content = resp.text().await?;
7693        match content_type {
7694            ContentType::Json => serde_json::from_str(&content).map_err(Error::from),
7695            ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `models::CreateGlobalSignTargetOutput`"))),
7696            ContentType::Unsupported(unknown_type) => return Err(Error::from(serde_json::Error::custom(format!("Received `{unknown_type}` content type response that cannot be converted to `models::CreateGlobalSignTargetOutput`")))),
7697        }
7698    } else {
7699        let content = resp.text().await?;
7700        let entity: Option<CreateGlobalSignTargetError> = serde_json::from_str(&content).ok();
7701        Err(Error::ResponseError(ResponseContent { status, content, entity }))
7702    }
7703}
7704
7705pub async fn create_godaddy_target(configuration: &configuration::Configuration, create_godaddy_target: models::CreateGodaddyTarget) -> Result<models::CreateGodaddyTargetOutput, Error<CreateGodaddyTargetError>> {
7706    // add a prefix to parameters to efficiently prevent name collisions
7707    let p_body_create_godaddy_target = create_godaddy_target;
7708
7709    let uri_str = format!("{}/create-godaddy-target", configuration.base_path);
7710    let mut req_builder = configuration.client.request(reqwest::Method::POST, &uri_str);
7711
7712    if let Some(ref user_agent) = configuration.user_agent {
7713        req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone());
7714    }
7715    req_builder = req_builder.json(&p_body_create_godaddy_target);
7716
7717    let req = req_builder.build()?;
7718    let resp = configuration.client.execute(req).await?;
7719
7720    let status = resp.status();
7721    let content_type = resp
7722        .headers()
7723        .get("content-type")
7724        .and_then(|v| v.to_str().ok())
7725        .unwrap_or("application/octet-stream");
7726    let content_type = super::ContentType::from(content_type);
7727
7728    if !status.is_client_error() && !status.is_server_error() {
7729        let content = resp.text().await?;
7730        match content_type {
7731            ContentType::Json => serde_json::from_str(&content).map_err(Error::from),
7732            ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `models::CreateGodaddyTargetOutput`"))),
7733            ContentType::Unsupported(unknown_type) => return Err(Error::from(serde_json::Error::custom(format!("Received `{unknown_type}` content type response that cannot be converted to `models::CreateGodaddyTargetOutput`")))),
7734        }
7735    } else {
7736        let content = resp.text().await?;
7737        let entity: Option<CreateGodaddyTargetError> = serde_json::from_str(&content).ok();
7738        Err(Error::ResponseError(ResponseContent { status, content, entity }))
7739    }
7740}
7741
7742pub async fn create_group(configuration: &configuration::Configuration, create_group: models::CreateGroup) -> Result<models::CreateGroupOutput, Error<CreateGroupError>> {
7743    // add a prefix to parameters to efficiently prevent name collisions
7744    let p_body_create_group = create_group;
7745
7746    let uri_str = format!("{}/create-group", configuration.base_path);
7747    let mut req_builder = configuration.client.request(reqwest::Method::POST, &uri_str);
7748
7749    if let Some(ref user_agent) = configuration.user_agent {
7750        req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone());
7751    }
7752    req_builder = req_builder.json(&p_body_create_group);
7753
7754    let req = req_builder.build()?;
7755    let resp = configuration.client.execute(req).await?;
7756
7757    let status = resp.status();
7758    let content_type = resp
7759        .headers()
7760        .get("content-type")
7761        .and_then(|v| v.to_str().ok())
7762        .unwrap_or("application/octet-stream");
7763    let content_type = super::ContentType::from(content_type);
7764
7765    if !status.is_client_error() && !status.is_server_error() {
7766        let content = resp.text().await?;
7767        match content_type {
7768            ContentType::Json => serde_json::from_str(&content).map_err(Error::from),
7769            ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `models::CreateGroupOutput`"))),
7770            ContentType::Unsupported(unknown_type) => return Err(Error::from(serde_json::Error::custom(format!("Received `{unknown_type}` content type response that cannot be converted to `models::CreateGroupOutput`")))),
7771        }
7772    } else {
7773        let content = resp.text().await?;
7774        let entity: Option<CreateGroupError> = serde_json::from_str(&content).ok();
7775        Err(Error::ResponseError(ResponseContent { status, content, entity }))
7776    }
7777}
7778
7779pub async fn create_hashi_vault_target(configuration: &configuration::Configuration, create_hashi_vault_target: models::CreateHashiVaultTarget) -> Result<models::CreateHashiVaultTargetOutput, Error<CreateHashiVaultTargetError>> {
7780    // add a prefix to parameters to efficiently prevent name collisions
7781    let p_body_create_hashi_vault_target = create_hashi_vault_target;
7782
7783    let uri_str = format!("{}/create-hashi-vault-target", configuration.base_path);
7784    let mut req_builder = configuration.client.request(reqwest::Method::POST, &uri_str);
7785
7786    if let Some(ref user_agent) = configuration.user_agent {
7787        req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone());
7788    }
7789    req_builder = req_builder.json(&p_body_create_hashi_vault_target);
7790
7791    let req = req_builder.build()?;
7792    let resp = configuration.client.execute(req).await?;
7793
7794    let status = resp.status();
7795    let content_type = resp
7796        .headers()
7797        .get("content-type")
7798        .and_then(|v| v.to_str().ok())
7799        .unwrap_or("application/octet-stream");
7800    let content_type = super::ContentType::from(content_type);
7801
7802    if !status.is_client_error() && !status.is_server_error() {
7803        let content = resp.text().await?;
7804        match content_type {
7805            ContentType::Json => serde_json::from_str(&content).map_err(Error::from),
7806            ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `models::CreateHashiVaultTargetOutput`"))),
7807            ContentType::Unsupported(unknown_type) => return Err(Error::from(serde_json::Error::custom(format!("Received `{unknown_type}` content type response that cannot be converted to `models::CreateHashiVaultTargetOutput`")))),
7808        }
7809    } else {
7810        let content = resp.text().await?;
7811        let entity: Option<CreateHashiVaultTargetError> = serde_json::from_str(&content).ok();
7812        Err(Error::ResponseError(ResponseContent { status, content, entity }))
7813    }
7814}
7815
7816pub async fn create_key(configuration: &configuration::Configuration, create_key: models::CreateKey) -> Result<models::CreateKeyOutput, Error<CreateKeyError>> {
7817    // add a prefix to parameters to efficiently prevent name collisions
7818    let p_body_create_key = create_key;
7819
7820    let uri_str = format!("{}/create-key", configuration.base_path);
7821    let mut req_builder = configuration.client.request(reqwest::Method::POST, &uri_str);
7822
7823    if let Some(ref user_agent) = configuration.user_agent {
7824        req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone());
7825    }
7826    req_builder = req_builder.json(&p_body_create_key);
7827
7828    let req = req_builder.build()?;
7829    let resp = configuration.client.execute(req).await?;
7830
7831    let status = resp.status();
7832    let content_type = resp
7833        .headers()
7834        .get("content-type")
7835        .and_then(|v| v.to_str().ok())
7836        .unwrap_or("application/octet-stream");
7837    let content_type = super::ContentType::from(content_type);
7838
7839    if !status.is_client_error() && !status.is_server_error() {
7840        let content = resp.text().await?;
7841        match content_type {
7842            ContentType::Json => serde_json::from_str(&content).map_err(Error::from),
7843            ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `models::CreateKeyOutput`"))),
7844            ContentType::Unsupported(unknown_type) => return Err(Error::from(serde_json::Error::custom(format!("Received `{unknown_type}` content type response that cannot be converted to `models::CreateKeyOutput`")))),
7845        }
7846    } else {
7847        let content = resp.text().await?;
7848        let entity: Option<CreateKeyError> = serde_json::from_str(&content).ok();
7849        Err(Error::ResponseError(ResponseContent { status, content, entity }))
7850    }
7851}
7852
7853pub async fn create_linked_target(configuration: &configuration::Configuration, create_linked_target: models::CreateLinkedTarget) -> Result<models::CreateLinkedTargetOutput, Error<CreateLinkedTargetError>> {
7854    // add a prefix to parameters to efficiently prevent name collisions
7855    let p_body_create_linked_target = create_linked_target;
7856
7857    let uri_str = format!("{}/create-linked-target", configuration.base_path);
7858    let mut req_builder = configuration.client.request(reqwest::Method::POST, &uri_str);
7859
7860    if let Some(ref user_agent) = configuration.user_agent {
7861        req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone());
7862    }
7863    req_builder = req_builder.json(&p_body_create_linked_target);
7864
7865    let req = req_builder.build()?;
7866    let resp = configuration.client.execute(req).await?;
7867
7868    let status = resp.status();
7869    let content_type = resp
7870        .headers()
7871        .get("content-type")
7872        .and_then(|v| v.to_str().ok())
7873        .unwrap_or("application/octet-stream");
7874    let content_type = super::ContentType::from(content_type);
7875
7876    if !status.is_client_error() && !status.is_server_error() {
7877        let content = resp.text().await?;
7878        match content_type {
7879            ContentType::Json => serde_json::from_str(&content).map_err(Error::from),
7880            ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `models::CreateLinkedTargetOutput`"))),
7881            ContentType::Unsupported(unknown_type) => return Err(Error::from(serde_json::Error::custom(format!("Received `{unknown_type}` content type response that cannot be converted to `models::CreateLinkedTargetOutput`")))),
7882        }
7883    } else {
7884        let content = resp.text().await?;
7885        let entity: Option<CreateLinkedTargetError> = serde_json::from_str(&content).ok();
7886        Err(Error::ResponseError(ResponseContent { status, content, entity }))
7887    }
7888}
7889
7890pub async fn create_native_k8_s_target(configuration: &configuration::Configuration, create_native_k8_s_target: models::CreateNativeK8STarget) -> Result<models::CreateNativeK8STargetOutput, Error<CreateNativeK8STargetError>> {
7891    // add a prefix to parameters to efficiently prevent name collisions
7892    let p_body_create_native_k8_s_target = create_native_k8_s_target;
7893
7894    let uri_str = format!("{}/create-k8s-target", configuration.base_path);
7895    let mut req_builder = configuration.client.request(reqwest::Method::POST, &uri_str);
7896
7897    if let Some(ref user_agent) = configuration.user_agent {
7898        req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone());
7899    }
7900    req_builder = req_builder.json(&p_body_create_native_k8_s_target);
7901
7902    let req = req_builder.build()?;
7903    let resp = configuration.client.execute(req).await?;
7904
7905    let status = resp.status();
7906    let content_type = resp
7907        .headers()
7908        .get("content-type")
7909        .and_then(|v| v.to_str().ok())
7910        .unwrap_or("application/octet-stream");
7911    let content_type = super::ContentType::from(content_type);
7912
7913    if !status.is_client_error() && !status.is_server_error() {
7914        let content = resp.text().await?;
7915        match content_type {
7916            ContentType::Json => serde_json::from_str(&content).map_err(Error::from),
7917            ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `models::CreateNativeK8STargetOutput`"))),
7918            ContentType::Unsupported(unknown_type) => return Err(Error::from(serde_json::Error::custom(format!("Received `{unknown_type}` content type response that cannot be converted to `models::CreateNativeK8STargetOutput`")))),
7919        }
7920    } else {
7921        let content = resp.text().await?;
7922        let entity: Option<CreateNativeK8STargetError> = serde_json::from_str(&content).ok();
7923        Err(Error::ResponseError(ResponseContent { status, content, entity }))
7924    }
7925}
7926
7927pub async fn create_oidc_app(configuration: &configuration::Configuration, create_oidc_app: models::CreateOidcApp) -> Result<models::CreateOidcAppOutput, Error<CreateOidcAppError>> {
7928    // add a prefix to parameters to efficiently prevent name collisions
7929    let p_body_create_oidc_app = create_oidc_app;
7930
7931    let uri_str = format!("{}/create-oidc-app", configuration.base_path);
7932    let mut req_builder = configuration.client.request(reqwest::Method::POST, &uri_str);
7933
7934    if let Some(ref user_agent) = configuration.user_agent {
7935        req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone());
7936    }
7937    req_builder = req_builder.json(&p_body_create_oidc_app);
7938
7939    let req = req_builder.build()?;
7940    let resp = configuration.client.execute(req).await?;
7941
7942    let status = resp.status();
7943    let content_type = resp
7944        .headers()
7945        .get("content-type")
7946        .and_then(|v| v.to_str().ok())
7947        .unwrap_or("application/octet-stream");
7948    let content_type = super::ContentType::from(content_type);
7949
7950    if !status.is_client_error() && !status.is_server_error() {
7951        let content = resp.text().await?;
7952        match content_type {
7953            ContentType::Json => serde_json::from_str(&content).map_err(Error::from),
7954            ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `models::CreateOidcAppOutput`"))),
7955            ContentType::Unsupported(unknown_type) => return Err(Error::from(serde_json::Error::custom(format!("Received `{unknown_type}` content type response that cannot be converted to `models::CreateOidcAppOutput`")))),
7956        }
7957    } else {
7958        let content = resp.text().await?;
7959        let entity: Option<CreateOidcAppError> = serde_json::from_str(&content).ok();
7960        Err(Error::ResponseError(ResponseContent { status, content, entity }))
7961    }
7962}
7963
7964pub async fn create_passkey(configuration: &configuration::Configuration, create_passkey: models::CreatePasskey) -> Result<models::CreatePasskeyOutput, Error<CreatePasskeyError>> {
7965    // add a prefix to parameters to efficiently prevent name collisions
7966    let p_body_create_passkey = create_passkey;
7967
7968    let uri_str = format!("{}/create-passkey", configuration.base_path);
7969    let mut req_builder = configuration.client.request(reqwest::Method::POST, &uri_str);
7970
7971    if let Some(ref user_agent) = configuration.user_agent {
7972        req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone());
7973    }
7974    req_builder = req_builder.json(&p_body_create_passkey);
7975
7976    let req = req_builder.build()?;
7977    let resp = configuration.client.execute(req).await?;
7978
7979    let status = resp.status();
7980    let content_type = resp
7981        .headers()
7982        .get("content-type")
7983        .and_then(|v| v.to_str().ok())
7984        .unwrap_or("application/octet-stream");
7985    let content_type = super::ContentType::from(content_type);
7986
7987    if !status.is_client_error() && !status.is_server_error() {
7988        let content = resp.text().await?;
7989        match content_type {
7990            ContentType::Json => serde_json::from_str(&content).map_err(Error::from),
7991            ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `models::CreatePasskeyOutput`"))),
7992            ContentType::Unsupported(unknown_type) => return Err(Error::from(serde_json::Error::custom(format!("Received `{unknown_type}` content type response that cannot be converted to `models::CreatePasskeyOutput`")))),
7993        }
7994    } else {
7995        let content = resp.text().await?;
7996        let entity: Option<CreatePasskeyError> = serde_json::from_str(&content).ok();
7997        Err(Error::ResponseError(ResponseContent { status, content, entity }))
7998    }
7999}
8000
8001pub async fn create_ping_target(configuration: &configuration::Configuration, create_ping_target: models::CreatePingTarget) -> Result<models::CreatePingTargetOutput, Error<CreatePingTargetError>> {
8002    // add a prefix to parameters to efficiently prevent name collisions
8003    let p_body_create_ping_target = create_ping_target;
8004
8005    let uri_str = format!("{}/create-ping-target", configuration.base_path);
8006    let mut req_builder = configuration.client.request(reqwest::Method::POST, &uri_str);
8007
8008    if let Some(ref user_agent) = configuration.user_agent {
8009        req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone());
8010    }
8011    req_builder = req_builder.json(&p_body_create_ping_target);
8012
8013    let req = req_builder.build()?;
8014    let resp = configuration.client.execute(req).await?;
8015
8016    let status = resp.status();
8017    let content_type = resp
8018        .headers()
8019        .get("content-type")
8020        .and_then(|v| v.to_str().ok())
8021        .unwrap_or("application/octet-stream");
8022    let content_type = super::ContentType::from(content_type);
8023
8024    if !status.is_client_error() && !status.is_server_error() {
8025        let content = resp.text().await?;
8026        match content_type {
8027            ContentType::Json => serde_json::from_str(&content).map_err(Error::from),
8028            ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `models::CreatePingTargetOutput`"))),
8029            ContentType::Unsupported(unknown_type) => return Err(Error::from(serde_json::Error::custom(format!("Received `{unknown_type}` content type response that cannot be converted to `models::CreatePingTargetOutput`")))),
8030        }
8031    } else {
8032        let content = resp.text().await?;
8033        let entity: Option<CreatePingTargetError> = serde_json::from_str(&content).ok();
8034        Err(Error::ResponseError(ResponseContent { status, content, entity }))
8035    }
8036}
8037
8038pub async fn create_pki_cert_issuer(configuration: &configuration::Configuration, create_pki_cert_issuer: models::CreatePkiCertIssuer) -> Result<models::CreatePkiCertIssuerOutput, Error<CreatePkiCertIssuerError>> {
8039    // add a prefix to parameters to efficiently prevent name collisions
8040    let p_body_create_pki_cert_issuer = create_pki_cert_issuer;
8041
8042    let uri_str = format!("{}/create-pki-cert-issuer", configuration.base_path);
8043    let mut req_builder = configuration.client.request(reqwest::Method::POST, &uri_str);
8044
8045    if let Some(ref user_agent) = configuration.user_agent {
8046        req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone());
8047    }
8048    req_builder = req_builder.json(&p_body_create_pki_cert_issuer);
8049
8050    let req = req_builder.build()?;
8051    let resp = configuration.client.execute(req).await?;
8052
8053    let status = resp.status();
8054    let content_type = resp
8055        .headers()
8056        .get("content-type")
8057        .and_then(|v| v.to_str().ok())
8058        .unwrap_or("application/octet-stream");
8059    let content_type = super::ContentType::from(content_type);
8060
8061    if !status.is_client_error() && !status.is_server_error() {
8062        let content = resp.text().await?;
8063        match content_type {
8064            ContentType::Json => serde_json::from_str(&content).map_err(Error::from),
8065            ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `models::CreatePkiCertIssuerOutput`"))),
8066            ContentType::Unsupported(unknown_type) => return Err(Error::from(serde_json::Error::custom(format!("Received `{unknown_type}` content type response that cannot be converted to `models::CreatePkiCertIssuerOutput`")))),
8067        }
8068    } else {
8069        let content = resp.text().await?;
8070        let entity: Option<CreatePkiCertIssuerError> = serde_json::from_str(&content).ok();
8071        Err(Error::ResponseError(ResponseContent { status, content, entity }))
8072    }
8073}
8074
8075pub async fn create_rabbit_mq_target(configuration: &configuration::Configuration, create_rabbit_mq_target: models::CreateRabbitMqTarget) -> Result<models::CreateRabbitMqTargetOutput, Error<CreateRabbitMqTargetError>> {
8076    // add a prefix to parameters to efficiently prevent name collisions
8077    let p_body_create_rabbit_mq_target = create_rabbit_mq_target;
8078
8079    let uri_str = format!("{}/create-rabbitmq-target", configuration.base_path);
8080    let mut req_builder = configuration.client.request(reqwest::Method::POST, &uri_str);
8081
8082    if let Some(ref user_agent) = configuration.user_agent {
8083        req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone());
8084    }
8085    req_builder = req_builder.json(&p_body_create_rabbit_mq_target);
8086
8087    let req = req_builder.build()?;
8088    let resp = configuration.client.execute(req).await?;
8089
8090    let status = resp.status();
8091    let content_type = resp
8092        .headers()
8093        .get("content-type")
8094        .and_then(|v| v.to_str().ok())
8095        .unwrap_or("application/octet-stream");
8096    let content_type = super::ContentType::from(content_type);
8097
8098    if !status.is_client_error() && !status.is_server_error() {
8099        let content = resp.text().await?;
8100        match content_type {
8101            ContentType::Json => serde_json::from_str(&content).map_err(Error::from),
8102            ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `models::CreateRabbitMqTargetOutput`"))),
8103            ContentType::Unsupported(unknown_type) => return Err(Error::from(serde_json::Error::custom(format!("Received `{unknown_type}` content type response that cannot be converted to `models::CreateRabbitMqTargetOutput`")))),
8104        }
8105    } else {
8106        let content = resp.text().await?;
8107        let entity: Option<CreateRabbitMqTargetError> = serde_json::from_str(&content).ok();
8108        Err(Error::ResponseError(ResponseContent { status, content, entity }))
8109    }
8110}
8111
8112pub async fn create_role(configuration: &configuration::Configuration, create_role: models::CreateRole) -> Result<serde_json::Value, Error<CreateRoleError>> {
8113    // add a prefix to parameters to efficiently prevent name collisions
8114    let p_body_create_role = create_role;
8115
8116    let uri_str = format!("{}/create-role", configuration.base_path);
8117    let mut req_builder = configuration.client.request(reqwest::Method::POST, &uri_str);
8118
8119    if let Some(ref user_agent) = configuration.user_agent {
8120        req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone());
8121    }
8122    req_builder = req_builder.json(&p_body_create_role);
8123
8124    let req = req_builder.build()?;
8125    let resp = configuration.client.execute(req).await?;
8126
8127    let status = resp.status();
8128    let content_type = resp
8129        .headers()
8130        .get("content-type")
8131        .and_then(|v| v.to_str().ok())
8132        .unwrap_or("application/octet-stream");
8133    let content_type = super::ContentType::from(content_type);
8134
8135    if !status.is_client_error() && !status.is_server_error() {
8136        let content = resp.text().await?;
8137        match content_type {
8138            ContentType::Json => serde_json::from_str(&content).map_err(Error::from),
8139            ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `serde_json::Value`"))),
8140            ContentType::Unsupported(unknown_type) => return Err(Error::from(serde_json::Error::custom(format!("Received `{unknown_type}` content type response that cannot be converted to `serde_json::Value`")))),
8141        }
8142    } else {
8143        let content = resp.text().await?;
8144        let entity: Option<CreateRoleError> = serde_json::from_str(&content).ok();
8145        Err(Error::ResponseError(ResponseContent { status, content, entity }))
8146    }
8147}
8148
8149pub async fn create_rotated_secret(configuration: &configuration::Configuration, create_rotated_secret: models::CreateRotatedSecret) -> Result<models::CreateRotatedSecretOutput, Error<CreateRotatedSecretError>> {
8150    // add a prefix to parameters to efficiently prevent name collisions
8151    let p_body_create_rotated_secret = create_rotated_secret;
8152
8153    let uri_str = format!("{}/create-rotated-secret", configuration.base_path);
8154    let mut req_builder = configuration.client.request(reqwest::Method::POST, &uri_str);
8155
8156    if let Some(ref user_agent) = configuration.user_agent {
8157        req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone());
8158    }
8159    req_builder = req_builder.json(&p_body_create_rotated_secret);
8160
8161    let req = req_builder.build()?;
8162    let resp = configuration.client.execute(req).await?;
8163
8164    let status = resp.status();
8165    let content_type = resp
8166        .headers()
8167        .get("content-type")
8168        .and_then(|v| v.to_str().ok())
8169        .unwrap_or("application/octet-stream");
8170    let content_type = super::ContentType::from(content_type);
8171
8172    if !status.is_client_error() && !status.is_server_error() {
8173        let content = resp.text().await?;
8174        match content_type {
8175            ContentType::Json => serde_json::from_str(&content).map_err(Error::from),
8176            ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `models::CreateRotatedSecretOutput`"))),
8177            ContentType::Unsupported(unknown_type) => return Err(Error::from(serde_json::Error::custom(format!("Received `{unknown_type}` content type response that cannot be converted to `models::CreateRotatedSecretOutput`")))),
8178        }
8179    } else {
8180        let content = resp.text().await?;
8181        let entity: Option<CreateRotatedSecretError> = serde_json::from_str(&content).ok();
8182        Err(Error::ResponseError(ResponseContent { status, content, entity }))
8183    }
8184}
8185
8186pub async fn create_salesforce_target(configuration: &configuration::Configuration, create_salesforce_target: models::CreateSalesforceTarget) -> Result<models::CreateSalesforceTargetOutput, Error<CreateSalesforceTargetError>> {
8187    // add a prefix to parameters to efficiently prevent name collisions
8188    let p_body_create_salesforce_target = create_salesforce_target;
8189
8190    let uri_str = format!("{}/create-salesforce-target", configuration.base_path);
8191    let mut req_builder = configuration.client.request(reqwest::Method::POST, &uri_str);
8192
8193    if let Some(ref user_agent) = configuration.user_agent {
8194        req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone());
8195    }
8196    req_builder = req_builder.json(&p_body_create_salesforce_target);
8197
8198    let req = req_builder.build()?;
8199    let resp = configuration.client.execute(req).await?;
8200
8201    let status = resp.status();
8202    let content_type = resp
8203        .headers()
8204        .get("content-type")
8205        .and_then(|v| v.to_str().ok())
8206        .unwrap_or("application/octet-stream");
8207    let content_type = super::ContentType::from(content_type);
8208
8209    if !status.is_client_error() && !status.is_server_error() {
8210        let content = resp.text().await?;
8211        match content_type {
8212            ContentType::Json => serde_json::from_str(&content).map_err(Error::from),
8213            ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `models::CreateSalesforceTargetOutput`"))),
8214            ContentType::Unsupported(unknown_type) => return Err(Error::from(serde_json::Error::custom(format!("Received `{unknown_type}` content type response that cannot be converted to `models::CreateSalesforceTargetOutput`")))),
8215        }
8216    } else {
8217        let content = resp.text().await?;
8218        let entity: Option<CreateSalesforceTargetError> = serde_json::from_str(&content).ok();
8219        Err(Error::ResponseError(ResponseContent { status, content, entity }))
8220    }
8221}
8222
8223pub async fn create_secret(configuration: &configuration::Configuration, create_secret: models::CreateSecret) -> Result<models::CreateSecretOutput, Error<CreateSecretError>> {
8224    // add a prefix to parameters to efficiently prevent name collisions
8225    let p_body_create_secret = create_secret;
8226
8227    let uri_str = format!("{}/create-secret", configuration.base_path);
8228    let mut req_builder = configuration.client.request(reqwest::Method::POST, &uri_str);
8229
8230    if let Some(ref user_agent) = configuration.user_agent {
8231        req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone());
8232    }
8233    req_builder = req_builder.json(&p_body_create_secret);
8234
8235    let req = req_builder.build()?;
8236    let resp = configuration.client.execute(req).await?;
8237
8238    let status = resp.status();
8239    let content_type = resp
8240        .headers()
8241        .get("content-type")
8242        .and_then(|v| v.to_str().ok())
8243        .unwrap_or("application/octet-stream");
8244    let content_type = super::ContentType::from(content_type);
8245
8246    if !status.is_client_error() && !status.is_server_error() {
8247        let content = resp.text().await?;
8248        match content_type {
8249            ContentType::Json => serde_json::from_str(&content).map_err(Error::from),
8250            ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `models::CreateSecretOutput`"))),
8251            ContentType::Unsupported(unknown_type) => return Err(Error::from(serde_json::Error::custom(format!("Received `{unknown_type}` content type response that cannot be converted to `models::CreateSecretOutput`")))),
8252        }
8253    } else {
8254        let content = resp.text().await?;
8255        let entity: Option<CreateSecretError> = serde_json::from_str(&content).ok();
8256        Err(Error::ResponseError(ResponseContent { status, content, entity }))
8257    }
8258}
8259
8260pub async fn create_ssh_cert_issuer(configuration: &configuration::Configuration, create_ssh_cert_issuer: models::CreateSshCertIssuer) -> Result<models::CreateSshCertIssuerOutput, Error<CreateSshCertIssuerError>> {
8261    // add a prefix to parameters to efficiently prevent name collisions
8262    let p_body_create_ssh_cert_issuer = create_ssh_cert_issuer;
8263
8264    let uri_str = format!("{}/create-ssh-cert-issuer", configuration.base_path);
8265    let mut req_builder = configuration.client.request(reqwest::Method::POST, &uri_str);
8266
8267    if let Some(ref user_agent) = configuration.user_agent {
8268        req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone());
8269    }
8270    req_builder = req_builder.json(&p_body_create_ssh_cert_issuer);
8271
8272    let req = req_builder.build()?;
8273    let resp = configuration.client.execute(req).await?;
8274
8275    let status = resp.status();
8276    let content_type = resp
8277        .headers()
8278        .get("content-type")
8279        .and_then(|v| v.to_str().ok())
8280        .unwrap_or("application/octet-stream");
8281    let content_type = super::ContentType::from(content_type);
8282
8283    if !status.is_client_error() && !status.is_server_error() {
8284        let content = resp.text().await?;
8285        match content_type {
8286            ContentType::Json => serde_json::from_str(&content).map_err(Error::from),
8287            ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `models::CreateSshCertIssuerOutput`"))),
8288            ContentType::Unsupported(unknown_type) => return Err(Error::from(serde_json::Error::custom(format!("Received `{unknown_type}` content type response that cannot be converted to `models::CreateSshCertIssuerOutput`")))),
8289        }
8290    } else {
8291        let content = resp.text().await?;
8292        let entity: Option<CreateSshCertIssuerError> = serde_json::from_str(&content).ok();
8293        Err(Error::ResponseError(ResponseContent { status, content, entity }))
8294    }
8295}
8296
8297pub async fn create_ssh_target(configuration: &configuration::Configuration, create_ssh_target: models::CreateSshTarget) -> Result<models::CreateSshTargetOutput, Error<CreateSshTargetError>> {
8298    // add a prefix to parameters to efficiently prevent name collisions
8299    let p_body_create_ssh_target = create_ssh_target;
8300
8301    let uri_str = format!("{}/create-ssh-target", configuration.base_path);
8302    let mut req_builder = configuration.client.request(reqwest::Method::POST, &uri_str);
8303
8304    if let Some(ref user_agent) = configuration.user_agent {
8305        req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone());
8306    }
8307    req_builder = req_builder.json(&p_body_create_ssh_target);
8308
8309    let req = req_builder.build()?;
8310    let resp = configuration.client.execute(req).await?;
8311
8312    let status = resp.status();
8313    let content_type = resp
8314        .headers()
8315        .get("content-type")
8316        .and_then(|v| v.to_str().ok())
8317        .unwrap_or("application/octet-stream");
8318    let content_type = super::ContentType::from(content_type);
8319
8320    if !status.is_client_error() && !status.is_server_error() {
8321        let content = resp.text().await?;
8322        match content_type {
8323            ContentType::Json => serde_json::from_str(&content).map_err(Error::from),
8324            ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `models::CreateSshTargetOutput`"))),
8325            ContentType::Unsupported(unknown_type) => return Err(Error::from(serde_json::Error::custom(format!("Received `{unknown_type}` content type response that cannot be converted to `models::CreateSshTargetOutput`")))),
8326        }
8327    } else {
8328        let content = resp.text().await?;
8329        let entity: Option<CreateSshTargetError> = serde_json::from_str(&content).ok();
8330        Err(Error::ResponseError(ResponseContent { status, content, entity }))
8331    }
8332}
8333
8334pub async fn create_tokenizer(configuration: &configuration::Configuration, create_tokenizer: models::CreateTokenizer) -> Result<models::CreateTokenizerOutput, Error<CreateTokenizerError>> {
8335    // add a prefix to parameters to efficiently prevent name collisions
8336    let p_body_create_tokenizer = create_tokenizer;
8337
8338    let uri_str = format!("{}/create-tokenizer", configuration.base_path);
8339    let mut req_builder = configuration.client.request(reqwest::Method::POST, &uri_str);
8340
8341    if let Some(ref user_agent) = configuration.user_agent {
8342        req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone());
8343    }
8344    req_builder = req_builder.json(&p_body_create_tokenizer);
8345
8346    let req = req_builder.build()?;
8347    let resp = configuration.client.execute(req).await?;
8348
8349    let status = resp.status();
8350    let content_type = resp
8351        .headers()
8352        .get("content-type")
8353        .and_then(|v| v.to_str().ok())
8354        .unwrap_or("application/octet-stream");
8355    let content_type = super::ContentType::from(content_type);
8356
8357    if !status.is_client_error() && !status.is_server_error() {
8358        let content = resp.text().await?;
8359        match content_type {
8360            ContentType::Json => serde_json::from_str(&content).map_err(Error::from),
8361            ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `models::CreateTokenizerOutput`"))),
8362            ContentType::Unsupported(unknown_type) => return Err(Error::from(serde_json::Error::custom(format!("Received `{unknown_type}` content type response that cannot be converted to `models::CreateTokenizerOutput`")))),
8363        }
8364    } else {
8365        let content = resp.text().await?;
8366        let entity: Option<CreateTokenizerError> = serde_json::from_str(&content).ok();
8367        Err(Error::ResponseError(ResponseContent { status, content, entity }))
8368    }
8369}
8370
8371pub async fn create_usc(configuration: &configuration::Configuration, create_usc: models::CreateUsc) -> Result<models::CreateUscOutput, Error<CreateUscError>> {
8372    // add a prefix to parameters to efficiently prevent name collisions
8373    let p_body_create_usc = create_usc;
8374
8375    let uri_str = format!("{}/create-usc", configuration.base_path);
8376    let mut req_builder = configuration.client.request(reqwest::Method::POST, &uri_str);
8377
8378    if let Some(ref user_agent) = configuration.user_agent {
8379        req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone());
8380    }
8381    req_builder = req_builder.json(&p_body_create_usc);
8382
8383    let req = req_builder.build()?;
8384    let resp = configuration.client.execute(req).await?;
8385
8386    let status = resp.status();
8387    let content_type = resp
8388        .headers()
8389        .get("content-type")
8390        .and_then(|v| v.to_str().ok())
8391        .unwrap_or("application/octet-stream");
8392    let content_type = super::ContentType::from(content_type);
8393
8394    if !status.is_client_error() && !status.is_server_error() {
8395        let content = resp.text().await?;
8396        match content_type {
8397            ContentType::Json => serde_json::from_str(&content).map_err(Error::from),
8398            ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `models::CreateUscOutput`"))),
8399            ContentType::Unsupported(unknown_type) => return Err(Error::from(serde_json::Error::custom(format!("Received `{unknown_type}` content type response that cannot be converted to `models::CreateUscOutput`")))),
8400        }
8401    } else {
8402        let content = resp.text().await?;
8403        let entity: Option<CreateUscError> = serde_json::from_str(&content).ok();
8404        Err(Error::ResponseError(ResponseContent { status, content, entity }))
8405    }
8406}
8407
8408pub async fn create_user_event(configuration: &configuration::Configuration, create_user_event: models::CreateUserEvent) -> Result<models::CreateUserEventOutput, Error<CreateUserEventError>> {
8409    // add a prefix to parameters to efficiently prevent name collisions
8410    let p_body_create_user_event = create_user_event;
8411
8412    let uri_str = format!("{}/create-user-event", configuration.base_path);
8413    let mut req_builder = configuration.client.request(reqwest::Method::POST, &uri_str);
8414
8415    if let Some(ref user_agent) = configuration.user_agent {
8416        req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone());
8417    }
8418    req_builder = req_builder.json(&p_body_create_user_event);
8419
8420    let req = req_builder.build()?;
8421    let resp = configuration.client.execute(req).await?;
8422
8423    let status = resp.status();
8424    let content_type = resp
8425        .headers()
8426        .get("content-type")
8427        .and_then(|v| v.to_str().ok())
8428        .unwrap_or("application/octet-stream");
8429    let content_type = super::ContentType::from(content_type);
8430
8431    if !status.is_client_error() && !status.is_server_error() {
8432        let content = resp.text().await?;
8433        match content_type {
8434            ContentType::Json => serde_json::from_str(&content).map_err(Error::from),
8435            ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `models::CreateUserEventOutput`"))),
8436            ContentType::Unsupported(unknown_type) => return Err(Error::from(serde_json::Error::custom(format!("Received `{unknown_type}` content type response that cannot be converted to `models::CreateUserEventOutput`")))),
8437        }
8438    } else {
8439        let content = resp.text().await?;
8440        let entity: Option<CreateUserEventError> = serde_json::from_str(&content).ok();
8441        Err(Error::ResponseError(ResponseContent { status, content, entity }))
8442    }
8443}
8444
8445pub async fn create_web_target(configuration: &configuration::Configuration, create_web_target: models::CreateWebTarget) -> Result<models::CreateWebTargetOutput, Error<CreateWebTargetError>> {
8446    // add a prefix to parameters to efficiently prevent name collisions
8447    let p_body_create_web_target = create_web_target;
8448
8449    let uri_str = format!("{}/create-web-target", configuration.base_path);
8450    let mut req_builder = configuration.client.request(reqwest::Method::POST, &uri_str);
8451
8452    if let Some(ref user_agent) = configuration.user_agent {
8453        req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone());
8454    }
8455    req_builder = req_builder.json(&p_body_create_web_target);
8456
8457    let req = req_builder.build()?;
8458    let resp = configuration.client.execute(req).await?;
8459
8460    let status = resp.status();
8461    let content_type = resp
8462        .headers()
8463        .get("content-type")
8464        .and_then(|v| v.to_str().ok())
8465        .unwrap_or("application/octet-stream");
8466    let content_type = super::ContentType::from(content_type);
8467
8468    if !status.is_client_error() && !status.is_server_error() {
8469        let content = resp.text().await?;
8470        match content_type {
8471            ContentType::Json => serde_json::from_str(&content).map_err(Error::from),
8472            ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `models::CreateWebTargetOutput`"))),
8473            ContentType::Unsupported(unknown_type) => return Err(Error::from(serde_json::Error::custom(format!("Received `{unknown_type}` content type response that cannot be converted to `models::CreateWebTargetOutput`")))),
8474        }
8475    } else {
8476        let content = resp.text().await?;
8477        let entity: Option<CreateWebTargetError> = serde_json::from_str(&content).ok();
8478        Err(Error::ResponseError(ResponseContent { status, content, entity }))
8479    }
8480}
8481
8482pub async fn create_windows_target(configuration: &configuration::Configuration, create_windows_target: models::CreateWindowsTarget) -> Result<models::CreateWindowsTargetOutput, Error<CreateWindowsTargetError>> {
8483    // add a prefix to parameters to efficiently prevent name collisions
8484    let p_body_create_windows_target = create_windows_target;
8485
8486    let uri_str = format!("{}/create-windows-target", configuration.base_path);
8487    let mut req_builder = configuration.client.request(reqwest::Method::POST, &uri_str);
8488
8489    if let Some(ref user_agent) = configuration.user_agent {
8490        req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone());
8491    }
8492    req_builder = req_builder.json(&p_body_create_windows_target);
8493
8494    let req = req_builder.build()?;
8495    let resp = configuration.client.execute(req).await?;
8496
8497    let status = resp.status();
8498    let content_type = resp
8499        .headers()
8500        .get("content-type")
8501        .and_then(|v| v.to_str().ok())
8502        .unwrap_or("application/octet-stream");
8503    let content_type = super::ContentType::from(content_type);
8504
8505    if !status.is_client_error() && !status.is_server_error() {
8506        let content = resp.text().await?;
8507        match content_type {
8508            ContentType::Json => serde_json::from_str(&content).map_err(Error::from),
8509            ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `models::CreateWindowsTargetOutput`"))),
8510            ContentType::Unsupported(unknown_type) => return Err(Error::from(serde_json::Error::custom(format!("Received `{unknown_type}` content type response that cannot be converted to `models::CreateWindowsTargetOutput`")))),
8511        }
8512    } else {
8513        let content = resp.text().await?;
8514        let entity: Option<CreateWindowsTargetError> = serde_json::from_str(&content).ok();
8515        Err(Error::ResponseError(ResponseContent { status, content, entity }))
8516    }
8517}
8518
8519pub async fn create_zero_ssl_target(configuration: &configuration::Configuration, create_zero_ssl_target: models::CreateZeroSslTarget) -> Result<models::CreateZeroSslTargetOutput, Error<CreateZeroSslTargetError>> {
8520    // add a prefix to parameters to efficiently prevent name collisions
8521    let p_body_create_zero_ssl_target = create_zero_ssl_target;
8522
8523    let uri_str = format!("{}/create-zerossl-target", configuration.base_path);
8524    let mut req_builder = configuration.client.request(reqwest::Method::POST, &uri_str);
8525
8526    if let Some(ref user_agent) = configuration.user_agent {
8527        req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone());
8528    }
8529    req_builder = req_builder.json(&p_body_create_zero_ssl_target);
8530
8531    let req = req_builder.build()?;
8532    let resp = configuration.client.execute(req).await?;
8533
8534    let status = resp.status();
8535    let content_type = resp
8536        .headers()
8537        .get("content-type")
8538        .and_then(|v| v.to_str().ok())
8539        .unwrap_or("application/octet-stream");
8540    let content_type = super::ContentType::from(content_type);
8541
8542    if !status.is_client_error() && !status.is_server_error() {
8543        let content = resp.text().await?;
8544        match content_type {
8545            ContentType::Json => serde_json::from_str(&content).map_err(Error::from),
8546            ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `models::CreateZeroSslTargetOutput`"))),
8547            ContentType::Unsupported(unknown_type) => return Err(Error::from(serde_json::Error::custom(format!("Received `{unknown_type}` content type response that cannot be converted to `models::CreateZeroSslTargetOutput`")))),
8548        }
8549    } else {
8550        let content = resp.text().await?;
8551        let entity: Option<CreateZeroSslTargetError> = serde_json::from_str(&content).ok();
8552        Err(Error::ResponseError(ResponseContent { status, content, entity }))
8553    }
8554}
8555
8556pub async fn createldap_target(configuration: &configuration::Configuration, create_ldap_target: models::CreateLdapTarget) -> Result<models::CreateLdapTargetOutput, Error<CreateldapTargetError>> {
8557    // add a prefix to parameters to efficiently prevent name collisions
8558    let p_body_create_ldap_target = create_ldap_target;
8559
8560    let uri_str = format!("{}/create-ldap-target", configuration.base_path);
8561    let mut req_builder = configuration.client.request(reqwest::Method::POST, &uri_str);
8562
8563    if let Some(ref user_agent) = configuration.user_agent {
8564        req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone());
8565    }
8566    req_builder = req_builder.json(&p_body_create_ldap_target);
8567
8568    let req = req_builder.build()?;
8569    let resp = configuration.client.execute(req).await?;
8570
8571    let status = resp.status();
8572    let content_type = resp
8573        .headers()
8574        .get("content-type")
8575        .and_then(|v| v.to_str().ok())
8576        .unwrap_or("application/octet-stream");
8577    let content_type = super::ContentType::from(content_type);
8578
8579    if !status.is_client_error() && !status.is_server_error() {
8580        let content = resp.text().await?;
8581        match content_type {
8582            ContentType::Json => serde_json::from_str(&content).map_err(Error::from),
8583            ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `models::CreateLdapTargetOutput`"))),
8584            ContentType::Unsupported(unknown_type) => return Err(Error::from(serde_json::Error::custom(format!("Received `{unknown_type}` content type response that cannot be converted to `models::CreateLdapTargetOutput`")))),
8585        }
8586    } else {
8587        let content = resp.text().await?;
8588        let entity: Option<CreateldapTargetError> = serde_json::from_str(&content).ok();
8589        Err(Error::ResponseError(ResponseContent { status, content, entity }))
8590    }
8591}
8592
8593pub async fn deactivate_acme_account(configuration: &configuration::Configuration, deactivate_acme_account: models::DeactivateAcmeAccount) -> Result<serde_json::Value, Error<DeactivateAcmeAccountError>> {
8594    // add a prefix to parameters to efficiently prevent name collisions
8595    let p_body_deactivate_acme_account = deactivate_acme_account;
8596
8597    let uri_str = format!("{}/deactivate-acme-account", configuration.base_path);
8598    let mut req_builder = configuration.client.request(reqwest::Method::POST, &uri_str);
8599
8600    if let Some(ref user_agent) = configuration.user_agent {
8601        req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone());
8602    }
8603    req_builder = req_builder.json(&p_body_deactivate_acme_account);
8604
8605    let req = req_builder.build()?;
8606    let resp = configuration.client.execute(req).await?;
8607
8608    let status = resp.status();
8609    let content_type = resp
8610        .headers()
8611        .get("content-type")
8612        .and_then(|v| v.to_str().ok())
8613        .unwrap_or("application/octet-stream");
8614    let content_type = super::ContentType::from(content_type);
8615
8616    if !status.is_client_error() && !status.is_server_error() {
8617        let content = resp.text().await?;
8618        match content_type {
8619            ContentType::Json => serde_json::from_str(&content).map_err(Error::from),
8620            ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `serde_json::Value`"))),
8621            ContentType::Unsupported(unknown_type) => return Err(Error::from(serde_json::Error::custom(format!("Received `{unknown_type}` content type response that cannot be converted to `serde_json::Value`")))),
8622        }
8623    } else {
8624        let content = resp.text().await?;
8625        let entity: Option<DeactivateAcmeAccountError> = serde_json::from_str(&content).ok();
8626        Err(Error::ResponseError(ResponseContent { status, content, entity }))
8627    }
8628}
8629
8630pub async fn decrypt(configuration: &configuration::Configuration, decrypt: models::Decrypt) -> Result<models::DecryptOutput, Error<DecryptError>> {
8631    // add a prefix to parameters to efficiently prevent name collisions
8632    let p_body_decrypt = decrypt;
8633
8634    let uri_str = format!("{}/decrypt", configuration.base_path);
8635    let mut req_builder = configuration.client.request(reqwest::Method::POST, &uri_str);
8636
8637    if let Some(ref user_agent) = configuration.user_agent {
8638        req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone());
8639    }
8640    req_builder = req_builder.json(&p_body_decrypt);
8641
8642    let req = req_builder.build()?;
8643    let resp = configuration.client.execute(req).await?;
8644
8645    let status = resp.status();
8646    let content_type = resp
8647        .headers()
8648        .get("content-type")
8649        .and_then(|v| v.to_str().ok())
8650        .unwrap_or("application/octet-stream");
8651    let content_type = super::ContentType::from(content_type);
8652
8653    if !status.is_client_error() && !status.is_server_error() {
8654        let content = resp.text().await?;
8655        match content_type {
8656            ContentType::Json => serde_json::from_str(&content).map_err(Error::from),
8657            ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `models::DecryptOutput`"))),
8658            ContentType::Unsupported(unknown_type) => return Err(Error::from(serde_json::Error::custom(format!("Received `{unknown_type}` content type response that cannot be converted to `models::DecryptOutput`")))),
8659        }
8660    } else {
8661        let content = resp.text().await?;
8662        let entity: Option<DecryptError> = serde_json::from_str(&content).ok();
8663        Err(Error::ResponseError(ResponseContent { status, content, entity }))
8664    }
8665}
8666
8667pub async fn decrypt_batch(configuration: &configuration::Configuration, batch_encryption_request_line: Vec<models::BatchEncryptionRequestLine>) -> Result<models::DecryptOutput, Error<DecryptBatchError>> {
8668    // add a prefix to parameters to efficiently prevent name collisions
8669    let p_body_batch_encryption_request_line = batch_encryption_request_line;
8670
8671    let uri_str = format!("{}/decrypt-batch", configuration.base_path);
8672    let mut req_builder = configuration.client.request(reqwest::Method::POST, &uri_str);
8673
8674    if let Some(ref user_agent) = configuration.user_agent {
8675        req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone());
8676    }
8677    req_builder = req_builder.json(&p_body_batch_encryption_request_line);
8678
8679    let req = req_builder.build()?;
8680    let resp = configuration.client.execute(req).await?;
8681
8682    let status = resp.status();
8683    let content_type = resp
8684        .headers()
8685        .get("content-type")
8686        .and_then(|v| v.to_str().ok())
8687        .unwrap_or("application/octet-stream");
8688    let content_type = super::ContentType::from(content_type);
8689
8690    if !status.is_client_error() && !status.is_server_error() {
8691        let content = resp.text().await?;
8692        match content_type {
8693            ContentType::Json => serde_json::from_str(&content).map_err(Error::from),
8694            ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `models::DecryptOutput`"))),
8695            ContentType::Unsupported(unknown_type) => return Err(Error::from(serde_json::Error::custom(format!("Received `{unknown_type}` content type response that cannot be converted to `models::DecryptOutput`")))),
8696        }
8697    } else {
8698        let content = resp.text().await?;
8699        let entity: Option<DecryptBatchError> = serde_json::from_str(&content).ok();
8700        Err(Error::ResponseError(ResponseContent { status, content, entity }))
8701    }
8702}
8703
8704pub async fn decrypt_gpg(configuration: &configuration::Configuration, decrypt_gpg: models::DecryptGpg) -> Result<models::DecryptGpgOutput, Error<DecryptGpgError>> {
8705    // add a prefix to parameters to efficiently prevent name collisions
8706    let p_body_decrypt_gpg = decrypt_gpg;
8707
8708    let uri_str = format!("{}/decrypt-gpg", configuration.base_path);
8709    let mut req_builder = configuration.client.request(reqwest::Method::POST, &uri_str);
8710
8711    if let Some(ref user_agent) = configuration.user_agent {
8712        req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone());
8713    }
8714    req_builder = req_builder.json(&p_body_decrypt_gpg);
8715
8716    let req = req_builder.build()?;
8717    let resp = configuration.client.execute(req).await?;
8718
8719    let status = resp.status();
8720    let content_type = resp
8721        .headers()
8722        .get("content-type")
8723        .and_then(|v| v.to_str().ok())
8724        .unwrap_or("application/octet-stream");
8725    let content_type = super::ContentType::from(content_type);
8726
8727    if !status.is_client_error() && !status.is_server_error() {
8728        let content = resp.text().await?;
8729        match content_type {
8730            ContentType::Json => serde_json::from_str(&content).map_err(Error::from),
8731            ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `models::DecryptGpgOutput`"))),
8732            ContentType::Unsupported(unknown_type) => return Err(Error::from(serde_json::Error::custom(format!("Received `{unknown_type}` content type response that cannot be converted to `models::DecryptGpgOutput`")))),
8733        }
8734    } else {
8735        let content = resp.text().await?;
8736        let entity: Option<DecryptGpgError> = serde_json::from_str(&content).ok();
8737        Err(Error::ResponseError(ResponseContent { status, content, entity }))
8738    }
8739}
8740
8741pub async fn decrypt_pkcs1(configuration: &configuration::Configuration, decrypt_pkcs1: models::DecryptPkcs1) -> Result<models::DecryptPkcs1Output, Error<DecryptPkcs1Error>> {
8742    // add a prefix to parameters to efficiently prevent name collisions
8743    let p_body_decrypt_pkcs1 = decrypt_pkcs1;
8744
8745    let uri_str = format!("{}/decrypt-pkcs1", configuration.base_path);
8746    let mut req_builder = configuration.client.request(reqwest::Method::POST, &uri_str);
8747
8748    if let Some(ref user_agent) = configuration.user_agent {
8749        req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone());
8750    }
8751    req_builder = req_builder.json(&p_body_decrypt_pkcs1);
8752
8753    let req = req_builder.build()?;
8754    let resp = configuration.client.execute(req).await?;
8755
8756    let status = resp.status();
8757    let content_type = resp
8758        .headers()
8759        .get("content-type")
8760        .and_then(|v| v.to_str().ok())
8761        .unwrap_or("application/octet-stream");
8762    let content_type = super::ContentType::from(content_type);
8763
8764    if !status.is_client_error() && !status.is_server_error() {
8765        let content = resp.text().await?;
8766        match content_type {
8767            ContentType::Json => serde_json::from_str(&content).map_err(Error::from),
8768            ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `models::DecryptPkcs1Output`"))),
8769            ContentType::Unsupported(unknown_type) => return Err(Error::from(serde_json::Error::custom(format!("Received `{unknown_type}` content type response that cannot be converted to `models::DecryptPkcs1Output`")))),
8770        }
8771    } else {
8772        let content = resp.text().await?;
8773        let entity: Option<DecryptPkcs1Error> = serde_json::from_str(&content).ok();
8774        Err(Error::ResponseError(ResponseContent { status, content, entity }))
8775    }
8776}
8777
8778pub async fn decrypt_with_classic_key(configuration: &configuration::Configuration, decrypt_with_classic_key: models::DecryptWithClassicKey) -> Result<models::DecryptWithClassicKeyOutput, Error<DecryptWithClassicKeyError>> {
8779    // add a prefix to parameters to efficiently prevent name collisions
8780    let p_body_decrypt_with_classic_key = decrypt_with_classic_key;
8781
8782    let uri_str = format!("{}/decrypt-with-classic-key", configuration.base_path);
8783    let mut req_builder = configuration.client.request(reqwest::Method::POST, &uri_str);
8784
8785    if let Some(ref user_agent) = configuration.user_agent {
8786        req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone());
8787    }
8788    req_builder = req_builder.json(&p_body_decrypt_with_classic_key);
8789
8790    let req = req_builder.build()?;
8791    let resp = configuration.client.execute(req).await?;
8792
8793    let status = resp.status();
8794    let content_type = resp
8795        .headers()
8796        .get("content-type")
8797        .and_then(|v| v.to_str().ok())
8798        .unwrap_or("application/octet-stream");
8799    let content_type = super::ContentType::from(content_type);
8800
8801    if !status.is_client_error() && !status.is_server_error() {
8802        let content = resp.text().await?;
8803        match content_type {
8804            ContentType::Json => serde_json::from_str(&content).map_err(Error::from),
8805            ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `models::DecryptWithClassicKeyOutput`"))),
8806            ContentType::Unsupported(unknown_type) => return Err(Error::from(serde_json::Error::custom(format!("Received `{unknown_type}` content type response that cannot be converted to `models::DecryptWithClassicKeyOutput`")))),
8807        }
8808    } else {
8809        let content = resp.text().await?;
8810        let entity: Option<DecryptWithClassicKeyError> = serde_json::from_str(&content).ok();
8811        Err(Error::ResponseError(ResponseContent { status, content, entity }))
8812    }
8813}
8814
8815pub async fn delete_auth_method(configuration: &configuration::Configuration, delete_auth_method: models::DeleteAuthMethod) -> Result<models::DeleteAuthMethodOutput, Error<DeleteAuthMethodError>> {
8816    // add a prefix to parameters to efficiently prevent name collisions
8817    let p_body_delete_auth_method = delete_auth_method;
8818
8819    let uri_str = format!("{}/delete-auth-method", configuration.base_path);
8820    let mut req_builder = configuration.client.request(reqwest::Method::POST, &uri_str);
8821
8822    if let Some(ref user_agent) = configuration.user_agent {
8823        req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone());
8824    }
8825    req_builder = req_builder.json(&p_body_delete_auth_method);
8826
8827    let req = req_builder.build()?;
8828    let resp = configuration.client.execute(req).await?;
8829
8830    let status = resp.status();
8831    let content_type = resp
8832        .headers()
8833        .get("content-type")
8834        .and_then(|v| v.to_str().ok())
8835        .unwrap_or("application/octet-stream");
8836    let content_type = super::ContentType::from(content_type);
8837
8838    if !status.is_client_error() && !status.is_server_error() {
8839        let content = resp.text().await?;
8840        match content_type {
8841            ContentType::Json => serde_json::from_str(&content).map_err(Error::from),
8842            ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `models::DeleteAuthMethodOutput`"))),
8843            ContentType::Unsupported(unknown_type) => return Err(Error::from(serde_json::Error::custom(format!("Received `{unknown_type}` content type response that cannot be converted to `models::DeleteAuthMethodOutput`")))),
8844        }
8845    } else {
8846        let content = resp.text().await?;
8847        let entity: Option<DeleteAuthMethodError> = serde_json::from_str(&content).ok();
8848        Err(Error::ResponseError(ResponseContent { status, content, entity }))
8849    }
8850}
8851
8852pub async fn delete_auth_methods(configuration: &configuration::Configuration, delete_auth_methods: models::DeleteAuthMethods) -> Result<models::DeleteAuthMethodsOutput, Error<DeleteAuthMethodsError>> {
8853    // add a prefix to parameters to efficiently prevent name collisions
8854    let p_body_delete_auth_methods = delete_auth_methods;
8855
8856    let uri_str = format!("{}/delete-auth-methods", configuration.base_path);
8857    let mut req_builder = configuration.client.request(reqwest::Method::POST, &uri_str);
8858
8859    if let Some(ref user_agent) = configuration.user_agent {
8860        req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone());
8861    }
8862    req_builder = req_builder.json(&p_body_delete_auth_methods);
8863
8864    let req = req_builder.build()?;
8865    let resp = configuration.client.execute(req).await?;
8866
8867    let status = resp.status();
8868    let content_type = resp
8869        .headers()
8870        .get("content-type")
8871        .and_then(|v| v.to_str().ok())
8872        .unwrap_or("application/octet-stream");
8873    let content_type = super::ContentType::from(content_type);
8874
8875    if !status.is_client_error() && !status.is_server_error() {
8876        let content = resp.text().await?;
8877        match content_type {
8878            ContentType::Json => serde_json::from_str(&content).map_err(Error::from),
8879            ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `models::DeleteAuthMethodsOutput`"))),
8880            ContentType::Unsupported(unknown_type) => return Err(Error::from(serde_json::Error::custom(format!("Received `{unknown_type}` content type response that cannot be converted to `models::DeleteAuthMethodsOutput`")))),
8881        }
8882    } else {
8883        let content = resp.text().await?;
8884        let entity: Option<DeleteAuthMethodsError> = serde_json::from_str(&content).ok();
8885        Err(Error::ResponseError(ResponseContent { status, content, entity }))
8886    }
8887}
8888
8889pub async fn delete_event_forwarder(configuration: &configuration::Configuration, delete_event_forwarder: models::DeleteEventForwarder) -> Result<serde_json::Value, Error<DeleteEventForwarderError>> {
8890    // add a prefix to parameters to efficiently prevent name collisions
8891    let p_body_delete_event_forwarder = delete_event_forwarder;
8892
8893    let uri_str = format!("{}/delete-event-forwarder", configuration.base_path);
8894    let mut req_builder = configuration.client.request(reqwest::Method::POST, &uri_str);
8895
8896    if let Some(ref user_agent) = configuration.user_agent {
8897        req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone());
8898    }
8899    req_builder = req_builder.json(&p_body_delete_event_forwarder);
8900
8901    let req = req_builder.build()?;
8902    let resp = configuration.client.execute(req).await?;
8903
8904    let status = resp.status();
8905    let content_type = resp
8906        .headers()
8907        .get("content-type")
8908        .and_then(|v| v.to_str().ok())
8909        .unwrap_or("application/octet-stream");
8910    let content_type = super::ContentType::from(content_type);
8911
8912    if !status.is_client_error() && !status.is_server_error() {
8913        let content = resp.text().await?;
8914        match content_type {
8915            ContentType::Json => serde_json::from_str(&content).map_err(Error::from),
8916            ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `serde_json::Value`"))),
8917            ContentType::Unsupported(unknown_type) => return Err(Error::from(serde_json::Error::custom(format!("Received `{unknown_type}` content type response that cannot be converted to `serde_json::Value`")))),
8918        }
8919    } else {
8920        let content = resp.text().await?;
8921        let entity: Option<DeleteEventForwarderError> = serde_json::from_str(&content).ok();
8922        Err(Error::ResponseError(ResponseContent { status, content, entity }))
8923    }
8924}
8925
8926pub async fn delete_gateway_allowed_access_id(configuration: &configuration::Configuration, delete_gateway_allowed_access_id: models::DeleteGatewayAllowedAccessId) -> Result<serde_json::Value, Error<DeleteGatewayAllowedAccessIdError>> {
8927    // add a prefix to parameters to efficiently prevent name collisions
8928    let p_body_delete_gateway_allowed_access_id = delete_gateway_allowed_access_id;
8929
8930    let uri_str = format!("{}/gateway-delete-allowed-management-access", configuration.base_path);
8931    let mut req_builder = configuration.client.request(reqwest::Method::POST, &uri_str);
8932
8933    if let Some(ref user_agent) = configuration.user_agent {
8934        req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone());
8935    }
8936    req_builder = req_builder.json(&p_body_delete_gateway_allowed_access_id);
8937
8938    let req = req_builder.build()?;
8939    let resp = configuration.client.execute(req).await?;
8940
8941    let status = resp.status();
8942    let content_type = resp
8943        .headers()
8944        .get("content-type")
8945        .and_then(|v| v.to_str().ok())
8946        .unwrap_or("application/octet-stream");
8947    let content_type = super::ContentType::from(content_type);
8948
8949    if !status.is_client_error() && !status.is_server_error() {
8950        let content = resp.text().await?;
8951        match content_type {
8952            ContentType::Json => serde_json::from_str(&content).map_err(Error::from),
8953            ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `serde_json::Value`"))),
8954            ContentType::Unsupported(unknown_type) => return Err(Error::from(serde_json::Error::custom(format!("Received `{unknown_type}` content type response that cannot be converted to `serde_json::Value`")))),
8955        }
8956    } else {
8957        let content = resp.text().await?;
8958        let entity: Option<DeleteGatewayAllowedAccessIdError> = serde_json::from_str(&content).ok();
8959        Err(Error::ResponseError(ResponseContent { status, content, entity }))
8960    }
8961}
8962
8963pub async fn delete_group(configuration: &configuration::Configuration, delete_group: models::DeleteGroup) -> Result<models::DeleteGroupOutput, Error<DeleteGroupError>> {
8964    // add a prefix to parameters to efficiently prevent name collisions
8965    let p_body_delete_group = delete_group;
8966
8967    let uri_str = format!("{}/delete-group", configuration.base_path);
8968    let mut req_builder = configuration.client.request(reqwest::Method::POST, &uri_str);
8969
8970    if let Some(ref user_agent) = configuration.user_agent {
8971        req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone());
8972    }
8973    req_builder = req_builder.json(&p_body_delete_group);
8974
8975    let req = req_builder.build()?;
8976    let resp = configuration.client.execute(req).await?;
8977
8978    let status = resp.status();
8979    let content_type = resp
8980        .headers()
8981        .get("content-type")
8982        .and_then(|v| v.to_str().ok())
8983        .unwrap_or("application/octet-stream");
8984    let content_type = super::ContentType::from(content_type);
8985
8986    if !status.is_client_error() && !status.is_server_error() {
8987        let content = resp.text().await?;
8988        match content_type {
8989            ContentType::Json => serde_json::from_str(&content).map_err(Error::from),
8990            ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `models::DeleteGroupOutput`"))),
8991            ContentType::Unsupported(unknown_type) => return Err(Error::from(serde_json::Error::custom(format!("Received `{unknown_type}` content type response that cannot be converted to `models::DeleteGroupOutput`")))),
8992        }
8993    } else {
8994        let content = resp.text().await?;
8995        let entity: Option<DeleteGroupError> = serde_json::from_str(&content).ok();
8996        Err(Error::ResponseError(ResponseContent { status, content, entity }))
8997    }
8998}
8999
9000pub async fn delete_gw_cluster(configuration: &configuration::Configuration, delete_gw_cluster: models::DeleteGwCluster) -> Result<serde_json::Value, Error<DeleteGwClusterError>> {
9001    // add a prefix to parameters to efficiently prevent name collisions
9002    let p_body_delete_gw_cluster = delete_gw_cluster;
9003
9004    let uri_str = format!("{}/delete-gateway-cluster", configuration.base_path);
9005    let mut req_builder = configuration.client.request(reqwest::Method::POST, &uri_str);
9006
9007    if let Some(ref user_agent) = configuration.user_agent {
9008        req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone());
9009    }
9010    req_builder = req_builder.json(&p_body_delete_gw_cluster);
9011
9012    let req = req_builder.build()?;
9013    let resp = configuration.client.execute(req).await?;
9014
9015    let status = resp.status();
9016    let content_type = resp
9017        .headers()
9018        .get("content-type")
9019        .and_then(|v| v.to_str().ok())
9020        .unwrap_or("application/octet-stream");
9021    let content_type = super::ContentType::from(content_type);
9022
9023    if !status.is_client_error() && !status.is_server_error() {
9024        let content = resp.text().await?;
9025        match content_type {
9026            ContentType::Json => serde_json::from_str(&content).map_err(Error::from),
9027            ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `serde_json::Value`"))),
9028            ContentType::Unsupported(unknown_type) => return Err(Error::from(serde_json::Error::custom(format!("Received `{unknown_type}` content type response that cannot be converted to `serde_json::Value`")))),
9029        }
9030    } else {
9031        let content = resp.text().await?;
9032        let entity: Option<DeleteGwClusterError> = serde_json::from_str(&content).ok();
9033        Err(Error::ResponseError(ResponseContent { status, content, entity }))
9034    }
9035}
9036
9037pub async fn delete_item(configuration: &configuration::Configuration, delete_item: models::DeleteItem) -> Result<models::DeleteItemOutput, Error<DeleteItemError>> {
9038    // add a prefix to parameters to efficiently prevent name collisions
9039    let p_body_delete_item = delete_item;
9040
9041    let uri_str = format!("{}/delete-item", configuration.base_path);
9042    let mut req_builder = configuration.client.request(reqwest::Method::POST, &uri_str);
9043
9044    if let Some(ref user_agent) = configuration.user_agent {
9045        req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone());
9046    }
9047    req_builder = req_builder.json(&p_body_delete_item);
9048
9049    let req = req_builder.build()?;
9050    let resp = configuration.client.execute(req).await?;
9051
9052    let status = resp.status();
9053    let content_type = resp
9054        .headers()
9055        .get("content-type")
9056        .and_then(|v| v.to_str().ok())
9057        .unwrap_or("application/octet-stream");
9058    let content_type = super::ContentType::from(content_type);
9059
9060    if !status.is_client_error() && !status.is_server_error() {
9061        let content = resp.text().await?;
9062        match content_type {
9063            ContentType::Json => serde_json::from_str(&content).map_err(Error::from),
9064            ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `models::DeleteItemOutput`"))),
9065            ContentType::Unsupported(unknown_type) => return Err(Error::from(serde_json::Error::custom(format!("Received `{unknown_type}` content type response that cannot be converted to `models::DeleteItemOutput`")))),
9066        }
9067    } else {
9068        let content = resp.text().await?;
9069        let entity: Option<DeleteItemError> = serde_json::from_str(&content).ok();
9070        Err(Error::ResponseError(ResponseContent { status, content, entity }))
9071    }
9072}
9073
9074pub async fn delete_items(configuration: &configuration::Configuration, delete_items: models::DeleteItems) -> Result<models::DeleteItemsOutput, Error<DeleteItemsError>> {
9075    // add a prefix to parameters to efficiently prevent name collisions
9076    let p_body_delete_items = delete_items;
9077
9078    let uri_str = format!("{}/delete-items", configuration.base_path);
9079    let mut req_builder = configuration.client.request(reqwest::Method::POST, &uri_str);
9080
9081    if let Some(ref user_agent) = configuration.user_agent {
9082        req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone());
9083    }
9084    req_builder = req_builder.json(&p_body_delete_items);
9085
9086    let req = req_builder.build()?;
9087    let resp = configuration.client.execute(req).await?;
9088
9089    let status = resp.status();
9090    let content_type = resp
9091        .headers()
9092        .get("content-type")
9093        .and_then(|v| v.to_str().ok())
9094        .unwrap_or("application/octet-stream");
9095    let content_type = super::ContentType::from(content_type);
9096
9097    if !status.is_client_error() && !status.is_server_error() {
9098        let content = resp.text().await?;
9099        match content_type {
9100            ContentType::Json => serde_json::from_str(&content).map_err(Error::from),
9101            ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `models::DeleteItemsOutput`"))),
9102            ContentType::Unsupported(unknown_type) => return Err(Error::from(serde_json::Error::custom(format!("Received `{unknown_type}` content type response that cannot be converted to `models::DeleteItemsOutput`")))),
9103        }
9104    } else {
9105        let content = resp.text().await?;
9106        let entity: Option<DeleteItemsError> = serde_json::from_str(&content).ok();
9107        Err(Error::ResponseError(ResponseContent { status, content, entity }))
9108    }
9109}
9110
9111pub async fn delete_role(configuration: &configuration::Configuration, delete_role: models::DeleteRole) -> Result<serde_json::Value, Error<DeleteRoleError>> {
9112    // add a prefix to parameters to efficiently prevent name collisions
9113    let p_body_delete_role = delete_role;
9114
9115    let uri_str = format!("{}/delete-role", configuration.base_path);
9116    let mut req_builder = configuration.client.request(reqwest::Method::POST, &uri_str);
9117
9118    if let Some(ref user_agent) = configuration.user_agent {
9119        req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone());
9120    }
9121    req_builder = req_builder.json(&p_body_delete_role);
9122
9123    let req = req_builder.build()?;
9124    let resp = configuration.client.execute(req).await?;
9125
9126    let status = resp.status();
9127    let content_type = resp
9128        .headers()
9129        .get("content-type")
9130        .and_then(|v| v.to_str().ok())
9131        .unwrap_or("application/octet-stream");
9132    let content_type = super::ContentType::from(content_type);
9133
9134    if !status.is_client_error() && !status.is_server_error() {
9135        let content = resp.text().await?;
9136        match content_type {
9137            ContentType::Json => serde_json::from_str(&content).map_err(Error::from),
9138            ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `serde_json::Value`"))),
9139            ContentType::Unsupported(unknown_type) => return Err(Error::from(serde_json::Error::custom(format!("Received `{unknown_type}` content type response that cannot be converted to `serde_json::Value`")))),
9140        }
9141    } else {
9142        let content = resp.text().await?;
9143        let entity: Option<DeleteRoleError> = serde_json::from_str(&content).ok();
9144        Err(Error::ResponseError(ResponseContent { status, content, entity }))
9145    }
9146}
9147
9148pub async fn delete_role_association(configuration: &configuration::Configuration, delete_role_association: models::DeleteRoleAssociation) -> Result<serde_json::Value, Error<DeleteRoleAssociationError>> {
9149    // add a prefix to parameters to efficiently prevent name collisions
9150    let p_body_delete_role_association = delete_role_association;
9151
9152    let uri_str = format!("{}/delete-assoc", configuration.base_path);
9153    let mut req_builder = configuration.client.request(reqwest::Method::POST, &uri_str);
9154
9155    if let Some(ref user_agent) = configuration.user_agent {
9156        req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone());
9157    }
9158    req_builder = req_builder.json(&p_body_delete_role_association);
9159
9160    let req = req_builder.build()?;
9161    let resp = configuration.client.execute(req).await?;
9162
9163    let status = resp.status();
9164    let content_type = resp
9165        .headers()
9166        .get("content-type")
9167        .and_then(|v| v.to_str().ok())
9168        .unwrap_or("application/octet-stream");
9169    let content_type = super::ContentType::from(content_type);
9170
9171    if !status.is_client_error() && !status.is_server_error() {
9172        let content = resp.text().await?;
9173        match content_type {
9174            ContentType::Json => serde_json::from_str(&content).map_err(Error::from),
9175            ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `serde_json::Value`"))),
9176            ContentType::Unsupported(unknown_type) => return Err(Error::from(serde_json::Error::custom(format!("Received `{unknown_type}` content type response that cannot be converted to `serde_json::Value`")))),
9177        }
9178    } else {
9179        let content = resp.text().await?;
9180        let entity: Option<DeleteRoleAssociationError> = serde_json::from_str(&content).ok();
9181        Err(Error::ResponseError(ResponseContent { status, content, entity }))
9182    }
9183}
9184
9185pub async fn delete_role_rule(configuration: &configuration::Configuration, delete_role_rule: models::DeleteRoleRule) -> Result<models::DeleteRoleRuleOutput, Error<DeleteRoleRuleError>> {
9186    // add a prefix to parameters to efficiently prevent name collisions
9187    let p_body_delete_role_rule = delete_role_rule;
9188
9189    let uri_str = format!("{}/delete-role-rule", configuration.base_path);
9190    let mut req_builder = configuration.client.request(reqwest::Method::POST, &uri_str);
9191
9192    if let Some(ref user_agent) = configuration.user_agent {
9193        req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone());
9194    }
9195    req_builder = req_builder.json(&p_body_delete_role_rule);
9196
9197    let req = req_builder.build()?;
9198    let resp = configuration.client.execute(req).await?;
9199
9200    let status = resp.status();
9201    let content_type = resp
9202        .headers()
9203        .get("content-type")
9204        .and_then(|v| v.to_str().ok())
9205        .unwrap_or("application/octet-stream");
9206    let content_type = super::ContentType::from(content_type);
9207
9208    if !status.is_client_error() && !status.is_server_error() {
9209        let content = resp.text().await?;
9210        match content_type {
9211            ContentType::Json => serde_json::from_str(&content).map_err(Error::from),
9212            ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `models::DeleteRoleRuleOutput`"))),
9213            ContentType::Unsupported(unknown_type) => return Err(Error::from(serde_json::Error::custom(format!("Received `{unknown_type}` content type response that cannot be converted to `models::DeleteRoleRuleOutput`")))),
9214        }
9215    } else {
9216        let content = resp.text().await?;
9217        let entity: Option<DeleteRoleRuleError> = serde_json::from_str(&content).ok();
9218        Err(Error::ResponseError(ResponseContent { status, content, entity }))
9219    }
9220}
9221
9222pub async fn delete_roles(configuration: &configuration::Configuration, delete_roles: models::DeleteRoles) -> Result<serde_json::Value, Error<DeleteRolesError>> {
9223    // add a prefix to parameters to efficiently prevent name collisions
9224    let p_body_delete_roles = delete_roles;
9225
9226    let uri_str = format!("{}/delete-roles", configuration.base_path);
9227    let mut req_builder = configuration.client.request(reqwest::Method::POST, &uri_str);
9228
9229    if let Some(ref user_agent) = configuration.user_agent {
9230        req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone());
9231    }
9232    req_builder = req_builder.json(&p_body_delete_roles);
9233
9234    let req = req_builder.build()?;
9235    let resp = configuration.client.execute(req).await?;
9236
9237    let status = resp.status();
9238    let content_type = resp
9239        .headers()
9240        .get("content-type")
9241        .and_then(|v| v.to_str().ok())
9242        .unwrap_or("application/octet-stream");
9243    let content_type = super::ContentType::from(content_type);
9244
9245    if !status.is_client_error() && !status.is_server_error() {
9246        let content = resp.text().await?;
9247        match content_type {
9248            ContentType::Json => serde_json::from_str(&content).map_err(Error::from),
9249            ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `serde_json::Value`"))),
9250            ContentType::Unsupported(unknown_type) => return Err(Error::from(serde_json::Error::custom(format!("Received `{unknown_type}` content type response that cannot be converted to `serde_json::Value`")))),
9251        }
9252    } else {
9253        let content = resp.text().await?;
9254        let entity: Option<DeleteRolesError> = serde_json::from_str(&content).ok();
9255        Err(Error::ResponseError(ResponseContent { status, content, entity }))
9256    }
9257}
9258
9259pub async fn delete_target(configuration: &configuration::Configuration, delete_target: models::DeleteTarget) -> Result<serde_json::Value, Error<DeleteTargetError>> {
9260    // add a prefix to parameters to efficiently prevent name collisions
9261    let p_body_delete_target = delete_target;
9262
9263    let uri_str = format!("{}/delete-target", configuration.base_path);
9264    let mut req_builder = configuration.client.request(reqwest::Method::POST, &uri_str);
9265
9266    if let Some(ref user_agent) = configuration.user_agent {
9267        req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone());
9268    }
9269    req_builder = req_builder.json(&p_body_delete_target);
9270
9271    let req = req_builder.build()?;
9272    let resp = configuration.client.execute(req).await?;
9273
9274    let status = resp.status();
9275    let content_type = resp
9276        .headers()
9277        .get("content-type")
9278        .and_then(|v| v.to_str().ok())
9279        .unwrap_or("application/octet-stream");
9280    let content_type = super::ContentType::from(content_type);
9281
9282    if !status.is_client_error() && !status.is_server_error() {
9283        let content = resp.text().await?;
9284        match content_type {
9285            ContentType::Json => serde_json::from_str(&content).map_err(Error::from),
9286            ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `serde_json::Value`"))),
9287            ContentType::Unsupported(unknown_type) => return Err(Error::from(serde_json::Error::custom(format!("Received `{unknown_type}` content type response that cannot be converted to `serde_json::Value`")))),
9288        }
9289    } else {
9290        let content = resp.text().await?;
9291        let entity: Option<DeleteTargetError> = serde_json::from_str(&content).ok();
9292        Err(Error::ResponseError(ResponseContent { status, content, entity }))
9293    }
9294}
9295
9296pub async fn delete_target_association(configuration: &configuration::Configuration, delete_target_association: models::DeleteTargetAssociation) -> Result<serde_json::Value, Error<DeleteTargetAssociationError>> {
9297    // add a prefix to parameters to efficiently prevent name collisions
9298    let p_body_delete_target_association = delete_target_association;
9299
9300    let uri_str = format!("{}/delete-assoc-target-item", configuration.base_path);
9301    let mut req_builder = configuration.client.request(reqwest::Method::POST, &uri_str);
9302
9303    if let Some(ref user_agent) = configuration.user_agent {
9304        req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone());
9305    }
9306    req_builder = req_builder.json(&p_body_delete_target_association);
9307
9308    let req = req_builder.build()?;
9309    let resp = configuration.client.execute(req).await?;
9310
9311    let status = resp.status();
9312    let content_type = resp
9313        .headers()
9314        .get("content-type")
9315        .and_then(|v| v.to_str().ok())
9316        .unwrap_or("application/octet-stream");
9317    let content_type = super::ContentType::from(content_type);
9318
9319    if !status.is_client_error() && !status.is_server_error() {
9320        let content = resp.text().await?;
9321        match content_type {
9322            ContentType::Json => serde_json::from_str(&content).map_err(Error::from),
9323            ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `serde_json::Value`"))),
9324            ContentType::Unsupported(unknown_type) => return Err(Error::from(serde_json::Error::custom(format!("Received `{unknown_type}` content type response that cannot be converted to `serde_json::Value`")))),
9325        }
9326    } else {
9327        let content = resp.text().await?;
9328        let entity: Option<DeleteTargetAssociationError> = serde_json::from_str(&content).ok();
9329        Err(Error::ResponseError(ResponseContent { status, content, entity }))
9330    }
9331}
9332
9333pub async fn delete_targets(configuration: &configuration::Configuration, delete_targets: models::DeleteTargets) -> Result<serde_json::Value, Error<DeleteTargetsError>> {
9334    // add a prefix to parameters to efficiently prevent name collisions
9335    let p_body_delete_targets = delete_targets;
9336
9337    let uri_str = format!("{}/delete-targets", configuration.base_path);
9338    let mut req_builder = configuration.client.request(reqwest::Method::POST, &uri_str);
9339
9340    if let Some(ref user_agent) = configuration.user_agent {
9341        req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone());
9342    }
9343    req_builder = req_builder.json(&p_body_delete_targets);
9344
9345    let req = req_builder.build()?;
9346    let resp = configuration.client.execute(req).await?;
9347
9348    let status = resp.status();
9349    let content_type = resp
9350        .headers()
9351        .get("content-type")
9352        .and_then(|v| v.to_str().ok())
9353        .unwrap_or("application/octet-stream");
9354    let content_type = super::ContentType::from(content_type);
9355
9356    if !status.is_client_error() && !status.is_server_error() {
9357        let content = resp.text().await?;
9358        match content_type {
9359            ContentType::Json => serde_json::from_str(&content).map_err(Error::from),
9360            ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `serde_json::Value`"))),
9361            ContentType::Unsupported(unknown_type) => return Err(Error::from(serde_json::Error::custom(format!("Received `{unknown_type}` content type response that cannot be converted to `serde_json::Value`")))),
9362        }
9363    } else {
9364        let content = resp.text().await?;
9365        let entity: Option<DeleteTargetsError> = serde_json::from_str(&content).ok();
9366        Err(Error::ResponseError(ResponseContent { status, content, entity }))
9367    }
9368}
9369
9370pub async fn derive_key(configuration: &configuration::Configuration, derive_key: models::DeriveKey) -> Result<models::DeriveKeyOutput, Error<DeriveKeyError>> {
9371    // add a prefix to parameters to efficiently prevent name collisions
9372    let p_body_derive_key = derive_key;
9373
9374    let uri_str = format!("{}/derive-key", configuration.base_path);
9375    let mut req_builder = configuration.client.request(reqwest::Method::POST, &uri_str);
9376
9377    if let Some(ref user_agent) = configuration.user_agent {
9378        req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone());
9379    }
9380    req_builder = req_builder.json(&p_body_derive_key);
9381
9382    let req = req_builder.build()?;
9383    let resp = configuration.client.execute(req).await?;
9384
9385    let status = resp.status();
9386    let content_type = resp
9387        .headers()
9388        .get("content-type")
9389        .and_then(|v| v.to_str().ok())
9390        .unwrap_or("application/octet-stream");
9391    let content_type = super::ContentType::from(content_type);
9392
9393    if !status.is_client_error() && !status.is_server_error() {
9394        let content = resp.text().await?;
9395        match content_type {
9396            ContentType::Json => serde_json::from_str(&content).map_err(Error::from),
9397            ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `models::DeriveKeyOutput`"))),
9398            ContentType::Unsupported(unknown_type) => return Err(Error::from(serde_json::Error::custom(format!("Received `{unknown_type}` content type response that cannot be converted to `models::DeriveKeyOutput`")))),
9399        }
9400    } else {
9401        let content = resp.text().await?;
9402        let entity: Option<DeriveKeyError> = serde_json::from_str(&content).ok();
9403        Err(Error::ResponseError(ResponseContent { status, content, entity }))
9404    }
9405}
9406
9407pub async fn describe_assoc(configuration: &configuration::Configuration, describe_assoc: models::DescribeAssoc) -> Result<models::RoleAssociationDetails, Error<DescribeAssocError>> {
9408    // add a prefix to parameters to efficiently prevent name collisions
9409    let p_body_describe_assoc = describe_assoc;
9410
9411    let uri_str = format!("{}/describe-role-am-assoc", configuration.base_path);
9412    let mut req_builder = configuration.client.request(reqwest::Method::POST, &uri_str);
9413
9414    if let Some(ref user_agent) = configuration.user_agent {
9415        req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone());
9416    }
9417    req_builder = req_builder.json(&p_body_describe_assoc);
9418
9419    let req = req_builder.build()?;
9420    let resp = configuration.client.execute(req).await?;
9421
9422    let status = resp.status();
9423    let content_type = resp
9424        .headers()
9425        .get("content-type")
9426        .and_then(|v| v.to_str().ok())
9427        .unwrap_or("application/octet-stream");
9428    let content_type = super::ContentType::from(content_type);
9429
9430    if !status.is_client_error() && !status.is_server_error() {
9431        let content = resp.text().await?;
9432        match content_type {
9433            ContentType::Json => serde_json::from_str(&content).map_err(Error::from),
9434            ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `models::RoleAssociationDetails`"))),
9435            ContentType::Unsupported(unknown_type) => return Err(Error::from(serde_json::Error::custom(format!("Received `{unknown_type}` content type response that cannot be converted to `models::RoleAssociationDetails`")))),
9436        }
9437    } else {
9438        let content = resp.text().await?;
9439        let entity: Option<DescribeAssocError> = serde_json::from_str(&content).ok();
9440        Err(Error::ResponseError(ResponseContent { status, content, entity }))
9441    }
9442}
9443
9444pub async fn describe_item(configuration: &configuration::Configuration, describe_item: models::DescribeItem) -> Result<models::Item, Error<DescribeItemError>> {
9445    // add a prefix to parameters to efficiently prevent name collisions
9446    let p_body_describe_item = describe_item;
9447
9448    let uri_str = format!("{}/describe-item", configuration.base_path);
9449    let mut req_builder = configuration.client.request(reqwest::Method::POST, &uri_str);
9450
9451    if let Some(ref user_agent) = configuration.user_agent {
9452        req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone());
9453    }
9454    req_builder = req_builder.json(&p_body_describe_item);
9455
9456    let req = req_builder.build()?;
9457    let resp = configuration.client.execute(req).await?;
9458
9459    let status = resp.status();
9460    let content_type = resp
9461        .headers()
9462        .get("content-type")
9463        .and_then(|v| v.to_str().ok())
9464        .unwrap_or("application/octet-stream");
9465    let content_type = super::ContentType::from(content_type);
9466
9467    if !status.is_client_error() && !status.is_server_error() {
9468        let content = resp.text().await?;
9469        match content_type {
9470            ContentType::Json => serde_json::from_str(&content).map_err(Error::from),
9471            ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `models::Item`"))),
9472            ContentType::Unsupported(unknown_type) => return Err(Error::from(serde_json::Error::custom(format!("Received `{unknown_type}` content type response that cannot be converted to `models::Item`")))),
9473        }
9474    } else {
9475        let content = resp.text().await?;
9476        let entity: Option<DescribeItemError> = serde_json::from_str(&content).ok();
9477        Err(Error::ResponseError(ResponseContent { status, content, entity }))
9478    }
9479}
9480
9481pub async fn describe_permissions(configuration: &configuration::Configuration, describe_permissions: models::DescribePermissions) -> Result<models::DescribePermissionsOutput, Error<DescribePermissionsError>> {
9482    // add a prefix to parameters to efficiently prevent name collisions
9483    let p_body_describe_permissions = describe_permissions;
9484
9485    let uri_str = format!("{}/describe-permissions", configuration.base_path);
9486    let mut req_builder = configuration.client.request(reqwest::Method::POST, &uri_str);
9487
9488    if let Some(ref user_agent) = configuration.user_agent {
9489        req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone());
9490    }
9491    req_builder = req_builder.json(&p_body_describe_permissions);
9492
9493    let req = req_builder.build()?;
9494    let resp = configuration.client.execute(req).await?;
9495
9496    let status = resp.status();
9497    let content_type = resp
9498        .headers()
9499        .get("content-type")
9500        .and_then(|v| v.to_str().ok())
9501        .unwrap_or("application/octet-stream");
9502    let content_type = super::ContentType::from(content_type);
9503
9504    if !status.is_client_error() && !status.is_server_error() {
9505        let content = resp.text().await?;
9506        match content_type {
9507            ContentType::Json => serde_json::from_str(&content).map_err(Error::from),
9508            ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `models::DescribePermissionsOutput`"))),
9509            ContentType::Unsupported(unknown_type) => return Err(Error::from(serde_json::Error::custom(format!("Received `{unknown_type}` content type response that cannot be converted to `models::DescribePermissionsOutput`")))),
9510        }
9511    } else {
9512        let content = resp.text().await?;
9513        let entity: Option<DescribePermissionsError> = serde_json::from_str(&content).ok();
9514        Err(Error::ResponseError(ResponseContent { status, content, entity }))
9515    }
9516}
9517
9518pub async fn describe_sub_claims(configuration: &configuration::Configuration, describe_sub_claims: models::DescribeSubClaims) -> Result<models::DescribeSubClaimsOutput, Error<DescribeSubClaimsError>> {
9519    // add a prefix to parameters to efficiently prevent name collisions
9520    let p_body_describe_sub_claims = describe_sub_claims;
9521
9522    let uri_str = format!("{}/describe-sub-claims", configuration.base_path);
9523    let mut req_builder = configuration.client.request(reqwest::Method::POST, &uri_str);
9524
9525    if let Some(ref user_agent) = configuration.user_agent {
9526        req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone());
9527    }
9528    req_builder = req_builder.json(&p_body_describe_sub_claims);
9529
9530    let req = req_builder.build()?;
9531    let resp = configuration.client.execute(req).await?;
9532
9533    let status = resp.status();
9534    let content_type = resp
9535        .headers()
9536        .get("content-type")
9537        .and_then(|v| v.to_str().ok())
9538        .unwrap_or("application/octet-stream");
9539    let content_type = super::ContentType::from(content_type);
9540
9541    if !status.is_client_error() && !status.is_server_error() {
9542        let content = resp.text().await?;
9543        match content_type {
9544            ContentType::Json => serde_json::from_str(&content).map_err(Error::from),
9545            ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `models::DescribeSubClaimsOutput`"))),
9546            ContentType::Unsupported(unknown_type) => return Err(Error::from(serde_json::Error::custom(format!("Received `{unknown_type}` content type response that cannot be converted to `models::DescribeSubClaimsOutput`")))),
9547        }
9548    } else {
9549        let content = resp.text().await?;
9550        let entity: Option<DescribeSubClaimsError> = serde_json::from_str(&content).ok();
9551        Err(Error::ResponseError(ResponseContent { status, content, entity }))
9552    }
9553}
9554
9555pub async fn detokenize(configuration: &configuration::Configuration, detokenize: models::Detokenize) -> Result<models::DetokenizeOutput, Error<DetokenizeError>> {
9556    // add a prefix to parameters to efficiently prevent name collisions
9557    let p_body_detokenize = detokenize;
9558
9559    let uri_str = format!("{}/detokenize", configuration.base_path);
9560    let mut req_builder = configuration.client.request(reqwest::Method::POST, &uri_str);
9561
9562    if let Some(ref user_agent) = configuration.user_agent {
9563        req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone());
9564    }
9565    req_builder = req_builder.json(&p_body_detokenize);
9566
9567    let req = req_builder.build()?;
9568    let resp = configuration.client.execute(req).await?;
9569
9570    let status = resp.status();
9571    let content_type = resp
9572        .headers()
9573        .get("content-type")
9574        .and_then(|v| v.to_str().ok())
9575        .unwrap_or("application/octet-stream");
9576    let content_type = super::ContentType::from(content_type);
9577
9578    if !status.is_client_error() && !status.is_server_error() {
9579        let content = resp.text().await?;
9580        match content_type {
9581            ContentType::Json => serde_json::from_str(&content).map_err(Error::from),
9582            ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `models::DetokenizeOutput`"))),
9583            ContentType::Unsupported(unknown_type) => return Err(Error::from(serde_json::Error::custom(format!("Received `{unknown_type}` content type response that cannot be converted to `models::DetokenizeOutput`")))),
9584        }
9585    } else {
9586        let content = resp.text().await?;
9587        let entity: Option<DetokenizeError> = serde_json::from_str(&content).ok();
9588        Err(Error::ResponseError(ResponseContent { status, content, entity }))
9589    }
9590}
9591
9592pub async fn detokenize_batch(configuration: &configuration::Configuration, batch_tokenization_request_line: Vec<models::BatchTokenizationRequestLine>) -> Result<models::DetokenizeOutput, Error<DetokenizeBatchError>> {
9593    // add a prefix to parameters to efficiently prevent name collisions
9594    let p_body_batch_tokenization_request_line = batch_tokenization_request_line;
9595
9596    let uri_str = format!("{}/detokenize-batch", configuration.base_path);
9597    let mut req_builder = configuration.client.request(reqwest::Method::POST, &uri_str);
9598
9599    if let Some(ref user_agent) = configuration.user_agent {
9600        req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone());
9601    }
9602    req_builder = req_builder.json(&p_body_batch_tokenization_request_line);
9603
9604    let req = req_builder.build()?;
9605    let resp = configuration.client.execute(req).await?;
9606
9607    let status = resp.status();
9608    let content_type = resp
9609        .headers()
9610        .get("content-type")
9611        .and_then(|v| v.to_str().ok())
9612        .unwrap_or("application/octet-stream");
9613    let content_type = super::ContentType::from(content_type);
9614
9615    if !status.is_client_error() && !status.is_server_error() {
9616        let content = resp.text().await?;
9617        match content_type {
9618            ContentType::Json => serde_json::from_str(&content).map_err(Error::from),
9619            ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `models::DetokenizeOutput`"))),
9620            ContentType::Unsupported(unknown_type) => return Err(Error::from(serde_json::Error::custom(format!("Received `{unknown_type}` content type response that cannot be converted to `models::DetokenizeOutput`")))),
9621        }
9622    } else {
9623        let content = resp.text().await?;
9624        let entity: Option<DetokenizeBatchError> = serde_json::from_str(&content).ok();
9625        Err(Error::ResponseError(ResponseContent { status, content, entity }))
9626    }
9627}
9628
9629pub async fn dynamic_secret_create_artifactory(configuration: &configuration::Configuration, dynamic_secret_create_artifactory: models::DynamicSecretCreateArtifactory) -> Result<models::DynamicSecretCreateOutput, Error<DynamicSecretCreateArtifactoryError>> {
9630    // add a prefix to parameters to efficiently prevent name collisions
9631    let p_body_dynamic_secret_create_artifactory = dynamic_secret_create_artifactory;
9632
9633    let uri_str = format!("{}/dynamic-secret-create-artifactory", configuration.base_path);
9634    let mut req_builder = configuration.client.request(reqwest::Method::POST, &uri_str);
9635
9636    if let Some(ref user_agent) = configuration.user_agent {
9637        req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone());
9638    }
9639    req_builder = req_builder.json(&p_body_dynamic_secret_create_artifactory);
9640
9641    let req = req_builder.build()?;
9642    let resp = configuration.client.execute(req).await?;
9643
9644    let status = resp.status();
9645    let content_type = resp
9646        .headers()
9647        .get("content-type")
9648        .and_then(|v| v.to_str().ok())
9649        .unwrap_or("application/octet-stream");
9650    let content_type = super::ContentType::from(content_type);
9651
9652    if !status.is_client_error() && !status.is_server_error() {
9653        let content = resp.text().await?;
9654        match content_type {
9655            ContentType::Json => serde_json::from_str(&content).map_err(Error::from),
9656            ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `models::DynamicSecretCreateOutput`"))),
9657            ContentType::Unsupported(unknown_type) => return Err(Error::from(serde_json::Error::custom(format!("Received `{unknown_type}` content type response that cannot be converted to `models::DynamicSecretCreateOutput`")))),
9658        }
9659    } else {
9660        let content = resp.text().await?;
9661        let entity: Option<DynamicSecretCreateArtifactoryError> = serde_json::from_str(&content).ok();
9662        Err(Error::ResponseError(ResponseContent { status, content, entity }))
9663    }
9664}
9665
9666pub async fn dynamic_secret_create_aws(configuration: &configuration::Configuration, dynamic_secret_create_aws: models::DynamicSecretCreateAws) -> Result<models::DynamicSecretCreateOutput, Error<DynamicSecretCreateAwsError>> {
9667    // add a prefix to parameters to efficiently prevent name collisions
9668    let p_body_dynamic_secret_create_aws = dynamic_secret_create_aws;
9669
9670    let uri_str = format!("{}/dynamic-secret-create-aws", configuration.base_path);
9671    let mut req_builder = configuration.client.request(reqwest::Method::POST, &uri_str);
9672
9673    if let Some(ref user_agent) = configuration.user_agent {
9674        req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone());
9675    }
9676    req_builder = req_builder.json(&p_body_dynamic_secret_create_aws);
9677
9678    let req = req_builder.build()?;
9679    let resp = configuration.client.execute(req).await?;
9680
9681    let status = resp.status();
9682    let content_type = resp
9683        .headers()
9684        .get("content-type")
9685        .and_then(|v| v.to_str().ok())
9686        .unwrap_or("application/octet-stream");
9687    let content_type = super::ContentType::from(content_type);
9688
9689    if !status.is_client_error() && !status.is_server_error() {
9690        let content = resp.text().await?;
9691        match content_type {
9692            ContentType::Json => serde_json::from_str(&content).map_err(Error::from),
9693            ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `models::DynamicSecretCreateOutput`"))),
9694            ContentType::Unsupported(unknown_type) => return Err(Error::from(serde_json::Error::custom(format!("Received `{unknown_type}` content type response that cannot be converted to `models::DynamicSecretCreateOutput`")))),
9695        }
9696    } else {
9697        let content = resp.text().await?;
9698        let entity: Option<DynamicSecretCreateAwsError> = serde_json::from_str(&content).ok();
9699        Err(Error::ResponseError(ResponseContent { status, content, entity }))
9700    }
9701}
9702
9703pub async fn dynamic_secret_create_azure(configuration: &configuration::Configuration, dynamic_secret_create_azure: models::DynamicSecretCreateAzure) -> Result<models::DynamicSecretCreateOutput, Error<DynamicSecretCreateAzureError>> {
9704    // add a prefix to parameters to efficiently prevent name collisions
9705    let p_body_dynamic_secret_create_azure = dynamic_secret_create_azure;
9706
9707    let uri_str = format!("{}/dynamic-secret-create-azure", configuration.base_path);
9708    let mut req_builder = configuration.client.request(reqwest::Method::POST, &uri_str);
9709
9710    if let Some(ref user_agent) = configuration.user_agent {
9711        req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone());
9712    }
9713    req_builder = req_builder.json(&p_body_dynamic_secret_create_azure);
9714
9715    let req = req_builder.build()?;
9716    let resp = configuration.client.execute(req).await?;
9717
9718    let status = resp.status();
9719    let content_type = resp
9720        .headers()
9721        .get("content-type")
9722        .and_then(|v| v.to_str().ok())
9723        .unwrap_or("application/octet-stream");
9724    let content_type = super::ContentType::from(content_type);
9725
9726    if !status.is_client_error() && !status.is_server_error() {
9727        let content = resp.text().await?;
9728        match content_type {
9729            ContentType::Json => serde_json::from_str(&content).map_err(Error::from),
9730            ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `models::DynamicSecretCreateOutput`"))),
9731            ContentType::Unsupported(unknown_type) => return Err(Error::from(serde_json::Error::custom(format!("Received `{unknown_type}` content type response that cannot be converted to `models::DynamicSecretCreateOutput`")))),
9732        }
9733    } else {
9734        let content = resp.text().await?;
9735        let entity: Option<DynamicSecretCreateAzureError> = serde_json::from_str(&content).ok();
9736        Err(Error::ResponseError(ResponseContent { status, content, entity }))
9737    }
9738}
9739
9740pub async fn dynamic_secret_create_cassandra(configuration: &configuration::Configuration, dynamic_secret_create_cassandra: models::DynamicSecretCreateCassandra) -> Result<models::DynamicSecretCreateOutput, Error<DynamicSecretCreateCassandraError>> {
9741    // add a prefix to parameters to efficiently prevent name collisions
9742    let p_body_dynamic_secret_create_cassandra = dynamic_secret_create_cassandra;
9743
9744    let uri_str = format!("{}/dynamic-secret-create-cassandra", configuration.base_path);
9745    let mut req_builder = configuration.client.request(reqwest::Method::POST, &uri_str);
9746
9747    if let Some(ref user_agent) = configuration.user_agent {
9748        req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone());
9749    }
9750    req_builder = req_builder.json(&p_body_dynamic_secret_create_cassandra);
9751
9752    let req = req_builder.build()?;
9753    let resp = configuration.client.execute(req).await?;
9754
9755    let status = resp.status();
9756    let content_type = resp
9757        .headers()
9758        .get("content-type")
9759        .and_then(|v| v.to_str().ok())
9760        .unwrap_or("application/octet-stream");
9761    let content_type = super::ContentType::from(content_type);
9762
9763    if !status.is_client_error() && !status.is_server_error() {
9764        let content = resp.text().await?;
9765        match content_type {
9766            ContentType::Json => serde_json::from_str(&content).map_err(Error::from),
9767            ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `models::DynamicSecretCreateOutput`"))),
9768            ContentType::Unsupported(unknown_type) => return Err(Error::from(serde_json::Error::custom(format!("Received `{unknown_type}` content type response that cannot be converted to `models::DynamicSecretCreateOutput`")))),
9769        }
9770    } else {
9771        let content = resp.text().await?;
9772        let entity: Option<DynamicSecretCreateCassandraError> = serde_json::from_str(&content).ok();
9773        Err(Error::ResponseError(ResponseContent { status, content, entity }))
9774    }
9775}
9776
9777pub async fn dynamic_secret_create_custom(configuration: &configuration::Configuration, dynamic_secret_create_custom: Option<models::DynamicSecretCreateCustom>) -> Result<models::DynamicSecretCreateOutput, Error<DynamicSecretCreateCustomError>> {
9778    // add a prefix to parameters to efficiently prevent name collisions
9779    let p_body_dynamic_secret_create_custom = dynamic_secret_create_custom;
9780
9781    let uri_str = format!("{}/dynamic-secret-create-custom", configuration.base_path);
9782    let mut req_builder = configuration.client.request(reqwest::Method::POST, &uri_str);
9783
9784    if let Some(ref user_agent) = configuration.user_agent {
9785        req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone());
9786    }
9787    req_builder = req_builder.json(&p_body_dynamic_secret_create_custom);
9788
9789    let req = req_builder.build()?;
9790    let resp = configuration.client.execute(req).await?;
9791
9792    let status = resp.status();
9793    let content_type = resp
9794        .headers()
9795        .get("content-type")
9796        .and_then(|v| v.to_str().ok())
9797        .unwrap_or("application/octet-stream");
9798    let content_type = super::ContentType::from(content_type);
9799
9800    if !status.is_client_error() && !status.is_server_error() {
9801        let content = resp.text().await?;
9802        match content_type {
9803            ContentType::Json => serde_json::from_str(&content).map_err(Error::from),
9804            ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `models::DynamicSecretCreateOutput`"))),
9805            ContentType::Unsupported(unknown_type) => return Err(Error::from(serde_json::Error::custom(format!("Received `{unknown_type}` content type response that cannot be converted to `models::DynamicSecretCreateOutput`")))),
9806        }
9807    } else {
9808        let content = resp.text().await?;
9809        let entity: Option<DynamicSecretCreateCustomError> = serde_json::from_str(&content).ok();
9810        Err(Error::ResponseError(ResponseContent { status, content, entity }))
9811    }
9812}
9813
9814pub async fn dynamic_secret_create_dockerhub(configuration: &configuration::Configuration, dynamic_secret_create_dockerhub: models::DynamicSecretCreateDockerhub) -> Result<models::DynamicSecretCreateOutput, Error<DynamicSecretCreateDockerhubError>> {
9815    // add a prefix to parameters to efficiently prevent name collisions
9816    let p_body_dynamic_secret_create_dockerhub = dynamic_secret_create_dockerhub;
9817
9818    let uri_str = format!("{}/dynamic-secret-create-dockerhub", configuration.base_path);
9819    let mut req_builder = configuration.client.request(reqwest::Method::POST, &uri_str);
9820
9821    if let Some(ref user_agent) = configuration.user_agent {
9822        req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone());
9823    }
9824    req_builder = req_builder.json(&p_body_dynamic_secret_create_dockerhub);
9825
9826    let req = req_builder.build()?;
9827    let resp = configuration.client.execute(req).await?;
9828
9829    let status = resp.status();
9830    let content_type = resp
9831        .headers()
9832        .get("content-type")
9833        .and_then(|v| v.to_str().ok())
9834        .unwrap_or("application/octet-stream");
9835    let content_type = super::ContentType::from(content_type);
9836
9837    if !status.is_client_error() && !status.is_server_error() {
9838        let content = resp.text().await?;
9839        match content_type {
9840            ContentType::Json => serde_json::from_str(&content).map_err(Error::from),
9841            ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `models::DynamicSecretCreateOutput`"))),
9842            ContentType::Unsupported(unknown_type) => return Err(Error::from(serde_json::Error::custom(format!("Received `{unknown_type}` content type response that cannot be converted to `models::DynamicSecretCreateOutput`")))),
9843        }
9844    } else {
9845        let content = resp.text().await?;
9846        let entity: Option<DynamicSecretCreateDockerhubError> = serde_json::from_str(&content).ok();
9847        Err(Error::ResponseError(ResponseContent { status, content, entity }))
9848    }
9849}
9850
9851pub async fn dynamic_secret_create_eks(configuration: &configuration::Configuration, dynamic_secret_create_eks: models::DynamicSecretCreateEks) -> Result<models::DynamicSecretCreateOutput, Error<DynamicSecretCreateEksError>> {
9852    // add a prefix to parameters to efficiently prevent name collisions
9853    let p_body_dynamic_secret_create_eks = dynamic_secret_create_eks;
9854
9855    let uri_str = format!("{}/dynamic-secret-create-eks", configuration.base_path);
9856    let mut req_builder = configuration.client.request(reqwest::Method::POST, &uri_str);
9857
9858    if let Some(ref user_agent) = configuration.user_agent {
9859        req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone());
9860    }
9861    req_builder = req_builder.json(&p_body_dynamic_secret_create_eks);
9862
9863    let req = req_builder.build()?;
9864    let resp = configuration.client.execute(req).await?;
9865
9866    let status = resp.status();
9867    let content_type = resp
9868        .headers()
9869        .get("content-type")
9870        .and_then(|v| v.to_str().ok())
9871        .unwrap_or("application/octet-stream");
9872    let content_type = super::ContentType::from(content_type);
9873
9874    if !status.is_client_error() && !status.is_server_error() {
9875        let content = resp.text().await?;
9876        match content_type {
9877            ContentType::Json => serde_json::from_str(&content).map_err(Error::from),
9878            ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `models::DynamicSecretCreateOutput`"))),
9879            ContentType::Unsupported(unknown_type) => return Err(Error::from(serde_json::Error::custom(format!("Received `{unknown_type}` content type response that cannot be converted to `models::DynamicSecretCreateOutput`")))),
9880        }
9881    } else {
9882        let content = resp.text().await?;
9883        let entity: Option<DynamicSecretCreateEksError> = serde_json::from_str(&content).ok();
9884        Err(Error::ResponseError(ResponseContent { status, content, entity }))
9885    }
9886}
9887
9888pub async fn dynamic_secret_create_gcp(configuration: &configuration::Configuration, dynamic_secret_create_gcp: models::DynamicSecretCreateGcp) -> Result<models::DynamicSecretCreateOutput, Error<DynamicSecretCreateGcpError>> {
9889    // add a prefix to parameters to efficiently prevent name collisions
9890    let p_body_dynamic_secret_create_gcp = dynamic_secret_create_gcp;
9891
9892    let uri_str = format!("{}/dynamic-secret-create-gcp", configuration.base_path);
9893    let mut req_builder = configuration.client.request(reqwest::Method::POST, &uri_str);
9894
9895    if let Some(ref user_agent) = configuration.user_agent {
9896        req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone());
9897    }
9898    req_builder = req_builder.json(&p_body_dynamic_secret_create_gcp);
9899
9900    let req = req_builder.build()?;
9901    let resp = configuration.client.execute(req).await?;
9902
9903    let status = resp.status();
9904    let content_type = resp
9905        .headers()
9906        .get("content-type")
9907        .and_then(|v| v.to_str().ok())
9908        .unwrap_or("application/octet-stream");
9909    let content_type = super::ContentType::from(content_type);
9910
9911    if !status.is_client_error() && !status.is_server_error() {
9912        let content = resp.text().await?;
9913        match content_type {
9914            ContentType::Json => serde_json::from_str(&content).map_err(Error::from),
9915            ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `models::DynamicSecretCreateOutput`"))),
9916            ContentType::Unsupported(unknown_type) => return Err(Error::from(serde_json::Error::custom(format!("Received `{unknown_type}` content type response that cannot be converted to `models::DynamicSecretCreateOutput`")))),
9917        }
9918    } else {
9919        let content = resp.text().await?;
9920        let entity: Option<DynamicSecretCreateGcpError> = serde_json::from_str(&content).ok();
9921        Err(Error::ResponseError(ResponseContent { status, content, entity }))
9922    }
9923}
9924
9925pub async fn dynamic_secret_create_github(configuration: &configuration::Configuration, dynamic_secret_create_github: models::DynamicSecretCreateGithub) -> Result<models::DynamicSecretCreateOutput, Error<DynamicSecretCreateGithubError>> {
9926    // add a prefix to parameters to efficiently prevent name collisions
9927    let p_body_dynamic_secret_create_github = dynamic_secret_create_github;
9928
9929    let uri_str = format!("{}/dynamic-secret-create-github", configuration.base_path);
9930    let mut req_builder = configuration.client.request(reqwest::Method::POST, &uri_str);
9931
9932    if let Some(ref user_agent) = configuration.user_agent {
9933        req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone());
9934    }
9935    req_builder = req_builder.json(&p_body_dynamic_secret_create_github);
9936
9937    let req = req_builder.build()?;
9938    let resp = configuration.client.execute(req).await?;
9939
9940    let status = resp.status();
9941    let content_type = resp
9942        .headers()
9943        .get("content-type")
9944        .and_then(|v| v.to_str().ok())
9945        .unwrap_or("application/octet-stream");
9946    let content_type = super::ContentType::from(content_type);
9947
9948    if !status.is_client_error() && !status.is_server_error() {
9949        let content = resp.text().await?;
9950        match content_type {
9951            ContentType::Json => serde_json::from_str(&content).map_err(Error::from),
9952            ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `models::DynamicSecretCreateOutput`"))),
9953            ContentType::Unsupported(unknown_type) => return Err(Error::from(serde_json::Error::custom(format!("Received `{unknown_type}` content type response that cannot be converted to `models::DynamicSecretCreateOutput`")))),
9954        }
9955    } else {
9956        let content = resp.text().await?;
9957        let entity: Option<DynamicSecretCreateGithubError> = serde_json::from_str(&content).ok();
9958        Err(Error::ResponseError(ResponseContent { status, content, entity }))
9959    }
9960}
9961
9962pub async fn dynamic_secret_create_gitlab(configuration: &configuration::Configuration, dynamic_secret_create_gitlab: models::DynamicSecretCreateGitlab) -> Result<models::DynamicSecretCreateOutput, Error<DynamicSecretCreateGitlabError>> {
9963    // add a prefix to parameters to efficiently prevent name collisions
9964    let p_body_dynamic_secret_create_gitlab = dynamic_secret_create_gitlab;
9965
9966    let uri_str = format!("{}/dynamic-secret-create-gitlab", configuration.base_path);
9967    let mut req_builder = configuration.client.request(reqwest::Method::POST, &uri_str);
9968
9969    if let Some(ref user_agent) = configuration.user_agent {
9970        req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone());
9971    }
9972    req_builder = req_builder.json(&p_body_dynamic_secret_create_gitlab);
9973
9974    let req = req_builder.build()?;
9975    let resp = configuration.client.execute(req).await?;
9976
9977    let status = resp.status();
9978    let content_type = resp
9979        .headers()
9980        .get("content-type")
9981        .and_then(|v| v.to_str().ok())
9982        .unwrap_or("application/octet-stream");
9983    let content_type = super::ContentType::from(content_type);
9984
9985    if !status.is_client_error() && !status.is_server_error() {
9986        let content = resp.text().await?;
9987        match content_type {
9988            ContentType::Json => serde_json::from_str(&content).map_err(Error::from),
9989            ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `models::DynamicSecretCreateOutput`"))),
9990            ContentType::Unsupported(unknown_type) => return Err(Error::from(serde_json::Error::custom(format!("Received `{unknown_type}` content type response that cannot be converted to `models::DynamicSecretCreateOutput`")))),
9991        }
9992    } else {
9993        let content = resp.text().await?;
9994        let entity: Option<DynamicSecretCreateGitlabError> = serde_json::from_str(&content).ok();
9995        Err(Error::ResponseError(ResponseContent { status, content, entity }))
9996    }
9997}
9998
9999pub async fn dynamic_secret_create_gke(configuration: &configuration::Configuration, dynamic_secret_create_gke: models::DynamicSecretCreateGke) -> Result<models::DynamicSecretCreateOutput, Error<DynamicSecretCreateGkeError>> {
10000    // add a prefix to parameters to efficiently prevent name collisions
10001    let p_body_dynamic_secret_create_gke = dynamic_secret_create_gke;
10002
10003    let uri_str = format!("{}/dynamic-secret-create-gke", configuration.base_path);
10004    let mut req_builder = configuration.client.request(reqwest::Method::POST, &uri_str);
10005
10006    if let Some(ref user_agent) = configuration.user_agent {
10007        req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone());
10008    }
10009    req_builder = req_builder.json(&p_body_dynamic_secret_create_gke);
10010
10011    let req = req_builder.build()?;
10012    let resp = configuration.client.execute(req).await?;
10013
10014    let status = resp.status();
10015    let content_type = resp
10016        .headers()
10017        .get("content-type")
10018        .and_then(|v| v.to_str().ok())
10019        .unwrap_or("application/octet-stream");
10020    let content_type = super::ContentType::from(content_type);
10021
10022    if !status.is_client_error() && !status.is_server_error() {
10023        let content = resp.text().await?;
10024        match content_type {
10025            ContentType::Json => serde_json::from_str(&content).map_err(Error::from),
10026            ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `models::DynamicSecretCreateOutput`"))),
10027            ContentType::Unsupported(unknown_type) => return Err(Error::from(serde_json::Error::custom(format!("Received `{unknown_type}` content type response that cannot be converted to `models::DynamicSecretCreateOutput`")))),
10028        }
10029    } else {
10030        let content = resp.text().await?;
10031        let entity: Option<DynamicSecretCreateGkeError> = serde_json::from_str(&content).ok();
10032        Err(Error::ResponseError(ResponseContent { status, content, entity }))
10033    }
10034}
10035
10036pub async fn dynamic_secret_create_google_workspace(configuration: &configuration::Configuration, dynamic_secret_create_google_workspace: models::DynamicSecretCreateGoogleWorkspace) -> Result<models::DynamicSecretCreateOutput, Error<DynamicSecretCreateGoogleWorkspaceError>> {
10037    // add a prefix to parameters to efficiently prevent name collisions
10038    let p_body_dynamic_secret_create_google_workspace = dynamic_secret_create_google_workspace;
10039
10040    let uri_str = format!("{}/dynamic-secret-create-google-workspace", configuration.base_path);
10041    let mut req_builder = configuration.client.request(reqwest::Method::POST, &uri_str);
10042
10043    if let Some(ref user_agent) = configuration.user_agent {
10044        req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone());
10045    }
10046    req_builder = req_builder.json(&p_body_dynamic_secret_create_google_workspace);
10047
10048    let req = req_builder.build()?;
10049    let resp = configuration.client.execute(req).await?;
10050
10051    let status = resp.status();
10052    let content_type = resp
10053        .headers()
10054        .get("content-type")
10055        .and_then(|v| v.to_str().ok())
10056        .unwrap_or("application/octet-stream");
10057    let content_type = super::ContentType::from(content_type);
10058
10059    if !status.is_client_error() && !status.is_server_error() {
10060        let content = resp.text().await?;
10061        match content_type {
10062            ContentType::Json => serde_json::from_str(&content).map_err(Error::from),
10063            ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `models::DynamicSecretCreateOutput`"))),
10064            ContentType::Unsupported(unknown_type) => return Err(Error::from(serde_json::Error::custom(format!("Received `{unknown_type}` content type response that cannot be converted to `models::DynamicSecretCreateOutput`")))),
10065        }
10066    } else {
10067        let content = resp.text().await?;
10068        let entity: Option<DynamicSecretCreateGoogleWorkspaceError> = serde_json::from_str(&content).ok();
10069        Err(Error::ResponseError(ResponseContent { status, content, entity }))
10070    }
10071}
10072
10073pub async fn dynamic_secret_create_hana_db(configuration: &configuration::Configuration, dynamic_secret_create_hana_db: models::DynamicSecretCreateHanaDb) -> Result<models::DynamicSecretCreateOutput, Error<DynamicSecretCreateHanaDbError>> {
10074    // add a prefix to parameters to efficiently prevent name collisions
10075    let p_body_dynamic_secret_create_hana_db = dynamic_secret_create_hana_db;
10076
10077    let uri_str = format!("{}/dynamic-secret-create-hanadb", configuration.base_path);
10078    let mut req_builder = configuration.client.request(reqwest::Method::POST, &uri_str);
10079
10080    if let Some(ref user_agent) = configuration.user_agent {
10081        req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone());
10082    }
10083    req_builder = req_builder.json(&p_body_dynamic_secret_create_hana_db);
10084
10085    let req = req_builder.build()?;
10086    let resp = configuration.client.execute(req).await?;
10087
10088    let status = resp.status();
10089    let content_type = resp
10090        .headers()
10091        .get("content-type")
10092        .and_then(|v| v.to_str().ok())
10093        .unwrap_or("application/octet-stream");
10094    let content_type = super::ContentType::from(content_type);
10095
10096    if !status.is_client_error() && !status.is_server_error() {
10097        let content = resp.text().await?;
10098        match content_type {
10099            ContentType::Json => serde_json::from_str(&content).map_err(Error::from),
10100            ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `models::DynamicSecretCreateOutput`"))),
10101            ContentType::Unsupported(unknown_type) => return Err(Error::from(serde_json::Error::custom(format!("Received `{unknown_type}` content type response that cannot be converted to `models::DynamicSecretCreateOutput`")))),
10102        }
10103    } else {
10104        let content = resp.text().await?;
10105        let entity: Option<DynamicSecretCreateHanaDbError> = serde_json::from_str(&content).ok();
10106        Err(Error::ResponseError(ResponseContent { status, content, entity }))
10107    }
10108}
10109
10110pub async fn dynamic_secret_create_k8s(configuration: &configuration::Configuration, dynamic_secret_create_k8s: models::DynamicSecretCreateK8s) -> Result<models::DynamicSecretCreateOutput, Error<DynamicSecretCreateK8sError>> {
10111    // add a prefix to parameters to efficiently prevent name collisions
10112    let p_body_dynamic_secret_create_k8s = dynamic_secret_create_k8s;
10113
10114    let uri_str = format!("{}/dynamic-secret-create-k8s", configuration.base_path);
10115    let mut req_builder = configuration.client.request(reqwest::Method::POST, &uri_str);
10116
10117    if let Some(ref user_agent) = configuration.user_agent {
10118        req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone());
10119    }
10120    req_builder = req_builder.json(&p_body_dynamic_secret_create_k8s);
10121
10122    let req = req_builder.build()?;
10123    let resp = configuration.client.execute(req).await?;
10124
10125    let status = resp.status();
10126    let content_type = resp
10127        .headers()
10128        .get("content-type")
10129        .and_then(|v| v.to_str().ok())
10130        .unwrap_or("application/octet-stream");
10131    let content_type = super::ContentType::from(content_type);
10132
10133    if !status.is_client_error() && !status.is_server_error() {
10134        let content = resp.text().await?;
10135        match content_type {
10136            ContentType::Json => serde_json::from_str(&content).map_err(Error::from),
10137            ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `models::DynamicSecretCreateOutput`"))),
10138            ContentType::Unsupported(unknown_type) => return Err(Error::from(serde_json::Error::custom(format!("Received `{unknown_type}` content type response that cannot be converted to `models::DynamicSecretCreateOutput`")))),
10139        }
10140    } else {
10141        let content = resp.text().await?;
10142        let entity: Option<DynamicSecretCreateK8sError> = serde_json::from_str(&content).ok();
10143        Err(Error::ResponseError(ResponseContent { status, content, entity }))
10144    }
10145}
10146
10147pub async fn dynamic_secret_create_ldap(configuration: &configuration::Configuration, dynamic_secret_create_ldap: models::DynamicSecretCreateLdap) -> Result<models::DynamicSecretCreateOutput, Error<DynamicSecretCreateLdapError>> {
10148    // add a prefix to parameters to efficiently prevent name collisions
10149    let p_body_dynamic_secret_create_ldap = dynamic_secret_create_ldap;
10150
10151    let uri_str = format!("{}/dynamic-secret-create-ldap", configuration.base_path);
10152    let mut req_builder = configuration.client.request(reqwest::Method::POST, &uri_str);
10153
10154    if let Some(ref user_agent) = configuration.user_agent {
10155        req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone());
10156    }
10157    req_builder = req_builder.json(&p_body_dynamic_secret_create_ldap);
10158
10159    let req = req_builder.build()?;
10160    let resp = configuration.client.execute(req).await?;
10161
10162    let status = resp.status();
10163    let content_type = resp
10164        .headers()
10165        .get("content-type")
10166        .and_then(|v| v.to_str().ok())
10167        .unwrap_or("application/octet-stream");
10168    let content_type = super::ContentType::from(content_type);
10169
10170    if !status.is_client_error() && !status.is_server_error() {
10171        let content = resp.text().await?;
10172        match content_type {
10173            ContentType::Json => serde_json::from_str(&content).map_err(Error::from),
10174            ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `models::DynamicSecretCreateOutput`"))),
10175            ContentType::Unsupported(unknown_type) => return Err(Error::from(serde_json::Error::custom(format!("Received `{unknown_type}` content type response that cannot be converted to `models::DynamicSecretCreateOutput`")))),
10176        }
10177    } else {
10178        let content = resp.text().await?;
10179        let entity: Option<DynamicSecretCreateLdapError> = serde_json::from_str(&content).ok();
10180        Err(Error::ResponseError(ResponseContent { status, content, entity }))
10181    }
10182}
10183
10184pub async fn dynamic_secret_create_mongo_db(configuration: &configuration::Configuration, dynamic_secret_create_mongo_db: models::DynamicSecretCreateMongoDb) -> Result<models::DynamicSecretCreateOutput, Error<DynamicSecretCreateMongoDbError>> {
10185    // add a prefix to parameters to efficiently prevent name collisions
10186    let p_body_dynamic_secret_create_mongo_db = dynamic_secret_create_mongo_db;
10187
10188    let uri_str = format!("{}/dynamic-secret-create-mongodb", configuration.base_path);
10189    let mut req_builder = configuration.client.request(reqwest::Method::POST, &uri_str);
10190
10191    if let Some(ref user_agent) = configuration.user_agent {
10192        req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone());
10193    }
10194    req_builder = req_builder.json(&p_body_dynamic_secret_create_mongo_db);
10195
10196    let req = req_builder.build()?;
10197    let resp = configuration.client.execute(req).await?;
10198
10199    let status = resp.status();
10200    let content_type = resp
10201        .headers()
10202        .get("content-type")
10203        .and_then(|v| v.to_str().ok())
10204        .unwrap_or("application/octet-stream");
10205    let content_type = super::ContentType::from(content_type);
10206
10207    if !status.is_client_error() && !status.is_server_error() {
10208        let content = resp.text().await?;
10209        match content_type {
10210            ContentType::Json => serde_json::from_str(&content).map_err(Error::from),
10211            ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `models::DynamicSecretCreateOutput`"))),
10212            ContentType::Unsupported(unknown_type) => return Err(Error::from(serde_json::Error::custom(format!("Received `{unknown_type}` content type response that cannot be converted to `models::DynamicSecretCreateOutput`")))),
10213        }
10214    } else {
10215        let content = resp.text().await?;
10216        let entity: Option<DynamicSecretCreateMongoDbError> = serde_json::from_str(&content).ok();
10217        Err(Error::ResponseError(ResponseContent { status, content, entity }))
10218    }
10219}
10220
10221pub async fn dynamic_secret_create_ms_sql(configuration: &configuration::Configuration, dynamic_secret_create_ms_sql: models::DynamicSecretCreateMsSql) -> Result<models::DynamicSecretCreateOutput, Error<DynamicSecretCreateMsSqlError>> {
10222    // add a prefix to parameters to efficiently prevent name collisions
10223    let p_body_dynamic_secret_create_ms_sql = dynamic_secret_create_ms_sql;
10224
10225    let uri_str = format!("{}/dynamic-secret-create-mssql", configuration.base_path);
10226    let mut req_builder = configuration.client.request(reqwest::Method::POST, &uri_str);
10227
10228    if let Some(ref user_agent) = configuration.user_agent {
10229        req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone());
10230    }
10231    req_builder = req_builder.json(&p_body_dynamic_secret_create_ms_sql);
10232
10233    let req = req_builder.build()?;
10234    let resp = configuration.client.execute(req).await?;
10235
10236    let status = resp.status();
10237    let content_type = resp
10238        .headers()
10239        .get("content-type")
10240        .and_then(|v| v.to_str().ok())
10241        .unwrap_or("application/octet-stream");
10242    let content_type = super::ContentType::from(content_type);
10243
10244    if !status.is_client_error() && !status.is_server_error() {
10245        let content = resp.text().await?;
10246        match content_type {
10247            ContentType::Json => serde_json::from_str(&content).map_err(Error::from),
10248            ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `models::DynamicSecretCreateOutput`"))),
10249            ContentType::Unsupported(unknown_type) => return Err(Error::from(serde_json::Error::custom(format!("Received `{unknown_type}` content type response that cannot be converted to `models::DynamicSecretCreateOutput`")))),
10250        }
10251    } else {
10252        let content = resp.text().await?;
10253        let entity: Option<DynamicSecretCreateMsSqlError> = serde_json::from_str(&content).ok();
10254        Err(Error::ResponseError(ResponseContent { status, content, entity }))
10255    }
10256}
10257
10258pub async fn dynamic_secret_create_my_sql(configuration: &configuration::Configuration, dynamic_secret_create_my_sql: models::DynamicSecretCreateMySql) -> Result<models::DynamicSecretCreateOutput, Error<DynamicSecretCreateMySqlError>> {
10259    // add a prefix to parameters to efficiently prevent name collisions
10260    let p_body_dynamic_secret_create_my_sql = dynamic_secret_create_my_sql;
10261
10262    let uri_str = format!("{}/dynamic-secret-create-mysql", configuration.base_path);
10263    let mut req_builder = configuration.client.request(reqwest::Method::POST, &uri_str);
10264
10265    if let Some(ref user_agent) = configuration.user_agent {
10266        req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone());
10267    }
10268    req_builder = req_builder.json(&p_body_dynamic_secret_create_my_sql);
10269
10270    let req = req_builder.build()?;
10271    let resp = configuration.client.execute(req).await?;
10272
10273    let status = resp.status();
10274    let content_type = resp
10275        .headers()
10276        .get("content-type")
10277        .and_then(|v| v.to_str().ok())
10278        .unwrap_or("application/octet-stream");
10279    let content_type = super::ContentType::from(content_type);
10280
10281    if !status.is_client_error() && !status.is_server_error() {
10282        let content = resp.text().await?;
10283        match content_type {
10284            ContentType::Json => serde_json::from_str(&content).map_err(Error::from),
10285            ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `models::DynamicSecretCreateOutput`"))),
10286            ContentType::Unsupported(unknown_type) => return Err(Error::from(serde_json::Error::custom(format!("Received `{unknown_type}` content type response that cannot be converted to `models::DynamicSecretCreateOutput`")))),
10287        }
10288    } else {
10289        let content = resp.text().await?;
10290        let entity: Option<DynamicSecretCreateMySqlError> = serde_json::from_str(&content).ok();
10291        Err(Error::ResponseError(ResponseContent { status, content, entity }))
10292    }
10293}
10294
10295pub async fn dynamic_secret_create_open_ai(configuration: &configuration::Configuration, dynamic_secret_create_open_ai: models::DynamicSecretCreateOpenAi) -> Result<models::DynamicSecretCreateOutput, Error<DynamicSecretCreateOpenAiError>> {
10296    // add a prefix to parameters to efficiently prevent name collisions
10297    let p_body_dynamic_secret_create_open_ai = dynamic_secret_create_open_ai;
10298
10299    let uri_str = format!("{}/dynamic-secret-create-openai", configuration.base_path);
10300    let mut req_builder = configuration.client.request(reqwest::Method::POST, &uri_str);
10301
10302    if let Some(ref user_agent) = configuration.user_agent {
10303        req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone());
10304    }
10305    req_builder = req_builder.json(&p_body_dynamic_secret_create_open_ai);
10306
10307    let req = req_builder.build()?;
10308    let resp = configuration.client.execute(req).await?;
10309
10310    let status = resp.status();
10311    let content_type = resp
10312        .headers()
10313        .get("content-type")
10314        .and_then(|v| v.to_str().ok())
10315        .unwrap_or("application/octet-stream");
10316    let content_type = super::ContentType::from(content_type);
10317
10318    if !status.is_client_error() && !status.is_server_error() {
10319        let content = resp.text().await?;
10320        match content_type {
10321            ContentType::Json => serde_json::from_str(&content).map_err(Error::from),
10322            ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `models::DynamicSecretCreateOutput`"))),
10323            ContentType::Unsupported(unknown_type) => return Err(Error::from(serde_json::Error::custom(format!("Received `{unknown_type}` content type response that cannot be converted to `models::DynamicSecretCreateOutput`")))),
10324        }
10325    } else {
10326        let content = resp.text().await?;
10327        let entity: Option<DynamicSecretCreateOpenAiError> = serde_json::from_str(&content).ok();
10328        Err(Error::ResponseError(ResponseContent { status, content, entity }))
10329    }
10330}
10331
10332pub async fn dynamic_secret_create_oracle_db(configuration: &configuration::Configuration, dynamic_secret_create_oracle_db: models::DynamicSecretCreateOracleDb) -> Result<models::DynamicSecretCreateOutput, Error<DynamicSecretCreateOracleDbError>> {
10333    // add a prefix to parameters to efficiently prevent name collisions
10334    let p_body_dynamic_secret_create_oracle_db = dynamic_secret_create_oracle_db;
10335
10336    let uri_str = format!("{}/dynamic-secret-create-oracle", configuration.base_path);
10337    let mut req_builder = configuration.client.request(reqwest::Method::POST, &uri_str);
10338
10339    if let Some(ref user_agent) = configuration.user_agent {
10340        req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone());
10341    }
10342    req_builder = req_builder.json(&p_body_dynamic_secret_create_oracle_db);
10343
10344    let req = req_builder.build()?;
10345    let resp = configuration.client.execute(req).await?;
10346
10347    let status = resp.status();
10348    let content_type = resp
10349        .headers()
10350        .get("content-type")
10351        .and_then(|v| v.to_str().ok())
10352        .unwrap_or("application/octet-stream");
10353    let content_type = super::ContentType::from(content_type);
10354
10355    if !status.is_client_error() && !status.is_server_error() {
10356        let content = resp.text().await?;
10357        match content_type {
10358            ContentType::Json => serde_json::from_str(&content).map_err(Error::from),
10359            ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `models::DynamicSecretCreateOutput`"))),
10360            ContentType::Unsupported(unknown_type) => return Err(Error::from(serde_json::Error::custom(format!("Received `{unknown_type}` content type response that cannot be converted to `models::DynamicSecretCreateOutput`")))),
10361        }
10362    } else {
10363        let content = resp.text().await?;
10364        let entity: Option<DynamicSecretCreateOracleDbError> = serde_json::from_str(&content).ok();
10365        Err(Error::ResponseError(ResponseContent { status, content, entity }))
10366    }
10367}
10368
10369pub async fn dynamic_secret_create_ping(configuration: &configuration::Configuration, dynamic_secret_create_ping: models::DynamicSecretCreatePing) -> Result<models::DynamicSecretCreateOutput, Error<DynamicSecretCreatePingError>> {
10370    // add a prefix to parameters to efficiently prevent name collisions
10371    let p_body_dynamic_secret_create_ping = dynamic_secret_create_ping;
10372
10373    let uri_str = format!("{}/dynamic-secret-create-ping", configuration.base_path);
10374    let mut req_builder = configuration.client.request(reqwest::Method::POST, &uri_str);
10375
10376    if let Some(ref user_agent) = configuration.user_agent {
10377        req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone());
10378    }
10379    req_builder = req_builder.json(&p_body_dynamic_secret_create_ping);
10380
10381    let req = req_builder.build()?;
10382    let resp = configuration.client.execute(req).await?;
10383
10384    let status = resp.status();
10385    let content_type = resp
10386        .headers()
10387        .get("content-type")
10388        .and_then(|v| v.to_str().ok())
10389        .unwrap_or("application/octet-stream");
10390    let content_type = super::ContentType::from(content_type);
10391
10392    if !status.is_client_error() && !status.is_server_error() {
10393        let content = resp.text().await?;
10394        match content_type {
10395            ContentType::Json => serde_json::from_str(&content).map_err(Error::from),
10396            ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `models::DynamicSecretCreateOutput`"))),
10397            ContentType::Unsupported(unknown_type) => return Err(Error::from(serde_json::Error::custom(format!("Received `{unknown_type}` content type response that cannot be converted to `models::DynamicSecretCreateOutput`")))),
10398        }
10399    } else {
10400        let content = resp.text().await?;
10401        let entity: Option<DynamicSecretCreatePingError> = serde_json::from_str(&content).ok();
10402        Err(Error::ResponseError(ResponseContent { status, content, entity }))
10403    }
10404}
10405
10406pub async fn dynamic_secret_create_postgre_sql(configuration: &configuration::Configuration, dynamic_secret_create_postgre_sql: models::DynamicSecretCreatePostgreSql) -> Result<models::DynamicSecretCreateOutput, Error<DynamicSecretCreatePostgreSqlError>> {
10407    // add a prefix to parameters to efficiently prevent name collisions
10408    let p_body_dynamic_secret_create_postgre_sql = dynamic_secret_create_postgre_sql;
10409
10410    let uri_str = format!("{}/dynamic-secret-create-postgresql", configuration.base_path);
10411    let mut req_builder = configuration.client.request(reqwest::Method::POST, &uri_str);
10412
10413    if let Some(ref user_agent) = configuration.user_agent {
10414        req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone());
10415    }
10416    req_builder = req_builder.json(&p_body_dynamic_secret_create_postgre_sql);
10417
10418    let req = req_builder.build()?;
10419    let resp = configuration.client.execute(req).await?;
10420
10421    let status = resp.status();
10422    let content_type = resp
10423        .headers()
10424        .get("content-type")
10425        .and_then(|v| v.to_str().ok())
10426        .unwrap_or("application/octet-stream");
10427    let content_type = super::ContentType::from(content_type);
10428
10429    if !status.is_client_error() && !status.is_server_error() {
10430        let content = resp.text().await?;
10431        match content_type {
10432            ContentType::Json => serde_json::from_str(&content).map_err(Error::from),
10433            ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `models::DynamicSecretCreateOutput`"))),
10434            ContentType::Unsupported(unknown_type) => return Err(Error::from(serde_json::Error::custom(format!("Received `{unknown_type}` content type response that cannot be converted to `models::DynamicSecretCreateOutput`")))),
10435        }
10436    } else {
10437        let content = resp.text().await?;
10438        let entity: Option<DynamicSecretCreatePostgreSqlError> = serde_json::from_str(&content).ok();
10439        Err(Error::ResponseError(ResponseContent { status, content, entity }))
10440    }
10441}
10442
10443pub async fn dynamic_secret_create_rabbit_mq(configuration: &configuration::Configuration, dynamic_secret_create_rabbit_mq: models::DynamicSecretCreateRabbitMq) -> Result<models::DynamicSecretCreateOutput, Error<DynamicSecretCreateRabbitMqError>> {
10444    // add a prefix to parameters to efficiently prevent name collisions
10445    let p_body_dynamic_secret_create_rabbit_mq = dynamic_secret_create_rabbit_mq;
10446
10447    let uri_str = format!("{}/dynamic-secret-create-rabbitmq", configuration.base_path);
10448    let mut req_builder = configuration.client.request(reqwest::Method::POST, &uri_str);
10449
10450    if let Some(ref user_agent) = configuration.user_agent {
10451        req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone());
10452    }
10453    req_builder = req_builder.json(&p_body_dynamic_secret_create_rabbit_mq);
10454
10455    let req = req_builder.build()?;
10456    let resp = configuration.client.execute(req).await?;
10457
10458    let status = resp.status();
10459    let content_type = resp
10460        .headers()
10461        .get("content-type")
10462        .and_then(|v| v.to_str().ok())
10463        .unwrap_or("application/octet-stream");
10464    let content_type = super::ContentType::from(content_type);
10465
10466    if !status.is_client_error() && !status.is_server_error() {
10467        let content = resp.text().await?;
10468        match content_type {
10469            ContentType::Json => serde_json::from_str(&content).map_err(Error::from),
10470            ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `models::DynamicSecretCreateOutput`"))),
10471            ContentType::Unsupported(unknown_type) => return Err(Error::from(serde_json::Error::custom(format!("Received `{unknown_type}` content type response that cannot be converted to `models::DynamicSecretCreateOutput`")))),
10472        }
10473    } else {
10474        let content = resp.text().await?;
10475        let entity: Option<DynamicSecretCreateRabbitMqError> = serde_json::from_str(&content).ok();
10476        Err(Error::ResponseError(ResponseContent { status, content, entity }))
10477    }
10478}
10479
10480pub async fn dynamic_secret_create_rdp(configuration: &configuration::Configuration, dynamic_secret_create_rdp: models::DynamicSecretCreateRdp) -> Result<models::DynamicSecretCreateOutput, Error<DynamicSecretCreateRdpError>> {
10481    // add a prefix to parameters to efficiently prevent name collisions
10482    let p_body_dynamic_secret_create_rdp = dynamic_secret_create_rdp;
10483
10484    let uri_str = format!("{}/dynamic-secret-create-rdp", configuration.base_path);
10485    let mut req_builder = configuration.client.request(reqwest::Method::POST, &uri_str);
10486
10487    if let Some(ref user_agent) = configuration.user_agent {
10488        req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone());
10489    }
10490    req_builder = req_builder.json(&p_body_dynamic_secret_create_rdp);
10491
10492    let req = req_builder.build()?;
10493    let resp = configuration.client.execute(req).await?;
10494
10495    let status = resp.status();
10496    let content_type = resp
10497        .headers()
10498        .get("content-type")
10499        .and_then(|v| v.to_str().ok())
10500        .unwrap_or("application/octet-stream");
10501    let content_type = super::ContentType::from(content_type);
10502
10503    if !status.is_client_error() && !status.is_server_error() {
10504        let content = resp.text().await?;
10505        match content_type {
10506            ContentType::Json => serde_json::from_str(&content).map_err(Error::from),
10507            ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `models::DynamicSecretCreateOutput`"))),
10508            ContentType::Unsupported(unknown_type) => return Err(Error::from(serde_json::Error::custom(format!("Received `{unknown_type}` content type response that cannot be converted to `models::DynamicSecretCreateOutput`")))),
10509        }
10510    } else {
10511        let content = resp.text().await?;
10512        let entity: Option<DynamicSecretCreateRdpError> = serde_json::from_str(&content).ok();
10513        Err(Error::ResponseError(ResponseContent { status, content, entity }))
10514    }
10515}
10516
10517pub async fn dynamic_secret_create_redis(configuration: &configuration::Configuration, dynamic_secret_create_redis: models::DynamicSecretCreateRedis) -> Result<models::DynamicSecretCreateOutput, Error<DynamicSecretCreateRedisError>> {
10518    // add a prefix to parameters to efficiently prevent name collisions
10519    let p_body_dynamic_secret_create_redis = dynamic_secret_create_redis;
10520
10521    let uri_str = format!("{}/dynamic-secret-create-redis", configuration.base_path);
10522    let mut req_builder = configuration.client.request(reqwest::Method::POST, &uri_str);
10523
10524    if let Some(ref user_agent) = configuration.user_agent {
10525        req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone());
10526    }
10527    req_builder = req_builder.json(&p_body_dynamic_secret_create_redis);
10528
10529    let req = req_builder.build()?;
10530    let resp = configuration.client.execute(req).await?;
10531
10532    let status = resp.status();
10533    let content_type = resp
10534        .headers()
10535        .get("content-type")
10536        .and_then(|v| v.to_str().ok())
10537        .unwrap_or("application/octet-stream");
10538    let content_type = super::ContentType::from(content_type);
10539
10540    if !status.is_client_error() && !status.is_server_error() {
10541        let content = resp.text().await?;
10542        match content_type {
10543            ContentType::Json => serde_json::from_str(&content).map_err(Error::from),
10544            ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `models::DynamicSecretCreateOutput`"))),
10545            ContentType::Unsupported(unknown_type) => return Err(Error::from(serde_json::Error::custom(format!("Received `{unknown_type}` content type response that cannot be converted to `models::DynamicSecretCreateOutput`")))),
10546        }
10547    } else {
10548        let content = resp.text().await?;
10549        let entity: Option<DynamicSecretCreateRedisError> = serde_json::from_str(&content).ok();
10550        Err(Error::ResponseError(ResponseContent { status, content, entity }))
10551    }
10552}
10553
10554pub async fn dynamic_secret_create_redshift(configuration: &configuration::Configuration, dynamic_secret_create_redshift: models::DynamicSecretCreateRedshift) -> Result<models::DynamicSecretCreateOutput, Error<DynamicSecretCreateRedshiftError>> {
10555    // add a prefix to parameters to efficiently prevent name collisions
10556    let p_body_dynamic_secret_create_redshift = dynamic_secret_create_redshift;
10557
10558    let uri_str = format!("{}/dynamic-secret-create-redshift", configuration.base_path);
10559    let mut req_builder = configuration.client.request(reqwest::Method::POST, &uri_str);
10560
10561    if let Some(ref user_agent) = configuration.user_agent {
10562        req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone());
10563    }
10564    req_builder = req_builder.json(&p_body_dynamic_secret_create_redshift);
10565
10566    let req = req_builder.build()?;
10567    let resp = configuration.client.execute(req).await?;
10568
10569    let status = resp.status();
10570    let content_type = resp
10571        .headers()
10572        .get("content-type")
10573        .and_then(|v| v.to_str().ok())
10574        .unwrap_or("application/octet-stream");
10575    let content_type = super::ContentType::from(content_type);
10576
10577    if !status.is_client_error() && !status.is_server_error() {
10578        let content = resp.text().await?;
10579        match content_type {
10580            ContentType::Json => serde_json::from_str(&content).map_err(Error::from),
10581            ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `models::DynamicSecretCreateOutput`"))),
10582            ContentType::Unsupported(unknown_type) => return Err(Error::from(serde_json::Error::custom(format!("Received `{unknown_type}` content type response that cannot be converted to `models::DynamicSecretCreateOutput`")))),
10583        }
10584    } else {
10585        let content = resp.text().await?;
10586        let entity: Option<DynamicSecretCreateRedshiftError> = serde_json::from_str(&content).ok();
10587        Err(Error::ResponseError(ResponseContent { status, content, entity }))
10588    }
10589}
10590
10591pub async fn dynamic_secret_create_snowflake(configuration: &configuration::Configuration, dynamic_secret_create_snowflake: models::DynamicSecretCreateSnowflake) -> Result<models::DynamicSecretCreateOutput, Error<DynamicSecretCreateSnowflakeError>> {
10592    // add a prefix to parameters to efficiently prevent name collisions
10593    let p_body_dynamic_secret_create_snowflake = dynamic_secret_create_snowflake;
10594
10595    let uri_str = format!("{}/dynamic-secret-create-snowflake", configuration.base_path);
10596    let mut req_builder = configuration.client.request(reqwest::Method::POST, &uri_str);
10597
10598    if let Some(ref user_agent) = configuration.user_agent {
10599        req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone());
10600    }
10601    req_builder = req_builder.json(&p_body_dynamic_secret_create_snowflake);
10602
10603    let req = req_builder.build()?;
10604    let resp = configuration.client.execute(req).await?;
10605
10606    let status = resp.status();
10607    let content_type = resp
10608        .headers()
10609        .get("content-type")
10610        .and_then(|v| v.to_str().ok())
10611        .unwrap_or("application/octet-stream");
10612    let content_type = super::ContentType::from(content_type);
10613
10614    if !status.is_client_error() && !status.is_server_error() {
10615        let content = resp.text().await?;
10616        match content_type {
10617            ContentType::Json => serde_json::from_str(&content).map_err(Error::from),
10618            ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `models::DynamicSecretCreateOutput`"))),
10619            ContentType::Unsupported(unknown_type) => return Err(Error::from(serde_json::Error::custom(format!("Received `{unknown_type}` content type response that cannot be converted to `models::DynamicSecretCreateOutput`")))),
10620        }
10621    } else {
10622        let content = resp.text().await?;
10623        let entity: Option<DynamicSecretCreateSnowflakeError> = serde_json::from_str(&content).ok();
10624        Err(Error::ResponseError(ResponseContent { status, content, entity }))
10625    }
10626}
10627
10628pub async fn dynamic_secret_create_venafi(configuration: &configuration::Configuration, dynamic_secret_create_venafi: models::DynamicSecretCreateVenafi) -> Result<models::DynamicSecretCreateOutput, Error<DynamicSecretCreateVenafiError>> {
10629    // add a prefix to parameters to efficiently prevent name collisions
10630    let p_body_dynamic_secret_create_venafi = dynamic_secret_create_venafi;
10631
10632    let uri_str = format!("{}/dynamic-secret-create-venafi", configuration.base_path);
10633    let mut req_builder = configuration.client.request(reqwest::Method::POST, &uri_str);
10634
10635    if let Some(ref user_agent) = configuration.user_agent {
10636        req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone());
10637    }
10638    req_builder = req_builder.json(&p_body_dynamic_secret_create_venafi);
10639
10640    let req = req_builder.build()?;
10641    let resp = configuration.client.execute(req).await?;
10642
10643    let status = resp.status();
10644    let content_type = resp
10645        .headers()
10646        .get("content-type")
10647        .and_then(|v| v.to_str().ok())
10648        .unwrap_or("application/octet-stream");
10649    let content_type = super::ContentType::from(content_type);
10650
10651    if !status.is_client_error() && !status.is_server_error() {
10652        let content = resp.text().await?;
10653        match content_type {
10654            ContentType::Json => serde_json::from_str(&content).map_err(Error::from),
10655            ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `models::DynamicSecretCreateOutput`"))),
10656            ContentType::Unsupported(unknown_type) => return Err(Error::from(serde_json::Error::custom(format!("Received `{unknown_type}` content type response that cannot be converted to `models::DynamicSecretCreateOutput`")))),
10657        }
10658    } else {
10659        let content = resp.text().await?;
10660        let entity: Option<DynamicSecretCreateVenafiError> = serde_json::from_str(&content).ok();
10661        Err(Error::ResponseError(ResponseContent { status, content, entity }))
10662    }
10663}
10664
10665pub async fn dynamic_secret_delete(configuration: &configuration::Configuration, dynamic_secret_delete: models::DynamicSecretDelete) -> Result<models::DynamicSecretDeleteOutput, Error<DynamicSecretDeleteError>> {
10666    // add a prefix to parameters to efficiently prevent name collisions
10667    let p_body_dynamic_secret_delete = dynamic_secret_delete;
10668
10669    let uri_str = format!("{}/dynamic-secret-delete", configuration.base_path);
10670    let mut req_builder = configuration.client.request(reqwest::Method::POST, &uri_str);
10671
10672    if let Some(ref user_agent) = configuration.user_agent {
10673        req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone());
10674    }
10675    req_builder = req_builder.json(&p_body_dynamic_secret_delete);
10676
10677    let req = req_builder.build()?;
10678    let resp = configuration.client.execute(req).await?;
10679
10680    let status = resp.status();
10681    let content_type = resp
10682        .headers()
10683        .get("content-type")
10684        .and_then(|v| v.to_str().ok())
10685        .unwrap_or("application/octet-stream");
10686    let content_type = super::ContentType::from(content_type);
10687
10688    if !status.is_client_error() && !status.is_server_error() {
10689        let content = resp.text().await?;
10690        match content_type {
10691            ContentType::Json => serde_json::from_str(&content).map_err(Error::from),
10692            ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `models::DynamicSecretDeleteOutput`"))),
10693            ContentType::Unsupported(unknown_type) => return Err(Error::from(serde_json::Error::custom(format!("Received `{unknown_type}` content type response that cannot be converted to `models::DynamicSecretDeleteOutput`")))),
10694        }
10695    } else {
10696        let content = resp.text().await?;
10697        let entity: Option<DynamicSecretDeleteError> = serde_json::from_str(&content).ok();
10698        Err(Error::ResponseError(ResponseContent { status, content, entity }))
10699    }
10700}
10701
10702pub async fn dynamic_secret_get(configuration: &configuration::Configuration, dynamic_secret_get: models::DynamicSecretGet) -> Result<models::DsProducerDetails, Error<DynamicSecretGetError>> {
10703    // add a prefix to parameters to efficiently prevent name collisions
10704    let p_body_dynamic_secret_get = dynamic_secret_get;
10705
10706    let uri_str = format!("{}/dynamic-secret-get", configuration.base_path);
10707    let mut req_builder = configuration.client.request(reqwest::Method::POST, &uri_str);
10708
10709    if let Some(ref user_agent) = configuration.user_agent {
10710        req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone());
10711    }
10712    req_builder = req_builder.json(&p_body_dynamic_secret_get);
10713
10714    let req = req_builder.build()?;
10715    let resp = configuration.client.execute(req).await?;
10716
10717    let status = resp.status();
10718    let content_type = resp
10719        .headers()
10720        .get("content-type")
10721        .and_then(|v| v.to_str().ok())
10722        .unwrap_or("application/octet-stream");
10723    let content_type = super::ContentType::from(content_type);
10724
10725    if !status.is_client_error() && !status.is_server_error() {
10726        let content = resp.text().await?;
10727        match content_type {
10728            ContentType::Json => serde_json::from_str(&content).map_err(Error::from),
10729            ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `models::DsProducerDetails`"))),
10730            ContentType::Unsupported(unknown_type) => return Err(Error::from(serde_json::Error::custom(format!("Received `{unknown_type}` content type response that cannot be converted to `models::DsProducerDetails`")))),
10731        }
10732    } else {
10733        let content = resp.text().await?;
10734        let entity: Option<DynamicSecretGetError> = serde_json::from_str(&content).ok();
10735        Err(Error::ResponseError(ResponseContent { status, content, entity }))
10736    }
10737}
10738
10739pub async fn dynamic_secret_get_value(configuration: &configuration::Configuration, dynamic_secret_get_value: models::DynamicSecretGetValue) -> Result<std::collections::HashMap<String, String>, Error<DynamicSecretGetValueError>> {
10740    // add a prefix to parameters to efficiently prevent name collisions
10741    let p_body_dynamic_secret_get_value = dynamic_secret_get_value;
10742
10743    let uri_str = format!("{}/dynamic-secret-get-value", configuration.base_path);
10744    let mut req_builder = configuration.client.request(reqwest::Method::POST, &uri_str);
10745
10746    if let Some(ref user_agent) = configuration.user_agent {
10747        req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone());
10748    }
10749    req_builder = req_builder.json(&p_body_dynamic_secret_get_value);
10750
10751    let req = req_builder.build()?;
10752    let resp = configuration.client.execute(req).await?;
10753
10754    let status = resp.status();
10755    let content_type = resp
10756        .headers()
10757        .get("content-type")
10758        .and_then(|v| v.to_str().ok())
10759        .unwrap_or("application/octet-stream");
10760    let content_type = super::ContentType::from(content_type);
10761
10762    if !status.is_client_error() && !status.is_server_error() {
10763        let content = resp.text().await?;
10764        match content_type {
10765            ContentType::Json => serde_json::from_str(&content).map_err(Error::from),
10766            ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `std::collections::HashMap&lt;String, String&gt;`"))),
10767            ContentType::Unsupported(unknown_type) => return Err(Error::from(serde_json::Error::custom(format!("Received `{unknown_type}` content type response that cannot be converted to `std::collections::HashMap&lt;String, String&gt;`")))),
10768        }
10769    } else {
10770        let content = resp.text().await?;
10771        let entity: Option<DynamicSecretGetValueError> = serde_json::from_str(&content).ok();
10772        Err(Error::ResponseError(ResponseContent { status, content, entity }))
10773    }
10774}
10775
10776pub async fn dynamic_secret_list(configuration: &configuration::Configuration, dynamic_secret_list: models::DynamicSecretList) -> Result<models::GetProducersListReplyObj, Error<DynamicSecretListError>> {
10777    // add a prefix to parameters to efficiently prevent name collisions
10778    let p_body_dynamic_secret_list = dynamic_secret_list;
10779
10780    let uri_str = format!("{}/dynamic-secret-list", configuration.base_path);
10781    let mut req_builder = configuration.client.request(reqwest::Method::POST, &uri_str);
10782
10783    if let Some(ref user_agent) = configuration.user_agent {
10784        req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone());
10785    }
10786    req_builder = req_builder.json(&p_body_dynamic_secret_list);
10787
10788    let req = req_builder.build()?;
10789    let resp = configuration.client.execute(req).await?;
10790
10791    let status = resp.status();
10792    let content_type = resp
10793        .headers()
10794        .get("content-type")
10795        .and_then(|v| v.to_str().ok())
10796        .unwrap_or("application/octet-stream");
10797    let content_type = super::ContentType::from(content_type);
10798
10799    if !status.is_client_error() && !status.is_server_error() {
10800        let content = resp.text().await?;
10801        match content_type {
10802            ContentType::Json => serde_json::from_str(&content).map_err(Error::from),
10803            ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `models::GetProducersListReplyObj`"))),
10804            ContentType::Unsupported(unknown_type) => return Err(Error::from(serde_json::Error::custom(format!("Received `{unknown_type}` content type response that cannot be converted to `models::GetProducersListReplyObj`")))),
10805        }
10806    } else {
10807        let content = resp.text().await?;
10808        let entity: Option<DynamicSecretListError> = serde_json::from_str(&content).ok();
10809        Err(Error::ResponseError(ResponseContent { status, content, entity }))
10810    }
10811}
10812
10813pub async fn dynamic_secret_tmp_creds_delete(configuration: &configuration::Configuration, dynamic_secret_tmp_creds_delete: models::DynamicSecretTmpCredsDelete) -> Result<(), Error<DynamicSecretTmpCredsDeleteError>> {
10814    // add a prefix to parameters to efficiently prevent name collisions
10815    let p_body_dynamic_secret_tmp_creds_delete = dynamic_secret_tmp_creds_delete;
10816
10817    let uri_str = format!("{}/dynamic-secret-tmp-creds-delete", configuration.base_path);
10818    let mut req_builder = configuration.client.request(reqwest::Method::POST, &uri_str);
10819
10820    if let Some(ref user_agent) = configuration.user_agent {
10821        req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone());
10822    }
10823    req_builder = req_builder.json(&p_body_dynamic_secret_tmp_creds_delete);
10824
10825    let req = req_builder.build()?;
10826    let resp = configuration.client.execute(req).await?;
10827
10828    let status = resp.status();
10829
10830    if !status.is_client_error() && !status.is_server_error() {
10831        Ok(())
10832    } else {
10833        let content = resp.text().await?;
10834        let entity: Option<DynamicSecretTmpCredsDeleteError> = serde_json::from_str(&content).ok();
10835        Err(Error::ResponseError(ResponseContent { status, content, entity }))
10836    }
10837}
10838
10839pub async fn dynamic_secret_tmp_creds_get(configuration: &configuration::Configuration, dynamic_secret_tmp_creds_get: models::DynamicSecretTmpCredsGet) -> Result<Vec<models::TmpUserData>, Error<DynamicSecretTmpCredsGetError>> {
10840    // add a prefix to parameters to efficiently prevent name collisions
10841    let p_body_dynamic_secret_tmp_creds_get = dynamic_secret_tmp_creds_get;
10842
10843    let uri_str = format!("{}/dynamic-secret-tmp-creds-Get", configuration.base_path);
10844    let mut req_builder = configuration.client.request(reqwest::Method::POST, &uri_str);
10845
10846    if let Some(ref user_agent) = configuration.user_agent {
10847        req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone());
10848    }
10849    req_builder = req_builder.json(&p_body_dynamic_secret_tmp_creds_get);
10850
10851    let req = req_builder.build()?;
10852    let resp = configuration.client.execute(req).await?;
10853
10854    let status = resp.status();
10855    let content_type = resp
10856        .headers()
10857        .get("content-type")
10858        .and_then(|v| v.to_str().ok())
10859        .unwrap_or("application/octet-stream");
10860    let content_type = super::ContentType::from(content_type);
10861
10862    if !status.is_client_error() && !status.is_server_error() {
10863        let content = resp.text().await?;
10864        match content_type {
10865            ContentType::Json => serde_json::from_str(&content).map_err(Error::from),
10866            ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `Vec&lt;models::TmpUserData&gt;`"))),
10867            ContentType::Unsupported(unknown_type) => return Err(Error::from(serde_json::Error::custom(format!("Received `{unknown_type}` content type response that cannot be converted to `Vec&lt;models::TmpUserData&gt;`")))),
10868        }
10869    } else {
10870        let content = resp.text().await?;
10871        let entity: Option<DynamicSecretTmpCredsGetError> = serde_json::from_str(&content).ok();
10872        Err(Error::ResponseError(ResponseContent { status, content, entity }))
10873    }
10874}
10875
10876pub async fn dynamic_secret_tmp_creds_update(configuration: &configuration::Configuration, dynamic_secret_tmp_creds_update: models::DynamicSecretTmpCredsUpdate) -> Result<(), Error<DynamicSecretTmpCredsUpdateError>> {
10877    // add a prefix to parameters to efficiently prevent name collisions
10878    let p_body_dynamic_secret_tmp_creds_update = dynamic_secret_tmp_creds_update;
10879
10880    let uri_str = format!("{}/dynamic-secret-tmp-creds-update", configuration.base_path);
10881    let mut req_builder = configuration.client.request(reqwest::Method::POST, &uri_str);
10882
10883    if let Some(ref user_agent) = configuration.user_agent {
10884        req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone());
10885    }
10886    req_builder = req_builder.json(&p_body_dynamic_secret_tmp_creds_update);
10887
10888    let req = req_builder.build()?;
10889    let resp = configuration.client.execute(req).await?;
10890
10891    let status = resp.status();
10892
10893    if !status.is_client_error() && !status.is_server_error() {
10894        Ok(())
10895    } else {
10896        let content = resp.text().await?;
10897        let entity: Option<DynamicSecretTmpCredsUpdateError> = serde_json::from_str(&content).ok();
10898        Err(Error::ResponseError(ResponseContent { status, content, entity }))
10899    }
10900}
10901
10902pub async fn dynamic_secret_update_artifactory(configuration: &configuration::Configuration, dynamic_secret_update_artifactory: models::DynamicSecretUpdateArtifactory) -> Result<models::DynamicSecretUpdateOutput, Error<DynamicSecretUpdateArtifactoryError>> {
10903    // add a prefix to parameters to efficiently prevent name collisions
10904    let p_body_dynamic_secret_update_artifactory = dynamic_secret_update_artifactory;
10905
10906    let uri_str = format!("{}/dynamic-secret-update-artifactory", configuration.base_path);
10907    let mut req_builder = configuration.client.request(reqwest::Method::POST, &uri_str);
10908
10909    if let Some(ref user_agent) = configuration.user_agent {
10910        req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone());
10911    }
10912    req_builder = req_builder.json(&p_body_dynamic_secret_update_artifactory);
10913
10914    let req = req_builder.build()?;
10915    let resp = configuration.client.execute(req).await?;
10916
10917    let status = resp.status();
10918    let content_type = resp
10919        .headers()
10920        .get("content-type")
10921        .and_then(|v| v.to_str().ok())
10922        .unwrap_or("application/octet-stream");
10923    let content_type = super::ContentType::from(content_type);
10924
10925    if !status.is_client_error() && !status.is_server_error() {
10926        let content = resp.text().await?;
10927        match content_type {
10928            ContentType::Json => serde_json::from_str(&content).map_err(Error::from),
10929            ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `models::DynamicSecretUpdateOutput`"))),
10930            ContentType::Unsupported(unknown_type) => return Err(Error::from(serde_json::Error::custom(format!("Received `{unknown_type}` content type response that cannot be converted to `models::DynamicSecretUpdateOutput`")))),
10931        }
10932    } else {
10933        let content = resp.text().await?;
10934        let entity: Option<DynamicSecretUpdateArtifactoryError> = serde_json::from_str(&content).ok();
10935        Err(Error::ResponseError(ResponseContent { status, content, entity }))
10936    }
10937}
10938
10939pub async fn dynamic_secret_update_aws(configuration: &configuration::Configuration, dynamic_secret_update_aws: models::DynamicSecretUpdateAws) -> Result<models::DynamicSecretUpdateOutput, Error<DynamicSecretUpdateAwsError>> {
10940    // add a prefix to parameters to efficiently prevent name collisions
10941    let p_body_dynamic_secret_update_aws = dynamic_secret_update_aws;
10942
10943    let uri_str = format!("{}/dynamic-secret-update-aws", configuration.base_path);
10944    let mut req_builder = configuration.client.request(reqwest::Method::POST, &uri_str);
10945
10946    if let Some(ref user_agent) = configuration.user_agent {
10947        req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone());
10948    }
10949    req_builder = req_builder.json(&p_body_dynamic_secret_update_aws);
10950
10951    let req = req_builder.build()?;
10952    let resp = configuration.client.execute(req).await?;
10953
10954    let status = resp.status();
10955    let content_type = resp
10956        .headers()
10957        .get("content-type")
10958        .and_then(|v| v.to_str().ok())
10959        .unwrap_or("application/octet-stream");
10960    let content_type = super::ContentType::from(content_type);
10961
10962    if !status.is_client_error() && !status.is_server_error() {
10963        let content = resp.text().await?;
10964        match content_type {
10965            ContentType::Json => serde_json::from_str(&content).map_err(Error::from),
10966            ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `models::DynamicSecretUpdateOutput`"))),
10967            ContentType::Unsupported(unknown_type) => return Err(Error::from(serde_json::Error::custom(format!("Received `{unknown_type}` content type response that cannot be converted to `models::DynamicSecretUpdateOutput`")))),
10968        }
10969    } else {
10970        let content = resp.text().await?;
10971        let entity: Option<DynamicSecretUpdateAwsError> = serde_json::from_str(&content).ok();
10972        Err(Error::ResponseError(ResponseContent { status, content, entity }))
10973    }
10974}
10975
10976pub async fn dynamic_secret_update_azure(configuration: &configuration::Configuration, dynamic_secret_update_azure: models::DynamicSecretUpdateAzure) -> Result<models::DynamicSecretUpdateOutput, Error<DynamicSecretUpdateAzureError>> {
10977    // add a prefix to parameters to efficiently prevent name collisions
10978    let p_body_dynamic_secret_update_azure = dynamic_secret_update_azure;
10979
10980    let uri_str = format!("{}/dynamic-secret-update-azure", configuration.base_path);
10981    let mut req_builder = configuration.client.request(reqwest::Method::POST, &uri_str);
10982
10983    if let Some(ref user_agent) = configuration.user_agent {
10984        req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone());
10985    }
10986    req_builder = req_builder.json(&p_body_dynamic_secret_update_azure);
10987
10988    let req = req_builder.build()?;
10989    let resp = configuration.client.execute(req).await?;
10990
10991    let status = resp.status();
10992    let content_type = resp
10993        .headers()
10994        .get("content-type")
10995        .and_then(|v| v.to_str().ok())
10996        .unwrap_or("application/octet-stream");
10997    let content_type = super::ContentType::from(content_type);
10998
10999    if !status.is_client_error() && !status.is_server_error() {
11000        let content = resp.text().await?;
11001        match content_type {
11002            ContentType::Json => serde_json::from_str(&content).map_err(Error::from),
11003            ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `models::DynamicSecretUpdateOutput`"))),
11004            ContentType::Unsupported(unknown_type) => return Err(Error::from(serde_json::Error::custom(format!("Received `{unknown_type}` content type response that cannot be converted to `models::DynamicSecretUpdateOutput`")))),
11005        }
11006    } else {
11007        let content = resp.text().await?;
11008        let entity: Option<DynamicSecretUpdateAzureError> = serde_json::from_str(&content).ok();
11009        Err(Error::ResponseError(ResponseContent { status, content, entity }))
11010    }
11011}
11012
11013pub async fn dynamic_secret_update_cassandra(configuration: &configuration::Configuration, dynamic_secret_update_cassandra: models::DynamicSecretUpdateCassandra) -> Result<models::DynamicSecretUpdateOutput, Error<DynamicSecretUpdateCassandraError>> {
11014    // add a prefix to parameters to efficiently prevent name collisions
11015    let p_body_dynamic_secret_update_cassandra = dynamic_secret_update_cassandra;
11016
11017    let uri_str = format!("{}/dynamic-secret-update-cassandra", configuration.base_path);
11018    let mut req_builder = configuration.client.request(reqwest::Method::POST, &uri_str);
11019
11020    if let Some(ref user_agent) = configuration.user_agent {
11021        req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone());
11022    }
11023    req_builder = req_builder.json(&p_body_dynamic_secret_update_cassandra);
11024
11025    let req = req_builder.build()?;
11026    let resp = configuration.client.execute(req).await?;
11027
11028    let status = resp.status();
11029    let content_type = resp
11030        .headers()
11031        .get("content-type")
11032        .and_then(|v| v.to_str().ok())
11033        .unwrap_or("application/octet-stream");
11034    let content_type = super::ContentType::from(content_type);
11035
11036    if !status.is_client_error() && !status.is_server_error() {
11037        let content = resp.text().await?;
11038        match content_type {
11039            ContentType::Json => serde_json::from_str(&content).map_err(Error::from),
11040            ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `models::DynamicSecretUpdateOutput`"))),
11041            ContentType::Unsupported(unknown_type) => return Err(Error::from(serde_json::Error::custom(format!("Received `{unknown_type}` content type response that cannot be converted to `models::DynamicSecretUpdateOutput`")))),
11042        }
11043    } else {
11044        let content = resp.text().await?;
11045        let entity: Option<DynamicSecretUpdateCassandraError> = serde_json::from_str(&content).ok();
11046        Err(Error::ResponseError(ResponseContent { status, content, entity }))
11047    }
11048}
11049
11050pub async fn dynamic_secret_update_custom(configuration: &configuration::Configuration, dynamic_secret_update_custom: Option<models::DynamicSecretUpdateCustom>) -> Result<models::DynamicSecretUpdateOutput, Error<DynamicSecretUpdateCustomError>> {
11051    // add a prefix to parameters to efficiently prevent name collisions
11052    let p_body_dynamic_secret_update_custom = dynamic_secret_update_custom;
11053
11054    let uri_str = format!("{}/dynamic-secret-update-custom", configuration.base_path);
11055    let mut req_builder = configuration.client.request(reqwest::Method::POST, &uri_str);
11056
11057    if let Some(ref user_agent) = configuration.user_agent {
11058        req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone());
11059    }
11060    req_builder = req_builder.json(&p_body_dynamic_secret_update_custom);
11061
11062    let req = req_builder.build()?;
11063    let resp = configuration.client.execute(req).await?;
11064
11065    let status = resp.status();
11066    let content_type = resp
11067        .headers()
11068        .get("content-type")
11069        .and_then(|v| v.to_str().ok())
11070        .unwrap_or("application/octet-stream");
11071    let content_type = super::ContentType::from(content_type);
11072
11073    if !status.is_client_error() && !status.is_server_error() {
11074        let content = resp.text().await?;
11075        match content_type {
11076            ContentType::Json => serde_json::from_str(&content).map_err(Error::from),
11077            ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `models::DynamicSecretUpdateOutput`"))),
11078            ContentType::Unsupported(unknown_type) => return Err(Error::from(serde_json::Error::custom(format!("Received `{unknown_type}` content type response that cannot be converted to `models::DynamicSecretUpdateOutput`")))),
11079        }
11080    } else {
11081        let content = resp.text().await?;
11082        let entity: Option<DynamicSecretUpdateCustomError> = serde_json::from_str(&content).ok();
11083        Err(Error::ResponseError(ResponseContent { status, content, entity }))
11084    }
11085}
11086
11087pub async fn dynamic_secret_update_dockerhub(configuration: &configuration::Configuration, dynamic_secret_update_dockerhub: models::DynamicSecretUpdateDockerhub) -> Result<models::DynamicSecretUpdateOutput, Error<DynamicSecretUpdateDockerhubError>> {
11088    // add a prefix to parameters to efficiently prevent name collisions
11089    let p_body_dynamic_secret_update_dockerhub = dynamic_secret_update_dockerhub;
11090
11091    let uri_str = format!("{}/dynamic-secret-update-dockerhub", configuration.base_path);
11092    let mut req_builder = configuration.client.request(reqwest::Method::POST, &uri_str);
11093
11094    if let Some(ref user_agent) = configuration.user_agent {
11095        req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone());
11096    }
11097    req_builder = req_builder.json(&p_body_dynamic_secret_update_dockerhub);
11098
11099    let req = req_builder.build()?;
11100    let resp = configuration.client.execute(req).await?;
11101
11102    let status = resp.status();
11103    let content_type = resp
11104        .headers()
11105        .get("content-type")
11106        .and_then(|v| v.to_str().ok())
11107        .unwrap_or("application/octet-stream");
11108    let content_type = super::ContentType::from(content_type);
11109
11110    if !status.is_client_error() && !status.is_server_error() {
11111        let content = resp.text().await?;
11112        match content_type {
11113            ContentType::Json => serde_json::from_str(&content).map_err(Error::from),
11114            ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `models::DynamicSecretUpdateOutput`"))),
11115            ContentType::Unsupported(unknown_type) => return Err(Error::from(serde_json::Error::custom(format!("Received `{unknown_type}` content type response that cannot be converted to `models::DynamicSecretUpdateOutput`")))),
11116        }
11117    } else {
11118        let content = resp.text().await?;
11119        let entity: Option<DynamicSecretUpdateDockerhubError> = serde_json::from_str(&content).ok();
11120        Err(Error::ResponseError(ResponseContent { status, content, entity }))
11121    }
11122}
11123
11124pub async fn dynamic_secret_update_eks(configuration: &configuration::Configuration, dynamic_secret_update_eks: models::DynamicSecretUpdateEks) -> Result<models::DynamicSecretUpdateOutput, Error<DynamicSecretUpdateEksError>> {
11125    // add a prefix to parameters to efficiently prevent name collisions
11126    let p_body_dynamic_secret_update_eks = dynamic_secret_update_eks;
11127
11128    let uri_str = format!("{}/dynamic-secret-update-eks", configuration.base_path);
11129    let mut req_builder = configuration.client.request(reqwest::Method::POST, &uri_str);
11130
11131    if let Some(ref user_agent) = configuration.user_agent {
11132        req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone());
11133    }
11134    req_builder = req_builder.json(&p_body_dynamic_secret_update_eks);
11135
11136    let req = req_builder.build()?;
11137    let resp = configuration.client.execute(req).await?;
11138
11139    let status = resp.status();
11140    let content_type = resp
11141        .headers()
11142        .get("content-type")
11143        .and_then(|v| v.to_str().ok())
11144        .unwrap_or("application/octet-stream");
11145    let content_type = super::ContentType::from(content_type);
11146
11147    if !status.is_client_error() && !status.is_server_error() {
11148        let content = resp.text().await?;
11149        match content_type {
11150            ContentType::Json => serde_json::from_str(&content).map_err(Error::from),
11151            ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `models::DynamicSecretUpdateOutput`"))),
11152            ContentType::Unsupported(unknown_type) => return Err(Error::from(serde_json::Error::custom(format!("Received `{unknown_type}` content type response that cannot be converted to `models::DynamicSecretUpdateOutput`")))),
11153        }
11154    } else {
11155        let content = resp.text().await?;
11156        let entity: Option<DynamicSecretUpdateEksError> = serde_json::from_str(&content).ok();
11157        Err(Error::ResponseError(ResponseContent { status, content, entity }))
11158    }
11159}
11160
11161pub async fn dynamic_secret_update_gcp(configuration: &configuration::Configuration, dynamic_secret_update_gcp: models::DynamicSecretUpdateGcp) -> Result<models::DynamicSecretUpdateOutput, Error<DynamicSecretUpdateGcpError>> {
11162    // add a prefix to parameters to efficiently prevent name collisions
11163    let p_body_dynamic_secret_update_gcp = dynamic_secret_update_gcp;
11164
11165    let uri_str = format!("{}/dynamic-secret-update-gcp", configuration.base_path);
11166    let mut req_builder = configuration.client.request(reqwest::Method::POST, &uri_str);
11167
11168    if let Some(ref user_agent) = configuration.user_agent {
11169        req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone());
11170    }
11171    req_builder = req_builder.json(&p_body_dynamic_secret_update_gcp);
11172
11173    let req = req_builder.build()?;
11174    let resp = configuration.client.execute(req).await?;
11175
11176    let status = resp.status();
11177    let content_type = resp
11178        .headers()
11179        .get("content-type")
11180        .and_then(|v| v.to_str().ok())
11181        .unwrap_or("application/octet-stream");
11182    let content_type = super::ContentType::from(content_type);
11183
11184    if !status.is_client_error() && !status.is_server_error() {
11185        let content = resp.text().await?;
11186        match content_type {
11187            ContentType::Json => serde_json::from_str(&content).map_err(Error::from),
11188            ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `models::DynamicSecretUpdateOutput`"))),
11189            ContentType::Unsupported(unknown_type) => return Err(Error::from(serde_json::Error::custom(format!("Received `{unknown_type}` content type response that cannot be converted to `models::DynamicSecretUpdateOutput`")))),
11190        }
11191    } else {
11192        let content = resp.text().await?;
11193        let entity: Option<DynamicSecretUpdateGcpError> = serde_json::from_str(&content).ok();
11194        Err(Error::ResponseError(ResponseContent { status, content, entity }))
11195    }
11196}
11197
11198pub async fn dynamic_secret_update_github(configuration: &configuration::Configuration, dynamic_secret_update_github: models::DynamicSecretUpdateGithub) -> Result<models::DynamicSecretUpdateOutput, Error<DynamicSecretUpdateGithubError>> {
11199    // add a prefix to parameters to efficiently prevent name collisions
11200    let p_body_dynamic_secret_update_github = dynamic_secret_update_github;
11201
11202    let uri_str = format!("{}/dynamic-secret-update-github", configuration.base_path);
11203    let mut req_builder = configuration.client.request(reqwest::Method::POST, &uri_str);
11204
11205    if let Some(ref user_agent) = configuration.user_agent {
11206        req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone());
11207    }
11208    req_builder = req_builder.json(&p_body_dynamic_secret_update_github);
11209
11210    let req = req_builder.build()?;
11211    let resp = configuration.client.execute(req).await?;
11212
11213    let status = resp.status();
11214    let content_type = resp
11215        .headers()
11216        .get("content-type")
11217        .and_then(|v| v.to_str().ok())
11218        .unwrap_or("application/octet-stream");
11219    let content_type = super::ContentType::from(content_type);
11220
11221    if !status.is_client_error() && !status.is_server_error() {
11222        let content = resp.text().await?;
11223        match content_type {
11224            ContentType::Json => serde_json::from_str(&content).map_err(Error::from),
11225            ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `models::DynamicSecretUpdateOutput`"))),
11226            ContentType::Unsupported(unknown_type) => return Err(Error::from(serde_json::Error::custom(format!("Received `{unknown_type}` content type response that cannot be converted to `models::DynamicSecretUpdateOutput`")))),
11227        }
11228    } else {
11229        let content = resp.text().await?;
11230        let entity: Option<DynamicSecretUpdateGithubError> = serde_json::from_str(&content).ok();
11231        Err(Error::ResponseError(ResponseContent { status, content, entity }))
11232    }
11233}
11234
11235pub async fn dynamic_secret_update_gitlab(configuration: &configuration::Configuration, dynamic_secret_update_gitlab: models::DynamicSecretUpdateGitlab) -> Result<models::DynamicSecretUpdateOutput, Error<DynamicSecretUpdateGitlabError>> {
11236    // add a prefix to parameters to efficiently prevent name collisions
11237    let p_body_dynamic_secret_update_gitlab = dynamic_secret_update_gitlab;
11238
11239    let uri_str = format!("{}/dynamic-secret-update-gitlab", configuration.base_path);
11240    let mut req_builder = configuration.client.request(reqwest::Method::POST, &uri_str);
11241
11242    if let Some(ref user_agent) = configuration.user_agent {
11243        req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone());
11244    }
11245    req_builder = req_builder.json(&p_body_dynamic_secret_update_gitlab);
11246
11247    let req = req_builder.build()?;
11248    let resp = configuration.client.execute(req).await?;
11249
11250    let status = resp.status();
11251    let content_type = resp
11252        .headers()
11253        .get("content-type")
11254        .and_then(|v| v.to_str().ok())
11255        .unwrap_or("application/octet-stream");
11256    let content_type = super::ContentType::from(content_type);
11257
11258    if !status.is_client_error() && !status.is_server_error() {
11259        let content = resp.text().await?;
11260        match content_type {
11261            ContentType::Json => serde_json::from_str(&content).map_err(Error::from),
11262            ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `models::DynamicSecretUpdateOutput`"))),
11263            ContentType::Unsupported(unknown_type) => return Err(Error::from(serde_json::Error::custom(format!("Received `{unknown_type}` content type response that cannot be converted to `models::DynamicSecretUpdateOutput`")))),
11264        }
11265    } else {
11266        let content = resp.text().await?;
11267        let entity: Option<DynamicSecretUpdateGitlabError> = serde_json::from_str(&content).ok();
11268        Err(Error::ResponseError(ResponseContent { status, content, entity }))
11269    }
11270}
11271
11272pub async fn dynamic_secret_update_gke(configuration: &configuration::Configuration, dynamic_secret_update_gke: models::DynamicSecretUpdateGke) -> Result<models::DynamicSecretUpdateOutput, Error<DynamicSecretUpdateGkeError>> {
11273    // add a prefix to parameters to efficiently prevent name collisions
11274    let p_body_dynamic_secret_update_gke = dynamic_secret_update_gke;
11275
11276    let uri_str = format!("{}/dynamic-secret-update-gke", configuration.base_path);
11277    let mut req_builder = configuration.client.request(reqwest::Method::POST, &uri_str);
11278
11279    if let Some(ref user_agent) = configuration.user_agent {
11280        req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone());
11281    }
11282    req_builder = req_builder.json(&p_body_dynamic_secret_update_gke);
11283
11284    let req = req_builder.build()?;
11285    let resp = configuration.client.execute(req).await?;
11286
11287    let status = resp.status();
11288    let content_type = resp
11289        .headers()
11290        .get("content-type")
11291        .and_then(|v| v.to_str().ok())
11292        .unwrap_or("application/octet-stream");
11293    let content_type = super::ContentType::from(content_type);
11294
11295    if !status.is_client_error() && !status.is_server_error() {
11296        let content = resp.text().await?;
11297        match content_type {
11298            ContentType::Json => serde_json::from_str(&content).map_err(Error::from),
11299            ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `models::DynamicSecretUpdateOutput`"))),
11300            ContentType::Unsupported(unknown_type) => return Err(Error::from(serde_json::Error::custom(format!("Received `{unknown_type}` content type response that cannot be converted to `models::DynamicSecretUpdateOutput`")))),
11301        }
11302    } else {
11303        let content = resp.text().await?;
11304        let entity: Option<DynamicSecretUpdateGkeError> = serde_json::from_str(&content).ok();
11305        Err(Error::ResponseError(ResponseContent { status, content, entity }))
11306    }
11307}
11308
11309pub async fn dynamic_secret_update_google_workspace(configuration: &configuration::Configuration, dynamic_secret_update_google_workspace: models::DynamicSecretUpdateGoogleWorkspace) -> Result<models::DynamicSecretUpdateOutput, Error<DynamicSecretUpdateGoogleWorkspaceError>> {
11310    // add a prefix to parameters to efficiently prevent name collisions
11311    let p_body_dynamic_secret_update_google_workspace = dynamic_secret_update_google_workspace;
11312
11313    let uri_str = format!("{}/dynamic-secret-update-google-workspace", configuration.base_path);
11314    let mut req_builder = configuration.client.request(reqwest::Method::POST, &uri_str);
11315
11316    if let Some(ref user_agent) = configuration.user_agent {
11317        req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone());
11318    }
11319    req_builder = req_builder.json(&p_body_dynamic_secret_update_google_workspace);
11320
11321    let req = req_builder.build()?;
11322    let resp = configuration.client.execute(req).await?;
11323
11324    let status = resp.status();
11325    let content_type = resp
11326        .headers()
11327        .get("content-type")
11328        .and_then(|v| v.to_str().ok())
11329        .unwrap_or("application/octet-stream");
11330    let content_type = super::ContentType::from(content_type);
11331
11332    if !status.is_client_error() && !status.is_server_error() {
11333        let content = resp.text().await?;
11334        match content_type {
11335            ContentType::Json => serde_json::from_str(&content).map_err(Error::from),
11336            ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `models::DynamicSecretUpdateOutput`"))),
11337            ContentType::Unsupported(unknown_type) => return Err(Error::from(serde_json::Error::custom(format!("Received `{unknown_type}` content type response that cannot be converted to `models::DynamicSecretUpdateOutput`")))),
11338        }
11339    } else {
11340        let content = resp.text().await?;
11341        let entity: Option<DynamicSecretUpdateGoogleWorkspaceError> = serde_json::from_str(&content).ok();
11342        Err(Error::ResponseError(ResponseContent { status, content, entity }))
11343    }
11344}
11345
11346pub async fn dynamic_secret_update_hana_db(configuration: &configuration::Configuration, dynamic_secret_update_hana_db: models::DynamicSecretUpdateHanaDb) -> Result<models::DynamicSecretUpdateOutput, Error<DynamicSecretUpdateHanaDbError>> {
11347    // add a prefix to parameters to efficiently prevent name collisions
11348    let p_body_dynamic_secret_update_hana_db = dynamic_secret_update_hana_db;
11349
11350    let uri_str = format!("{}/dynamic-secret-update-hana", configuration.base_path);
11351    let mut req_builder = configuration.client.request(reqwest::Method::POST, &uri_str);
11352
11353    if let Some(ref user_agent) = configuration.user_agent {
11354        req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone());
11355    }
11356    req_builder = req_builder.json(&p_body_dynamic_secret_update_hana_db);
11357
11358    let req = req_builder.build()?;
11359    let resp = configuration.client.execute(req).await?;
11360
11361    let status = resp.status();
11362    let content_type = resp
11363        .headers()
11364        .get("content-type")
11365        .and_then(|v| v.to_str().ok())
11366        .unwrap_or("application/octet-stream");
11367    let content_type = super::ContentType::from(content_type);
11368
11369    if !status.is_client_error() && !status.is_server_error() {
11370        let content = resp.text().await?;
11371        match content_type {
11372            ContentType::Json => serde_json::from_str(&content).map_err(Error::from),
11373            ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `models::DynamicSecretUpdateOutput`"))),
11374            ContentType::Unsupported(unknown_type) => return Err(Error::from(serde_json::Error::custom(format!("Received `{unknown_type}` content type response that cannot be converted to `models::DynamicSecretUpdateOutput`")))),
11375        }
11376    } else {
11377        let content = resp.text().await?;
11378        let entity: Option<DynamicSecretUpdateHanaDbError> = serde_json::from_str(&content).ok();
11379        Err(Error::ResponseError(ResponseContent { status, content, entity }))
11380    }
11381}
11382
11383pub async fn dynamic_secret_update_k8s(configuration: &configuration::Configuration, dynamic_secret_update_k8s: models::DynamicSecretUpdateK8s) -> Result<models::DynamicSecretUpdateOutput, Error<DynamicSecretUpdateK8sError>> {
11384    // add a prefix to parameters to efficiently prevent name collisions
11385    let p_body_dynamic_secret_update_k8s = dynamic_secret_update_k8s;
11386
11387    let uri_str = format!("{}/dynamic-secret-update-k8s", configuration.base_path);
11388    let mut req_builder = configuration.client.request(reqwest::Method::POST, &uri_str);
11389
11390    if let Some(ref user_agent) = configuration.user_agent {
11391        req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone());
11392    }
11393    req_builder = req_builder.json(&p_body_dynamic_secret_update_k8s);
11394
11395    let req = req_builder.build()?;
11396    let resp = configuration.client.execute(req).await?;
11397
11398    let status = resp.status();
11399    let content_type = resp
11400        .headers()
11401        .get("content-type")
11402        .and_then(|v| v.to_str().ok())
11403        .unwrap_or("application/octet-stream");
11404    let content_type = super::ContentType::from(content_type);
11405
11406    if !status.is_client_error() && !status.is_server_error() {
11407        let content = resp.text().await?;
11408        match content_type {
11409            ContentType::Json => serde_json::from_str(&content).map_err(Error::from),
11410            ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `models::DynamicSecretUpdateOutput`"))),
11411            ContentType::Unsupported(unknown_type) => return Err(Error::from(serde_json::Error::custom(format!("Received `{unknown_type}` content type response that cannot be converted to `models::DynamicSecretUpdateOutput`")))),
11412        }
11413    } else {
11414        let content = resp.text().await?;
11415        let entity: Option<DynamicSecretUpdateK8sError> = serde_json::from_str(&content).ok();
11416        Err(Error::ResponseError(ResponseContent { status, content, entity }))
11417    }
11418}
11419
11420pub async fn dynamic_secret_update_ldap(configuration: &configuration::Configuration, dynamic_secret_update_ldap: models::DynamicSecretUpdateLdap) -> Result<models::DynamicSecretUpdateOutput, Error<DynamicSecretUpdateLdapError>> {
11421    // add a prefix to parameters to efficiently prevent name collisions
11422    let p_body_dynamic_secret_update_ldap = dynamic_secret_update_ldap;
11423
11424    let uri_str = format!("{}/dynamic-secret-update-ldap", configuration.base_path);
11425    let mut req_builder = configuration.client.request(reqwest::Method::POST, &uri_str);
11426
11427    if let Some(ref user_agent) = configuration.user_agent {
11428        req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone());
11429    }
11430    req_builder = req_builder.json(&p_body_dynamic_secret_update_ldap);
11431
11432    let req = req_builder.build()?;
11433    let resp = configuration.client.execute(req).await?;
11434
11435    let status = resp.status();
11436    let content_type = resp
11437        .headers()
11438        .get("content-type")
11439        .and_then(|v| v.to_str().ok())
11440        .unwrap_or("application/octet-stream");
11441    let content_type = super::ContentType::from(content_type);
11442
11443    if !status.is_client_error() && !status.is_server_error() {
11444        let content = resp.text().await?;
11445        match content_type {
11446            ContentType::Json => serde_json::from_str(&content).map_err(Error::from),
11447            ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `models::DynamicSecretUpdateOutput`"))),
11448            ContentType::Unsupported(unknown_type) => return Err(Error::from(serde_json::Error::custom(format!("Received `{unknown_type}` content type response that cannot be converted to `models::DynamicSecretUpdateOutput`")))),
11449        }
11450    } else {
11451        let content = resp.text().await?;
11452        let entity: Option<DynamicSecretUpdateLdapError> = serde_json::from_str(&content).ok();
11453        Err(Error::ResponseError(ResponseContent { status, content, entity }))
11454    }
11455}
11456
11457pub async fn dynamic_secret_update_mongo_db(configuration: &configuration::Configuration, dynamic_secret_update_mongo_db: models::DynamicSecretUpdateMongoDb) -> Result<models::DynamicSecretUpdateOutput, Error<DynamicSecretUpdateMongoDbError>> {
11458    // add a prefix to parameters to efficiently prevent name collisions
11459    let p_body_dynamic_secret_update_mongo_db = dynamic_secret_update_mongo_db;
11460
11461    let uri_str = format!("{}/dynamic-secret-update-mongo", configuration.base_path);
11462    let mut req_builder = configuration.client.request(reqwest::Method::POST, &uri_str);
11463
11464    if let Some(ref user_agent) = configuration.user_agent {
11465        req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone());
11466    }
11467    req_builder = req_builder.json(&p_body_dynamic_secret_update_mongo_db);
11468
11469    let req = req_builder.build()?;
11470    let resp = configuration.client.execute(req).await?;
11471
11472    let status = resp.status();
11473    let content_type = resp
11474        .headers()
11475        .get("content-type")
11476        .and_then(|v| v.to_str().ok())
11477        .unwrap_or("application/octet-stream");
11478    let content_type = super::ContentType::from(content_type);
11479
11480    if !status.is_client_error() && !status.is_server_error() {
11481        let content = resp.text().await?;
11482        match content_type {
11483            ContentType::Json => serde_json::from_str(&content).map_err(Error::from),
11484            ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `models::DynamicSecretUpdateOutput`"))),
11485            ContentType::Unsupported(unknown_type) => return Err(Error::from(serde_json::Error::custom(format!("Received `{unknown_type}` content type response that cannot be converted to `models::DynamicSecretUpdateOutput`")))),
11486        }
11487    } else {
11488        let content = resp.text().await?;
11489        let entity: Option<DynamicSecretUpdateMongoDbError> = serde_json::from_str(&content).ok();
11490        Err(Error::ResponseError(ResponseContent { status, content, entity }))
11491    }
11492}
11493
11494pub async fn dynamic_secret_update_ms_sql(configuration: &configuration::Configuration, dynamic_secret_update_ms_sql: models::DynamicSecretUpdateMsSql) -> Result<models::DynamicSecretUpdateOutput, Error<DynamicSecretUpdateMsSqlError>> {
11495    // add a prefix to parameters to efficiently prevent name collisions
11496    let p_body_dynamic_secret_update_ms_sql = dynamic_secret_update_ms_sql;
11497
11498    let uri_str = format!("{}/dynamic-secret-update-mssql", configuration.base_path);
11499    let mut req_builder = configuration.client.request(reqwest::Method::POST, &uri_str);
11500
11501    if let Some(ref user_agent) = configuration.user_agent {
11502        req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone());
11503    }
11504    req_builder = req_builder.json(&p_body_dynamic_secret_update_ms_sql);
11505
11506    let req = req_builder.build()?;
11507    let resp = configuration.client.execute(req).await?;
11508
11509    let status = resp.status();
11510    let content_type = resp
11511        .headers()
11512        .get("content-type")
11513        .and_then(|v| v.to_str().ok())
11514        .unwrap_or("application/octet-stream");
11515    let content_type = super::ContentType::from(content_type);
11516
11517    if !status.is_client_error() && !status.is_server_error() {
11518        let content = resp.text().await?;
11519        match content_type {
11520            ContentType::Json => serde_json::from_str(&content).map_err(Error::from),
11521            ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `models::DynamicSecretUpdateOutput`"))),
11522            ContentType::Unsupported(unknown_type) => return Err(Error::from(serde_json::Error::custom(format!("Received `{unknown_type}` content type response that cannot be converted to `models::DynamicSecretUpdateOutput`")))),
11523        }
11524    } else {
11525        let content = resp.text().await?;
11526        let entity: Option<DynamicSecretUpdateMsSqlError> = serde_json::from_str(&content).ok();
11527        Err(Error::ResponseError(ResponseContent { status, content, entity }))
11528    }
11529}
11530
11531pub async fn dynamic_secret_update_my_sql(configuration: &configuration::Configuration, dynamic_secret_update_my_sql: models::DynamicSecretUpdateMySql) -> Result<models::DynamicSecretUpdateOutput, Error<DynamicSecretUpdateMySqlError>> {
11532    // add a prefix to parameters to efficiently prevent name collisions
11533    let p_body_dynamic_secret_update_my_sql = dynamic_secret_update_my_sql;
11534
11535    let uri_str = format!("{}/dynamic-secret-update-mysql", configuration.base_path);
11536    let mut req_builder = configuration.client.request(reqwest::Method::POST, &uri_str);
11537
11538    if let Some(ref user_agent) = configuration.user_agent {
11539        req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone());
11540    }
11541    req_builder = req_builder.json(&p_body_dynamic_secret_update_my_sql);
11542
11543    let req = req_builder.build()?;
11544    let resp = configuration.client.execute(req).await?;
11545
11546    let status = resp.status();
11547    let content_type = resp
11548        .headers()
11549        .get("content-type")
11550        .and_then(|v| v.to_str().ok())
11551        .unwrap_or("application/octet-stream");
11552    let content_type = super::ContentType::from(content_type);
11553
11554    if !status.is_client_error() && !status.is_server_error() {
11555        let content = resp.text().await?;
11556        match content_type {
11557            ContentType::Json => serde_json::from_str(&content).map_err(Error::from),
11558            ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `models::DynamicSecretUpdateOutput`"))),
11559            ContentType::Unsupported(unknown_type) => return Err(Error::from(serde_json::Error::custom(format!("Received `{unknown_type}` content type response that cannot be converted to `models::DynamicSecretUpdateOutput`")))),
11560        }
11561    } else {
11562        let content = resp.text().await?;
11563        let entity: Option<DynamicSecretUpdateMySqlError> = serde_json::from_str(&content).ok();
11564        Err(Error::ResponseError(ResponseContent { status, content, entity }))
11565    }
11566}
11567
11568pub async fn dynamic_secret_update_open_ai(configuration: &configuration::Configuration, dynamic_secret_update_open_ai: models::DynamicSecretUpdateOpenAi) -> Result<models::DynamicSecretUpdateOutput, Error<DynamicSecretUpdateOpenAiError>> {
11569    // add a prefix to parameters to efficiently prevent name collisions
11570    let p_body_dynamic_secret_update_open_ai = dynamic_secret_update_open_ai;
11571
11572    let uri_str = format!("{}/dynamic-secret-update-openai", configuration.base_path);
11573    let mut req_builder = configuration.client.request(reqwest::Method::POST, &uri_str);
11574
11575    if let Some(ref user_agent) = configuration.user_agent {
11576        req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone());
11577    }
11578    req_builder = req_builder.json(&p_body_dynamic_secret_update_open_ai);
11579
11580    let req = req_builder.build()?;
11581    let resp = configuration.client.execute(req).await?;
11582
11583    let status = resp.status();
11584    let content_type = resp
11585        .headers()
11586        .get("content-type")
11587        .and_then(|v| v.to_str().ok())
11588        .unwrap_or("application/octet-stream");
11589    let content_type = super::ContentType::from(content_type);
11590
11591    if !status.is_client_error() && !status.is_server_error() {
11592        let content = resp.text().await?;
11593        match content_type {
11594            ContentType::Json => serde_json::from_str(&content).map_err(Error::from),
11595            ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `models::DynamicSecretUpdateOutput`"))),
11596            ContentType::Unsupported(unknown_type) => return Err(Error::from(serde_json::Error::custom(format!("Received `{unknown_type}` content type response that cannot be converted to `models::DynamicSecretUpdateOutput`")))),
11597        }
11598    } else {
11599        let content = resp.text().await?;
11600        let entity: Option<DynamicSecretUpdateOpenAiError> = serde_json::from_str(&content).ok();
11601        Err(Error::ResponseError(ResponseContent { status, content, entity }))
11602    }
11603}
11604
11605pub async fn dynamic_secret_update_oracle_db(configuration: &configuration::Configuration, dynamic_secret_update_oracle_db: models::DynamicSecretUpdateOracleDb) -> Result<models::DynamicSecretUpdateOutput, Error<DynamicSecretUpdateOracleDbError>> {
11606    // add a prefix to parameters to efficiently prevent name collisions
11607    let p_body_dynamic_secret_update_oracle_db = dynamic_secret_update_oracle_db;
11608
11609    let uri_str = format!("{}/dynamic-secret-update-oracle", configuration.base_path);
11610    let mut req_builder = configuration.client.request(reqwest::Method::POST, &uri_str);
11611
11612    if let Some(ref user_agent) = configuration.user_agent {
11613        req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone());
11614    }
11615    req_builder = req_builder.json(&p_body_dynamic_secret_update_oracle_db);
11616
11617    let req = req_builder.build()?;
11618    let resp = configuration.client.execute(req).await?;
11619
11620    let status = resp.status();
11621    let content_type = resp
11622        .headers()
11623        .get("content-type")
11624        .and_then(|v| v.to_str().ok())
11625        .unwrap_or("application/octet-stream");
11626    let content_type = super::ContentType::from(content_type);
11627
11628    if !status.is_client_error() && !status.is_server_error() {
11629        let content = resp.text().await?;
11630        match content_type {
11631            ContentType::Json => serde_json::from_str(&content).map_err(Error::from),
11632            ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `models::DynamicSecretUpdateOutput`"))),
11633            ContentType::Unsupported(unknown_type) => return Err(Error::from(serde_json::Error::custom(format!("Received `{unknown_type}` content type response that cannot be converted to `models::DynamicSecretUpdateOutput`")))),
11634        }
11635    } else {
11636        let content = resp.text().await?;
11637        let entity: Option<DynamicSecretUpdateOracleDbError> = serde_json::from_str(&content).ok();
11638        Err(Error::ResponseError(ResponseContent { status, content, entity }))
11639    }
11640}
11641
11642pub async fn dynamic_secret_update_ping(configuration: &configuration::Configuration, dynamic_secret_update_ping: models::DynamicSecretUpdatePing) -> Result<models::DynamicSecretUpdateOutput, Error<DynamicSecretUpdatePingError>> {
11643    // add a prefix to parameters to efficiently prevent name collisions
11644    let p_body_dynamic_secret_update_ping = dynamic_secret_update_ping;
11645
11646    let uri_str = format!("{}/dynamic-secret-update-ping", configuration.base_path);
11647    let mut req_builder = configuration.client.request(reqwest::Method::POST, &uri_str);
11648
11649    if let Some(ref user_agent) = configuration.user_agent {
11650        req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone());
11651    }
11652    req_builder = req_builder.json(&p_body_dynamic_secret_update_ping);
11653
11654    let req = req_builder.build()?;
11655    let resp = configuration.client.execute(req).await?;
11656
11657    let status = resp.status();
11658    let content_type = resp
11659        .headers()
11660        .get("content-type")
11661        .and_then(|v| v.to_str().ok())
11662        .unwrap_or("application/octet-stream");
11663    let content_type = super::ContentType::from(content_type);
11664
11665    if !status.is_client_error() && !status.is_server_error() {
11666        let content = resp.text().await?;
11667        match content_type {
11668            ContentType::Json => serde_json::from_str(&content).map_err(Error::from),
11669            ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `models::DynamicSecretUpdateOutput`"))),
11670            ContentType::Unsupported(unknown_type) => return Err(Error::from(serde_json::Error::custom(format!("Received `{unknown_type}` content type response that cannot be converted to `models::DynamicSecretUpdateOutput`")))),
11671        }
11672    } else {
11673        let content = resp.text().await?;
11674        let entity: Option<DynamicSecretUpdatePingError> = serde_json::from_str(&content).ok();
11675        Err(Error::ResponseError(ResponseContent { status, content, entity }))
11676    }
11677}
11678
11679pub async fn dynamic_secret_update_postgre_sql(configuration: &configuration::Configuration, dynamic_secret_update_postgre_sql: models::DynamicSecretUpdatePostgreSql) -> Result<models::DynamicSecretUpdateOutput, Error<DynamicSecretUpdatePostgreSqlError>> {
11680    // add a prefix to parameters to efficiently prevent name collisions
11681    let p_body_dynamic_secret_update_postgre_sql = dynamic_secret_update_postgre_sql;
11682
11683    let uri_str = format!("{}/dynamic-secret-update-postgresql", configuration.base_path);
11684    let mut req_builder = configuration.client.request(reqwest::Method::POST, &uri_str);
11685
11686    if let Some(ref user_agent) = configuration.user_agent {
11687        req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone());
11688    }
11689    req_builder = req_builder.json(&p_body_dynamic_secret_update_postgre_sql);
11690
11691    let req = req_builder.build()?;
11692    let resp = configuration.client.execute(req).await?;
11693
11694    let status = resp.status();
11695    let content_type = resp
11696        .headers()
11697        .get("content-type")
11698        .and_then(|v| v.to_str().ok())
11699        .unwrap_or("application/octet-stream");
11700    let content_type = super::ContentType::from(content_type);
11701
11702    if !status.is_client_error() && !status.is_server_error() {
11703        let content = resp.text().await?;
11704        match content_type {
11705            ContentType::Json => serde_json::from_str(&content).map_err(Error::from),
11706            ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `models::DynamicSecretUpdateOutput`"))),
11707            ContentType::Unsupported(unknown_type) => return Err(Error::from(serde_json::Error::custom(format!("Received `{unknown_type}` content type response that cannot be converted to `models::DynamicSecretUpdateOutput`")))),
11708        }
11709    } else {
11710        let content = resp.text().await?;
11711        let entity: Option<DynamicSecretUpdatePostgreSqlError> = serde_json::from_str(&content).ok();
11712        Err(Error::ResponseError(ResponseContent { status, content, entity }))
11713    }
11714}
11715
11716pub async fn dynamic_secret_update_rabbit_mq(configuration: &configuration::Configuration, dynamic_secret_update_rabbit_mq: models::DynamicSecretUpdateRabbitMq) -> Result<models::DynamicSecretUpdateOutput, Error<DynamicSecretUpdateRabbitMqError>> {
11717    // add a prefix to parameters to efficiently prevent name collisions
11718    let p_body_dynamic_secret_update_rabbit_mq = dynamic_secret_update_rabbit_mq;
11719
11720    let uri_str = format!("{}/dynamic-secret-update-rabbitmq", configuration.base_path);
11721    let mut req_builder = configuration.client.request(reqwest::Method::POST, &uri_str);
11722
11723    if let Some(ref user_agent) = configuration.user_agent {
11724        req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone());
11725    }
11726    req_builder = req_builder.json(&p_body_dynamic_secret_update_rabbit_mq);
11727
11728    let req = req_builder.build()?;
11729    let resp = configuration.client.execute(req).await?;
11730
11731    let status = resp.status();
11732    let content_type = resp
11733        .headers()
11734        .get("content-type")
11735        .and_then(|v| v.to_str().ok())
11736        .unwrap_or("application/octet-stream");
11737    let content_type = super::ContentType::from(content_type);
11738
11739    if !status.is_client_error() && !status.is_server_error() {
11740        let content = resp.text().await?;
11741        match content_type {
11742            ContentType::Json => serde_json::from_str(&content).map_err(Error::from),
11743            ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `models::DynamicSecretUpdateOutput`"))),
11744            ContentType::Unsupported(unknown_type) => return Err(Error::from(serde_json::Error::custom(format!("Received `{unknown_type}` content type response that cannot be converted to `models::DynamicSecretUpdateOutput`")))),
11745        }
11746    } else {
11747        let content = resp.text().await?;
11748        let entity: Option<DynamicSecretUpdateRabbitMqError> = serde_json::from_str(&content).ok();
11749        Err(Error::ResponseError(ResponseContent { status, content, entity }))
11750    }
11751}
11752
11753pub async fn dynamic_secret_update_rdp(configuration: &configuration::Configuration, dynamic_secret_update_rdp: models::DynamicSecretUpdateRdp) -> Result<models::DynamicSecretUpdateOutput, Error<DynamicSecretUpdateRdpError>> {
11754    // add a prefix to parameters to efficiently prevent name collisions
11755    let p_body_dynamic_secret_update_rdp = dynamic_secret_update_rdp;
11756
11757    let uri_str = format!("{}/dynamic-secret-update-rdp", configuration.base_path);
11758    let mut req_builder = configuration.client.request(reqwest::Method::POST, &uri_str);
11759
11760    if let Some(ref user_agent) = configuration.user_agent {
11761        req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone());
11762    }
11763    req_builder = req_builder.json(&p_body_dynamic_secret_update_rdp);
11764
11765    let req = req_builder.build()?;
11766    let resp = configuration.client.execute(req).await?;
11767
11768    let status = resp.status();
11769    let content_type = resp
11770        .headers()
11771        .get("content-type")
11772        .and_then(|v| v.to_str().ok())
11773        .unwrap_or("application/octet-stream");
11774    let content_type = super::ContentType::from(content_type);
11775
11776    if !status.is_client_error() && !status.is_server_error() {
11777        let content = resp.text().await?;
11778        match content_type {
11779            ContentType::Json => serde_json::from_str(&content).map_err(Error::from),
11780            ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `models::DynamicSecretUpdateOutput`"))),
11781            ContentType::Unsupported(unknown_type) => return Err(Error::from(serde_json::Error::custom(format!("Received `{unknown_type}` content type response that cannot be converted to `models::DynamicSecretUpdateOutput`")))),
11782        }
11783    } else {
11784        let content = resp.text().await?;
11785        let entity: Option<DynamicSecretUpdateRdpError> = serde_json::from_str(&content).ok();
11786        Err(Error::ResponseError(ResponseContent { status, content, entity }))
11787    }
11788}
11789
11790pub async fn dynamic_secret_update_redis(configuration: &configuration::Configuration, dynamic_secret_update_redis: models::DynamicSecretUpdateRedis) -> Result<models::DynamicSecretUpdateOutput, Error<DynamicSecretUpdateRedisError>> {
11791    // add a prefix to parameters to efficiently prevent name collisions
11792    let p_body_dynamic_secret_update_redis = dynamic_secret_update_redis;
11793
11794    let uri_str = format!("{}/dynamic-secret-update-redis", configuration.base_path);
11795    let mut req_builder = configuration.client.request(reqwest::Method::POST, &uri_str);
11796
11797    if let Some(ref user_agent) = configuration.user_agent {
11798        req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone());
11799    }
11800    req_builder = req_builder.json(&p_body_dynamic_secret_update_redis);
11801
11802    let req = req_builder.build()?;
11803    let resp = configuration.client.execute(req).await?;
11804
11805    let status = resp.status();
11806    let content_type = resp
11807        .headers()
11808        .get("content-type")
11809        .and_then(|v| v.to_str().ok())
11810        .unwrap_or("application/octet-stream");
11811    let content_type = super::ContentType::from(content_type);
11812
11813    if !status.is_client_error() && !status.is_server_error() {
11814        let content = resp.text().await?;
11815        match content_type {
11816            ContentType::Json => serde_json::from_str(&content).map_err(Error::from),
11817            ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `models::DynamicSecretUpdateOutput`"))),
11818            ContentType::Unsupported(unknown_type) => return Err(Error::from(serde_json::Error::custom(format!("Received `{unknown_type}` content type response that cannot be converted to `models::DynamicSecretUpdateOutput`")))),
11819        }
11820    } else {
11821        let content = resp.text().await?;
11822        let entity: Option<DynamicSecretUpdateRedisError> = serde_json::from_str(&content).ok();
11823        Err(Error::ResponseError(ResponseContent { status, content, entity }))
11824    }
11825}
11826
11827pub async fn dynamic_secret_update_redshift(configuration: &configuration::Configuration, dynamic_secret_update_redshift: models::DynamicSecretUpdateRedshift) -> Result<models::DynamicSecretUpdateOutput, Error<DynamicSecretUpdateRedshiftError>> {
11828    // add a prefix to parameters to efficiently prevent name collisions
11829    let p_body_dynamic_secret_update_redshift = dynamic_secret_update_redshift;
11830
11831    let uri_str = format!("{}/dynamic-secret-update-redshift", configuration.base_path);
11832    let mut req_builder = configuration.client.request(reqwest::Method::POST, &uri_str);
11833
11834    if let Some(ref user_agent) = configuration.user_agent {
11835        req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone());
11836    }
11837    req_builder = req_builder.json(&p_body_dynamic_secret_update_redshift);
11838
11839    let req = req_builder.build()?;
11840    let resp = configuration.client.execute(req).await?;
11841
11842    let status = resp.status();
11843    let content_type = resp
11844        .headers()
11845        .get("content-type")
11846        .and_then(|v| v.to_str().ok())
11847        .unwrap_or("application/octet-stream");
11848    let content_type = super::ContentType::from(content_type);
11849
11850    if !status.is_client_error() && !status.is_server_error() {
11851        let content = resp.text().await?;
11852        match content_type {
11853            ContentType::Json => serde_json::from_str(&content).map_err(Error::from),
11854            ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `models::DynamicSecretUpdateOutput`"))),
11855            ContentType::Unsupported(unknown_type) => return Err(Error::from(serde_json::Error::custom(format!("Received `{unknown_type}` content type response that cannot be converted to `models::DynamicSecretUpdateOutput`")))),
11856        }
11857    } else {
11858        let content = resp.text().await?;
11859        let entity: Option<DynamicSecretUpdateRedshiftError> = serde_json::from_str(&content).ok();
11860        Err(Error::ResponseError(ResponseContent { status, content, entity }))
11861    }
11862}
11863
11864pub async fn dynamic_secret_update_snowflake(configuration: &configuration::Configuration, dynamic_secret_update_snowflake: models::DynamicSecretUpdateSnowflake) -> Result<models::DynamicSecretUpdateOutput, Error<DynamicSecretUpdateSnowflakeError>> {
11865    // add a prefix to parameters to efficiently prevent name collisions
11866    let p_body_dynamic_secret_update_snowflake = dynamic_secret_update_snowflake;
11867
11868    let uri_str = format!("{}/dynamic-secret-update-snowflake", configuration.base_path);
11869    let mut req_builder = configuration.client.request(reqwest::Method::POST, &uri_str);
11870
11871    if let Some(ref user_agent) = configuration.user_agent {
11872        req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone());
11873    }
11874    req_builder = req_builder.json(&p_body_dynamic_secret_update_snowflake);
11875
11876    let req = req_builder.build()?;
11877    let resp = configuration.client.execute(req).await?;
11878
11879    let status = resp.status();
11880    let content_type = resp
11881        .headers()
11882        .get("content-type")
11883        .and_then(|v| v.to_str().ok())
11884        .unwrap_or("application/octet-stream");
11885    let content_type = super::ContentType::from(content_type);
11886
11887    if !status.is_client_error() && !status.is_server_error() {
11888        let content = resp.text().await?;
11889        match content_type {
11890            ContentType::Json => serde_json::from_str(&content).map_err(Error::from),
11891            ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `models::DynamicSecretUpdateOutput`"))),
11892            ContentType::Unsupported(unknown_type) => return Err(Error::from(serde_json::Error::custom(format!("Received `{unknown_type}` content type response that cannot be converted to `models::DynamicSecretUpdateOutput`")))),
11893        }
11894    } else {
11895        let content = resp.text().await?;
11896        let entity: Option<DynamicSecretUpdateSnowflakeError> = serde_json::from_str(&content).ok();
11897        Err(Error::ResponseError(ResponseContent { status, content, entity }))
11898    }
11899}
11900
11901pub async fn dynamic_secret_update_venafi(configuration: &configuration::Configuration, dynamic_secret_update_venafi: models::DynamicSecretUpdateVenafi) -> Result<models::DynamicSecretUpdateOutput, Error<DynamicSecretUpdateVenafiError>> {
11902    // add a prefix to parameters to efficiently prevent name collisions
11903    let p_body_dynamic_secret_update_venafi = dynamic_secret_update_venafi;
11904
11905    let uri_str = format!("{}/dynamic-secret-update-venafi", configuration.base_path);
11906    let mut req_builder = configuration.client.request(reqwest::Method::POST, &uri_str);
11907
11908    if let Some(ref user_agent) = configuration.user_agent {
11909        req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone());
11910    }
11911    req_builder = req_builder.json(&p_body_dynamic_secret_update_venafi);
11912
11913    let req = req_builder.build()?;
11914    let resp = configuration.client.execute(req).await?;
11915
11916    let status = resp.status();
11917    let content_type = resp
11918        .headers()
11919        .get("content-type")
11920        .and_then(|v| v.to_str().ok())
11921        .unwrap_or("application/octet-stream");
11922    let content_type = super::ContentType::from(content_type);
11923
11924    if !status.is_client_error() && !status.is_server_error() {
11925        let content = resp.text().await?;
11926        match content_type {
11927            ContentType::Json => serde_json::from_str(&content).map_err(Error::from),
11928            ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `models::DynamicSecretUpdateOutput`"))),
11929            ContentType::Unsupported(unknown_type) => return Err(Error::from(serde_json::Error::custom(format!("Received `{unknown_type}` content type response that cannot be converted to `models::DynamicSecretUpdateOutput`")))),
11930        }
11931    } else {
11932        let content = resp.text().await?;
11933        let entity: Option<DynamicSecretUpdateVenafiError> = serde_json::from_str(&content).ok();
11934        Err(Error::ResponseError(ResponseContent { status, content, entity }))
11935    }
11936}
11937
11938pub async fn encrypt(configuration: &configuration::Configuration, encrypt: models::Encrypt) -> Result<models::EncryptOutput, Error<EncryptError>> {
11939    // add a prefix to parameters to efficiently prevent name collisions
11940    let p_body_encrypt = encrypt;
11941
11942    let uri_str = format!("{}/encrypt", configuration.base_path);
11943    let mut req_builder = configuration.client.request(reqwest::Method::POST, &uri_str);
11944
11945    if let Some(ref user_agent) = configuration.user_agent {
11946        req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone());
11947    }
11948    req_builder = req_builder.json(&p_body_encrypt);
11949
11950    let req = req_builder.build()?;
11951    let resp = configuration.client.execute(req).await?;
11952
11953    let status = resp.status();
11954    let content_type = resp
11955        .headers()
11956        .get("content-type")
11957        .and_then(|v| v.to_str().ok())
11958        .unwrap_or("application/octet-stream");
11959    let content_type = super::ContentType::from(content_type);
11960
11961    if !status.is_client_error() && !status.is_server_error() {
11962        let content = resp.text().await?;
11963        match content_type {
11964            ContentType::Json => serde_json::from_str(&content).map_err(Error::from),
11965            ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `models::EncryptOutput`"))),
11966            ContentType::Unsupported(unknown_type) => return Err(Error::from(serde_json::Error::custom(format!("Received `{unknown_type}` content type response that cannot be converted to `models::EncryptOutput`")))),
11967        }
11968    } else {
11969        let content = resp.text().await?;
11970        let entity: Option<EncryptError> = serde_json::from_str(&content).ok();
11971        Err(Error::ResponseError(ResponseContent { status, content, entity }))
11972    }
11973}
11974
11975pub async fn encrypt_batch(configuration: &configuration::Configuration, batch_encryption_request_line: Vec<models::BatchEncryptionRequestLine>) -> Result<models::EncryptOutput, Error<EncryptBatchError>> {
11976    // add a prefix to parameters to efficiently prevent name collisions
11977    let p_body_batch_encryption_request_line = batch_encryption_request_line;
11978
11979    let uri_str = format!("{}/encrypt-batch", configuration.base_path);
11980    let mut req_builder = configuration.client.request(reqwest::Method::POST, &uri_str);
11981
11982    if let Some(ref user_agent) = configuration.user_agent {
11983        req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone());
11984    }
11985    req_builder = req_builder.json(&p_body_batch_encryption_request_line);
11986
11987    let req = req_builder.build()?;
11988    let resp = configuration.client.execute(req).await?;
11989
11990    let status = resp.status();
11991    let content_type = resp
11992        .headers()
11993        .get("content-type")
11994        .and_then(|v| v.to_str().ok())
11995        .unwrap_or("application/octet-stream");
11996    let content_type = super::ContentType::from(content_type);
11997
11998    if !status.is_client_error() && !status.is_server_error() {
11999        let content = resp.text().await?;
12000        match content_type {
12001            ContentType::Json => serde_json::from_str(&content).map_err(Error::from),
12002            ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `models::EncryptOutput`"))),
12003            ContentType::Unsupported(unknown_type) => return Err(Error::from(serde_json::Error::custom(format!("Received `{unknown_type}` content type response that cannot be converted to `models::EncryptOutput`")))),
12004        }
12005    } else {
12006        let content = resp.text().await?;
12007        let entity: Option<EncryptBatchError> = serde_json::from_str(&content).ok();
12008        Err(Error::ResponseError(ResponseContent { status, content, entity }))
12009    }
12010}
12011
12012pub async fn encrypt_gpg(configuration: &configuration::Configuration, encrypt_gpg: models::EncryptGpg) -> Result<models::EncryptGpgOutput, Error<EncryptGpgError>> {
12013    // add a prefix to parameters to efficiently prevent name collisions
12014    let p_body_encrypt_gpg = encrypt_gpg;
12015
12016    let uri_str = format!("{}/encrypt-gpg", configuration.base_path);
12017    let mut req_builder = configuration.client.request(reqwest::Method::POST, &uri_str);
12018
12019    if let Some(ref user_agent) = configuration.user_agent {
12020        req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone());
12021    }
12022    req_builder = req_builder.json(&p_body_encrypt_gpg);
12023
12024    let req = req_builder.build()?;
12025    let resp = configuration.client.execute(req).await?;
12026
12027    let status = resp.status();
12028    let content_type = resp
12029        .headers()
12030        .get("content-type")
12031        .and_then(|v| v.to_str().ok())
12032        .unwrap_or("application/octet-stream");
12033    let content_type = super::ContentType::from(content_type);
12034
12035    if !status.is_client_error() && !status.is_server_error() {
12036        let content = resp.text().await?;
12037        match content_type {
12038            ContentType::Json => serde_json::from_str(&content).map_err(Error::from),
12039            ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `models::EncryptGpgOutput`"))),
12040            ContentType::Unsupported(unknown_type) => return Err(Error::from(serde_json::Error::custom(format!("Received `{unknown_type}` content type response that cannot be converted to `models::EncryptGpgOutput`")))),
12041        }
12042    } else {
12043        let content = resp.text().await?;
12044        let entity: Option<EncryptGpgError> = serde_json::from_str(&content).ok();
12045        Err(Error::ResponseError(ResponseContent { status, content, entity }))
12046    }
12047}
12048
12049pub async fn encrypt_with_classic_key(configuration: &configuration::Configuration, encrypt_with_classic_key: models::EncryptWithClassicKey) -> Result<models::EncryptOutput, Error<EncryptWithClassicKeyError>> {
12050    // add a prefix to parameters to efficiently prevent name collisions
12051    let p_body_encrypt_with_classic_key = encrypt_with_classic_key;
12052
12053    let uri_str = format!("{}/encrypt-with-classic-key", configuration.base_path);
12054    let mut req_builder = configuration.client.request(reqwest::Method::POST, &uri_str);
12055
12056    if let Some(ref user_agent) = configuration.user_agent {
12057        req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone());
12058    }
12059    req_builder = req_builder.json(&p_body_encrypt_with_classic_key);
12060
12061    let req = req_builder.build()?;
12062    let resp = configuration.client.execute(req).await?;
12063
12064    let status = resp.status();
12065    let content_type = resp
12066        .headers()
12067        .get("content-type")
12068        .and_then(|v| v.to_str().ok())
12069        .unwrap_or("application/octet-stream");
12070    let content_type = super::ContentType::from(content_type);
12071
12072    if !status.is_client_error() && !status.is_server_error() {
12073        let content = resp.text().await?;
12074        match content_type {
12075            ContentType::Json => serde_json::from_str(&content).map_err(Error::from),
12076            ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `models::EncryptOutput`"))),
12077            ContentType::Unsupported(unknown_type) => return Err(Error::from(serde_json::Error::custom(format!("Received `{unknown_type}` content type response that cannot be converted to `models::EncryptOutput`")))),
12078        }
12079    } else {
12080        let content = resp.text().await?;
12081        let entity: Option<EncryptWithClassicKeyError> = serde_json::from_str(&content).ok();
12082        Err(Error::ResponseError(ResponseContent { status, content, entity }))
12083    }
12084}
12085
12086pub async fn esm_create(configuration: &configuration::Configuration, esm_create: models::EsmCreate) -> Result<models::EsmCreateSecretOutput, Error<EsmCreateError>> {
12087    // add a prefix to parameters to efficiently prevent name collisions
12088    let p_body_esm_create = esm_create;
12089
12090    let uri_str = format!("{}/esm-create", configuration.base_path);
12091    let mut req_builder = configuration.client.request(reqwest::Method::POST, &uri_str);
12092
12093    if let Some(ref user_agent) = configuration.user_agent {
12094        req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone());
12095    }
12096    req_builder = req_builder.json(&p_body_esm_create);
12097
12098    let req = req_builder.build()?;
12099    let resp = configuration.client.execute(req).await?;
12100
12101    let status = resp.status();
12102    let content_type = resp
12103        .headers()
12104        .get("content-type")
12105        .and_then(|v| v.to_str().ok())
12106        .unwrap_or("application/octet-stream");
12107    let content_type = super::ContentType::from(content_type);
12108
12109    if !status.is_client_error() && !status.is_server_error() {
12110        let content = resp.text().await?;
12111        match content_type {
12112            ContentType::Json => serde_json::from_str(&content).map_err(Error::from),
12113            ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `models::EsmCreateSecretOutput`"))),
12114            ContentType::Unsupported(unknown_type) => return Err(Error::from(serde_json::Error::custom(format!("Received `{unknown_type}` content type response that cannot be converted to `models::EsmCreateSecretOutput`")))),
12115        }
12116    } else {
12117        let content = resp.text().await?;
12118        let entity: Option<EsmCreateError> = serde_json::from_str(&content).ok();
12119        Err(Error::ResponseError(ResponseContent { status, content, entity }))
12120    }
12121}
12122
12123pub async fn esm_delete(configuration: &configuration::Configuration, esm_delete: models::EsmDelete) -> Result<models::EsmDeleteSecretOutput, Error<EsmDeleteError>> {
12124    // add a prefix to parameters to efficiently prevent name collisions
12125    let p_body_esm_delete = esm_delete;
12126
12127    let uri_str = format!("{}/esm-delete", configuration.base_path);
12128    let mut req_builder = configuration.client.request(reqwest::Method::POST, &uri_str);
12129
12130    if let Some(ref user_agent) = configuration.user_agent {
12131        req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone());
12132    }
12133    req_builder = req_builder.json(&p_body_esm_delete);
12134
12135    let req = req_builder.build()?;
12136    let resp = configuration.client.execute(req).await?;
12137
12138    let status = resp.status();
12139    let content_type = resp
12140        .headers()
12141        .get("content-type")
12142        .and_then(|v| v.to_str().ok())
12143        .unwrap_or("application/octet-stream");
12144    let content_type = super::ContentType::from(content_type);
12145
12146    if !status.is_client_error() && !status.is_server_error() {
12147        let content = resp.text().await?;
12148        match content_type {
12149            ContentType::Json => serde_json::from_str(&content).map_err(Error::from),
12150            ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `models::EsmDeleteSecretOutput`"))),
12151            ContentType::Unsupported(unknown_type) => return Err(Error::from(serde_json::Error::custom(format!("Received `{unknown_type}` content type response that cannot be converted to `models::EsmDeleteSecretOutput`")))),
12152        }
12153    } else {
12154        let content = resp.text().await?;
12155        let entity: Option<EsmDeleteError> = serde_json::from_str(&content).ok();
12156        Err(Error::ResponseError(ResponseContent { status, content, entity }))
12157    }
12158}
12159
12160pub async fn esm_get(configuration: &configuration::Configuration, esm_get: models::EsmGet) -> Result<models::EsmGetSecretOutput, Error<EsmGetError>> {
12161    // add a prefix to parameters to efficiently prevent name collisions
12162    let p_body_esm_get = esm_get;
12163
12164    let uri_str = format!("{}/esm-get", configuration.base_path);
12165    let mut req_builder = configuration.client.request(reqwest::Method::POST, &uri_str);
12166
12167    if let Some(ref user_agent) = configuration.user_agent {
12168        req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone());
12169    }
12170    req_builder = req_builder.json(&p_body_esm_get);
12171
12172    let req = req_builder.build()?;
12173    let resp = configuration.client.execute(req).await?;
12174
12175    let status = resp.status();
12176    let content_type = resp
12177        .headers()
12178        .get("content-type")
12179        .and_then(|v| v.to_str().ok())
12180        .unwrap_or("application/octet-stream");
12181    let content_type = super::ContentType::from(content_type);
12182
12183    if !status.is_client_error() && !status.is_server_error() {
12184        let content = resp.text().await?;
12185        match content_type {
12186            ContentType::Json => serde_json::from_str(&content).map_err(Error::from),
12187            ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `models::EsmGetSecretOutput`"))),
12188            ContentType::Unsupported(unknown_type) => return Err(Error::from(serde_json::Error::custom(format!("Received `{unknown_type}` content type response that cannot be converted to `models::EsmGetSecretOutput`")))),
12189        }
12190    } else {
12191        let content = resp.text().await?;
12192        let entity: Option<EsmGetError> = serde_json::from_str(&content).ok();
12193        Err(Error::ResponseError(ResponseContent { status, content, entity }))
12194    }
12195}
12196
12197pub async fn esm_list(configuration: &configuration::Configuration, esm_list: models::EsmList) -> Result<models::EsmListSecretsOutput, Error<EsmListError>> {
12198    // add a prefix to parameters to efficiently prevent name collisions
12199    let p_body_esm_list = esm_list;
12200
12201    let uri_str = format!("{}/esm-list", configuration.base_path);
12202    let mut req_builder = configuration.client.request(reqwest::Method::POST, &uri_str);
12203
12204    if let Some(ref user_agent) = configuration.user_agent {
12205        req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone());
12206    }
12207    req_builder = req_builder.json(&p_body_esm_list);
12208
12209    let req = req_builder.build()?;
12210    let resp = configuration.client.execute(req).await?;
12211
12212    let status = resp.status();
12213    let content_type = resp
12214        .headers()
12215        .get("content-type")
12216        .and_then(|v| v.to_str().ok())
12217        .unwrap_or("application/octet-stream");
12218    let content_type = super::ContentType::from(content_type);
12219
12220    if !status.is_client_error() && !status.is_server_error() {
12221        let content = resp.text().await?;
12222        match content_type {
12223            ContentType::Json => serde_json::from_str(&content).map_err(Error::from),
12224            ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `models::EsmListSecretsOutput`"))),
12225            ContentType::Unsupported(unknown_type) => return Err(Error::from(serde_json::Error::custom(format!("Received `{unknown_type}` content type response that cannot be converted to `models::EsmListSecretsOutput`")))),
12226        }
12227    } else {
12228        let content = resp.text().await?;
12229        let entity: Option<EsmListError> = serde_json::from_str(&content).ok();
12230        Err(Error::ResponseError(ResponseContent { status, content, entity }))
12231    }
12232}
12233
12234pub async fn esm_update(configuration: &configuration::Configuration, esm_update: models::EsmUpdate) -> Result<models::EsmUpdateSecretOutput, Error<EsmUpdateError>> {
12235    // add a prefix to parameters to efficiently prevent name collisions
12236    let p_body_esm_update = esm_update;
12237
12238    let uri_str = format!("{}/esm-update", configuration.base_path);
12239    let mut req_builder = configuration.client.request(reqwest::Method::POST, &uri_str);
12240
12241    if let Some(ref user_agent) = configuration.user_agent {
12242        req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone());
12243    }
12244    req_builder = req_builder.json(&p_body_esm_update);
12245
12246    let req = req_builder.build()?;
12247    let resp = configuration.client.execute(req).await?;
12248
12249    let status = resp.status();
12250    let content_type = resp
12251        .headers()
12252        .get("content-type")
12253        .and_then(|v| v.to_str().ok())
12254        .unwrap_or("application/octet-stream");
12255    let content_type = super::ContentType::from(content_type);
12256
12257    if !status.is_client_error() && !status.is_server_error() {
12258        let content = resp.text().await?;
12259        match content_type {
12260            ContentType::Json => serde_json::from_str(&content).map_err(Error::from),
12261            ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `models::EsmUpdateSecretOutput`"))),
12262            ContentType::Unsupported(unknown_type) => return Err(Error::from(serde_json::Error::custom(format!("Received `{unknown_type}` content type response that cannot be converted to `models::EsmUpdateSecretOutput`")))),
12263        }
12264    } else {
12265        let content = resp.text().await?;
12266        let entity: Option<EsmUpdateError> = serde_json::from_str(&content).ok();
12267        Err(Error::ResponseError(ResponseContent { status, content, entity }))
12268    }
12269}
12270
12271pub async fn event_action(configuration: &configuration::Configuration, event_action: models::EventAction) -> Result<serde_json::Value, Error<EventActionError>> {
12272    // add a prefix to parameters to efficiently prevent name collisions
12273    let p_body_event_action = event_action;
12274
12275    let uri_str = format!("{}/event-action", configuration.base_path);
12276    let mut req_builder = configuration.client.request(reqwest::Method::POST, &uri_str);
12277
12278    if let Some(ref user_agent) = configuration.user_agent {
12279        req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone());
12280    }
12281    req_builder = req_builder.json(&p_body_event_action);
12282
12283    let req = req_builder.build()?;
12284    let resp = configuration.client.execute(req).await?;
12285
12286    let status = resp.status();
12287    let content_type = resp
12288        .headers()
12289        .get("content-type")
12290        .and_then(|v| v.to_str().ok())
12291        .unwrap_or("application/octet-stream");
12292    let content_type = super::ContentType::from(content_type);
12293
12294    if !status.is_client_error() && !status.is_server_error() {
12295        let content = resp.text().await?;
12296        match content_type {
12297            ContentType::Json => serde_json::from_str(&content).map_err(Error::from),
12298            ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `serde_json::Value`"))),
12299            ContentType::Unsupported(unknown_type) => return Err(Error::from(serde_json::Error::custom(format!("Received `{unknown_type}` content type response that cannot be converted to `serde_json::Value`")))),
12300        }
12301    } else {
12302        let content = resp.text().await?;
12303        let entity: Option<EventActionError> = serde_json::from_str(&content).ok();
12304        Err(Error::ResponseError(ResponseContent { status, content, entity }))
12305    }
12306}
12307
12308pub async fn event_forwarder_create_email(configuration: &configuration::Configuration, event_forwarder_create_email: models::EventForwarderCreateEmail) -> Result<models::EventForwarderCreateUpdateOutput, Error<EventForwarderCreateEmailError>> {
12309    // add a prefix to parameters to efficiently prevent name collisions
12310    let p_body_event_forwarder_create_email = event_forwarder_create_email;
12311
12312    let uri_str = format!("{}/event-forwarder-create-email", configuration.base_path);
12313    let mut req_builder = configuration.client.request(reqwest::Method::POST, &uri_str);
12314
12315    if let Some(ref user_agent) = configuration.user_agent {
12316        req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone());
12317    }
12318    req_builder = req_builder.json(&p_body_event_forwarder_create_email);
12319
12320    let req = req_builder.build()?;
12321    let resp = configuration.client.execute(req).await?;
12322
12323    let status = resp.status();
12324    let content_type = resp
12325        .headers()
12326        .get("content-type")
12327        .and_then(|v| v.to_str().ok())
12328        .unwrap_or("application/octet-stream");
12329    let content_type = super::ContentType::from(content_type);
12330
12331    if !status.is_client_error() && !status.is_server_error() {
12332        let content = resp.text().await?;
12333        match content_type {
12334            ContentType::Json => serde_json::from_str(&content).map_err(Error::from),
12335            ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `models::EventForwarderCreateUpdateOutput`"))),
12336            ContentType::Unsupported(unknown_type) => return Err(Error::from(serde_json::Error::custom(format!("Received `{unknown_type}` content type response that cannot be converted to `models::EventForwarderCreateUpdateOutput`")))),
12337        }
12338    } else {
12339        let content = resp.text().await?;
12340        let entity: Option<EventForwarderCreateEmailError> = serde_json::from_str(&content).ok();
12341        Err(Error::ResponseError(ResponseContent { status, content, entity }))
12342    }
12343}
12344
12345pub async fn event_forwarder_create_service_now(configuration: &configuration::Configuration, event_forwarder_create_service_now: models::EventForwarderCreateServiceNow) -> Result<models::EventForwarderCreateUpdateOutput, Error<EventForwarderCreateServiceNowError>> {
12346    // add a prefix to parameters to efficiently prevent name collisions
12347    let p_body_event_forwarder_create_service_now = event_forwarder_create_service_now;
12348
12349    let uri_str = format!("{}/event-forwarder-create-servicenow", configuration.base_path);
12350    let mut req_builder = configuration.client.request(reqwest::Method::POST, &uri_str);
12351
12352    if let Some(ref user_agent) = configuration.user_agent {
12353        req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone());
12354    }
12355    req_builder = req_builder.json(&p_body_event_forwarder_create_service_now);
12356
12357    let req = req_builder.build()?;
12358    let resp = configuration.client.execute(req).await?;
12359
12360    let status = resp.status();
12361    let content_type = resp
12362        .headers()
12363        .get("content-type")
12364        .and_then(|v| v.to_str().ok())
12365        .unwrap_or("application/octet-stream");
12366    let content_type = super::ContentType::from(content_type);
12367
12368    if !status.is_client_error() && !status.is_server_error() {
12369        let content = resp.text().await?;
12370        match content_type {
12371            ContentType::Json => serde_json::from_str(&content).map_err(Error::from),
12372            ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `models::EventForwarderCreateUpdateOutput`"))),
12373            ContentType::Unsupported(unknown_type) => return Err(Error::from(serde_json::Error::custom(format!("Received `{unknown_type}` content type response that cannot be converted to `models::EventForwarderCreateUpdateOutput`")))),
12374        }
12375    } else {
12376        let content = resp.text().await?;
12377        let entity: Option<EventForwarderCreateServiceNowError> = serde_json::from_str(&content).ok();
12378        Err(Error::ResponseError(ResponseContent { status, content, entity }))
12379    }
12380}
12381
12382pub async fn event_forwarder_create_slack(configuration: &configuration::Configuration, event_forwarder_create_slack: models::EventForwarderCreateSlack) -> Result<models::EventForwarderCreateUpdateOutput, Error<EventForwarderCreateSlackError>> {
12383    // add a prefix to parameters to efficiently prevent name collisions
12384    let p_body_event_forwarder_create_slack = event_forwarder_create_slack;
12385
12386    let uri_str = format!("{}/event-forwarder-create-slack", configuration.base_path);
12387    let mut req_builder = configuration.client.request(reqwest::Method::POST, &uri_str);
12388
12389    if let Some(ref user_agent) = configuration.user_agent {
12390        req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone());
12391    }
12392    req_builder = req_builder.json(&p_body_event_forwarder_create_slack);
12393
12394    let req = req_builder.build()?;
12395    let resp = configuration.client.execute(req).await?;
12396
12397    let status = resp.status();
12398    let content_type = resp
12399        .headers()
12400        .get("content-type")
12401        .and_then(|v| v.to_str().ok())
12402        .unwrap_or("application/octet-stream");
12403    let content_type = super::ContentType::from(content_type);
12404
12405    if !status.is_client_error() && !status.is_server_error() {
12406        let content = resp.text().await?;
12407        match content_type {
12408            ContentType::Json => serde_json::from_str(&content).map_err(Error::from),
12409            ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `models::EventForwarderCreateUpdateOutput`"))),
12410            ContentType::Unsupported(unknown_type) => return Err(Error::from(serde_json::Error::custom(format!("Received `{unknown_type}` content type response that cannot be converted to `models::EventForwarderCreateUpdateOutput`")))),
12411        }
12412    } else {
12413        let content = resp.text().await?;
12414        let entity: Option<EventForwarderCreateSlackError> = serde_json::from_str(&content).ok();
12415        Err(Error::ResponseError(ResponseContent { status, content, entity }))
12416    }
12417}
12418
12419pub async fn event_forwarder_create_teams(configuration: &configuration::Configuration, event_forwarder_create_teams: models::EventForwarderCreateTeams) -> Result<models::EventForwarderCreateUpdateOutput, Error<EventForwarderCreateTeamsError>> {
12420    // add a prefix to parameters to efficiently prevent name collisions
12421    let p_body_event_forwarder_create_teams = event_forwarder_create_teams;
12422
12423    let uri_str = format!("{}/event-forwarder-create-teams", configuration.base_path);
12424    let mut req_builder = configuration.client.request(reqwest::Method::POST, &uri_str);
12425
12426    if let Some(ref user_agent) = configuration.user_agent {
12427        req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone());
12428    }
12429    req_builder = req_builder.json(&p_body_event_forwarder_create_teams);
12430
12431    let req = req_builder.build()?;
12432    let resp = configuration.client.execute(req).await?;
12433
12434    let status = resp.status();
12435    let content_type = resp
12436        .headers()
12437        .get("content-type")
12438        .and_then(|v| v.to_str().ok())
12439        .unwrap_or("application/octet-stream");
12440    let content_type = super::ContentType::from(content_type);
12441
12442    if !status.is_client_error() && !status.is_server_error() {
12443        let content = resp.text().await?;
12444        match content_type {
12445            ContentType::Json => serde_json::from_str(&content).map_err(Error::from),
12446            ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `models::EventForwarderCreateUpdateOutput`"))),
12447            ContentType::Unsupported(unknown_type) => return Err(Error::from(serde_json::Error::custom(format!("Received `{unknown_type}` content type response that cannot be converted to `models::EventForwarderCreateUpdateOutput`")))),
12448        }
12449    } else {
12450        let content = resp.text().await?;
12451        let entity: Option<EventForwarderCreateTeamsError> = serde_json::from_str(&content).ok();
12452        Err(Error::ResponseError(ResponseContent { status, content, entity }))
12453    }
12454}
12455
12456pub async fn event_forwarder_create_webhook(configuration: &configuration::Configuration, event_forwarder_create_webhook: models::EventForwarderCreateWebhook) -> Result<models::EventForwarderCreateUpdateOutput, Error<EventForwarderCreateWebhookError>> {
12457    // add a prefix to parameters to efficiently prevent name collisions
12458    let p_body_event_forwarder_create_webhook = event_forwarder_create_webhook;
12459
12460    let uri_str = format!("{}/event-forwarder-create-webhook", configuration.base_path);
12461    let mut req_builder = configuration.client.request(reqwest::Method::POST, &uri_str);
12462
12463    if let Some(ref user_agent) = configuration.user_agent {
12464        req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone());
12465    }
12466    req_builder = req_builder.json(&p_body_event_forwarder_create_webhook);
12467
12468    let req = req_builder.build()?;
12469    let resp = configuration.client.execute(req).await?;
12470
12471    let status = resp.status();
12472    let content_type = resp
12473        .headers()
12474        .get("content-type")
12475        .and_then(|v| v.to_str().ok())
12476        .unwrap_or("application/octet-stream");
12477    let content_type = super::ContentType::from(content_type);
12478
12479    if !status.is_client_error() && !status.is_server_error() {
12480        let content = resp.text().await?;
12481        match content_type {
12482            ContentType::Json => serde_json::from_str(&content).map_err(Error::from),
12483            ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `models::EventForwarderCreateUpdateOutput`"))),
12484            ContentType::Unsupported(unknown_type) => return Err(Error::from(serde_json::Error::custom(format!("Received `{unknown_type}` content type response that cannot be converted to `models::EventForwarderCreateUpdateOutput`")))),
12485        }
12486    } else {
12487        let content = resp.text().await?;
12488        let entity: Option<EventForwarderCreateWebhookError> = serde_json::from_str(&content).ok();
12489        Err(Error::ResponseError(ResponseContent { status, content, entity }))
12490    }
12491}
12492
12493pub async fn event_forwarder_delete(configuration: &configuration::Configuration, event_forwarder_delete: models::EventForwarderDelete) -> Result<models::EventForwarderDeleteOutput, Error<EventForwarderDeleteError>> {
12494    // add a prefix to parameters to efficiently prevent name collisions
12495    let p_body_event_forwarder_delete = event_forwarder_delete;
12496
12497    let uri_str = format!("{}/event-forwarder-delete", configuration.base_path);
12498    let mut req_builder = configuration.client.request(reqwest::Method::POST, &uri_str);
12499
12500    if let Some(ref user_agent) = configuration.user_agent {
12501        req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone());
12502    }
12503    req_builder = req_builder.json(&p_body_event_forwarder_delete);
12504
12505    let req = req_builder.build()?;
12506    let resp = configuration.client.execute(req).await?;
12507
12508    let status = resp.status();
12509    let content_type = resp
12510        .headers()
12511        .get("content-type")
12512        .and_then(|v| v.to_str().ok())
12513        .unwrap_or("application/octet-stream");
12514    let content_type = super::ContentType::from(content_type);
12515
12516    if !status.is_client_error() && !status.is_server_error() {
12517        let content = resp.text().await?;
12518        match content_type {
12519            ContentType::Json => serde_json::from_str(&content).map_err(Error::from),
12520            ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `models::EventForwarderDeleteOutput`"))),
12521            ContentType::Unsupported(unknown_type) => return Err(Error::from(serde_json::Error::custom(format!("Received `{unknown_type}` content type response that cannot be converted to `models::EventForwarderDeleteOutput`")))),
12522        }
12523    } else {
12524        let content = resp.text().await?;
12525        let entity: Option<EventForwarderDeleteError> = serde_json::from_str(&content).ok();
12526        Err(Error::ResponseError(ResponseContent { status, content, entity }))
12527    }
12528}
12529
12530pub async fn event_forwarder_get(configuration: &configuration::Configuration, event_forwarder_get: models::EventForwarderGet) -> Result<models::EventForwarderGetOutput, Error<EventForwarderGetError>> {
12531    // add a prefix to parameters to efficiently prevent name collisions
12532    let p_body_event_forwarder_get = event_forwarder_get;
12533
12534    let uri_str = format!("{}/event-forwarder-get", configuration.base_path);
12535    let mut req_builder = configuration.client.request(reqwest::Method::POST, &uri_str);
12536
12537    if let Some(ref user_agent) = configuration.user_agent {
12538        req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone());
12539    }
12540    req_builder = req_builder.json(&p_body_event_forwarder_get);
12541
12542    let req = req_builder.build()?;
12543    let resp = configuration.client.execute(req).await?;
12544
12545    let status = resp.status();
12546    let content_type = resp
12547        .headers()
12548        .get("content-type")
12549        .and_then(|v| v.to_str().ok())
12550        .unwrap_or("application/octet-stream");
12551    let content_type = super::ContentType::from(content_type);
12552
12553    if !status.is_client_error() && !status.is_server_error() {
12554        let content = resp.text().await?;
12555        match content_type {
12556            ContentType::Json => serde_json::from_str(&content).map_err(Error::from),
12557            ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `models::EventForwarderGetOutput`"))),
12558            ContentType::Unsupported(unknown_type) => return Err(Error::from(serde_json::Error::custom(format!("Received `{unknown_type}` content type response that cannot be converted to `models::EventForwarderGetOutput`")))),
12559        }
12560    } else {
12561        let content = resp.text().await?;
12562        let entity: Option<EventForwarderGetError> = serde_json::from_str(&content).ok();
12563        Err(Error::ResponseError(ResponseContent { status, content, entity }))
12564    }
12565}
12566
12567pub async fn event_forwarder_update_email(configuration: &configuration::Configuration, event_forwarder_update_email: models::EventForwarderUpdateEmail) -> Result<models::EventForwarderCreateUpdateOutput, Error<EventForwarderUpdateEmailError>> {
12568    // add a prefix to parameters to efficiently prevent name collisions
12569    let p_body_event_forwarder_update_email = event_forwarder_update_email;
12570
12571    let uri_str = format!("{}/event-forwarder-update-email", configuration.base_path);
12572    let mut req_builder = configuration.client.request(reqwest::Method::POST, &uri_str);
12573
12574    if let Some(ref user_agent) = configuration.user_agent {
12575        req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone());
12576    }
12577    req_builder = req_builder.json(&p_body_event_forwarder_update_email);
12578
12579    let req = req_builder.build()?;
12580    let resp = configuration.client.execute(req).await?;
12581
12582    let status = resp.status();
12583    let content_type = resp
12584        .headers()
12585        .get("content-type")
12586        .and_then(|v| v.to_str().ok())
12587        .unwrap_or("application/octet-stream");
12588    let content_type = super::ContentType::from(content_type);
12589
12590    if !status.is_client_error() && !status.is_server_error() {
12591        let content = resp.text().await?;
12592        match content_type {
12593            ContentType::Json => serde_json::from_str(&content).map_err(Error::from),
12594            ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `models::EventForwarderCreateUpdateOutput`"))),
12595            ContentType::Unsupported(unknown_type) => return Err(Error::from(serde_json::Error::custom(format!("Received `{unknown_type}` content type response that cannot be converted to `models::EventForwarderCreateUpdateOutput`")))),
12596        }
12597    } else {
12598        let content = resp.text().await?;
12599        let entity: Option<EventForwarderUpdateEmailError> = serde_json::from_str(&content).ok();
12600        Err(Error::ResponseError(ResponseContent { status, content, entity }))
12601    }
12602}
12603
12604pub async fn event_forwarder_update_service_now(configuration: &configuration::Configuration, event_forwarder_update_service_now: models::EventForwarderUpdateServiceNow) -> Result<models::EventForwarderCreateUpdateOutput, Error<EventForwarderUpdateServiceNowError>> {
12605    // add a prefix to parameters to efficiently prevent name collisions
12606    let p_body_event_forwarder_update_service_now = event_forwarder_update_service_now;
12607
12608    let uri_str = format!("{}/event-forwarder-update-servicenow", configuration.base_path);
12609    let mut req_builder = configuration.client.request(reqwest::Method::POST, &uri_str);
12610
12611    if let Some(ref user_agent) = configuration.user_agent {
12612        req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone());
12613    }
12614    req_builder = req_builder.json(&p_body_event_forwarder_update_service_now);
12615
12616    let req = req_builder.build()?;
12617    let resp = configuration.client.execute(req).await?;
12618
12619    let status = resp.status();
12620    let content_type = resp
12621        .headers()
12622        .get("content-type")
12623        .and_then(|v| v.to_str().ok())
12624        .unwrap_or("application/octet-stream");
12625    let content_type = super::ContentType::from(content_type);
12626
12627    if !status.is_client_error() && !status.is_server_error() {
12628        let content = resp.text().await?;
12629        match content_type {
12630            ContentType::Json => serde_json::from_str(&content).map_err(Error::from),
12631            ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `models::EventForwarderCreateUpdateOutput`"))),
12632            ContentType::Unsupported(unknown_type) => return Err(Error::from(serde_json::Error::custom(format!("Received `{unknown_type}` content type response that cannot be converted to `models::EventForwarderCreateUpdateOutput`")))),
12633        }
12634    } else {
12635        let content = resp.text().await?;
12636        let entity: Option<EventForwarderUpdateServiceNowError> = serde_json::from_str(&content).ok();
12637        Err(Error::ResponseError(ResponseContent { status, content, entity }))
12638    }
12639}
12640
12641pub async fn event_forwarder_update_slack(configuration: &configuration::Configuration, event_forwarder_update_slack: models::EventForwarderUpdateSlack) -> Result<models::EventForwarderCreateUpdateOutput, Error<EventForwarderUpdateSlackError>> {
12642    // add a prefix to parameters to efficiently prevent name collisions
12643    let p_body_event_forwarder_update_slack = event_forwarder_update_slack;
12644
12645    let uri_str = format!("{}/event-forwarder-update-slack", configuration.base_path);
12646    let mut req_builder = configuration.client.request(reqwest::Method::POST, &uri_str);
12647
12648    if let Some(ref user_agent) = configuration.user_agent {
12649        req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone());
12650    }
12651    req_builder = req_builder.json(&p_body_event_forwarder_update_slack);
12652
12653    let req = req_builder.build()?;
12654    let resp = configuration.client.execute(req).await?;
12655
12656    let status = resp.status();
12657    let content_type = resp
12658        .headers()
12659        .get("content-type")
12660        .and_then(|v| v.to_str().ok())
12661        .unwrap_or("application/octet-stream");
12662    let content_type = super::ContentType::from(content_type);
12663
12664    if !status.is_client_error() && !status.is_server_error() {
12665        let content = resp.text().await?;
12666        match content_type {
12667            ContentType::Json => serde_json::from_str(&content).map_err(Error::from),
12668            ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `models::EventForwarderCreateUpdateOutput`"))),
12669            ContentType::Unsupported(unknown_type) => return Err(Error::from(serde_json::Error::custom(format!("Received `{unknown_type}` content type response that cannot be converted to `models::EventForwarderCreateUpdateOutput`")))),
12670        }
12671    } else {
12672        let content = resp.text().await?;
12673        let entity: Option<EventForwarderUpdateSlackError> = serde_json::from_str(&content).ok();
12674        Err(Error::ResponseError(ResponseContent { status, content, entity }))
12675    }
12676}
12677
12678pub async fn event_forwarder_update_teams(configuration: &configuration::Configuration, event_forwarder_update_teams: models::EventForwarderUpdateTeams) -> Result<models::EventForwarderCreateUpdateOutput, Error<EventForwarderUpdateTeamsError>> {
12679    // add a prefix to parameters to efficiently prevent name collisions
12680    let p_body_event_forwarder_update_teams = event_forwarder_update_teams;
12681
12682    let uri_str = format!("{}/event-forwarder-update-teams", configuration.base_path);
12683    let mut req_builder = configuration.client.request(reqwest::Method::POST, &uri_str);
12684
12685    if let Some(ref user_agent) = configuration.user_agent {
12686        req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone());
12687    }
12688    req_builder = req_builder.json(&p_body_event_forwarder_update_teams);
12689
12690    let req = req_builder.build()?;
12691    let resp = configuration.client.execute(req).await?;
12692
12693    let status = resp.status();
12694    let content_type = resp
12695        .headers()
12696        .get("content-type")
12697        .and_then(|v| v.to_str().ok())
12698        .unwrap_or("application/octet-stream");
12699    let content_type = super::ContentType::from(content_type);
12700
12701    if !status.is_client_error() && !status.is_server_error() {
12702        let content = resp.text().await?;
12703        match content_type {
12704            ContentType::Json => serde_json::from_str(&content).map_err(Error::from),
12705            ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `models::EventForwarderCreateUpdateOutput`"))),
12706            ContentType::Unsupported(unknown_type) => return Err(Error::from(serde_json::Error::custom(format!("Received `{unknown_type}` content type response that cannot be converted to `models::EventForwarderCreateUpdateOutput`")))),
12707        }
12708    } else {
12709        let content = resp.text().await?;
12710        let entity: Option<EventForwarderUpdateTeamsError> = serde_json::from_str(&content).ok();
12711        Err(Error::ResponseError(ResponseContent { status, content, entity }))
12712    }
12713}
12714
12715pub async fn event_forwarder_update_webhook(configuration: &configuration::Configuration, event_forwarder_update_webhook: models::EventForwarderUpdateWebhook) -> Result<models::EventForwarderCreateUpdateOutput, Error<EventForwarderUpdateWebhookError>> {
12716    // add a prefix to parameters to efficiently prevent name collisions
12717    let p_body_event_forwarder_update_webhook = event_forwarder_update_webhook;
12718
12719    let uri_str = format!("{}/event-forwarder-update-webhook", configuration.base_path);
12720    let mut req_builder = configuration.client.request(reqwest::Method::POST, &uri_str);
12721
12722    if let Some(ref user_agent) = configuration.user_agent {
12723        req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone());
12724    }
12725    req_builder = req_builder.json(&p_body_event_forwarder_update_webhook);
12726
12727    let req = req_builder.build()?;
12728    let resp = configuration.client.execute(req).await?;
12729
12730    let status = resp.status();
12731    let content_type = resp
12732        .headers()
12733        .get("content-type")
12734        .and_then(|v| v.to_str().ok())
12735        .unwrap_or("application/octet-stream");
12736    let content_type = super::ContentType::from(content_type);
12737
12738    if !status.is_client_error() && !status.is_server_error() {
12739        let content = resp.text().await?;
12740        match content_type {
12741            ContentType::Json => serde_json::from_str(&content).map_err(Error::from),
12742            ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `models::EventForwarderCreateUpdateOutput`"))),
12743            ContentType::Unsupported(unknown_type) => return Err(Error::from(serde_json::Error::custom(format!("Received `{unknown_type}` content type response that cannot be converted to `models::EventForwarderCreateUpdateOutput`")))),
12744        }
12745    } else {
12746        let content = resp.text().await?;
12747        let entity: Option<EventForwarderUpdateWebhookError> = serde_json::from_str(&content).ok();
12748        Err(Error::ResponseError(ResponseContent { status, content, entity }))
12749    }
12750}
12751
12752pub async fn export_classic_key(configuration: &configuration::Configuration, export_classic_key: models::ExportClassicKey) -> Result<models::ExportClassicKeyOutput, Error<ExportClassicKeyError>> {
12753    // add a prefix to parameters to efficiently prevent name collisions
12754    let p_body_export_classic_key = export_classic_key;
12755
12756    let uri_str = format!("{}/export-classic-key", configuration.base_path);
12757    let mut req_builder = configuration.client.request(reqwest::Method::POST, &uri_str);
12758
12759    if let Some(ref user_agent) = configuration.user_agent {
12760        req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone());
12761    }
12762    req_builder = req_builder.json(&p_body_export_classic_key);
12763
12764    let req = req_builder.build()?;
12765    let resp = configuration.client.execute(req).await?;
12766
12767    let status = resp.status();
12768    let content_type = resp
12769        .headers()
12770        .get("content-type")
12771        .and_then(|v| v.to_str().ok())
12772        .unwrap_or("application/octet-stream");
12773    let content_type = super::ContentType::from(content_type);
12774
12775    if !status.is_client_error() && !status.is_server_error() {
12776        let content = resp.text().await?;
12777        match content_type {
12778            ContentType::Json => serde_json::from_str(&content).map_err(Error::from),
12779            ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `models::ExportClassicKeyOutput`"))),
12780            ContentType::Unsupported(unknown_type) => return Err(Error::from(serde_json::Error::custom(format!("Received `{unknown_type}` content type response that cannot be converted to `models::ExportClassicKeyOutput`")))),
12781        }
12782    } else {
12783        let content = resp.text().await?;
12784        let entity: Option<ExportClassicKeyError> = serde_json::from_str(&content).ok();
12785        Err(Error::ResponseError(ResponseContent { status, content, entity }))
12786    }
12787}
12788
12789pub async fn folder_create(configuration: &configuration::Configuration, folder_create: models::FolderCreate) -> Result<models::FolderCreateOutput, Error<FolderCreateError>> {
12790    // add a prefix to parameters to efficiently prevent name collisions
12791    let p_body_folder_create = folder_create;
12792
12793    let uri_str = format!("{}/folder-create", configuration.base_path);
12794    let mut req_builder = configuration.client.request(reqwest::Method::POST, &uri_str);
12795
12796    if let Some(ref user_agent) = configuration.user_agent {
12797        req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone());
12798    }
12799    req_builder = req_builder.json(&p_body_folder_create);
12800
12801    let req = req_builder.build()?;
12802    let resp = configuration.client.execute(req).await?;
12803
12804    let status = resp.status();
12805    let content_type = resp
12806        .headers()
12807        .get("content-type")
12808        .and_then(|v| v.to_str().ok())
12809        .unwrap_or("application/octet-stream");
12810    let content_type = super::ContentType::from(content_type);
12811
12812    if !status.is_client_error() && !status.is_server_error() {
12813        let content = resp.text().await?;
12814        match content_type {
12815            ContentType::Json => serde_json::from_str(&content).map_err(Error::from),
12816            ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `models::FolderCreateOutput`"))),
12817            ContentType::Unsupported(unknown_type) => return Err(Error::from(serde_json::Error::custom(format!("Received `{unknown_type}` content type response that cannot be converted to `models::FolderCreateOutput`")))),
12818        }
12819    } else {
12820        let content = resp.text().await?;
12821        let entity: Option<FolderCreateError> = serde_json::from_str(&content).ok();
12822        Err(Error::ResponseError(ResponseContent { status, content, entity }))
12823    }
12824}
12825
12826pub async fn folder_delete(configuration: &configuration::Configuration, folder_delete: models::FolderDelete) -> Result<serde_json::Value, Error<FolderDeleteError>> {
12827    // add a prefix to parameters to efficiently prevent name collisions
12828    let p_body_folder_delete = folder_delete;
12829
12830    let uri_str = format!("{}/folder-delete", configuration.base_path);
12831    let mut req_builder = configuration.client.request(reqwest::Method::POST, &uri_str);
12832
12833    if let Some(ref user_agent) = configuration.user_agent {
12834        req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone());
12835    }
12836    req_builder = req_builder.json(&p_body_folder_delete);
12837
12838    let req = req_builder.build()?;
12839    let resp = configuration.client.execute(req).await?;
12840
12841    let status = resp.status();
12842    let content_type = resp
12843        .headers()
12844        .get("content-type")
12845        .and_then(|v| v.to_str().ok())
12846        .unwrap_or("application/octet-stream");
12847    let content_type = super::ContentType::from(content_type);
12848
12849    if !status.is_client_error() && !status.is_server_error() {
12850        let content = resp.text().await?;
12851        match content_type {
12852            ContentType::Json => serde_json::from_str(&content).map_err(Error::from),
12853            ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `serde_json::Value`"))),
12854            ContentType::Unsupported(unknown_type) => return Err(Error::from(serde_json::Error::custom(format!("Received `{unknown_type}` content type response that cannot be converted to `serde_json::Value`")))),
12855        }
12856    } else {
12857        let content = resp.text().await?;
12858        let entity: Option<FolderDeleteError> = serde_json::from_str(&content).ok();
12859        Err(Error::ResponseError(ResponseContent { status, content, entity }))
12860    }
12861}
12862
12863pub async fn folder_get(configuration: &configuration::Configuration, folder_get: models::FolderGet) -> Result<models::FolderGetOutput, Error<FolderGetError>> {
12864    // add a prefix to parameters to efficiently prevent name collisions
12865    let p_body_folder_get = folder_get;
12866
12867    let uri_str = format!("{}/folder-get", configuration.base_path);
12868    let mut req_builder = configuration.client.request(reqwest::Method::POST, &uri_str);
12869
12870    if let Some(ref user_agent) = configuration.user_agent {
12871        req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone());
12872    }
12873    req_builder = req_builder.json(&p_body_folder_get);
12874
12875    let req = req_builder.build()?;
12876    let resp = configuration.client.execute(req).await?;
12877
12878    let status = resp.status();
12879    let content_type = resp
12880        .headers()
12881        .get("content-type")
12882        .and_then(|v| v.to_str().ok())
12883        .unwrap_or("application/octet-stream");
12884    let content_type = super::ContentType::from(content_type);
12885
12886    if !status.is_client_error() && !status.is_server_error() {
12887        let content = resp.text().await?;
12888        match content_type {
12889            ContentType::Json => serde_json::from_str(&content).map_err(Error::from),
12890            ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `models::FolderGetOutput`"))),
12891            ContentType::Unsupported(unknown_type) => return Err(Error::from(serde_json::Error::custom(format!("Received `{unknown_type}` content type response that cannot be converted to `models::FolderGetOutput`")))),
12892        }
12893    } else {
12894        let content = resp.text().await?;
12895        let entity: Option<FolderGetError> = serde_json::from_str(&content).ok();
12896        Err(Error::ResponseError(ResponseContent { status, content, entity }))
12897    }
12898}
12899
12900pub async fn folder_update(configuration: &configuration::Configuration, folder_update: models::FolderUpdate) -> Result<serde_json::Value, Error<FolderUpdateError>> {
12901    // add a prefix to parameters to efficiently prevent name collisions
12902    let p_body_folder_update = folder_update;
12903
12904    let uri_str = format!("{}/folder-update", configuration.base_path);
12905    let mut req_builder = configuration.client.request(reqwest::Method::POST, &uri_str);
12906
12907    if let Some(ref user_agent) = configuration.user_agent {
12908        req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone());
12909    }
12910    req_builder = req_builder.json(&p_body_folder_update);
12911
12912    let req = req_builder.build()?;
12913    let resp = configuration.client.execute(req).await?;
12914
12915    let status = resp.status();
12916    let content_type = resp
12917        .headers()
12918        .get("content-type")
12919        .and_then(|v| v.to_str().ok())
12920        .unwrap_or("application/octet-stream");
12921    let content_type = super::ContentType::from(content_type);
12922
12923    if !status.is_client_error() && !status.is_server_error() {
12924        let content = resp.text().await?;
12925        match content_type {
12926            ContentType::Json => serde_json::from_str(&content).map_err(Error::from),
12927            ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `serde_json::Value`"))),
12928            ContentType::Unsupported(unknown_type) => return Err(Error::from(serde_json::Error::custom(format!("Received `{unknown_type}` content type response that cannot be converted to `serde_json::Value`")))),
12929        }
12930    } else {
12931        let content = resp.text().await?;
12932        let entity: Option<FolderUpdateError> = serde_json::from_str(&content).ok();
12933        Err(Error::ResponseError(ResponseContent { status, content, entity }))
12934    }
12935}
12936
12937pub async fn gateway_create_allowed_access(configuration: &configuration::Configuration, gateway_create_allowed_access: models::GatewayCreateAllowedAccess) -> Result<models::AllowedAccess, Error<GatewayCreateAllowedAccessError>> {
12938    // add a prefix to parameters to efficiently prevent name collisions
12939    let p_body_gateway_create_allowed_access = gateway_create_allowed_access;
12940
12941    let uri_str = format!("{}/gateway-create-allowed-access", configuration.base_path);
12942    let mut req_builder = configuration.client.request(reqwest::Method::POST, &uri_str);
12943
12944    if let Some(ref user_agent) = configuration.user_agent {
12945        req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone());
12946    }
12947    req_builder = req_builder.json(&p_body_gateway_create_allowed_access);
12948
12949    let req = req_builder.build()?;
12950    let resp = configuration.client.execute(req).await?;
12951
12952    let status = resp.status();
12953    let content_type = resp
12954        .headers()
12955        .get("content-type")
12956        .and_then(|v| v.to_str().ok())
12957        .unwrap_or("application/octet-stream");
12958    let content_type = super::ContentType::from(content_type);
12959
12960    if !status.is_client_error() && !status.is_server_error() {
12961        let content = resp.text().await?;
12962        match content_type {
12963            ContentType::Json => serde_json::from_str(&content).map_err(Error::from),
12964            ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `models::AllowedAccess`"))),
12965            ContentType::Unsupported(unknown_type) => return Err(Error::from(serde_json::Error::custom(format!("Received `{unknown_type}` content type response that cannot be converted to `models::AllowedAccess`")))),
12966        }
12967    } else {
12968        let content = resp.text().await?;
12969        let entity: Option<GatewayCreateAllowedAccessError> = serde_json::from_str(&content).ok();
12970        Err(Error::ResponseError(ResponseContent { status, content, entity }))
12971    }
12972}
12973
12974pub async fn gateway_create_k8_s_auth_config(configuration: &configuration::Configuration, gateway_create_k8_s_auth_config: models::GatewayCreateK8SAuthConfig) -> Result<models::GatewayCreateK8SAuthConfigOutput, Error<GatewayCreateK8SAuthConfigError>> {
12975    // add a prefix to parameters to efficiently prevent name collisions
12976    let p_body_gateway_create_k8_s_auth_config = gateway_create_k8_s_auth_config;
12977
12978    let uri_str = format!("{}/gateway-create-k8s-auth-config", configuration.base_path);
12979    let mut req_builder = configuration.client.request(reqwest::Method::POST, &uri_str);
12980
12981    if let Some(ref user_agent) = configuration.user_agent {
12982        req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone());
12983    }
12984    req_builder = req_builder.json(&p_body_gateway_create_k8_s_auth_config);
12985
12986    let req = req_builder.build()?;
12987    let resp = configuration.client.execute(req).await?;
12988
12989    let status = resp.status();
12990    let content_type = resp
12991        .headers()
12992        .get("content-type")
12993        .and_then(|v| v.to_str().ok())
12994        .unwrap_or("application/octet-stream");
12995    let content_type = super::ContentType::from(content_type);
12996
12997    if !status.is_client_error() && !status.is_server_error() {
12998        let content = resp.text().await?;
12999        match content_type {
13000            ContentType::Json => serde_json::from_str(&content).map_err(Error::from),
13001            ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `models::GatewayCreateK8SAuthConfigOutput`"))),
13002            ContentType::Unsupported(unknown_type) => return Err(Error::from(serde_json::Error::custom(format!("Received `{unknown_type}` content type response that cannot be converted to `models::GatewayCreateK8SAuthConfigOutput`")))),
13003        }
13004    } else {
13005        let content = resp.text().await?;
13006        let entity: Option<GatewayCreateK8SAuthConfigError> = serde_json::from_str(&content).ok();
13007        Err(Error::ResponseError(ResponseContent { status, content, entity }))
13008    }
13009}
13010
13011pub async fn gateway_create_migration(configuration: &configuration::Configuration, gateway_create_migration: models::GatewayCreateMigration) -> Result<models::GatewayMigrationCreateOutput, Error<GatewayCreateMigrationError>> {
13012    // add a prefix to parameters to efficiently prevent name collisions
13013    let p_body_gateway_create_migration = gateway_create_migration;
13014
13015    let uri_str = format!("{}/gateway-create-migration", configuration.base_path);
13016    let mut req_builder = configuration.client.request(reqwest::Method::POST, &uri_str);
13017
13018    if let Some(ref user_agent) = configuration.user_agent {
13019        req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone());
13020    }
13021    req_builder = req_builder.json(&p_body_gateway_create_migration);
13022
13023    let req = req_builder.build()?;
13024    let resp = configuration.client.execute(req).await?;
13025
13026    let status = resp.status();
13027    let content_type = resp
13028        .headers()
13029        .get("content-type")
13030        .and_then(|v| v.to_str().ok())
13031        .unwrap_or("application/octet-stream");
13032    let content_type = super::ContentType::from(content_type);
13033
13034    if !status.is_client_error() && !status.is_server_error() {
13035        let content = resp.text().await?;
13036        match content_type {
13037            ContentType::Json => serde_json::from_str(&content).map_err(Error::from),
13038            ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `models::GatewayMigrationCreateOutput`"))),
13039            ContentType::Unsupported(unknown_type) => return Err(Error::from(serde_json::Error::custom(format!("Received `{unknown_type}` content type response that cannot be converted to `models::GatewayMigrationCreateOutput`")))),
13040        }
13041    } else {
13042        let content = resp.text().await?;
13043        let entity: Option<GatewayCreateMigrationError> = serde_json::from_str(&content).ok();
13044        Err(Error::ResponseError(ResponseContent { status, content, entity }))
13045    }
13046}
13047
13048pub async fn gateway_create_producer_artifactory(configuration: &configuration::Configuration, gateway_create_producer_artifactory: models::GatewayCreateProducerArtifactory) -> Result<models::GatewayCreateProducerArtifactoryOutput, Error<GatewayCreateProducerArtifactoryError>> {
13049    // add a prefix to parameters to efficiently prevent name collisions
13050    let p_body_gateway_create_producer_artifactory = gateway_create_producer_artifactory;
13051
13052    let uri_str = format!("{}/gateway-create-producer-artifactory", configuration.base_path);
13053    let mut req_builder = configuration.client.request(reqwest::Method::POST, &uri_str);
13054
13055    if let Some(ref user_agent) = configuration.user_agent {
13056        req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone());
13057    }
13058    req_builder = req_builder.json(&p_body_gateway_create_producer_artifactory);
13059
13060    let req = req_builder.build()?;
13061    let resp = configuration.client.execute(req).await?;
13062
13063    let status = resp.status();
13064    let content_type = resp
13065        .headers()
13066        .get("content-type")
13067        .and_then(|v| v.to_str().ok())
13068        .unwrap_or("application/octet-stream");
13069    let content_type = super::ContentType::from(content_type);
13070
13071    if !status.is_client_error() && !status.is_server_error() {
13072        let content = resp.text().await?;
13073        match content_type {
13074            ContentType::Json => serde_json::from_str(&content).map_err(Error::from),
13075            ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `models::GatewayCreateProducerArtifactoryOutput`"))),
13076            ContentType::Unsupported(unknown_type) => return Err(Error::from(serde_json::Error::custom(format!("Received `{unknown_type}` content type response that cannot be converted to `models::GatewayCreateProducerArtifactoryOutput`")))),
13077        }
13078    } else {
13079        let content = resp.text().await?;
13080        let entity: Option<GatewayCreateProducerArtifactoryError> = serde_json::from_str(&content).ok();
13081        Err(Error::ResponseError(ResponseContent { status, content, entity }))
13082    }
13083}
13084
13085pub async fn gateway_create_producer_aws(configuration: &configuration::Configuration, gateway_create_producer_aws: models::GatewayCreateProducerAws) -> Result<models::GatewayCreateProducerAwsOutput, Error<GatewayCreateProducerAwsError>> {
13086    // add a prefix to parameters to efficiently prevent name collisions
13087    let p_body_gateway_create_producer_aws = gateway_create_producer_aws;
13088
13089    let uri_str = format!("{}/gateway-create-producer-aws", configuration.base_path);
13090    let mut req_builder = configuration.client.request(reqwest::Method::POST, &uri_str);
13091
13092    if let Some(ref user_agent) = configuration.user_agent {
13093        req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone());
13094    }
13095    req_builder = req_builder.json(&p_body_gateway_create_producer_aws);
13096
13097    let req = req_builder.build()?;
13098    let resp = configuration.client.execute(req).await?;
13099
13100    let status = resp.status();
13101    let content_type = resp
13102        .headers()
13103        .get("content-type")
13104        .and_then(|v| v.to_str().ok())
13105        .unwrap_or("application/octet-stream");
13106    let content_type = super::ContentType::from(content_type);
13107
13108    if !status.is_client_error() && !status.is_server_error() {
13109        let content = resp.text().await?;
13110        match content_type {
13111            ContentType::Json => serde_json::from_str(&content).map_err(Error::from),
13112            ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `models::GatewayCreateProducerAwsOutput`"))),
13113            ContentType::Unsupported(unknown_type) => return Err(Error::from(serde_json::Error::custom(format!("Received `{unknown_type}` content type response that cannot be converted to `models::GatewayCreateProducerAwsOutput`")))),
13114        }
13115    } else {
13116        let content = resp.text().await?;
13117        let entity: Option<GatewayCreateProducerAwsError> = serde_json::from_str(&content).ok();
13118        Err(Error::ResponseError(ResponseContent { status, content, entity }))
13119    }
13120}
13121
13122pub async fn gateway_create_producer_azure(configuration: &configuration::Configuration, gateway_create_producer_azure: models::GatewayCreateProducerAzure) -> Result<models::GatewayCreateProducerAzureOutput, Error<GatewayCreateProducerAzureError>> {
13123    // add a prefix to parameters to efficiently prevent name collisions
13124    let p_body_gateway_create_producer_azure = gateway_create_producer_azure;
13125
13126    let uri_str = format!("{}/gateway-create-producer-azure", configuration.base_path);
13127    let mut req_builder = configuration.client.request(reqwest::Method::POST, &uri_str);
13128
13129    if let Some(ref user_agent) = configuration.user_agent {
13130        req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone());
13131    }
13132    req_builder = req_builder.json(&p_body_gateway_create_producer_azure);
13133
13134    let req = req_builder.build()?;
13135    let resp = configuration.client.execute(req).await?;
13136
13137    let status = resp.status();
13138    let content_type = resp
13139        .headers()
13140        .get("content-type")
13141        .and_then(|v| v.to_str().ok())
13142        .unwrap_or("application/octet-stream");
13143    let content_type = super::ContentType::from(content_type);
13144
13145    if !status.is_client_error() && !status.is_server_error() {
13146        let content = resp.text().await?;
13147        match content_type {
13148            ContentType::Json => serde_json::from_str(&content).map_err(Error::from),
13149            ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `models::GatewayCreateProducerAzureOutput`"))),
13150            ContentType::Unsupported(unknown_type) => return Err(Error::from(serde_json::Error::custom(format!("Received `{unknown_type}` content type response that cannot be converted to `models::GatewayCreateProducerAzureOutput`")))),
13151        }
13152    } else {
13153        let content = resp.text().await?;
13154        let entity: Option<GatewayCreateProducerAzureError> = serde_json::from_str(&content).ok();
13155        Err(Error::ResponseError(ResponseContent { status, content, entity }))
13156    }
13157}
13158
13159pub async fn gateway_create_producer_cassandra(configuration: &configuration::Configuration, gateway_create_producer_cassandra: models::GatewayCreateProducerCassandra) -> Result<models::GatewayCreateProducerCassandraOutput, Error<GatewayCreateProducerCassandraError>> {
13160    // add a prefix to parameters to efficiently prevent name collisions
13161    let p_body_gateway_create_producer_cassandra = gateway_create_producer_cassandra;
13162
13163    let uri_str = format!("{}/gateway-create-producer-cassandra", configuration.base_path);
13164    let mut req_builder = configuration.client.request(reqwest::Method::POST, &uri_str);
13165
13166    if let Some(ref user_agent) = configuration.user_agent {
13167        req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone());
13168    }
13169    req_builder = req_builder.json(&p_body_gateway_create_producer_cassandra);
13170
13171    let req = req_builder.build()?;
13172    let resp = configuration.client.execute(req).await?;
13173
13174    let status = resp.status();
13175    let content_type = resp
13176        .headers()
13177        .get("content-type")
13178        .and_then(|v| v.to_str().ok())
13179        .unwrap_or("application/octet-stream");
13180    let content_type = super::ContentType::from(content_type);
13181
13182    if !status.is_client_error() && !status.is_server_error() {
13183        let content = resp.text().await?;
13184        match content_type {
13185            ContentType::Json => serde_json::from_str(&content).map_err(Error::from),
13186            ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `models::GatewayCreateProducerCassandraOutput`"))),
13187            ContentType::Unsupported(unknown_type) => return Err(Error::from(serde_json::Error::custom(format!("Received `{unknown_type}` content type response that cannot be converted to `models::GatewayCreateProducerCassandraOutput`")))),
13188        }
13189    } else {
13190        let content = resp.text().await?;
13191        let entity: Option<GatewayCreateProducerCassandraError> = serde_json::from_str(&content).ok();
13192        Err(Error::ResponseError(ResponseContent { status, content, entity }))
13193    }
13194}
13195
13196pub async fn gateway_create_producer_chef(configuration: &configuration::Configuration, gateway_create_producer_chef: models::GatewayCreateProducerChef) -> Result<models::GatewayCreateProducerChefOutput, Error<GatewayCreateProducerChefError>> {
13197    // add a prefix to parameters to efficiently prevent name collisions
13198    let p_body_gateway_create_producer_chef = gateway_create_producer_chef;
13199
13200    let uri_str = format!("{}/gateway-create-producer-chef", configuration.base_path);
13201    let mut req_builder = configuration.client.request(reqwest::Method::POST, &uri_str);
13202
13203    if let Some(ref user_agent) = configuration.user_agent {
13204        req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone());
13205    }
13206    req_builder = req_builder.json(&p_body_gateway_create_producer_chef);
13207
13208    let req = req_builder.build()?;
13209    let resp = configuration.client.execute(req).await?;
13210
13211    let status = resp.status();
13212    let content_type = resp
13213        .headers()
13214        .get("content-type")
13215        .and_then(|v| v.to_str().ok())
13216        .unwrap_or("application/octet-stream");
13217    let content_type = super::ContentType::from(content_type);
13218
13219    if !status.is_client_error() && !status.is_server_error() {
13220        let content = resp.text().await?;
13221        match content_type {
13222            ContentType::Json => serde_json::from_str(&content).map_err(Error::from),
13223            ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `models::GatewayCreateProducerChefOutput`"))),
13224            ContentType::Unsupported(unknown_type) => return Err(Error::from(serde_json::Error::custom(format!("Received `{unknown_type}` content type response that cannot be converted to `models::GatewayCreateProducerChefOutput`")))),
13225        }
13226    } else {
13227        let content = resp.text().await?;
13228        let entity: Option<GatewayCreateProducerChefError> = serde_json::from_str(&content).ok();
13229        Err(Error::ResponseError(ResponseContent { status, content, entity }))
13230    }
13231}
13232
13233pub async fn gateway_create_producer_custom(configuration: &configuration::Configuration, gateway_create_producer_custom: Option<models::GatewayCreateProducerCustom>) -> Result<models::GatewayCreateProducerCustomOutput, Error<GatewayCreateProducerCustomError>> {
13234    // add a prefix to parameters to efficiently prevent name collisions
13235    let p_body_gateway_create_producer_custom = gateway_create_producer_custom;
13236
13237    let uri_str = format!("{}/gateway-create-producer-custom", configuration.base_path);
13238    let mut req_builder = configuration.client.request(reqwest::Method::POST, &uri_str);
13239
13240    if let Some(ref user_agent) = configuration.user_agent {
13241        req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone());
13242    }
13243    req_builder = req_builder.json(&p_body_gateway_create_producer_custom);
13244
13245    let req = req_builder.build()?;
13246    let resp = configuration.client.execute(req).await?;
13247
13248    let status = resp.status();
13249    let content_type = resp
13250        .headers()
13251        .get("content-type")
13252        .and_then(|v| v.to_str().ok())
13253        .unwrap_or("application/octet-stream");
13254    let content_type = super::ContentType::from(content_type);
13255
13256    if !status.is_client_error() && !status.is_server_error() {
13257        let content = resp.text().await?;
13258        match content_type {
13259            ContentType::Json => serde_json::from_str(&content).map_err(Error::from),
13260            ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `models::GatewayCreateProducerCustomOutput`"))),
13261            ContentType::Unsupported(unknown_type) => return Err(Error::from(serde_json::Error::custom(format!("Received `{unknown_type}` content type response that cannot be converted to `models::GatewayCreateProducerCustomOutput`")))),
13262        }
13263    } else {
13264        let content = resp.text().await?;
13265        let entity: Option<GatewayCreateProducerCustomError> = serde_json::from_str(&content).ok();
13266        Err(Error::ResponseError(ResponseContent { status, content, entity }))
13267    }
13268}
13269
13270pub async fn gateway_create_producer_dockerhub(configuration: &configuration::Configuration, gateway_create_producer_dockerhub: models::GatewayCreateProducerDockerhub) -> Result<models::GatewayCreateProducerDockerhubOutput, Error<GatewayCreateProducerDockerhubError>> {
13271    // add a prefix to parameters to efficiently prevent name collisions
13272    let p_body_gateway_create_producer_dockerhub = gateway_create_producer_dockerhub;
13273
13274    let uri_str = format!("{}/gateway-create-producer-dockerhub", configuration.base_path);
13275    let mut req_builder = configuration.client.request(reqwest::Method::POST, &uri_str);
13276
13277    if let Some(ref user_agent) = configuration.user_agent {
13278        req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone());
13279    }
13280    req_builder = req_builder.json(&p_body_gateway_create_producer_dockerhub);
13281
13282    let req = req_builder.build()?;
13283    let resp = configuration.client.execute(req).await?;
13284
13285    let status = resp.status();
13286    let content_type = resp
13287        .headers()
13288        .get("content-type")
13289        .and_then(|v| v.to_str().ok())
13290        .unwrap_or("application/octet-stream");
13291    let content_type = super::ContentType::from(content_type);
13292
13293    if !status.is_client_error() && !status.is_server_error() {
13294        let content = resp.text().await?;
13295        match content_type {
13296            ContentType::Json => serde_json::from_str(&content).map_err(Error::from),
13297            ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `models::GatewayCreateProducerDockerhubOutput`"))),
13298            ContentType::Unsupported(unknown_type) => return Err(Error::from(serde_json::Error::custom(format!("Received `{unknown_type}` content type response that cannot be converted to `models::GatewayCreateProducerDockerhubOutput`")))),
13299        }
13300    } else {
13301        let content = resp.text().await?;
13302        let entity: Option<GatewayCreateProducerDockerhubError> = serde_json::from_str(&content).ok();
13303        Err(Error::ResponseError(ResponseContent { status, content, entity }))
13304    }
13305}
13306
13307pub async fn gateway_create_producer_eks(configuration: &configuration::Configuration, gateway_create_producer_eks: models::GatewayCreateProducerEks) -> Result<models::GatewayCreateProducerEksOutput, Error<GatewayCreateProducerEksError>> {
13308    // add a prefix to parameters to efficiently prevent name collisions
13309    let p_body_gateway_create_producer_eks = gateway_create_producer_eks;
13310
13311    let uri_str = format!("{}/gateway-create-producer-eks", configuration.base_path);
13312    let mut req_builder = configuration.client.request(reqwest::Method::POST, &uri_str);
13313
13314    if let Some(ref user_agent) = configuration.user_agent {
13315        req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone());
13316    }
13317    req_builder = req_builder.json(&p_body_gateway_create_producer_eks);
13318
13319    let req = req_builder.build()?;
13320    let resp = configuration.client.execute(req).await?;
13321
13322    let status = resp.status();
13323    let content_type = resp
13324        .headers()
13325        .get("content-type")
13326        .and_then(|v| v.to_str().ok())
13327        .unwrap_or("application/octet-stream");
13328    let content_type = super::ContentType::from(content_type);
13329
13330    if !status.is_client_error() && !status.is_server_error() {
13331        let content = resp.text().await?;
13332        match content_type {
13333            ContentType::Json => serde_json::from_str(&content).map_err(Error::from),
13334            ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `models::GatewayCreateProducerEksOutput`"))),
13335            ContentType::Unsupported(unknown_type) => return Err(Error::from(serde_json::Error::custom(format!("Received `{unknown_type}` content type response that cannot be converted to `models::GatewayCreateProducerEksOutput`")))),
13336        }
13337    } else {
13338        let content = resp.text().await?;
13339        let entity: Option<GatewayCreateProducerEksError> = serde_json::from_str(&content).ok();
13340        Err(Error::ResponseError(ResponseContent { status, content, entity }))
13341    }
13342}
13343
13344pub async fn gateway_create_producer_gcp(configuration: &configuration::Configuration, gateway_create_producer_gcp: models::GatewayCreateProducerGcp) -> Result<models::GatewayCreateProducerGcpOutput, Error<GatewayCreateProducerGcpError>> {
13345    // add a prefix to parameters to efficiently prevent name collisions
13346    let p_body_gateway_create_producer_gcp = gateway_create_producer_gcp;
13347
13348    let uri_str = format!("{}/gateway-create-producer-gcp", configuration.base_path);
13349    let mut req_builder = configuration.client.request(reqwest::Method::POST, &uri_str);
13350
13351    if let Some(ref user_agent) = configuration.user_agent {
13352        req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone());
13353    }
13354    req_builder = req_builder.json(&p_body_gateway_create_producer_gcp);
13355
13356    let req = req_builder.build()?;
13357    let resp = configuration.client.execute(req).await?;
13358
13359    let status = resp.status();
13360    let content_type = resp
13361        .headers()
13362        .get("content-type")
13363        .and_then(|v| v.to_str().ok())
13364        .unwrap_or("application/octet-stream");
13365    let content_type = super::ContentType::from(content_type);
13366
13367    if !status.is_client_error() && !status.is_server_error() {
13368        let content = resp.text().await?;
13369        match content_type {
13370            ContentType::Json => serde_json::from_str(&content).map_err(Error::from),
13371            ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `models::GatewayCreateProducerGcpOutput`"))),
13372            ContentType::Unsupported(unknown_type) => return Err(Error::from(serde_json::Error::custom(format!("Received `{unknown_type}` content type response that cannot be converted to `models::GatewayCreateProducerGcpOutput`")))),
13373        }
13374    } else {
13375        let content = resp.text().await?;
13376        let entity: Option<GatewayCreateProducerGcpError> = serde_json::from_str(&content).ok();
13377        Err(Error::ResponseError(ResponseContent { status, content, entity }))
13378    }
13379}
13380
13381pub async fn gateway_create_producer_github(configuration: &configuration::Configuration, gateway_create_producer_github: models::GatewayCreateProducerGithub) -> Result<models::GatewayCreateProducerGithubOutput, Error<GatewayCreateProducerGithubError>> {
13382    // add a prefix to parameters to efficiently prevent name collisions
13383    let p_body_gateway_create_producer_github = gateway_create_producer_github;
13384
13385    let uri_str = format!("{}/gateway-create-producer-github", configuration.base_path);
13386    let mut req_builder = configuration.client.request(reqwest::Method::POST, &uri_str);
13387
13388    if let Some(ref user_agent) = configuration.user_agent {
13389        req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone());
13390    }
13391    req_builder = req_builder.json(&p_body_gateway_create_producer_github);
13392
13393    let req = req_builder.build()?;
13394    let resp = configuration.client.execute(req).await?;
13395
13396    let status = resp.status();
13397    let content_type = resp
13398        .headers()
13399        .get("content-type")
13400        .and_then(|v| v.to_str().ok())
13401        .unwrap_or("application/octet-stream");
13402    let content_type = super::ContentType::from(content_type);
13403
13404    if !status.is_client_error() && !status.is_server_error() {
13405        let content = resp.text().await?;
13406        match content_type {
13407            ContentType::Json => serde_json::from_str(&content).map_err(Error::from),
13408            ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `models::GatewayCreateProducerGithubOutput`"))),
13409            ContentType::Unsupported(unknown_type) => return Err(Error::from(serde_json::Error::custom(format!("Received `{unknown_type}` content type response that cannot be converted to `models::GatewayCreateProducerGithubOutput`")))),
13410        }
13411    } else {
13412        let content = resp.text().await?;
13413        let entity: Option<GatewayCreateProducerGithubError> = serde_json::from_str(&content).ok();
13414        Err(Error::ResponseError(ResponseContent { status, content, entity }))
13415    }
13416}
13417
13418pub async fn gateway_create_producer_gke(configuration: &configuration::Configuration, gateway_create_producer_gke: models::GatewayCreateProducerGke) -> Result<models::GatewayCreateProducerGkeOutput, Error<GatewayCreateProducerGkeError>> {
13419    // add a prefix to parameters to efficiently prevent name collisions
13420    let p_body_gateway_create_producer_gke = gateway_create_producer_gke;
13421
13422    let uri_str = format!("{}/gateway-create-producer-gke", configuration.base_path);
13423    let mut req_builder = configuration.client.request(reqwest::Method::POST, &uri_str);
13424
13425    if let Some(ref user_agent) = configuration.user_agent {
13426        req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone());
13427    }
13428    req_builder = req_builder.json(&p_body_gateway_create_producer_gke);
13429
13430    let req = req_builder.build()?;
13431    let resp = configuration.client.execute(req).await?;
13432
13433    let status = resp.status();
13434    let content_type = resp
13435        .headers()
13436        .get("content-type")
13437        .and_then(|v| v.to_str().ok())
13438        .unwrap_or("application/octet-stream");
13439    let content_type = super::ContentType::from(content_type);
13440
13441    if !status.is_client_error() && !status.is_server_error() {
13442        let content = resp.text().await?;
13443        match content_type {
13444            ContentType::Json => serde_json::from_str(&content).map_err(Error::from),
13445            ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `models::GatewayCreateProducerGkeOutput`"))),
13446            ContentType::Unsupported(unknown_type) => return Err(Error::from(serde_json::Error::custom(format!("Received `{unknown_type}` content type response that cannot be converted to `models::GatewayCreateProducerGkeOutput`")))),
13447        }
13448    } else {
13449        let content = resp.text().await?;
13450        let entity: Option<GatewayCreateProducerGkeError> = serde_json::from_str(&content).ok();
13451        Err(Error::ResponseError(ResponseContent { status, content, entity }))
13452    }
13453}
13454
13455pub async fn gateway_create_producer_hana_db(configuration: &configuration::Configuration, gateway_create_producer_hana_db: models::GatewayCreateProducerHanaDb) -> Result<models::GatewayCreateProducerHanaDbOutput, Error<GatewayCreateProducerHanaDbError>> {
13456    // add a prefix to parameters to efficiently prevent name collisions
13457    let p_body_gateway_create_producer_hana_db = gateway_create_producer_hana_db;
13458
13459    let uri_str = format!("{}/gateway-create-producer-hanadb", configuration.base_path);
13460    let mut req_builder = configuration.client.request(reqwest::Method::POST, &uri_str);
13461
13462    if let Some(ref user_agent) = configuration.user_agent {
13463        req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone());
13464    }
13465    req_builder = req_builder.json(&p_body_gateway_create_producer_hana_db);
13466
13467    let req = req_builder.build()?;
13468    let resp = configuration.client.execute(req).await?;
13469
13470    let status = resp.status();
13471    let content_type = resp
13472        .headers()
13473        .get("content-type")
13474        .and_then(|v| v.to_str().ok())
13475        .unwrap_or("application/octet-stream");
13476    let content_type = super::ContentType::from(content_type);
13477
13478    if !status.is_client_error() && !status.is_server_error() {
13479        let content = resp.text().await?;
13480        match content_type {
13481            ContentType::Json => serde_json::from_str(&content).map_err(Error::from),
13482            ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `models::GatewayCreateProducerHanaDbOutput`"))),
13483            ContentType::Unsupported(unknown_type) => return Err(Error::from(serde_json::Error::custom(format!("Received `{unknown_type}` content type response that cannot be converted to `models::GatewayCreateProducerHanaDbOutput`")))),
13484        }
13485    } else {
13486        let content = resp.text().await?;
13487        let entity: Option<GatewayCreateProducerHanaDbError> = serde_json::from_str(&content).ok();
13488        Err(Error::ResponseError(ResponseContent { status, content, entity }))
13489    }
13490}
13491
13492pub async fn gateway_create_producer_ldap(configuration: &configuration::Configuration, gateway_create_producer_ldap: models::GatewayCreateProducerLdap) -> Result<models::GatewayCreateProducerLdapOutput, Error<GatewayCreateProducerLdapError>> {
13493    // add a prefix to parameters to efficiently prevent name collisions
13494    let p_body_gateway_create_producer_ldap = gateway_create_producer_ldap;
13495
13496    let uri_str = format!("{}/gateway-create-producer-ldap", configuration.base_path);
13497    let mut req_builder = configuration.client.request(reqwest::Method::POST, &uri_str);
13498
13499    if let Some(ref user_agent) = configuration.user_agent {
13500        req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone());
13501    }
13502    req_builder = req_builder.json(&p_body_gateway_create_producer_ldap);
13503
13504    let req = req_builder.build()?;
13505    let resp = configuration.client.execute(req).await?;
13506
13507    let status = resp.status();
13508    let content_type = resp
13509        .headers()
13510        .get("content-type")
13511        .and_then(|v| v.to_str().ok())
13512        .unwrap_or("application/octet-stream");
13513    let content_type = super::ContentType::from(content_type);
13514
13515    if !status.is_client_error() && !status.is_server_error() {
13516        let content = resp.text().await?;
13517        match content_type {
13518            ContentType::Json => serde_json::from_str(&content).map_err(Error::from),
13519            ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `models::GatewayCreateProducerLdapOutput`"))),
13520            ContentType::Unsupported(unknown_type) => return Err(Error::from(serde_json::Error::custom(format!("Received `{unknown_type}` content type response that cannot be converted to `models::GatewayCreateProducerLdapOutput`")))),
13521        }
13522    } else {
13523        let content = resp.text().await?;
13524        let entity: Option<GatewayCreateProducerLdapError> = serde_json::from_str(&content).ok();
13525        Err(Error::ResponseError(ResponseContent { status, content, entity }))
13526    }
13527}
13528
13529pub async fn gateway_create_producer_mongo(configuration: &configuration::Configuration, gateway_create_producer_mongo: models::GatewayCreateProducerMongo) -> Result<models::GatewayCreateProducerMongoOutput, Error<GatewayCreateProducerMongoError>> {
13530    // add a prefix to parameters to efficiently prevent name collisions
13531    let p_body_gateway_create_producer_mongo = gateway_create_producer_mongo;
13532
13533    let uri_str = format!("{}/gateway-create-producer-mongo", configuration.base_path);
13534    let mut req_builder = configuration.client.request(reqwest::Method::POST, &uri_str);
13535
13536    if let Some(ref user_agent) = configuration.user_agent {
13537        req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone());
13538    }
13539    req_builder = req_builder.json(&p_body_gateway_create_producer_mongo);
13540
13541    let req = req_builder.build()?;
13542    let resp = configuration.client.execute(req).await?;
13543
13544    let status = resp.status();
13545    let content_type = resp
13546        .headers()
13547        .get("content-type")
13548        .and_then(|v| v.to_str().ok())
13549        .unwrap_or("application/octet-stream");
13550    let content_type = super::ContentType::from(content_type);
13551
13552    if !status.is_client_error() && !status.is_server_error() {
13553        let content = resp.text().await?;
13554        match content_type {
13555            ContentType::Json => serde_json::from_str(&content).map_err(Error::from),
13556            ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `models::GatewayCreateProducerMongoOutput`"))),
13557            ContentType::Unsupported(unknown_type) => return Err(Error::from(serde_json::Error::custom(format!("Received `{unknown_type}` content type response that cannot be converted to `models::GatewayCreateProducerMongoOutput`")))),
13558        }
13559    } else {
13560        let content = resp.text().await?;
13561        let entity: Option<GatewayCreateProducerMongoError> = serde_json::from_str(&content).ok();
13562        Err(Error::ResponseError(ResponseContent { status, content, entity }))
13563    }
13564}
13565
13566pub async fn gateway_create_producer_mssql(configuration: &configuration::Configuration, gateway_create_producer_mssql: models::GatewayCreateProducerMssql) -> Result<models::GatewayCreateProducerMssqlOutput, Error<GatewayCreateProducerMssqlError>> {
13567    // add a prefix to parameters to efficiently prevent name collisions
13568    let p_body_gateway_create_producer_mssql = gateway_create_producer_mssql;
13569
13570    let uri_str = format!("{}/gateway-create-producer-mssql", configuration.base_path);
13571    let mut req_builder = configuration.client.request(reqwest::Method::POST, &uri_str);
13572
13573    if let Some(ref user_agent) = configuration.user_agent {
13574        req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone());
13575    }
13576    req_builder = req_builder.json(&p_body_gateway_create_producer_mssql);
13577
13578    let req = req_builder.build()?;
13579    let resp = configuration.client.execute(req).await?;
13580
13581    let status = resp.status();
13582    let content_type = resp
13583        .headers()
13584        .get("content-type")
13585        .and_then(|v| v.to_str().ok())
13586        .unwrap_or("application/octet-stream");
13587    let content_type = super::ContentType::from(content_type);
13588
13589    if !status.is_client_error() && !status.is_server_error() {
13590        let content = resp.text().await?;
13591        match content_type {
13592            ContentType::Json => serde_json::from_str(&content).map_err(Error::from),
13593            ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `models::GatewayCreateProducerMssqlOutput`"))),
13594            ContentType::Unsupported(unknown_type) => return Err(Error::from(serde_json::Error::custom(format!("Received `{unknown_type}` content type response that cannot be converted to `models::GatewayCreateProducerMssqlOutput`")))),
13595        }
13596    } else {
13597        let content = resp.text().await?;
13598        let entity: Option<GatewayCreateProducerMssqlError> = serde_json::from_str(&content).ok();
13599        Err(Error::ResponseError(ResponseContent { status, content, entity }))
13600    }
13601}
13602
13603pub async fn gateway_create_producer_my_sql(configuration: &configuration::Configuration, gateway_create_producer_my_sql: models::GatewayCreateProducerMySql) -> Result<models::GatewayCreateProducerMySqlOutput, Error<GatewayCreateProducerMySqlError>> {
13604    // add a prefix to parameters to efficiently prevent name collisions
13605    let p_body_gateway_create_producer_my_sql = gateway_create_producer_my_sql;
13606
13607    let uri_str = format!("{}/gateway-create-producer-mysql", configuration.base_path);
13608    let mut req_builder = configuration.client.request(reqwest::Method::POST, &uri_str);
13609
13610    if let Some(ref user_agent) = configuration.user_agent {
13611        req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone());
13612    }
13613    req_builder = req_builder.json(&p_body_gateway_create_producer_my_sql);
13614
13615    let req = req_builder.build()?;
13616    let resp = configuration.client.execute(req).await?;
13617
13618    let status = resp.status();
13619    let content_type = resp
13620        .headers()
13621        .get("content-type")
13622        .and_then(|v| v.to_str().ok())
13623        .unwrap_or("application/octet-stream");
13624    let content_type = super::ContentType::from(content_type);
13625
13626    if !status.is_client_error() && !status.is_server_error() {
13627        let content = resp.text().await?;
13628        match content_type {
13629            ContentType::Json => serde_json::from_str(&content).map_err(Error::from),
13630            ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `models::GatewayCreateProducerMySqlOutput`"))),
13631            ContentType::Unsupported(unknown_type) => return Err(Error::from(serde_json::Error::custom(format!("Received `{unknown_type}` content type response that cannot be converted to `models::GatewayCreateProducerMySqlOutput`")))),
13632        }
13633    } else {
13634        let content = resp.text().await?;
13635        let entity: Option<GatewayCreateProducerMySqlError> = serde_json::from_str(&content).ok();
13636        Err(Error::ResponseError(ResponseContent { status, content, entity }))
13637    }
13638}
13639
13640pub async fn gateway_create_producer_native_k8_s(configuration: &configuration::Configuration, gateway_create_producer_native_k8_s: models::GatewayCreateProducerNativeK8S) -> Result<models::GatewayCreateProducerNativeK8SOutput, Error<GatewayCreateProducerNativeK8SError>> {
13641    // add a prefix to parameters to efficiently prevent name collisions
13642    let p_body_gateway_create_producer_native_k8_s = gateway_create_producer_native_k8_s;
13643
13644    let uri_str = format!("{}/gateway-create-producer-k8s", configuration.base_path);
13645    let mut req_builder = configuration.client.request(reqwest::Method::POST, &uri_str);
13646
13647    if let Some(ref user_agent) = configuration.user_agent {
13648        req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone());
13649    }
13650    req_builder = req_builder.json(&p_body_gateway_create_producer_native_k8_s);
13651
13652    let req = req_builder.build()?;
13653    let resp = configuration.client.execute(req).await?;
13654
13655    let status = resp.status();
13656    let content_type = resp
13657        .headers()
13658        .get("content-type")
13659        .and_then(|v| v.to_str().ok())
13660        .unwrap_or("application/octet-stream");
13661    let content_type = super::ContentType::from(content_type);
13662
13663    if !status.is_client_error() && !status.is_server_error() {
13664        let content = resp.text().await?;
13665        match content_type {
13666            ContentType::Json => serde_json::from_str(&content).map_err(Error::from),
13667            ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `models::GatewayCreateProducerNativeK8SOutput`"))),
13668            ContentType::Unsupported(unknown_type) => return Err(Error::from(serde_json::Error::custom(format!("Received `{unknown_type}` content type response that cannot be converted to `models::GatewayCreateProducerNativeK8SOutput`")))),
13669        }
13670    } else {
13671        let content = resp.text().await?;
13672        let entity: Option<GatewayCreateProducerNativeK8SError> = serde_json::from_str(&content).ok();
13673        Err(Error::ResponseError(ResponseContent { status, content, entity }))
13674    }
13675}
13676
13677pub async fn gateway_create_producer_oracle_db(configuration: &configuration::Configuration, gateway_create_producer_oracle_db: models::GatewayCreateProducerOracleDb) -> Result<models::GatewayCreateProducerOracleDbOutput, Error<GatewayCreateProducerOracleDbError>> {
13678    // add a prefix to parameters to efficiently prevent name collisions
13679    let p_body_gateway_create_producer_oracle_db = gateway_create_producer_oracle_db;
13680
13681    let uri_str = format!("{}/gateway-create-producer-oracle", configuration.base_path);
13682    let mut req_builder = configuration.client.request(reqwest::Method::POST, &uri_str);
13683
13684    if let Some(ref user_agent) = configuration.user_agent {
13685        req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone());
13686    }
13687    req_builder = req_builder.json(&p_body_gateway_create_producer_oracle_db);
13688
13689    let req = req_builder.build()?;
13690    let resp = configuration.client.execute(req).await?;
13691
13692    let status = resp.status();
13693    let content_type = resp
13694        .headers()
13695        .get("content-type")
13696        .and_then(|v| v.to_str().ok())
13697        .unwrap_or("application/octet-stream");
13698    let content_type = super::ContentType::from(content_type);
13699
13700    if !status.is_client_error() && !status.is_server_error() {
13701        let content = resp.text().await?;
13702        match content_type {
13703            ContentType::Json => serde_json::from_str(&content).map_err(Error::from),
13704            ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `models::GatewayCreateProducerOracleDbOutput`"))),
13705            ContentType::Unsupported(unknown_type) => return Err(Error::from(serde_json::Error::custom(format!("Received `{unknown_type}` content type response that cannot be converted to `models::GatewayCreateProducerOracleDbOutput`")))),
13706        }
13707    } else {
13708        let content = resp.text().await?;
13709        let entity: Option<GatewayCreateProducerOracleDbError> = serde_json::from_str(&content).ok();
13710        Err(Error::ResponseError(ResponseContent { status, content, entity }))
13711    }
13712}
13713
13714pub async fn gateway_create_producer_ping(configuration: &configuration::Configuration, gateway_create_producer_ping: models::GatewayCreateProducerPing) -> Result<models::GatewayCreateProducerPingOutput, Error<GatewayCreateProducerPingError>> {
13715    // add a prefix to parameters to efficiently prevent name collisions
13716    let p_body_gateway_create_producer_ping = gateway_create_producer_ping;
13717
13718    let uri_str = format!("{}/gateway-create-producer-ping", configuration.base_path);
13719    let mut req_builder = configuration.client.request(reqwest::Method::POST, &uri_str);
13720
13721    if let Some(ref user_agent) = configuration.user_agent {
13722        req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone());
13723    }
13724    req_builder = req_builder.json(&p_body_gateway_create_producer_ping);
13725
13726    let req = req_builder.build()?;
13727    let resp = configuration.client.execute(req).await?;
13728
13729    let status = resp.status();
13730    let content_type = resp
13731        .headers()
13732        .get("content-type")
13733        .and_then(|v| v.to_str().ok())
13734        .unwrap_or("application/octet-stream");
13735    let content_type = super::ContentType::from(content_type);
13736
13737    if !status.is_client_error() && !status.is_server_error() {
13738        let content = resp.text().await?;
13739        match content_type {
13740            ContentType::Json => serde_json::from_str(&content).map_err(Error::from),
13741            ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `models::GatewayCreateProducerPingOutput`"))),
13742            ContentType::Unsupported(unknown_type) => return Err(Error::from(serde_json::Error::custom(format!("Received `{unknown_type}` content type response that cannot be converted to `models::GatewayCreateProducerPingOutput`")))),
13743        }
13744    } else {
13745        let content = resp.text().await?;
13746        let entity: Option<GatewayCreateProducerPingError> = serde_json::from_str(&content).ok();
13747        Err(Error::ResponseError(ResponseContent { status, content, entity }))
13748    }
13749}
13750
13751pub async fn gateway_create_producer_postgre_sql(configuration: &configuration::Configuration, gateway_create_producer_postgre_sql: models::GatewayCreateProducerPostgreSql) -> Result<models::GatewayCreateProducerPostgreSqlOutput, Error<GatewayCreateProducerPostgreSqlError>> {
13752    // add a prefix to parameters to efficiently prevent name collisions
13753    let p_body_gateway_create_producer_postgre_sql = gateway_create_producer_postgre_sql;
13754
13755    let uri_str = format!("{}/gateway-create-producer-postgresql", configuration.base_path);
13756    let mut req_builder = configuration.client.request(reqwest::Method::POST, &uri_str);
13757
13758    if let Some(ref user_agent) = configuration.user_agent {
13759        req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone());
13760    }
13761    req_builder = req_builder.json(&p_body_gateway_create_producer_postgre_sql);
13762
13763    let req = req_builder.build()?;
13764    let resp = configuration.client.execute(req).await?;
13765
13766    let status = resp.status();
13767    let content_type = resp
13768        .headers()
13769        .get("content-type")
13770        .and_then(|v| v.to_str().ok())
13771        .unwrap_or("application/octet-stream");
13772    let content_type = super::ContentType::from(content_type);
13773
13774    if !status.is_client_error() && !status.is_server_error() {
13775        let content = resp.text().await?;
13776        match content_type {
13777            ContentType::Json => serde_json::from_str(&content).map_err(Error::from),
13778            ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `models::GatewayCreateProducerPostgreSqlOutput`"))),
13779            ContentType::Unsupported(unknown_type) => return Err(Error::from(serde_json::Error::custom(format!("Received `{unknown_type}` content type response that cannot be converted to `models::GatewayCreateProducerPostgreSqlOutput`")))),
13780        }
13781    } else {
13782        let content = resp.text().await?;
13783        let entity: Option<GatewayCreateProducerPostgreSqlError> = serde_json::from_str(&content).ok();
13784        Err(Error::ResponseError(ResponseContent { status, content, entity }))
13785    }
13786}
13787
13788pub async fn gateway_create_producer_rabbit_mq(configuration: &configuration::Configuration, gateway_create_producer_rabbit_mq: models::GatewayCreateProducerRabbitMq) -> Result<models::GatewayCreateProducerRabbitMqOutput, Error<GatewayCreateProducerRabbitMqError>> {
13789    // add a prefix to parameters to efficiently prevent name collisions
13790    let p_body_gateway_create_producer_rabbit_mq = gateway_create_producer_rabbit_mq;
13791
13792    let uri_str = format!("{}/gateway-create-producer-rabbitmq", configuration.base_path);
13793    let mut req_builder = configuration.client.request(reqwest::Method::POST, &uri_str);
13794
13795    if let Some(ref user_agent) = configuration.user_agent {
13796        req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone());
13797    }
13798    req_builder = req_builder.json(&p_body_gateway_create_producer_rabbit_mq);
13799
13800    let req = req_builder.build()?;
13801    let resp = configuration.client.execute(req).await?;
13802
13803    let status = resp.status();
13804    let content_type = resp
13805        .headers()
13806        .get("content-type")
13807        .and_then(|v| v.to_str().ok())
13808        .unwrap_or("application/octet-stream");
13809    let content_type = super::ContentType::from(content_type);
13810
13811    if !status.is_client_error() && !status.is_server_error() {
13812        let content = resp.text().await?;
13813        match content_type {
13814            ContentType::Json => serde_json::from_str(&content).map_err(Error::from),
13815            ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `models::GatewayCreateProducerRabbitMqOutput`"))),
13816            ContentType::Unsupported(unknown_type) => return Err(Error::from(serde_json::Error::custom(format!("Received `{unknown_type}` content type response that cannot be converted to `models::GatewayCreateProducerRabbitMqOutput`")))),
13817        }
13818    } else {
13819        let content = resp.text().await?;
13820        let entity: Option<GatewayCreateProducerRabbitMqError> = serde_json::from_str(&content).ok();
13821        Err(Error::ResponseError(ResponseContent { status, content, entity }))
13822    }
13823}
13824
13825pub async fn gateway_create_producer_rdp(configuration: &configuration::Configuration, gateway_create_producer_rdp: models::GatewayCreateProducerRdp) -> Result<models::GatewayCreateProducerRdpOutput, Error<GatewayCreateProducerRdpError>> {
13826    // add a prefix to parameters to efficiently prevent name collisions
13827    let p_body_gateway_create_producer_rdp = gateway_create_producer_rdp;
13828
13829    let uri_str = format!("{}/gateway-create-producer-rdp", configuration.base_path);
13830    let mut req_builder = configuration.client.request(reqwest::Method::POST, &uri_str);
13831
13832    if let Some(ref user_agent) = configuration.user_agent {
13833        req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone());
13834    }
13835    req_builder = req_builder.json(&p_body_gateway_create_producer_rdp);
13836
13837    let req = req_builder.build()?;
13838    let resp = configuration.client.execute(req).await?;
13839
13840    let status = resp.status();
13841    let content_type = resp
13842        .headers()
13843        .get("content-type")
13844        .and_then(|v| v.to_str().ok())
13845        .unwrap_or("application/octet-stream");
13846    let content_type = super::ContentType::from(content_type);
13847
13848    if !status.is_client_error() && !status.is_server_error() {
13849        let content = resp.text().await?;
13850        match content_type {
13851            ContentType::Json => serde_json::from_str(&content).map_err(Error::from),
13852            ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `models::GatewayCreateProducerRdpOutput`"))),
13853            ContentType::Unsupported(unknown_type) => return Err(Error::from(serde_json::Error::custom(format!("Received `{unknown_type}` content type response that cannot be converted to `models::GatewayCreateProducerRdpOutput`")))),
13854        }
13855    } else {
13856        let content = resp.text().await?;
13857        let entity: Option<GatewayCreateProducerRdpError> = serde_json::from_str(&content).ok();
13858        Err(Error::ResponseError(ResponseContent { status, content, entity }))
13859    }
13860}
13861
13862pub async fn gateway_create_producer_redis(configuration: &configuration::Configuration, gateway_create_producer_redis: models::GatewayCreateProducerRedis) -> Result<models::GatewayCreateProducerRedisOutput, Error<GatewayCreateProducerRedisError>> {
13863    // add a prefix to parameters to efficiently prevent name collisions
13864    let p_body_gateway_create_producer_redis = gateway_create_producer_redis;
13865
13866    let uri_str = format!("{}/gateway-create-producer-Redis", configuration.base_path);
13867    let mut req_builder = configuration.client.request(reqwest::Method::POST, &uri_str);
13868
13869    if let Some(ref user_agent) = configuration.user_agent {
13870        req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone());
13871    }
13872    req_builder = req_builder.json(&p_body_gateway_create_producer_redis);
13873
13874    let req = req_builder.build()?;
13875    let resp = configuration.client.execute(req).await?;
13876
13877    let status = resp.status();
13878    let content_type = resp
13879        .headers()
13880        .get("content-type")
13881        .and_then(|v| v.to_str().ok())
13882        .unwrap_or("application/octet-stream");
13883    let content_type = super::ContentType::from(content_type);
13884
13885    if !status.is_client_error() && !status.is_server_error() {
13886        let content = resp.text().await?;
13887        match content_type {
13888            ContentType::Json => serde_json::from_str(&content).map_err(Error::from),
13889            ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `models::GatewayCreateProducerRedisOutput`"))),
13890            ContentType::Unsupported(unknown_type) => return Err(Error::from(serde_json::Error::custom(format!("Received `{unknown_type}` content type response that cannot be converted to `models::GatewayCreateProducerRedisOutput`")))),
13891        }
13892    } else {
13893        let content = resp.text().await?;
13894        let entity: Option<GatewayCreateProducerRedisError> = serde_json::from_str(&content).ok();
13895        Err(Error::ResponseError(ResponseContent { status, content, entity }))
13896    }
13897}
13898
13899pub async fn gateway_create_producer_redshift(configuration: &configuration::Configuration, gateway_create_producer_redshift: models::GatewayCreateProducerRedshift) -> Result<models::GatewayCreateProducerRedshiftOutput, Error<GatewayCreateProducerRedshiftError>> {
13900    // add a prefix to parameters to efficiently prevent name collisions
13901    let p_body_gateway_create_producer_redshift = gateway_create_producer_redshift;
13902
13903    let uri_str = format!("{}/gateway-create-producer-redshift", configuration.base_path);
13904    let mut req_builder = configuration.client.request(reqwest::Method::POST, &uri_str);
13905
13906    if let Some(ref user_agent) = configuration.user_agent {
13907        req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone());
13908    }
13909    req_builder = req_builder.json(&p_body_gateway_create_producer_redshift);
13910
13911    let req = req_builder.build()?;
13912    let resp = configuration.client.execute(req).await?;
13913
13914    let status = resp.status();
13915    let content_type = resp
13916        .headers()
13917        .get("content-type")
13918        .and_then(|v| v.to_str().ok())
13919        .unwrap_or("application/octet-stream");
13920    let content_type = super::ContentType::from(content_type);
13921
13922    if !status.is_client_error() && !status.is_server_error() {
13923        let content = resp.text().await?;
13924        match content_type {
13925            ContentType::Json => serde_json::from_str(&content).map_err(Error::from),
13926            ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `models::GatewayCreateProducerRedshiftOutput`"))),
13927            ContentType::Unsupported(unknown_type) => return Err(Error::from(serde_json::Error::custom(format!("Received `{unknown_type}` content type response that cannot be converted to `models::GatewayCreateProducerRedshiftOutput`")))),
13928        }
13929    } else {
13930        let content = resp.text().await?;
13931        let entity: Option<GatewayCreateProducerRedshiftError> = serde_json::from_str(&content).ok();
13932        Err(Error::ResponseError(ResponseContent { status, content, entity }))
13933    }
13934}
13935
13936pub async fn gateway_create_producer_snowflake(configuration: &configuration::Configuration, gateway_create_producer_snowflake: models::GatewayCreateProducerSnowflake) -> Result<models::GatewayCreateProducerSnowflakeOutput, Error<GatewayCreateProducerSnowflakeError>> {
13937    // add a prefix to parameters to efficiently prevent name collisions
13938    let p_body_gateway_create_producer_snowflake = gateway_create_producer_snowflake;
13939
13940    let uri_str = format!("{}/gateway-create-producer-snowflake", configuration.base_path);
13941    let mut req_builder = configuration.client.request(reqwest::Method::POST, &uri_str);
13942
13943    if let Some(ref user_agent) = configuration.user_agent {
13944        req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone());
13945    }
13946    req_builder = req_builder.json(&p_body_gateway_create_producer_snowflake);
13947
13948    let req = req_builder.build()?;
13949    let resp = configuration.client.execute(req).await?;
13950
13951    let status = resp.status();
13952    let content_type = resp
13953        .headers()
13954        .get("content-type")
13955        .and_then(|v| v.to_str().ok())
13956        .unwrap_or("application/octet-stream");
13957    let content_type = super::ContentType::from(content_type);
13958
13959    if !status.is_client_error() && !status.is_server_error() {
13960        let content = resp.text().await?;
13961        match content_type {
13962            ContentType::Json => serde_json::from_str(&content).map_err(Error::from),
13963            ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `models::GatewayCreateProducerSnowflakeOutput`"))),
13964            ContentType::Unsupported(unknown_type) => return Err(Error::from(serde_json::Error::custom(format!("Received `{unknown_type}` content type response that cannot be converted to `models::GatewayCreateProducerSnowflakeOutput`")))),
13965        }
13966    } else {
13967        let content = resp.text().await?;
13968        let entity: Option<GatewayCreateProducerSnowflakeError> = serde_json::from_str(&content).ok();
13969        Err(Error::ResponseError(ResponseContent { status, content, entity }))
13970    }
13971}
13972
13973pub async fn gateway_create_producer_venafi(configuration: &configuration::Configuration, gateway_create_producer_venafi: models::GatewayCreateProducerVenafi) -> Result<models::GatewayCreateProducerVenafiOutput, Error<GatewayCreateProducerVenafiError>> {
13974    // add a prefix to parameters to efficiently prevent name collisions
13975    let p_body_gateway_create_producer_venafi = gateway_create_producer_venafi;
13976
13977    let uri_str = format!("{}/gateway-create-producer-certificate-automation", configuration.base_path);
13978    let mut req_builder = configuration.client.request(reqwest::Method::POST, &uri_str);
13979
13980    if let Some(ref user_agent) = configuration.user_agent {
13981        req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone());
13982    }
13983    req_builder = req_builder.json(&p_body_gateway_create_producer_venafi);
13984
13985    let req = req_builder.build()?;
13986    let resp = configuration.client.execute(req).await?;
13987
13988    let status = resp.status();
13989    let content_type = resp
13990        .headers()
13991        .get("content-type")
13992        .and_then(|v| v.to_str().ok())
13993        .unwrap_or("application/octet-stream");
13994    let content_type = super::ContentType::from(content_type);
13995
13996    if !status.is_client_error() && !status.is_server_error() {
13997        let content = resp.text().await?;
13998        match content_type {
13999            ContentType::Json => serde_json::from_str(&content).map_err(Error::from),
14000            ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `models::GatewayCreateProducerVenafiOutput`"))),
14001            ContentType::Unsupported(unknown_type) => return Err(Error::from(serde_json::Error::custom(format!("Received `{unknown_type}` content type response that cannot be converted to `models::GatewayCreateProducerVenafiOutput`")))),
14002        }
14003    } else {
14004        let content = resp.text().await?;
14005        let entity: Option<GatewayCreateProducerVenafiError> = serde_json::from_str(&content).ok();
14006        Err(Error::ResponseError(ResponseContent { status, content, entity }))
14007    }
14008}
14009
14010pub async fn gateway_delete_allowed_access(configuration: &configuration::Configuration, gateway_delete_allowed_access: models::GatewayDeleteAllowedAccess) -> Result<models::GatewayDeleteAllowedAccessOutput, Error<GatewayDeleteAllowedAccessError>> {
14011    // add a prefix to parameters to efficiently prevent name collisions
14012    let p_body_gateway_delete_allowed_access = gateway_delete_allowed_access;
14013
14014    let uri_str = format!("{}/gateway-delete-allowed-access", configuration.base_path);
14015    let mut req_builder = configuration.client.request(reqwest::Method::POST, &uri_str);
14016
14017    if let Some(ref user_agent) = configuration.user_agent {
14018        req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone());
14019    }
14020    req_builder = req_builder.json(&p_body_gateway_delete_allowed_access);
14021
14022    let req = req_builder.build()?;
14023    let resp = configuration.client.execute(req).await?;
14024
14025    let status = resp.status();
14026    let content_type = resp
14027        .headers()
14028        .get("content-type")
14029        .and_then(|v| v.to_str().ok())
14030        .unwrap_or("application/octet-stream");
14031    let content_type = super::ContentType::from(content_type);
14032
14033    if !status.is_client_error() && !status.is_server_error() {
14034        let content = resp.text().await?;
14035        match content_type {
14036            ContentType::Json => serde_json::from_str(&content).map_err(Error::from),
14037            ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `models::GatewayDeleteAllowedAccessOutput`"))),
14038            ContentType::Unsupported(unknown_type) => return Err(Error::from(serde_json::Error::custom(format!("Received `{unknown_type}` content type response that cannot be converted to `models::GatewayDeleteAllowedAccessOutput`")))),
14039        }
14040    } else {
14041        let content = resp.text().await?;
14042        let entity: Option<GatewayDeleteAllowedAccessError> = serde_json::from_str(&content).ok();
14043        Err(Error::ResponseError(ResponseContent { status, content, entity }))
14044    }
14045}
14046
14047pub async fn gateway_delete_k8_s_auth_config(configuration: &configuration::Configuration, gateway_delete_k8_s_auth_config: models::GatewayDeleteK8SAuthConfig) -> Result<models::GatewayDeleteK8SAuthConfigOutput, Error<GatewayDeleteK8SAuthConfigError>> {
14048    // add a prefix to parameters to efficiently prevent name collisions
14049    let p_body_gateway_delete_k8_s_auth_config = gateway_delete_k8_s_auth_config;
14050
14051    let uri_str = format!("{}/gateway-delete-k8s-auth-config", configuration.base_path);
14052    let mut req_builder = configuration.client.request(reqwest::Method::POST, &uri_str);
14053
14054    if let Some(ref user_agent) = configuration.user_agent {
14055        req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone());
14056    }
14057    req_builder = req_builder.json(&p_body_gateway_delete_k8_s_auth_config);
14058
14059    let req = req_builder.build()?;
14060    let resp = configuration.client.execute(req).await?;
14061
14062    let status = resp.status();
14063    let content_type = resp
14064        .headers()
14065        .get("content-type")
14066        .and_then(|v| v.to_str().ok())
14067        .unwrap_or("application/octet-stream");
14068    let content_type = super::ContentType::from(content_type);
14069
14070    if !status.is_client_error() && !status.is_server_error() {
14071        let content = resp.text().await?;
14072        match content_type {
14073            ContentType::Json => serde_json::from_str(&content).map_err(Error::from),
14074            ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `models::GatewayDeleteK8SAuthConfigOutput`"))),
14075            ContentType::Unsupported(unknown_type) => return Err(Error::from(serde_json::Error::custom(format!("Received `{unknown_type}` content type response that cannot be converted to `models::GatewayDeleteK8SAuthConfigOutput`")))),
14076        }
14077    } else {
14078        let content = resp.text().await?;
14079        let entity: Option<GatewayDeleteK8SAuthConfigError> = serde_json::from_str(&content).ok();
14080        Err(Error::ResponseError(ResponseContent { status, content, entity }))
14081    }
14082}
14083
14084pub async fn gateway_delete_migration(configuration: &configuration::Configuration, gateway_delete_migration: models::GatewayDeleteMigration) -> Result<models::GatewayMigrationDeleteOutput, Error<GatewayDeleteMigrationError>> {
14085    // add a prefix to parameters to efficiently prevent name collisions
14086    let p_body_gateway_delete_migration = gateway_delete_migration;
14087
14088    let uri_str = format!("{}/gateway-delete-migration", configuration.base_path);
14089    let mut req_builder = configuration.client.request(reqwest::Method::POST, &uri_str);
14090
14091    if let Some(ref user_agent) = configuration.user_agent {
14092        req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone());
14093    }
14094    req_builder = req_builder.json(&p_body_gateway_delete_migration);
14095
14096    let req = req_builder.build()?;
14097    let resp = configuration.client.execute(req).await?;
14098
14099    let status = resp.status();
14100    let content_type = resp
14101        .headers()
14102        .get("content-type")
14103        .and_then(|v| v.to_str().ok())
14104        .unwrap_or("application/octet-stream");
14105    let content_type = super::ContentType::from(content_type);
14106
14107    if !status.is_client_error() && !status.is_server_error() {
14108        let content = resp.text().await?;
14109        match content_type {
14110            ContentType::Json => serde_json::from_str(&content).map_err(Error::from),
14111            ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `models::GatewayMigrationDeleteOutput`"))),
14112            ContentType::Unsupported(unknown_type) => return Err(Error::from(serde_json::Error::custom(format!("Received `{unknown_type}` content type response that cannot be converted to `models::GatewayMigrationDeleteOutput`")))),
14113        }
14114    } else {
14115        let content = resp.text().await?;
14116        let entity: Option<GatewayDeleteMigrationError> = serde_json::from_str(&content).ok();
14117        Err(Error::ResponseError(ResponseContent { status, content, entity }))
14118    }
14119}
14120
14121pub async fn gateway_delete_producer(configuration: &configuration::Configuration, gateway_delete_producer: models::GatewayDeleteProducer) -> Result<models::GatewayDeleteProducerOutput, Error<GatewayDeleteProducerError>> {
14122    // add a prefix to parameters to efficiently prevent name collisions
14123    let p_body_gateway_delete_producer = gateway_delete_producer;
14124
14125    let uri_str = format!("{}/gateway-delete-producer", configuration.base_path);
14126    let mut req_builder = configuration.client.request(reqwest::Method::POST, &uri_str);
14127
14128    if let Some(ref user_agent) = configuration.user_agent {
14129        req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone());
14130    }
14131    req_builder = req_builder.json(&p_body_gateway_delete_producer);
14132
14133    let req = req_builder.build()?;
14134    let resp = configuration.client.execute(req).await?;
14135
14136    let status = resp.status();
14137    let content_type = resp
14138        .headers()
14139        .get("content-type")
14140        .and_then(|v| v.to_str().ok())
14141        .unwrap_or("application/octet-stream");
14142    let content_type = super::ContentType::from(content_type);
14143
14144    if !status.is_client_error() && !status.is_server_error() {
14145        let content = resp.text().await?;
14146        match content_type {
14147            ContentType::Json => serde_json::from_str(&content).map_err(Error::from),
14148            ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `models::GatewayDeleteProducerOutput`"))),
14149            ContentType::Unsupported(unknown_type) => return Err(Error::from(serde_json::Error::custom(format!("Received `{unknown_type}` content type response that cannot be converted to `models::GatewayDeleteProducerOutput`")))),
14150        }
14151    } else {
14152        let content = resp.text().await?;
14153        let entity: Option<GatewayDeleteProducerError> = serde_json::from_str(&content).ok();
14154        Err(Error::ResponseError(ResponseContent { status, content, entity }))
14155    }
14156}
14157
14158pub async fn gateway_download_customer_fragments(configuration: &configuration::Configuration, gateway_download_customer_fragments: models::GatewayDownloadCustomerFragments) -> Result<models::GatewayDownloadCustomerFragmentsOutput, Error<GatewayDownloadCustomerFragmentsError>> {
14159    // add a prefix to parameters to efficiently prevent name collisions
14160    let p_body_gateway_download_customer_fragments = gateway_download_customer_fragments;
14161
14162    let uri_str = format!("{}/gateway-download-customer-fragments", configuration.base_path);
14163    let mut req_builder = configuration.client.request(reqwest::Method::POST, &uri_str);
14164
14165    if let Some(ref user_agent) = configuration.user_agent {
14166        req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone());
14167    }
14168    req_builder = req_builder.json(&p_body_gateway_download_customer_fragments);
14169
14170    let req = req_builder.build()?;
14171    let resp = configuration.client.execute(req).await?;
14172
14173    let status = resp.status();
14174    let content_type = resp
14175        .headers()
14176        .get("content-type")
14177        .and_then(|v| v.to_str().ok())
14178        .unwrap_or("application/octet-stream");
14179    let content_type = super::ContentType::from(content_type);
14180
14181    if !status.is_client_error() && !status.is_server_error() {
14182        let content = resp.text().await?;
14183        match content_type {
14184            ContentType::Json => serde_json::from_str(&content).map_err(Error::from),
14185            ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `models::GatewayDownloadCustomerFragmentsOutput`"))),
14186            ContentType::Unsupported(unknown_type) => return Err(Error::from(serde_json::Error::custom(format!("Received `{unknown_type}` content type response that cannot be converted to `models::GatewayDownloadCustomerFragmentsOutput`")))),
14187        }
14188    } else {
14189        let content = resp.text().await?;
14190        let entity: Option<GatewayDownloadCustomerFragmentsError> = serde_json::from_str(&content).ok();
14191        Err(Error::ResponseError(ResponseContent { status, content, entity }))
14192    }
14193}
14194
14195pub async fn gateway_get_allowed_access(configuration: &configuration::Configuration, gateway_get_allowed_access: models::GatewayGetAllowedAccess) -> Result<models::AllowedAccess, Error<GatewayGetAllowedAccessError>> {
14196    // add a prefix to parameters to efficiently prevent name collisions
14197    let p_body_gateway_get_allowed_access = gateway_get_allowed_access;
14198
14199    let uri_str = format!("{}/gateway-get-allowed-access", configuration.base_path);
14200    let mut req_builder = configuration.client.request(reqwest::Method::POST, &uri_str);
14201
14202    if let Some(ref user_agent) = configuration.user_agent {
14203        req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone());
14204    }
14205    req_builder = req_builder.json(&p_body_gateway_get_allowed_access);
14206
14207    let req = req_builder.build()?;
14208    let resp = configuration.client.execute(req).await?;
14209
14210    let status = resp.status();
14211    let content_type = resp
14212        .headers()
14213        .get("content-type")
14214        .and_then(|v| v.to_str().ok())
14215        .unwrap_or("application/octet-stream");
14216    let content_type = super::ContentType::from(content_type);
14217
14218    if !status.is_client_error() && !status.is_server_error() {
14219        let content = resp.text().await?;
14220        match content_type {
14221            ContentType::Json => serde_json::from_str(&content).map_err(Error::from),
14222            ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `models::AllowedAccess`"))),
14223            ContentType::Unsupported(unknown_type) => return Err(Error::from(serde_json::Error::custom(format!("Received `{unknown_type}` content type response that cannot be converted to `models::AllowedAccess`")))),
14224        }
14225    } else {
14226        let content = resp.text().await?;
14227        let entity: Option<GatewayGetAllowedAccessError> = serde_json::from_str(&content).ok();
14228        Err(Error::ResponseError(ResponseContent { status, content, entity }))
14229    }
14230}
14231
14232pub async fn gateway_get_cache(configuration: &configuration::Configuration, gateway_get_cache: models::GatewayGetCache) -> Result<models::CacheConfigPart, Error<GatewayGetCacheError>> {
14233    // add a prefix to parameters to efficiently prevent name collisions
14234    let p_body_gateway_get_cache = gateway_get_cache;
14235
14236    let uri_str = format!("{}/gateway-get-cache", configuration.base_path);
14237    let mut req_builder = configuration.client.request(reqwest::Method::POST, &uri_str);
14238
14239    if let Some(ref user_agent) = configuration.user_agent {
14240        req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone());
14241    }
14242    req_builder = req_builder.json(&p_body_gateway_get_cache);
14243
14244    let req = req_builder.build()?;
14245    let resp = configuration.client.execute(req).await?;
14246
14247    let status = resp.status();
14248    let content_type = resp
14249        .headers()
14250        .get("content-type")
14251        .and_then(|v| v.to_str().ok())
14252        .unwrap_or("application/octet-stream");
14253    let content_type = super::ContentType::from(content_type);
14254
14255    if !status.is_client_error() && !status.is_server_error() {
14256        let content = resp.text().await?;
14257        match content_type {
14258            ContentType::Json => serde_json::from_str(&content).map_err(Error::from),
14259            ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `models::CacheConfigPart`"))),
14260            ContentType::Unsupported(unknown_type) => return Err(Error::from(serde_json::Error::custom(format!("Received `{unknown_type}` content type response that cannot be converted to `models::CacheConfigPart`")))),
14261        }
14262    } else {
14263        let content = resp.text().await?;
14264        let entity: Option<GatewayGetCacheError> = serde_json::from_str(&content).ok();
14265        Err(Error::ResponseError(ResponseContent { status, content, entity }))
14266    }
14267}
14268
14269pub async fn gateway_get_config(configuration: &configuration::Configuration, gateway_get_config: models::GatewayGetConfig) -> Result<models::AkeylessGatewayConfig, Error<GatewayGetConfigError>> {
14270    // add a prefix to parameters to efficiently prevent name collisions
14271    let p_body_gateway_get_config = gateway_get_config;
14272
14273    let uri_str = format!("{}/gateway-get-config", configuration.base_path);
14274    let mut req_builder = configuration.client.request(reqwest::Method::POST, &uri_str);
14275
14276    if let Some(ref user_agent) = configuration.user_agent {
14277        req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone());
14278    }
14279    req_builder = req_builder.json(&p_body_gateway_get_config);
14280
14281    let req = req_builder.build()?;
14282    let resp = configuration.client.execute(req).await?;
14283
14284    let status = resp.status();
14285    let content_type = resp
14286        .headers()
14287        .get("content-type")
14288        .and_then(|v| v.to_str().ok())
14289        .unwrap_or("application/octet-stream");
14290    let content_type = super::ContentType::from(content_type);
14291
14292    if !status.is_client_error() && !status.is_server_error() {
14293        let content = resp.text().await?;
14294        match content_type {
14295            ContentType::Json => serde_json::from_str(&content).map_err(Error::from),
14296            ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `models::AkeylessGatewayConfig`"))),
14297            ContentType::Unsupported(unknown_type) => return Err(Error::from(serde_json::Error::custom(format!("Received `{unknown_type}` content type response that cannot be converted to `models::AkeylessGatewayConfig`")))),
14298        }
14299    } else {
14300        let content = resp.text().await?;
14301        let entity: Option<GatewayGetConfigError> = serde_json::from_str(&content).ok();
14302        Err(Error::ResponseError(ResponseContent { status, content, entity }))
14303    }
14304}
14305
14306pub async fn gateway_get_defaults(configuration: &configuration::Configuration, gateway_get_defaults: models::GatewayGetDefaults) -> Result<models::GatewayGetDefaultsOutput, Error<GatewayGetDefaultsError>> {
14307    // add a prefix to parameters to efficiently prevent name collisions
14308    let p_body_gateway_get_defaults = gateway_get_defaults;
14309
14310    let uri_str = format!("{}/gateway-get-defaults", configuration.base_path);
14311    let mut req_builder = configuration.client.request(reqwest::Method::POST, &uri_str);
14312
14313    if let Some(ref user_agent) = configuration.user_agent {
14314        req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone());
14315    }
14316    req_builder = req_builder.json(&p_body_gateway_get_defaults);
14317
14318    let req = req_builder.build()?;
14319    let resp = configuration.client.execute(req).await?;
14320
14321    let status = resp.status();
14322    let content_type = resp
14323        .headers()
14324        .get("content-type")
14325        .and_then(|v| v.to_str().ok())
14326        .unwrap_or("application/octet-stream");
14327    let content_type = super::ContentType::from(content_type);
14328
14329    if !status.is_client_error() && !status.is_server_error() {
14330        let content = resp.text().await?;
14331        match content_type {
14332            ContentType::Json => serde_json::from_str(&content).map_err(Error::from),
14333            ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `models::GatewayGetDefaultsOutput`"))),
14334            ContentType::Unsupported(unknown_type) => return Err(Error::from(serde_json::Error::custom(format!("Received `{unknown_type}` content type response that cannot be converted to `models::GatewayGetDefaultsOutput`")))),
14335        }
14336    } else {
14337        let content = resp.text().await?;
14338        let entity: Option<GatewayGetDefaultsError> = serde_json::from_str(&content).ok();
14339        Err(Error::ResponseError(ResponseContent { status, content, entity }))
14340    }
14341}
14342
14343pub async fn gateway_get_k8_s_auth_config(configuration: &configuration::Configuration, gateway_get_k8_s_auth_config: models::GatewayGetK8SAuthConfig) -> Result<models::GatewayGetK8SAuthConfigOutput, Error<GatewayGetK8SAuthConfigError>> {
14344    // add a prefix to parameters to efficiently prevent name collisions
14345    let p_body_gateway_get_k8_s_auth_config = gateway_get_k8_s_auth_config;
14346
14347    let uri_str = format!("{}/gateway-get-k8s-auth-config", configuration.base_path);
14348    let mut req_builder = configuration.client.request(reqwest::Method::POST, &uri_str);
14349
14350    if let Some(ref user_agent) = configuration.user_agent {
14351        req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone());
14352    }
14353    req_builder = req_builder.json(&p_body_gateway_get_k8_s_auth_config);
14354
14355    let req = req_builder.build()?;
14356    let resp = configuration.client.execute(req).await?;
14357
14358    let status = resp.status();
14359    let content_type = resp
14360        .headers()
14361        .get("content-type")
14362        .and_then(|v| v.to_str().ok())
14363        .unwrap_or("application/octet-stream");
14364    let content_type = super::ContentType::from(content_type);
14365
14366    if !status.is_client_error() && !status.is_server_error() {
14367        let content = resp.text().await?;
14368        match content_type {
14369            ContentType::Json => serde_json::from_str(&content).map_err(Error::from),
14370            ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `models::GatewayGetK8SAuthConfigOutput`"))),
14371            ContentType::Unsupported(unknown_type) => return Err(Error::from(serde_json::Error::custom(format!("Received `{unknown_type}` content type response that cannot be converted to `models::GatewayGetK8SAuthConfigOutput`")))),
14372        }
14373    } else {
14374        let content = resp.text().await?;
14375        let entity: Option<GatewayGetK8SAuthConfigError> = serde_json::from_str(&content).ok();
14376        Err(Error::ResponseError(ResponseContent { status, content, entity }))
14377    }
14378}
14379
14380pub async fn gateway_get_ldap_auth_config(configuration: &configuration::Configuration, gateway_get_ldap_auth_config: models::GatewayGetLdapAuthConfig) -> Result<models::GatewayGetLdapAuthConfigOutput, Error<GatewayGetLdapAuthConfigError>> {
14381    // add a prefix to parameters to efficiently prevent name collisions
14382    let p_body_gateway_get_ldap_auth_config = gateway_get_ldap_auth_config;
14383
14384    let uri_str = format!("{}/gateway-get-ldap-auth-config", configuration.base_path);
14385    let mut req_builder = configuration.client.request(reqwest::Method::POST, &uri_str);
14386
14387    if let Some(ref user_agent) = configuration.user_agent {
14388        req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone());
14389    }
14390    req_builder = req_builder.json(&p_body_gateway_get_ldap_auth_config);
14391
14392    let req = req_builder.build()?;
14393    let resp = configuration.client.execute(req).await?;
14394
14395    let status = resp.status();
14396    let content_type = resp
14397        .headers()
14398        .get("content-type")
14399        .and_then(|v| v.to_str().ok())
14400        .unwrap_or("application/octet-stream");
14401    let content_type = super::ContentType::from(content_type);
14402
14403    if !status.is_client_error() && !status.is_server_error() {
14404        let content = resp.text().await?;
14405        match content_type {
14406            ContentType::Json => serde_json::from_str(&content).map_err(Error::from),
14407            ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `models::GatewayGetLdapAuthConfigOutput`"))),
14408            ContentType::Unsupported(unknown_type) => return Err(Error::from(serde_json::Error::custom(format!("Received `{unknown_type}` content type response that cannot be converted to `models::GatewayGetLdapAuthConfigOutput`")))),
14409        }
14410    } else {
14411        let content = resp.text().await?;
14412        let entity: Option<GatewayGetLdapAuthConfigError> = serde_json::from_str(&content).ok();
14413        Err(Error::ResponseError(ResponseContent { status, content, entity }))
14414    }
14415}
14416
14417pub async fn gateway_get_log_forwarding(configuration: &configuration::Configuration, gateway_get_log_forwarding: models::GatewayGetLogForwarding) -> Result<models::LogForwardingConfigPart, Error<GatewayGetLogForwardingError>> {
14418    // add a prefix to parameters to efficiently prevent name collisions
14419    let p_body_gateway_get_log_forwarding = gateway_get_log_forwarding;
14420
14421    let uri_str = format!("{}/gateway-get-log-forwarding", configuration.base_path);
14422    let mut req_builder = configuration.client.request(reqwest::Method::POST, &uri_str);
14423
14424    if let Some(ref user_agent) = configuration.user_agent {
14425        req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone());
14426    }
14427    req_builder = req_builder.json(&p_body_gateway_get_log_forwarding);
14428
14429    let req = req_builder.build()?;
14430    let resp = configuration.client.execute(req).await?;
14431
14432    let status = resp.status();
14433    let content_type = resp
14434        .headers()
14435        .get("content-type")
14436        .and_then(|v| v.to_str().ok())
14437        .unwrap_or("application/octet-stream");
14438    let content_type = super::ContentType::from(content_type);
14439
14440    if !status.is_client_error() && !status.is_server_error() {
14441        let content = resp.text().await?;
14442        match content_type {
14443            ContentType::Json => serde_json::from_str(&content).map_err(Error::from),
14444            ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `models::LogForwardingConfigPart`"))),
14445            ContentType::Unsupported(unknown_type) => return Err(Error::from(serde_json::Error::custom(format!("Received `{unknown_type}` content type response that cannot be converted to `models::LogForwardingConfigPart`")))),
14446        }
14447    } else {
14448        let content = resp.text().await?;
14449        let entity: Option<GatewayGetLogForwardingError> = serde_json::from_str(&content).ok();
14450        Err(Error::ResponseError(ResponseContent { status, content, entity }))
14451    }
14452}
14453
14454pub async fn gateway_get_migration(configuration: &configuration::Configuration, gateway_get_migration: models::GatewayGetMigration) -> Result<models::GatewayMigrationGetOutput, Error<GatewayGetMigrationError>> {
14455    // add a prefix to parameters to efficiently prevent name collisions
14456    let p_body_gateway_get_migration = gateway_get_migration;
14457
14458    let uri_str = format!("{}/gateway-get-migration", configuration.base_path);
14459    let mut req_builder = configuration.client.request(reqwest::Method::POST, &uri_str);
14460
14461    if let Some(ref user_agent) = configuration.user_agent {
14462        req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone());
14463    }
14464    req_builder = req_builder.json(&p_body_gateway_get_migration);
14465
14466    let req = req_builder.build()?;
14467    let resp = configuration.client.execute(req).await?;
14468
14469    let status = resp.status();
14470    let content_type = resp
14471        .headers()
14472        .get("content-type")
14473        .and_then(|v| v.to_str().ok())
14474        .unwrap_or("application/octet-stream");
14475    let content_type = super::ContentType::from(content_type);
14476
14477    if !status.is_client_error() && !status.is_server_error() {
14478        let content = resp.text().await?;
14479        match content_type {
14480            ContentType::Json => serde_json::from_str(&content).map_err(Error::from),
14481            ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `models::GatewayMigrationGetOutput`"))),
14482            ContentType::Unsupported(unknown_type) => return Err(Error::from(serde_json::Error::custom(format!("Received `{unknown_type}` content type response that cannot be converted to `models::GatewayMigrationGetOutput`")))),
14483        }
14484    } else {
14485        let content = resp.text().await?;
14486        let entity: Option<GatewayGetMigrationError> = serde_json::from_str(&content).ok();
14487        Err(Error::ResponseError(ResponseContent { status, content, entity }))
14488    }
14489}
14490
14491pub async fn gateway_get_producer(configuration: &configuration::Configuration, gateway_get_producer: models::GatewayGetProducer) -> Result<models::DsProducerDetails, Error<GatewayGetProducerError>> {
14492    // add a prefix to parameters to efficiently prevent name collisions
14493    let p_body_gateway_get_producer = gateway_get_producer;
14494
14495    let uri_str = format!("{}/gateway-get-producer", configuration.base_path);
14496    let mut req_builder = configuration.client.request(reqwest::Method::POST, &uri_str);
14497
14498    if let Some(ref user_agent) = configuration.user_agent {
14499        req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone());
14500    }
14501    req_builder = req_builder.json(&p_body_gateway_get_producer);
14502
14503    let req = req_builder.build()?;
14504    let resp = configuration.client.execute(req).await?;
14505
14506    let status = resp.status();
14507    let content_type = resp
14508        .headers()
14509        .get("content-type")
14510        .and_then(|v| v.to_str().ok())
14511        .unwrap_or("application/octet-stream");
14512    let content_type = super::ContentType::from(content_type);
14513
14514    if !status.is_client_error() && !status.is_server_error() {
14515        let content = resp.text().await?;
14516        match content_type {
14517            ContentType::Json => serde_json::from_str(&content).map_err(Error::from),
14518            ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `models::DsProducerDetails`"))),
14519            ContentType::Unsupported(unknown_type) => return Err(Error::from(serde_json::Error::custom(format!("Received `{unknown_type}` content type response that cannot be converted to `models::DsProducerDetails`")))),
14520        }
14521    } else {
14522        let content = resp.text().await?;
14523        let entity: Option<GatewayGetProducerError> = serde_json::from_str(&content).ok();
14524        Err(Error::ResponseError(ResponseContent { status, content, entity }))
14525    }
14526}
14527
14528pub async fn gateway_get_remote_access(configuration: &configuration::Configuration, gateway_get_remote_access: models::GatewayGetRemoteAccess) -> Result<models::BastionConfigReplyObj, Error<GatewayGetRemoteAccessError>> {
14529    // add a prefix to parameters to efficiently prevent name collisions
14530    let p_body_gateway_get_remote_access = gateway_get_remote_access;
14531
14532    let uri_str = format!("{}/gateway-get-remote-access", configuration.base_path);
14533    let mut req_builder = configuration.client.request(reqwest::Method::POST, &uri_str);
14534
14535    if let Some(ref user_agent) = configuration.user_agent {
14536        req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone());
14537    }
14538    req_builder = req_builder.json(&p_body_gateway_get_remote_access);
14539
14540    let req = req_builder.build()?;
14541    let resp = configuration.client.execute(req).await?;
14542
14543    let status = resp.status();
14544    let content_type = resp
14545        .headers()
14546        .get("content-type")
14547        .and_then(|v| v.to_str().ok())
14548        .unwrap_or("application/octet-stream");
14549    let content_type = super::ContentType::from(content_type);
14550
14551    if !status.is_client_error() && !status.is_server_error() {
14552        let content = resp.text().await?;
14553        match content_type {
14554            ContentType::Json => serde_json::from_str(&content).map_err(Error::from),
14555            ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `models::BastionConfigReplyObj`"))),
14556            ContentType::Unsupported(unknown_type) => return Err(Error::from(serde_json::Error::custom(format!("Received `{unknown_type}` content type response that cannot be converted to `models::BastionConfigReplyObj`")))),
14557        }
14558    } else {
14559        let content = resp.text().await?;
14560        let entity: Option<GatewayGetRemoteAccessError> = serde_json::from_str(&content).ok();
14561        Err(Error::ResponseError(ResponseContent { status, content, entity }))
14562    }
14563}
14564
14565pub async fn gateway_get_tmp_users(configuration: &configuration::Configuration, gateway_get_tmp_users: models::GatewayGetTmpUsers) -> Result<Vec<models::TmpUserData>, Error<GatewayGetTmpUsersError>> {
14566    // add a prefix to parameters to efficiently prevent name collisions
14567    let p_body_gateway_get_tmp_users = gateway_get_tmp_users;
14568
14569    let uri_str = format!("{}/gateway-get-producer-tmp-creds", configuration.base_path);
14570    let mut req_builder = configuration.client.request(reqwest::Method::POST, &uri_str);
14571
14572    if let Some(ref user_agent) = configuration.user_agent {
14573        req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone());
14574    }
14575    req_builder = req_builder.json(&p_body_gateway_get_tmp_users);
14576
14577    let req = req_builder.build()?;
14578    let resp = configuration.client.execute(req).await?;
14579
14580    let status = resp.status();
14581    let content_type = resp
14582        .headers()
14583        .get("content-type")
14584        .and_then(|v| v.to_str().ok())
14585        .unwrap_or("application/octet-stream");
14586    let content_type = super::ContentType::from(content_type);
14587
14588    if !status.is_client_error() && !status.is_server_error() {
14589        let content = resp.text().await?;
14590        match content_type {
14591            ContentType::Json => serde_json::from_str(&content).map_err(Error::from),
14592            ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `Vec&lt;models::TmpUserData&gt;`"))),
14593            ContentType::Unsupported(unknown_type) => return Err(Error::from(serde_json::Error::custom(format!("Received `{unknown_type}` content type response that cannot be converted to `Vec&lt;models::TmpUserData&gt;`")))),
14594        }
14595    } else {
14596        let content = resp.text().await?;
14597        let entity: Option<GatewayGetTmpUsersError> = serde_json::from_str(&content).ok();
14598        Err(Error::ResponseError(ResponseContent { status, content, entity }))
14599    }
14600}
14601
14602pub async fn gateway_list_customer_fragments(configuration: &configuration::Configuration, gateway_list_customer_fragments: models::GatewayListCustomerFragments) -> Result<std::collections::HashMap<String, serde_json::Value>, Error<GatewayListCustomerFragmentsError>> {
14603    // add a prefix to parameters to efficiently prevent name collisions
14604    let p_body_gateway_list_customer_fragments = gateway_list_customer_fragments;
14605
14606    let uri_str = format!("{}/gateway-list-customer-fragments", configuration.base_path);
14607    let mut req_builder = configuration.client.request(reqwest::Method::POST, &uri_str);
14608
14609    if let Some(ref user_agent) = configuration.user_agent {
14610        req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone());
14611    }
14612    req_builder = req_builder.json(&p_body_gateway_list_customer_fragments);
14613
14614    let req = req_builder.build()?;
14615    let resp = configuration.client.execute(req).await?;
14616
14617    let status = resp.status();
14618    let content_type = resp
14619        .headers()
14620        .get("content-type")
14621        .and_then(|v| v.to_str().ok())
14622        .unwrap_or("application/octet-stream");
14623    let content_type = super::ContentType::from(content_type);
14624
14625    if !status.is_client_error() && !status.is_server_error() {
14626        let content = resp.text().await?;
14627        match content_type {
14628            ContentType::Json => serde_json::from_str(&content).map_err(Error::from),
14629            ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `std::collections::HashMap&lt;String, serde_json::Value&gt;`"))),
14630            ContentType::Unsupported(unknown_type) => return Err(Error::from(serde_json::Error::custom(format!("Received `{unknown_type}` content type response that cannot be converted to `std::collections::HashMap&lt;String, serde_json::Value&gt;`")))),
14631        }
14632    } else {
14633        let content = resp.text().await?;
14634        let entity: Option<GatewayListCustomerFragmentsError> = serde_json::from_str(&content).ok();
14635        Err(Error::ResponseError(ResponseContent { status, content, entity }))
14636    }
14637}
14638
14639pub async fn gateway_list_migration(configuration: &configuration::Configuration, gateway_list_migration: models::GatewayListMigration) -> Result<models::GatewayMigrationListOutput, Error<GatewayListMigrationError>> {
14640    // add a prefix to parameters to efficiently prevent name collisions
14641    let p_body_gateway_list_migration = gateway_list_migration;
14642
14643    let uri_str = format!("{}/gateway-list-migration", configuration.base_path);
14644    let mut req_builder = configuration.client.request(reqwest::Method::POST, &uri_str);
14645
14646    if let Some(ref user_agent) = configuration.user_agent {
14647        req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone());
14648    }
14649    req_builder = req_builder.json(&p_body_gateway_list_migration);
14650
14651    let req = req_builder.build()?;
14652    let resp = configuration.client.execute(req).await?;
14653
14654    let status = resp.status();
14655    let content_type = resp
14656        .headers()
14657        .get("content-type")
14658        .and_then(|v| v.to_str().ok())
14659        .unwrap_or("application/octet-stream");
14660    let content_type = super::ContentType::from(content_type);
14661
14662    if !status.is_client_error() && !status.is_server_error() {
14663        let content = resp.text().await?;
14664        match content_type {
14665            ContentType::Json => serde_json::from_str(&content).map_err(Error::from),
14666            ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `models::GatewayMigrationListOutput`"))),
14667            ContentType::Unsupported(unknown_type) => return Err(Error::from(serde_json::Error::custom(format!("Received `{unknown_type}` content type response that cannot be converted to `models::GatewayMigrationListOutput`")))),
14668        }
14669    } else {
14670        let content = resp.text().await?;
14671        let entity: Option<GatewayListMigrationError> = serde_json::from_str(&content).ok();
14672        Err(Error::ResponseError(ResponseContent { status, content, entity }))
14673    }
14674}
14675
14676pub async fn gateway_list_producers(configuration: &configuration::Configuration, gateway_list_producers: models::GatewayListProducers) -> Result<models::GetProducersListReplyObj, Error<GatewayListProducersError>> {
14677    // add a prefix to parameters to efficiently prevent name collisions
14678    let p_body_gateway_list_producers = gateway_list_producers;
14679
14680    let uri_str = format!("{}/gateway-list-producers", configuration.base_path);
14681    let mut req_builder = configuration.client.request(reqwest::Method::POST, &uri_str);
14682
14683    if let Some(ref user_agent) = configuration.user_agent {
14684        req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone());
14685    }
14686    req_builder = req_builder.json(&p_body_gateway_list_producers);
14687
14688    let req = req_builder.build()?;
14689    let resp = configuration.client.execute(req).await?;
14690
14691    let status = resp.status();
14692    let content_type = resp
14693        .headers()
14694        .get("content-type")
14695        .and_then(|v| v.to_str().ok())
14696        .unwrap_or("application/octet-stream");
14697    let content_type = super::ContentType::from(content_type);
14698
14699    if !status.is_client_error() && !status.is_server_error() {
14700        let content = resp.text().await?;
14701        match content_type {
14702            ContentType::Json => serde_json::from_str(&content).map_err(Error::from),
14703            ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `models::GetProducersListReplyObj`"))),
14704            ContentType::Unsupported(unknown_type) => return Err(Error::from(serde_json::Error::custom(format!("Received `{unknown_type}` content type response that cannot be converted to `models::GetProducersListReplyObj`")))),
14705        }
14706    } else {
14707        let content = resp.text().await?;
14708        let entity: Option<GatewayListProducersError> = serde_json::from_str(&content).ok();
14709        Err(Error::ResponseError(ResponseContent { status, content, entity }))
14710    }
14711}
14712
14713pub async fn gateway_list_rotated_secrets(configuration: &configuration::Configuration, gateway_list_rotated_secrets: models::GatewayListRotatedSecrets) -> Result<models::ListItemsOutput, Error<GatewayListRotatedSecretsError>> {
14714    // add a prefix to parameters to efficiently prevent name collisions
14715    let p_body_gateway_list_rotated_secrets = gateway_list_rotated_secrets;
14716
14717    let uri_str = format!("{}/gateway-list-rotated-secrets", configuration.base_path);
14718    let mut req_builder = configuration.client.request(reqwest::Method::POST, &uri_str);
14719
14720    if let Some(ref user_agent) = configuration.user_agent {
14721        req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone());
14722    }
14723    req_builder = req_builder.json(&p_body_gateway_list_rotated_secrets);
14724
14725    let req = req_builder.build()?;
14726    let resp = configuration.client.execute(req).await?;
14727
14728    let status = resp.status();
14729    let content_type = resp
14730        .headers()
14731        .get("content-type")
14732        .and_then(|v| v.to_str().ok())
14733        .unwrap_or("application/octet-stream");
14734    let content_type = super::ContentType::from(content_type);
14735
14736    if !status.is_client_error() && !status.is_server_error() {
14737        let content = resp.text().await?;
14738        match content_type {
14739            ContentType::Json => serde_json::from_str(&content).map_err(Error::from),
14740            ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `models::ListItemsOutput`"))),
14741            ContentType::Unsupported(unknown_type) => return Err(Error::from(serde_json::Error::custom(format!("Received `{unknown_type}` content type response that cannot be converted to `models::ListItemsOutput`")))),
14742        }
14743    } else {
14744        let content = resp.text().await?;
14745        let entity: Option<GatewayListRotatedSecretsError> = serde_json::from_str(&content).ok();
14746        Err(Error::ResponseError(ResponseContent { status, content, entity }))
14747    }
14748}
14749
14750pub async fn gateway_migrate_personal_items(configuration: &configuration::Configuration, gateway_migrate_personal_items: Option<models::GatewayMigratePersonalItems>) -> Result<models::GatewayMigratePersonalItemsOutput, Error<GatewayMigratePersonalItemsError>> {
14751    // add a prefix to parameters to efficiently prevent name collisions
14752    let p_body_gateway_migrate_personal_items = gateway_migrate_personal_items;
14753
14754    let uri_str = format!("{}/gateway-migrate-personal-items", configuration.base_path);
14755    let mut req_builder = configuration.client.request(reqwest::Method::POST, &uri_str);
14756
14757    if let Some(ref user_agent) = configuration.user_agent {
14758        req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone());
14759    }
14760    req_builder = req_builder.json(&p_body_gateway_migrate_personal_items);
14761
14762    let req = req_builder.build()?;
14763    let resp = configuration.client.execute(req).await?;
14764
14765    let status = resp.status();
14766    let content_type = resp
14767        .headers()
14768        .get("content-type")
14769        .and_then(|v| v.to_str().ok())
14770        .unwrap_or("application/octet-stream");
14771    let content_type = super::ContentType::from(content_type);
14772
14773    if !status.is_client_error() && !status.is_server_error() {
14774        let content = resp.text().await?;
14775        match content_type {
14776            ContentType::Json => serde_json::from_str(&content).map_err(Error::from),
14777            ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `models::GatewayMigratePersonalItemsOutput`"))),
14778            ContentType::Unsupported(unknown_type) => return Err(Error::from(serde_json::Error::custom(format!("Received `{unknown_type}` content type response that cannot be converted to `models::GatewayMigratePersonalItemsOutput`")))),
14779        }
14780    } else {
14781        let content = resp.text().await?;
14782        let entity: Option<GatewayMigratePersonalItemsError> = serde_json::from_str(&content).ok();
14783        Err(Error::ResponseError(ResponseContent { status, content, entity }))
14784    }
14785}
14786
14787pub async fn gateway_revoke_tmp_users(configuration: &configuration::Configuration, gateway_revoke_tmp_users: models::GatewayRevokeTmpUsers) -> Result<(), Error<GatewayRevokeTmpUsersError>> {
14788    // add a prefix to parameters to efficiently prevent name collisions
14789    let p_body_gateway_revoke_tmp_users = gateway_revoke_tmp_users;
14790
14791    let uri_str = format!("{}/gateway-revoke-producer-tmp-creds", configuration.base_path);
14792    let mut req_builder = configuration.client.request(reqwest::Method::POST, &uri_str);
14793
14794    if let Some(ref user_agent) = configuration.user_agent {
14795        req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone());
14796    }
14797    req_builder = req_builder.json(&p_body_gateway_revoke_tmp_users);
14798
14799    let req = req_builder.build()?;
14800    let resp = configuration.client.execute(req).await?;
14801
14802    let status = resp.status();
14803
14804    if !status.is_client_error() && !status.is_server_error() {
14805        Ok(())
14806    } else {
14807        let content = resp.text().await?;
14808        let entity: Option<GatewayRevokeTmpUsersError> = serde_json::from_str(&content).ok();
14809        Err(Error::ResponseError(ResponseContent { status, content, entity }))
14810    }
14811}
14812
14813pub async fn gateway_start_producer(configuration: &configuration::Configuration, gateway_start_producer: models::GatewayStartProducer) -> Result<models::GatewayStartProducerOutput, Error<GatewayStartProducerError>> {
14814    // add a prefix to parameters to efficiently prevent name collisions
14815    let p_body_gateway_start_producer = gateway_start_producer;
14816
14817    let uri_str = format!("{}/gateway-start-producer", configuration.base_path);
14818    let mut req_builder = configuration.client.request(reqwest::Method::POST, &uri_str);
14819
14820    if let Some(ref user_agent) = configuration.user_agent {
14821        req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone());
14822    }
14823    req_builder = req_builder.json(&p_body_gateway_start_producer);
14824
14825    let req = req_builder.build()?;
14826    let resp = configuration.client.execute(req).await?;
14827
14828    let status = resp.status();
14829    let content_type = resp
14830        .headers()
14831        .get("content-type")
14832        .and_then(|v| v.to_str().ok())
14833        .unwrap_or("application/octet-stream");
14834    let content_type = super::ContentType::from(content_type);
14835
14836    if !status.is_client_error() && !status.is_server_error() {
14837        let content = resp.text().await?;
14838        match content_type {
14839            ContentType::Json => serde_json::from_str(&content).map_err(Error::from),
14840            ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `models::GatewayStartProducerOutput`"))),
14841            ContentType::Unsupported(unknown_type) => return Err(Error::from(serde_json::Error::custom(format!("Received `{unknown_type}` content type response that cannot be converted to `models::GatewayStartProducerOutput`")))),
14842        }
14843    } else {
14844        let content = resp.text().await?;
14845        let entity: Option<GatewayStartProducerError> = serde_json::from_str(&content).ok();
14846        Err(Error::ResponseError(ResponseContent { status, content, entity }))
14847    }
14848}
14849
14850pub async fn gateway_status_migration(configuration: &configuration::Configuration, gateway_status_migration: models::GatewayStatusMigration) -> Result<models::MigrationStatusReplyObj, Error<GatewayStatusMigrationError>> {
14851    // add a prefix to parameters to efficiently prevent name collisions
14852    let p_body_gateway_status_migration = gateway_status_migration;
14853
14854    let uri_str = format!("{}/gateway-migration-status", configuration.base_path);
14855    let mut req_builder = configuration.client.request(reqwest::Method::POST, &uri_str);
14856
14857    if let Some(ref user_agent) = configuration.user_agent {
14858        req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone());
14859    }
14860    req_builder = req_builder.json(&p_body_gateway_status_migration);
14861
14862    let req = req_builder.build()?;
14863    let resp = configuration.client.execute(req).await?;
14864
14865    let status = resp.status();
14866    let content_type = resp
14867        .headers()
14868        .get("content-type")
14869        .and_then(|v| v.to_str().ok())
14870        .unwrap_or("application/octet-stream");
14871    let content_type = super::ContentType::from(content_type);
14872
14873    if !status.is_client_error() && !status.is_server_error() {
14874        let content = resp.text().await?;
14875        match content_type {
14876            ContentType::Json => serde_json::from_str(&content).map_err(Error::from),
14877            ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `models::MigrationStatusReplyObj`"))),
14878            ContentType::Unsupported(unknown_type) => return Err(Error::from(serde_json::Error::custom(format!("Received `{unknown_type}` content type response that cannot be converted to `models::MigrationStatusReplyObj`")))),
14879        }
14880    } else {
14881        let content = resp.text().await?;
14882        let entity: Option<GatewayStatusMigrationError> = serde_json::from_str(&content).ok();
14883        Err(Error::ResponseError(ResponseContent { status, content, entity }))
14884    }
14885}
14886
14887pub async fn gateway_stop_producer(configuration: &configuration::Configuration, gateway_stop_producer: models::GatewayStopProducer) -> Result<models::GatewayStopProducerOutput, Error<GatewayStopProducerError>> {
14888    // add a prefix to parameters to efficiently prevent name collisions
14889    let p_body_gateway_stop_producer = gateway_stop_producer;
14890
14891    let uri_str = format!("{}/gateway-stop-producer", configuration.base_path);
14892    let mut req_builder = configuration.client.request(reqwest::Method::POST, &uri_str);
14893
14894    if let Some(ref user_agent) = configuration.user_agent {
14895        req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone());
14896    }
14897    req_builder = req_builder.json(&p_body_gateway_stop_producer);
14898
14899    let req = req_builder.build()?;
14900    let resp = configuration.client.execute(req).await?;
14901
14902    let status = resp.status();
14903    let content_type = resp
14904        .headers()
14905        .get("content-type")
14906        .and_then(|v| v.to_str().ok())
14907        .unwrap_or("application/octet-stream");
14908    let content_type = super::ContentType::from(content_type);
14909
14910    if !status.is_client_error() && !status.is_server_error() {
14911        let content = resp.text().await?;
14912        match content_type {
14913            ContentType::Json => serde_json::from_str(&content).map_err(Error::from),
14914            ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `models::GatewayStopProducerOutput`"))),
14915            ContentType::Unsupported(unknown_type) => return Err(Error::from(serde_json::Error::custom(format!("Received `{unknown_type}` content type response that cannot be converted to `models::GatewayStopProducerOutput`")))),
14916        }
14917    } else {
14918        let content = resp.text().await?;
14919        let entity: Option<GatewayStopProducerError> = serde_json::from_str(&content).ok();
14920        Err(Error::ResponseError(ResponseContent { status, content, entity }))
14921    }
14922}
14923
14924pub async fn gateway_sync_migration(configuration: &configuration::Configuration, gateway_sync_migration: models::GatewaySyncMigration) -> Result<models::GatewayMigrationSyncOutput, Error<GatewaySyncMigrationError>> {
14925    // add a prefix to parameters to efficiently prevent name collisions
14926    let p_body_gateway_sync_migration = gateway_sync_migration;
14927
14928    let uri_str = format!("{}/gateway-sync-migration", configuration.base_path);
14929    let mut req_builder = configuration.client.request(reqwest::Method::POST, &uri_str);
14930
14931    if let Some(ref user_agent) = configuration.user_agent {
14932        req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone());
14933    }
14934    req_builder = req_builder.json(&p_body_gateway_sync_migration);
14935
14936    let req = req_builder.build()?;
14937    let resp = configuration.client.execute(req).await?;
14938
14939    let status = resp.status();
14940    let content_type = resp
14941        .headers()
14942        .get("content-type")
14943        .and_then(|v| v.to_str().ok())
14944        .unwrap_or("application/octet-stream");
14945    let content_type = super::ContentType::from(content_type);
14946
14947    if !status.is_client_error() && !status.is_server_error() {
14948        let content = resp.text().await?;
14949        match content_type {
14950            ContentType::Json => serde_json::from_str(&content).map_err(Error::from),
14951            ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `models::GatewayMigrationSyncOutput`"))),
14952            ContentType::Unsupported(unknown_type) => return Err(Error::from(serde_json::Error::custom(format!("Received `{unknown_type}` content type response that cannot be converted to `models::GatewayMigrationSyncOutput`")))),
14953        }
14954    } else {
14955        let content = resp.text().await?;
14956        let entity: Option<GatewaySyncMigrationError> = serde_json::from_str(&content).ok();
14957        Err(Error::ResponseError(ResponseContent { status, content, entity }))
14958    }
14959}
14960
14961pub async fn gateway_update_allowed_access(configuration: &configuration::Configuration, gateway_update_allowed_access: models::GatewayUpdateAllowedAccess) -> Result<models::AllowedAccess, Error<GatewayUpdateAllowedAccessError>> {
14962    // add a prefix to parameters to efficiently prevent name collisions
14963    let p_body_gateway_update_allowed_access = gateway_update_allowed_access;
14964
14965    let uri_str = format!("{}/gateway-update-allowed-access", configuration.base_path);
14966    let mut req_builder = configuration.client.request(reqwest::Method::POST, &uri_str);
14967
14968    if let Some(ref user_agent) = configuration.user_agent {
14969        req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone());
14970    }
14971    req_builder = req_builder.json(&p_body_gateway_update_allowed_access);
14972
14973    let req = req_builder.build()?;
14974    let resp = configuration.client.execute(req).await?;
14975
14976    let status = resp.status();
14977    let content_type = resp
14978        .headers()
14979        .get("content-type")
14980        .and_then(|v| v.to_str().ok())
14981        .unwrap_or("application/octet-stream");
14982    let content_type = super::ContentType::from(content_type);
14983
14984    if !status.is_client_error() && !status.is_server_error() {
14985        let content = resp.text().await?;
14986        match content_type {
14987            ContentType::Json => serde_json::from_str(&content).map_err(Error::from),
14988            ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `models::AllowedAccess`"))),
14989            ContentType::Unsupported(unknown_type) => return Err(Error::from(serde_json::Error::custom(format!("Received `{unknown_type}` content type response that cannot be converted to `models::AllowedAccess`")))),
14990        }
14991    } else {
14992        let content = resp.text().await?;
14993        let entity: Option<GatewayUpdateAllowedAccessError> = serde_json::from_str(&content).ok();
14994        Err(Error::ResponseError(ResponseContent { status, content, entity }))
14995    }
14996}
14997
14998pub async fn gateway_update_cache(configuration: &configuration::Configuration, gateway_update_cache: models::GatewayUpdateCache) -> Result<models::GatewayUpdateOutput, Error<GatewayUpdateCacheError>> {
14999    // add a prefix to parameters to efficiently prevent name collisions
15000    let p_body_gateway_update_cache = gateway_update_cache;
15001
15002    let uri_str = format!("{}/gateway-update-cache", configuration.base_path);
15003    let mut req_builder = configuration.client.request(reqwest::Method::POST, &uri_str);
15004
15005    if let Some(ref user_agent) = configuration.user_agent {
15006        req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone());
15007    }
15008    req_builder = req_builder.json(&p_body_gateway_update_cache);
15009
15010    let req = req_builder.build()?;
15011    let resp = configuration.client.execute(req).await?;
15012
15013    let status = resp.status();
15014    let content_type = resp
15015        .headers()
15016        .get("content-type")
15017        .and_then(|v| v.to_str().ok())
15018        .unwrap_or("application/octet-stream");
15019    let content_type = super::ContentType::from(content_type);
15020
15021    if !status.is_client_error() && !status.is_server_error() {
15022        let content = resp.text().await?;
15023        match content_type {
15024            ContentType::Json => serde_json::from_str(&content).map_err(Error::from),
15025            ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `models::GatewayUpdateOutput`"))),
15026            ContentType::Unsupported(unknown_type) => return Err(Error::from(serde_json::Error::custom(format!("Received `{unknown_type}` content type response that cannot be converted to `models::GatewayUpdateOutput`")))),
15027        }
15028    } else {
15029        let content = resp.text().await?;
15030        let entity: Option<GatewayUpdateCacheError> = serde_json::from_str(&content).ok();
15031        Err(Error::ResponseError(ResponseContent { status, content, entity }))
15032    }
15033}
15034
15035pub async fn gateway_update_defaults(configuration: &configuration::Configuration, gateway_update_defaults: models::GatewayUpdateDefaults) -> Result<models::GatewayUpdateOutput, Error<GatewayUpdateDefaultsError>> {
15036    // add a prefix to parameters to efficiently prevent name collisions
15037    let p_body_gateway_update_defaults = gateway_update_defaults;
15038
15039    let uri_str = format!("{}/gateway-update-defaults", configuration.base_path);
15040    let mut req_builder = configuration.client.request(reqwest::Method::POST, &uri_str);
15041
15042    if let Some(ref user_agent) = configuration.user_agent {
15043        req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone());
15044    }
15045    req_builder = req_builder.json(&p_body_gateway_update_defaults);
15046
15047    let req = req_builder.build()?;
15048    let resp = configuration.client.execute(req).await?;
15049
15050    let status = resp.status();
15051    let content_type = resp
15052        .headers()
15053        .get("content-type")
15054        .and_then(|v| v.to_str().ok())
15055        .unwrap_or("application/octet-stream");
15056    let content_type = super::ContentType::from(content_type);
15057
15058    if !status.is_client_error() && !status.is_server_error() {
15059        let content = resp.text().await?;
15060        match content_type {
15061            ContentType::Json => serde_json::from_str(&content).map_err(Error::from),
15062            ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `models::GatewayUpdateOutput`"))),
15063            ContentType::Unsupported(unknown_type) => return Err(Error::from(serde_json::Error::custom(format!("Received `{unknown_type}` content type response that cannot be converted to `models::GatewayUpdateOutput`")))),
15064        }
15065    } else {
15066        let content = resp.text().await?;
15067        let entity: Option<GatewayUpdateDefaultsError> = serde_json::from_str(&content).ok();
15068        Err(Error::ResponseError(ResponseContent { status, content, entity }))
15069    }
15070}
15071
15072pub async fn gateway_update_item(configuration: &configuration::Configuration, gateway_update_item: models::GatewayUpdateItem) -> Result<models::GatewayUpdateItemOutput, Error<GatewayUpdateItemError>> {
15073    // add a prefix to parameters to efficiently prevent name collisions
15074    let p_body_gateway_update_item = gateway_update_item;
15075
15076    let uri_str = format!("{}/gateway-update-item", configuration.base_path);
15077    let mut req_builder = configuration.client.request(reqwest::Method::POST, &uri_str);
15078
15079    if let Some(ref user_agent) = configuration.user_agent {
15080        req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone());
15081    }
15082    req_builder = req_builder.json(&p_body_gateway_update_item);
15083
15084    let req = req_builder.build()?;
15085    let resp = configuration.client.execute(req).await?;
15086
15087    let status = resp.status();
15088    let content_type = resp
15089        .headers()
15090        .get("content-type")
15091        .and_then(|v| v.to_str().ok())
15092        .unwrap_or("application/octet-stream");
15093    let content_type = super::ContentType::from(content_type);
15094
15095    if !status.is_client_error() && !status.is_server_error() {
15096        let content = resp.text().await?;
15097        match content_type {
15098            ContentType::Json => serde_json::from_str(&content).map_err(Error::from),
15099            ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `models::GatewayUpdateItemOutput`"))),
15100            ContentType::Unsupported(unknown_type) => return Err(Error::from(serde_json::Error::custom(format!("Received `{unknown_type}` content type response that cannot be converted to `models::GatewayUpdateItemOutput`")))),
15101        }
15102    } else {
15103        let content = resp.text().await?;
15104        let entity: Option<GatewayUpdateItemError> = serde_json::from_str(&content).ok();
15105        Err(Error::ResponseError(ResponseContent { status, content, entity }))
15106    }
15107}
15108
15109pub async fn gateway_update_k8_s_auth_config(configuration: &configuration::Configuration, gateway_update_k8_s_auth_config: models::GatewayUpdateK8SAuthConfig) -> Result<models::GatewayUpdateK8SAuthConfigOutput, Error<GatewayUpdateK8SAuthConfigError>> {
15110    // add a prefix to parameters to efficiently prevent name collisions
15111    let p_body_gateway_update_k8_s_auth_config = gateway_update_k8_s_auth_config;
15112
15113    let uri_str = format!("{}/gateway-update-k8s-auth-config", configuration.base_path);
15114    let mut req_builder = configuration.client.request(reqwest::Method::POST, &uri_str);
15115
15116    if let Some(ref user_agent) = configuration.user_agent {
15117        req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone());
15118    }
15119    req_builder = req_builder.json(&p_body_gateway_update_k8_s_auth_config);
15120
15121    let req = req_builder.build()?;
15122    let resp = configuration.client.execute(req).await?;
15123
15124    let status = resp.status();
15125    let content_type = resp
15126        .headers()
15127        .get("content-type")
15128        .and_then(|v| v.to_str().ok())
15129        .unwrap_or("application/octet-stream");
15130    let content_type = super::ContentType::from(content_type);
15131
15132    if !status.is_client_error() && !status.is_server_error() {
15133        let content = resp.text().await?;
15134        match content_type {
15135            ContentType::Json => serde_json::from_str(&content).map_err(Error::from),
15136            ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `models::GatewayUpdateK8SAuthConfigOutput`"))),
15137            ContentType::Unsupported(unknown_type) => return Err(Error::from(serde_json::Error::custom(format!("Received `{unknown_type}` content type response that cannot be converted to `models::GatewayUpdateK8SAuthConfigOutput`")))),
15138        }
15139    } else {
15140        let content = resp.text().await?;
15141        let entity: Option<GatewayUpdateK8SAuthConfigError> = serde_json::from_str(&content).ok();
15142        Err(Error::ResponseError(ResponseContent { status, content, entity }))
15143    }
15144}
15145
15146pub async fn gateway_update_ldap_auth_config(configuration: &configuration::Configuration, gateway_update_ldap_auth_config: models::GatewayUpdateLdapAuthConfig) -> Result<models::GatewayUpdateLdapAuthConfigOutput, Error<GatewayUpdateLdapAuthConfigError>> {
15147    // add a prefix to parameters to efficiently prevent name collisions
15148    let p_body_gateway_update_ldap_auth_config = gateway_update_ldap_auth_config;
15149
15150    let uri_str = format!("{}/gateway-update-ldap-auth-config", configuration.base_path);
15151    let mut req_builder = configuration.client.request(reqwest::Method::POST, &uri_str);
15152
15153    if let Some(ref user_agent) = configuration.user_agent {
15154        req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone());
15155    }
15156    req_builder = req_builder.json(&p_body_gateway_update_ldap_auth_config);
15157
15158    let req = req_builder.build()?;
15159    let resp = configuration.client.execute(req).await?;
15160
15161    let status = resp.status();
15162    let content_type = resp
15163        .headers()
15164        .get("content-type")
15165        .and_then(|v| v.to_str().ok())
15166        .unwrap_or("application/octet-stream");
15167    let content_type = super::ContentType::from(content_type);
15168
15169    if !status.is_client_error() && !status.is_server_error() {
15170        let content = resp.text().await?;
15171        match content_type {
15172            ContentType::Json => serde_json::from_str(&content).map_err(Error::from),
15173            ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `models::GatewayUpdateLdapAuthConfigOutput`"))),
15174            ContentType::Unsupported(unknown_type) => return Err(Error::from(serde_json::Error::custom(format!("Received `{unknown_type}` content type response that cannot be converted to `models::GatewayUpdateLdapAuthConfigOutput`")))),
15175        }
15176    } else {
15177        let content = resp.text().await?;
15178        let entity: Option<GatewayUpdateLdapAuthConfigError> = serde_json::from_str(&content).ok();
15179        Err(Error::ResponseError(ResponseContent { status, content, entity }))
15180    }
15181}
15182
15183pub async fn gateway_update_log_forwarding_aws_s3(configuration: &configuration::Configuration, gateway_update_log_forwarding_aws_s3: models::GatewayUpdateLogForwardingAwsS3) -> Result<models::GatewayUpdateLogForwardingOutput, Error<GatewayUpdateLogForwardingAwsS3Error>> {
15184    // add a prefix to parameters to efficiently prevent name collisions
15185    let p_body_gateway_update_log_forwarding_aws_s3 = gateway_update_log_forwarding_aws_s3;
15186
15187    let uri_str = format!("{}/gateway-update-log-forwarding-aws-s3", configuration.base_path);
15188    let mut req_builder = configuration.client.request(reqwest::Method::POST, &uri_str);
15189
15190    if let Some(ref user_agent) = configuration.user_agent {
15191        req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone());
15192    }
15193    req_builder = req_builder.json(&p_body_gateway_update_log_forwarding_aws_s3);
15194
15195    let req = req_builder.build()?;
15196    let resp = configuration.client.execute(req).await?;
15197
15198    let status = resp.status();
15199    let content_type = resp
15200        .headers()
15201        .get("content-type")
15202        .and_then(|v| v.to_str().ok())
15203        .unwrap_or("application/octet-stream");
15204    let content_type = super::ContentType::from(content_type);
15205
15206    if !status.is_client_error() && !status.is_server_error() {
15207        let content = resp.text().await?;
15208        match content_type {
15209            ContentType::Json => serde_json::from_str(&content).map_err(Error::from),
15210            ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `models::GatewayUpdateLogForwardingOutput`"))),
15211            ContentType::Unsupported(unknown_type) => return Err(Error::from(serde_json::Error::custom(format!("Received `{unknown_type}` content type response that cannot be converted to `models::GatewayUpdateLogForwardingOutput`")))),
15212        }
15213    } else {
15214        let content = resp.text().await?;
15215        let entity: Option<GatewayUpdateLogForwardingAwsS3Error> = serde_json::from_str(&content).ok();
15216        Err(Error::ResponseError(ResponseContent { status, content, entity }))
15217    }
15218}
15219
15220pub async fn gateway_update_log_forwarding_azure_analytics(configuration: &configuration::Configuration, gateway_update_log_forwarding_azure_analytics: models::GatewayUpdateLogForwardingAzureAnalytics) -> Result<models::GatewayUpdateLogForwardingOutput, Error<GatewayUpdateLogForwardingAzureAnalyticsError>> {
15221    // add a prefix to parameters to efficiently prevent name collisions
15222    let p_body_gateway_update_log_forwarding_azure_analytics = gateway_update_log_forwarding_azure_analytics;
15223
15224    let uri_str = format!("{}/gateway-update-log-forwarding-azure-analytics", configuration.base_path);
15225    let mut req_builder = configuration.client.request(reqwest::Method::POST, &uri_str);
15226
15227    if let Some(ref user_agent) = configuration.user_agent {
15228        req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone());
15229    }
15230    req_builder = req_builder.json(&p_body_gateway_update_log_forwarding_azure_analytics);
15231
15232    let req = req_builder.build()?;
15233    let resp = configuration.client.execute(req).await?;
15234
15235    let status = resp.status();
15236    let content_type = resp
15237        .headers()
15238        .get("content-type")
15239        .and_then(|v| v.to_str().ok())
15240        .unwrap_or("application/octet-stream");
15241    let content_type = super::ContentType::from(content_type);
15242
15243    if !status.is_client_error() && !status.is_server_error() {
15244        let content = resp.text().await?;
15245        match content_type {
15246            ContentType::Json => serde_json::from_str(&content).map_err(Error::from),
15247            ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `models::GatewayUpdateLogForwardingOutput`"))),
15248            ContentType::Unsupported(unknown_type) => return Err(Error::from(serde_json::Error::custom(format!("Received `{unknown_type}` content type response that cannot be converted to `models::GatewayUpdateLogForwardingOutput`")))),
15249        }
15250    } else {
15251        let content = resp.text().await?;
15252        let entity: Option<GatewayUpdateLogForwardingAzureAnalyticsError> = serde_json::from_str(&content).ok();
15253        Err(Error::ResponseError(ResponseContent { status, content, entity }))
15254    }
15255}
15256
15257pub async fn gateway_update_log_forwarding_datadog(configuration: &configuration::Configuration, gateway_update_log_forwarding_datadog: models::GatewayUpdateLogForwardingDatadog) -> Result<models::GatewayUpdateLogForwardingOutput, Error<GatewayUpdateLogForwardingDatadogError>> {
15258    // add a prefix to parameters to efficiently prevent name collisions
15259    let p_body_gateway_update_log_forwarding_datadog = gateway_update_log_forwarding_datadog;
15260
15261    let uri_str = format!("{}/gateway-update-log-forwarding-datadog", configuration.base_path);
15262    let mut req_builder = configuration.client.request(reqwest::Method::POST, &uri_str);
15263
15264    if let Some(ref user_agent) = configuration.user_agent {
15265        req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone());
15266    }
15267    req_builder = req_builder.json(&p_body_gateway_update_log_forwarding_datadog);
15268
15269    let req = req_builder.build()?;
15270    let resp = configuration.client.execute(req).await?;
15271
15272    let status = resp.status();
15273    let content_type = resp
15274        .headers()
15275        .get("content-type")
15276        .and_then(|v| v.to_str().ok())
15277        .unwrap_or("application/octet-stream");
15278    let content_type = super::ContentType::from(content_type);
15279
15280    if !status.is_client_error() && !status.is_server_error() {
15281        let content = resp.text().await?;
15282        match content_type {
15283            ContentType::Json => serde_json::from_str(&content).map_err(Error::from),
15284            ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `models::GatewayUpdateLogForwardingOutput`"))),
15285            ContentType::Unsupported(unknown_type) => return Err(Error::from(serde_json::Error::custom(format!("Received `{unknown_type}` content type response that cannot be converted to `models::GatewayUpdateLogForwardingOutput`")))),
15286        }
15287    } else {
15288        let content = resp.text().await?;
15289        let entity: Option<GatewayUpdateLogForwardingDatadogError> = serde_json::from_str(&content).ok();
15290        Err(Error::ResponseError(ResponseContent { status, content, entity }))
15291    }
15292}
15293
15294pub async fn gateway_update_log_forwarding_elasticsearch(configuration: &configuration::Configuration, gateway_update_log_forwarding_elasticsearch: models::GatewayUpdateLogForwardingElasticsearch) -> Result<models::GatewayUpdateLogForwardingOutput, Error<GatewayUpdateLogForwardingElasticsearchError>> {
15295    // add a prefix to parameters to efficiently prevent name collisions
15296    let p_body_gateway_update_log_forwarding_elasticsearch = gateway_update_log_forwarding_elasticsearch;
15297
15298    let uri_str = format!("{}/gateway-update-log-forwarding-elasticsearch", configuration.base_path);
15299    let mut req_builder = configuration.client.request(reqwest::Method::POST, &uri_str);
15300
15301    if let Some(ref user_agent) = configuration.user_agent {
15302        req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone());
15303    }
15304    req_builder = req_builder.json(&p_body_gateway_update_log_forwarding_elasticsearch);
15305
15306    let req = req_builder.build()?;
15307    let resp = configuration.client.execute(req).await?;
15308
15309    let status = resp.status();
15310    let content_type = resp
15311        .headers()
15312        .get("content-type")
15313        .and_then(|v| v.to_str().ok())
15314        .unwrap_or("application/octet-stream");
15315    let content_type = super::ContentType::from(content_type);
15316
15317    if !status.is_client_error() && !status.is_server_error() {
15318        let content = resp.text().await?;
15319        match content_type {
15320            ContentType::Json => serde_json::from_str(&content).map_err(Error::from),
15321            ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `models::GatewayUpdateLogForwardingOutput`"))),
15322            ContentType::Unsupported(unknown_type) => return Err(Error::from(serde_json::Error::custom(format!("Received `{unknown_type}` content type response that cannot be converted to `models::GatewayUpdateLogForwardingOutput`")))),
15323        }
15324    } else {
15325        let content = resp.text().await?;
15326        let entity: Option<GatewayUpdateLogForwardingElasticsearchError> = serde_json::from_str(&content).ok();
15327        Err(Error::ResponseError(ResponseContent { status, content, entity }))
15328    }
15329}
15330
15331pub async fn gateway_update_log_forwarding_google_chronicle(configuration: &configuration::Configuration, gateway_update_log_forwarding_google_chronicle: models::GatewayUpdateLogForwardingGoogleChronicle) -> Result<models::GatewayUpdateLogForwardingOutput, Error<GatewayUpdateLogForwardingGoogleChronicleError>> {
15332    // add a prefix to parameters to efficiently prevent name collisions
15333    let p_body_gateway_update_log_forwarding_google_chronicle = gateway_update_log_forwarding_google_chronicle;
15334
15335    let uri_str = format!("{}/gateway-update-log-forwarding-google-chronicle", configuration.base_path);
15336    let mut req_builder = configuration.client.request(reqwest::Method::POST, &uri_str);
15337
15338    if let Some(ref user_agent) = configuration.user_agent {
15339        req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone());
15340    }
15341    req_builder = req_builder.json(&p_body_gateway_update_log_forwarding_google_chronicle);
15342
15343    let req = req_builder.build()?;
15344    let resp = configuration.client.execute(req).await?;
15345
15346    let status = resp.status();
15347    let content_type = resp
15348        .headers()
15349        .get("content-type")
15350        .and_then(|v| v.to_str().ok())
15351        .unwrap_or("application/octet-stream");
15352    let content_type = super::ContentType::from(content_type);
15353
15354    if !status.is_client_error() && !status.is_server_error() {
15355        let content = resp.text().await?;
15356        match content_type {
15357            ContentType::Json => serde_json::from_str(&content).map_err(Error::from),
15358            ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `models::GatewayUpdateLogForwardingOutput`"))),
15359            ContentType::Unsupported(unknown_type) => return Err(Error::from(serde_json::Error::custom(format!("Received `{unknown_type}` content type response that cannot be converted to `models::GatewayUpdateLogForwardingOutput`")))),
15360        }
15361    } else {
15362        let content = resp.text().await?;
15363        let entity: Option<GatewayUpdateLogForwardingGoogleChronicleError> = serde_json::from_str(&content).ok();
15364        Err(Error::ResponseError(ResponseContent { status, content, entity }))
15365    }
15366}
15367
15368pub async fn gateway_update_log_forwarding_logstash(configuration: &configuration::Configuration, gateway_update_log_forwarding_logstash: models::GatewayUpdateLogForwardingLogstash) -> Result<models::GatewayUpdateLogForwardingOutput, Error<GatewayUpdateLogForwardingLogstashError>> {
15369    // add a prefix to parameters to efficiently prevent name collisions
15370    let p_body_gateway_update_log_forwarding_logstash = gateway_update_log_forwarding_logstash;
15371
15372    let uri_str = format!("{}/gateway-update-log-forwarding-logstash", configuration.base_path);
15373    let mut req_builder = configuration.client.request(reqwest::Method::POST, &uri_str);
15374
15375    if let Some(ref user_agent) = configuration.user_agent {
15376        req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone());
15377    }
15378    req_builder = req_builder.json(&p_body_gateway_update_log_forwarding_logstash);
15379
15380    let req = req_builder.build()?;
15381    let resp = configuration.client.execute(req).await?;
15382
15383    let status = resp.status();
15384    let content_type = resp
15385        .headers()
15386        .get("content-type")
15387        .and_then(|v| v.to_str().ok())
15388        .unwrap_or("application/octet-stream");
15389    let content_type = super::ContentType::from(content_type);
15390
15391    if !status.is_client_error() && !status.is_server_error() {
15392        let content = resp.text().await?;
15393        match content_type {
15394            ContentType::Json => serde_json::from_str(&content).map_err(Error::from),
15395            ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `models::GatewayUpdateLogForwardingOutput`"))),
15396            ContentType::Unsupported(unknown_type) => return Err(Error::from(serde_json::Error::custom(format!("Received `{unknown_type}` content type response that cannot be converted to `models::GatewayUpdateLogForwardingOutput`")))),
15397        }
15398    } else {
15399        let content = resp.text().await?;
15400        let entity: Option<GatewayUpdateLogForwardingLogstashError> = serde_json::from_str(&content).ok();
15401        Err(Error::ResponseError(ResponseContent { status, content, entity }))
15402    }
15403}
15404
15405pub async fn gateway_update_log_forwarding_logz_io(configuration: &configuration::Configuration, gateway_update_log_forwarding_logz_io: models::GatewayUpdateLogForwardingLogzIo) -> Result<models::GatewayUpdateLogForwardingOutput, Error<GatewayUpdateLogForwardingLogzIoError>> {
15406    // add a prefix to parameters to efficiently prevent name collisions
15407    let p_body_gateway_update_log_forwarding_logz_io = gateway_update_log_forwarding_logz_io;
15408
15409    let uri_str = format!("{}/gateway-update-log-forwarding-logz-io", configuration.base_path);
15410    let mut req_builder = configuration.client.request(reqwest::Method::POST, &uri_str);
15411
15412    if let Some(ref user_agent) = configuration.user_agent {
15413        req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone());
15414    }
15415    req_builder = req_builder.json(&p_body_gateway_update_log_forwarding_logz_io);
15416
15417    let req = req_builder.build()?;
15418    let resp = configuration.client.execute(req).await?;
15419
15420    let status = resp.status();
15421    let content_type = resp
15422        .headers()
15423        .get("content-type")
15424        .and_then(|v| v.to_str().ok())
15425        .unwrap_or("application/octet-stream");
15426    let content_type = super::ContentType::from(content_type);
15427
15428    if !status.is_client_error() && !status.is_server_error() {
15429        let content = resp.text().await?;
15430        match content_type {
15431            ContentType::Json => serde_json::from_str(&content).map_err(Error::from),
15432            ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `models::GatewayUpdateLogForwardingOutput`"))),
15433            ContentType::Unsupported(unknown_type) => return Err(Error::from(serde_json::Error::custom(format!("Received `{unknown_type}` content type response that cannot be converted to `models::GatewayUpdateLogForwardingOutput`")))),
15434        }
15435    } else {
15436        let content = resp.text().await?;
15437        let entity: Option<GatewayUpdateLogForwardingLogzIoError> = serde_json::from_str(&content).ok();
15438        Err(Error::ResponseError(ResponseContent { status, content, entity }))
15439    }
15440}
15441
15442pub async fn gateway_update_log_forwarding_splunk(configuration: &configuration::Configuration, gateway_update_log_forwarding_splunk: models::GatewayUpdateLogForwardingSplunk) -> Result<models::GatewayUpdateLogForwardingOutput, Error<GatewayUpdateLogForwardingSplunkError>> {
15443    // add a prefix to parameters to efficiently prevent name collisions
15444    let p_body_gateway_update_log_forwarding_splunk = gateway_update_log_forwarding_splunk;
15445
15446    let uri_str = format!("{}/gateway-update-log-forwarding-splunk", configuration.base_path);
15447    let mut req_builder = configuration.client.request(reqwest::Method::POST, &uri_str);
15448
15449    if let Some(ref user_agent) = configuration.user_agent {
15450        req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone());
15451    }
15452    req_builder = req_builder.json(&p_body_gateway_update_log_forwarding_splunk);
15453
15454    let req = req_builder.build()?;
15455    let resp = configuration.client.execute(req).await?;
15456
15457    let status = resp.status();
15458    let content_type = resp
15459        .headers()
15460        .get("content-type")
15461        .and_then(|v| v.to_str().ok())
15462        .unwrap_or("application/octet-stream");
15463    let content_type = super::ContentType::from(content_type);
15464
15465    if !status.is_client_error() && !status.is_server_error() {
15466        let content = resp.text().await?;
15467        match content_type {
15468            ContentType::Json => serde_json::from_str(&content).map_err(Error::from),
15469            ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `models::GatewayUpdateLogForwardingOutput`"))),
15470            ContentType::Unsupported(unknown_type) => return Err(Error::from(serde_json::Error::custom(format!("Received `{unknown_type}` content type response that cannot be converted to `models::GatewayUpdateLogForwardingOutput`")))),
15471        }
15472    } else {
15473        let content = resp.text().await?;
15474        let entity: Option<GatewayUpdateLogForwardingSplunkError> = serde_json::from_str(&content).ok();
15475        Err(Error::ResponseError(ResponseContent { status, content, entity }))
15476    }
15477}
15478
15479pub async fn gateway_update_log_forwarding_stdout(configuration: &configuration::Configuration, gateway_update_log_forwarding_stdout: models::GatewayUpdateLogForwardingStdout) -> Result<models::GatewayUpdateLogForwardingOutput, Error<GatewayUpdateLogForwardingStdoutError>> {
15480    // add a prefix to parameters to efficiently prevent name collisions
15481    let p_body_gateway_update_log_forwarding_stdout = gateway_update_log_forwarding_stdout;
15482
15483    let uri_str = format!("{}/gateway-update-log-forwarding-stdout", configuration.base_path);
15484    let mut req_builder = configuration.client.request(reqwest::Method::POST, &uri_str);
15485
15486    if let Some(ref user_agent) = configuration.user_agent {
15487        req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone());
15488    }
15489    req_builder = req_builder.json(&p_body_gateway_update_log_forwarding_stdout);
15490
15491    let req = req_builder.build()?;
15492    let resp = configuration.client.execute(req).await?;
15493
15494    let status = resp.status();
15495    let content_type = resp
15496        .headers()
15497        .get("content-type")
15498        .and_then(|v| v.to_str().ok())
15499        .unwrap_or("application/octet-stream");
15500    let content_type = super::ContentType::from(content_type);
15501
15502    if !status.is_client_error() && !status.is_server_error() {
15503        let content = resp.text().await?;
15504        match content_type {
15505            ContentType::Json => serde_json::from_str(&content).map_err(Error::from),
15506            ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `models::GatewayUpdateLogForwardingOutput`"))),
15507            ContentType::Unsupported(unknown_type) => return Err(Error::from(serde_json::Error::custom(format!("Received `{unknown_type}` content type response that cannot be converted to `models::GatewayUpdateLogForwardingOutput`")))),
15508        }
15509    } else {
15510        let content = resp.text().await?;
15511        let entity: Option<GatewayUpdateLogForwardingStdoutError> = serde_json::from_str(&content).ok();
15512        Err(Error::ResponseError(ResponseContent { status, content, entity }))
15513    }
15514}
15515
15516pub async fn gateway_update_log_forwarding_sumologic(configuration: &configuration::Configuration, gateway_update_log_forwarding_sumologic: models::GatewayUpdateLogForwardingSumologic) -> Result<models::GatewayUpdateLogForwardingOutput, Error<GatewayUpdateLogForwardingSumologicError>> {
15517    // add a prefix to parameters to efficiently prevent name collisions
15518    let p_body_gateway_update_log_forwarding_sumologic = gateway_update_log_forwarding_sumologic;
15519
15520    let uri_str = format!("{}/gateway-update-log-forwarding-sumologic", configuration.base_path);
15521    let mut req_builder = configuration.client.request(reqwest::Method::POST, &uri_str);
15522
15523    if let Some(ref user_agent) = configuration.user_agent {
15524        req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone());
15525    }
15526    req_builder = req_builder.json(&p_body_gateway_update_log_forwarding_sumologic);
15527
15528    let req = req_builder.build()?;
15529    let resp = configuration.client.execute(req).await?;
15530
15531    let status = resp.status();
15532    let content_type = resp
15533        .headers()
15534        .get("content-type")
15535        .and_then(|v| v.to_str().ok())
15536        .unwrap_or("application/octet-stream");
15537    let content_type = super::ContentType::from(content_type);
15538
15539    if !status.is_client_error() && !status.is_server_error() {
15540        let content = resp.text().await?;
15541        match content_type {
15542            ContentType::Json => serde_json::from_str(&content).map_err(Error::from),
15543            ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `models::GatewayUpdateLogForwardingOutput`"))),
15544            ContentType::Unsupported(unknown_type) => return Err(Error::from(serde_json::Error::custom(format!("Received `{unknown_type}` content type response that cannot be converted to `models::GatewayUpdateLogForwardingOutput`")))),
15545        }
15546    } else {
15547        let content = resp.text().await?;
15548        let entity: Option<GatewayUpdateLogForwardingSumologicError> = serde_json::from_str(&content).ok();
15549        Err(Error::ResponseError(ResponseContent { status, content, entity }))
15550    }
15551}
15552
15553pub async fn gateway_update_log_forwarding_syslog(configuration: &configuration::Configuration, gateway_update_log_forwarding_syslog: models::GatewayUpdateLogForwardingSyslog) -> Result<models::GatewayUpdateLogForwardingOutput, Error<GatewayUpdateLogForwardingSyslogError>> {
15554    // add a prefix to parameters to efficiently prevent name collisions
15555    let p_body_gateway_update_log_forwarding_syslog = gateway_update_log_forwarding_syslog;
15556
15557    let uri_str = format!("{}/gateway-update-log-forwarding-syslog", configuration.base_path);
15558    let mut req_builder = configuration.client.request(reqwest::Method::POST, &uri_str);
15559
15560    if let Some(ref user_agent) = configuration.user_agent {
15561        req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone());
15562    }
15563    req_builder = req_builder.json(&p_body_gateway_update_log_forwarding_syslog);
15564
15565    let req = req_builder.build()?;
15566    let resp = configuration.client.execute(req).await?;
15567
15568    let status = resp.status();
15569    let content_type = resp
15570        .headers()
15571        .get("content-type")
15572        .and_then(|v| v.to_str().ok())
15573        .unwrap_or("application/octet-stream");
15574    let content_type = super::ContentType::from(content_type);
15575
15576    if !status.is_client_error() && !status.is_server_error() {
15577        let content = resp.text().await?;
15578        match content_type {
15579            ContentType::Json => serde_json::from_str(&content).map_err(Error::from),
15580            ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `models::GatewayUpdateLogForwardingOutput`"))),
15581            ContentType::Unsupported(unknown_type) => return Err(Error::from(serde_json::Error::custom(format!("Received `{unknown_type}` content type response that cannot be converted to `models::GatewayUpdateLogForwardingOutput`")))),
15582        }
15583    } else {
15584        let content = resp.text().await?;
15585        let entity: Option<GatewayUpdateLogForwardingSyslogError> = serde_json::from_str(&content).ok();
15586        Err(Error::ResponseError(ResponseContent { status, content, entity }))
15587    }
15588}
15589
15590pub async fn gateway_update_migration(configuration: &configuration::Configuration, gateway_update_migration: models::GatewayUpdateMigration) -> Result<models::GatewayMigrationUpdateOutput, Error<GatewayUpdateMigrationError>> {
15591    // add a prefix to parameters to efficiently prevent name collisions
15592    let p_body_gateway_update_migration = gateway_update_migration;
15593
15594    let uri_str = format!("{}/gateway-update-migration", configuration.base_path);
15595    let mut req_builder = configuration.client.request(reqwest::Method::POST, &uri_str);
15596
15597    if let Some(ref user_agent) = configuration.user_agent {
15598        req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone());
15599    }
15600    req_builder = req_builder.json(&p_body_gateway_update_migration);
15601
15602    let req = req_builder.build()?;
15603    let resp = configuration.client.execute(req).await?;
15604
15605    let status = resp.status();
15606    let content_type = resp
15607        .headers()
15608        .get("content-type")
15609        .and_then(|v| v.to_str().ok())
15610        .unwrap_or("application/octet-stream");
15611    let content_type = super::ContentType::from(content_type);
15612
15613    if !status.is_client_error() && !status.is_server_error() {
15614        let content = resp.text().await?;
15615        match content_type {
15616            ContentType::Json => serde_json::from_str(&content).map_err(Error::from),
15617            ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `models::GatewayMigrationUpdateOutput`"))),
15618            ContentType::Unsupported(unknown_type) => return Err(Error::from(serde_json::Error::custom(format!("Received `{unknown_type}` content type response that cannot be converted to `models::GatewayMigrationUpdateOutput`")))),
15619        }
15620    } else {
15621        let content = resp.text().await?;
15622        let entity: Option<GatewayUpdateMigrationError> = serde_json::from_str(&content).ok();
15623        Err(Error::ResponseError(ResponseContent { status, content, entity }))
15624    }
15625}
15626
15627pub async fn gateway_update_producer_artifactory(configuration: &configuration::Configuration, gateway_update_producer_artifactory: models::GatewayUpdateProducerArtifactory) -> Result<models::GatewayUpdateProducerArtifactoryOutput, Error<GatewayUpdateProducerArtifactoryError>> {
15628    // add a prefix to parameters to efficiently prevent name collisions
15629    let p_body_gateway_update_producer_artifactory = gateway_update_producer_artifactory;
15630
15631    let uri_str = format!("{}/gateway-update-producer-artifactory", configuration.base_path);
15632    let mut req_builder = configuration.client.request(reqwest::Method::POST, &uri_str);
15633
15634    if let Some(ref user_agent) = configuration.user_agent {
15635        req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone());
15636    }
15637    req_builder = req_builder.json(&p_body_gateway_update_producer_artifactory);
15638
15639    let req = req_builder.build()?;
15640    let resp = configuration.client.execute(req).await?;
15641
15642    let status = resp.status();
15643    let content_type = resp
15644        .headers()
15645        .get("content-type")
15646        .and_then(|v| v.to_str().ok())
15647        .unwrap_or("application/octet-stream");
15648    let content_type = super::ContentType::from(content_type);
15649
15650    if !status.is_client_error() && !status.is_server_error() {
15651        let content = resp.text().await?;
15652        match content_type {
15653            ContentType::Json => serde_json::from_str(&content).map_err(Error::from),
15654            ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `models::GatewayUpdateProducerArtifactoryOutput`"))),
15655            ContentType::Unsupported(unknown_type) => return Err(Error::from(serde_json::Error::custom(format!("Received `{unknown_type}` content type response that cannot be converted to `models::GatewayUpdateProducerArtifactoryOutput`")))),
15656        }
15657    } else {
15658        let content = resp.text().await?;
15659        let entity: Option<GatewayUpdateProducerArtifactoryError> = serde_json::from_str(&content).ok();
15660        Err(Error::ResponseError(ResponseContent { status, content, entity }))
15661    }
15662}
15663
15664pub async fn gateway_update_producer_aws(configuration: &configuration::Configuration, gateway_update_producer_aws: models::GatewayUpdateProducerAws) -> Result<models::GatewayUpdateProducerAwsOutput, Error<GatewayUpdateProducerAwsError>> {
15665    // add a prefix to parameters to efficiently prevent name collisions
15666    let p_body_gateway_update_producer_aws = gateway_update_producer_aws;
15667
15668    let uri_str = format!("{}/gateway-update-producer-aws", configuration.base_path);
15669    let mut req_builder = configuration.client.request(reqwest::Method::POST, &uri_str);
15670
15671    if let Some(ref user_agent) = configuration.user_agent {
15672        req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone());
15673    }
15674    req_builder = req_builder.json(&p_body_gateway_update_producer_aws);
15675
15676    let req = req_builder.build()?;
15677    let resp = configuration.client.execute(req).await?;
15678
15679    let status = resp.status();
15680    let content_type = resp
15681        .headers()
15682        .get("content-type")
15683        .and_then(|v| v.to_str().ok())
15684        .unwrap_or("application/octet-stream");
15685    let content_type = super::ContentType::from(content_type);
15686
15687    if !status.is_client_error() && !status.is_server_error() {
15688        let content = resp.text().await?;
15689        match content_type {
15690            ContentType::Json => serde_json::from_str(&content).map_err(Error::from),
15691            ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `models::GatewayUpdateProducerAwsOutput`"))),
15692            ContentType::Unsupported(unknown_type) => return Err(Error::from(serde_json::Error::custom(format!("Received `{unknown_type}` content type response that cannot be converted to `models::GatewayUpdateProducerAwsOutput`")))),
15693        }
15694    } else {
15695        let content = resp.text().await?;
15696        let entity: Option<GatewayUpdateProducerAwsError> = serde_json::from_str(&content).ok();
15697        Err(Error::ResponseError(ResponseContent { status, content, entity }))
15698    }
15699}
15700
15701pub async fn gateway_update_producer_azure(configuration: &configuration::Configuration, gateway_update_producer_azure: models::GatewayUpdateProducerAzure) -> Result<models::GatewayUpdateProducerAzureOutput, Error<GatewayUpdateProducerAzureError>> {
15702    // add a prefix to parameters to efficiently prevent name collisions
15703    let p_body_gateway_update_producer_azure = gateway_update_producer_azure;
15704
15705    let uri_str = format!("{}/gateway-update-producer-azure", configuration.base_path);
15706    let mut req_builder = configuration.client.request(reqwest::Method::POST, &uri_str);
15707
15708    if let Some(ref user_agent) = configuration.user_agent {
15709        req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone());
15710    }
15711    req_builder = req_builder.json(&p_body_gateway_update_producer_azure);
15712
15713    let req = req_builder.build()?;
15714    let resp = configuration.client.execute(req).await?;
15715
15716    let status = resp.status();
15717    let content_type = resp
15718        .headers()
15719        .get("content-type")
15720        .and_then(|v| v.to_str().ok())
15721        .unwrap_or("application/octet-stream");
15722    let content_type = super::ContentType::from(content_type);
15723
15724    if !status.is_client_error() && !status.is_server_error() {
15725        let content = resp.text().await?;
15726        match content_type {
15727            ContentType::Json => serde_json::from_str(&content).map_err(Error::from),
15728            ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `models::GatewayUpdateProducerAzureOutput`"))),
15729            ContentType::Unsupported(unknown_type) => return Err(Error::from(serde_json::Error::custom(format!("Received `{unknown_type}` content type response that cannot be converted to `models::GatewayUpdateProducerAzureOutput`")))),
15730        }
15731    } else {
15732        let content = resp.text().await?;
15733        let entity: Option<GatewayUpdateProducerAzureError> = serde_json::from_str(&content).ok();
15734        Err(Error::ResponseError(ResponseContent { status, content, entity }))
15735    }
15736}
15737
15738pub async fn gateway_update_producer_cassandra(configuration: &configuration::Configuration, gateway_update_producer_cassandra: models::GatewayUpdateProducerCassandra) -> Result<models::GatewayUpdateProducerCassandraOutput, Error<GatewayUpdateProducerCassandraError>> {
15739    // add a prefix to parameters to efficiently prevent name collisions
15740    let p_body_gateway_update_producer_cassandra = gateway_update_producer_cassandra;
15741
15742    let uri_str = format!("{}/gateway-update-producer-cassandra", configuration.base_path);
15743    let mut req_builder = configuration.client.request(reqwest::Method::POST, &uri_str);
15744
15745    if let Some(ref user_agent) = configuration.user_agent {
15746        req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone());
15747    }
15748    req_builder = req_builder.json(&p_body_gateway_update_producer_cassandra);
15749
15750    let req = req_builder.build()?;
15751    let resp = configuration.client.execute(req).await?;
15752
15753    let status = resp.status();
15754    let content_type = resp
15755        .headers()
15756        .get("content-type")
15757        .and_then(|v| v.to_str().ok())
15758        .unwrap_or("application/octet-stream");
15759    let content_type = super::ContentType::from(content_type);
15760
15761    if !status.is_client_error() && !status.is_server_error() {
15762        let content = resp.text().await?;
15763        match content_type {
15764            ContentType::Json => serde_json::from_str(&content).map_err(Error::from),
15765            ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `models::GatewayUpdateProducerCassandraOutput`"))),
15766            ContentType::Unsupported(unknown_type) => return Err(Error::from(serde_json::Error::custom(format!("Received `{unknown_type}` content type response that cannot be converted to `models::GatewayUpdateProducerCassandraOutput`")))),
15767        }
15768    } else {
15769        let content = resp.text().await?;
15770        let entity: Option<GatewayUpdateProducerCassandraError> = serde_json::from_str(&content).ok();
15771        Err(Error::ResponseError(ResponseContent { status, content, entity }))
15772    }
15773}
15774
15775pub async fn gateway_update_producer_chef(configuration: &configuration::Configuration, gateway_update_producer_chef: models::GatewayUpdateProducerChef) -> Result<models::GatewayUpdateProducerChefOutput, Error<GatewayUpdateProducerChefError>> {
15776    // add a prefix to parameters to efficiently prevent name collisions
15777    let p_body_gateway_update_producer_chef = gateway_update_producer_chef;
15778
15779    let uri_str = format!("{}/gateway-update-producer-chef", configuration.base_path);
15780    let mut req_builder = configuration.client.request(reqwest::Method::POST, &uri_str);
15781
15782    if let Some(ref user_agent) = configuration.user_agent {
15783        req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone());
15784    }
15785    req_builder = req_builder.json(&p_body_gateway_update_producer_chef);
15786
15787    let req = req_builder.build()?;
15788    let resp = configuration.client.execute(req).await?;
15789
15790    let status = resp.status();
15791    let content_type = resp
15792        .headers()
15793        .get("content-type")
15794        .and_then(|v| v.to_str().ok())
15795        .unwrap_or("application/octet-stream");
15796    let content_type = super::ContentType::from(content_type);
15797
15798    if !status.is_client_error() && !status.is_server_error() {
15799        let content = resp.text().await?;
15800        match content_type {
15801            ContentType::Json => serde_json::from_str(&content).map_err(Error::from),
15802            ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `models::GatewayUpdateProducerChefOutput`"))),
15803            ContentType::Unsupported(unknown_type) => return Err(Error::from(serde_json::Error::custom(format!("Received `{unknown_type}` content type response that cannot be converted to `models::GatewayUpdateProducerChefOutput`")))),
15804        }
15805    } else {
15806        let content = resp.text().await?;
15807        let entity: Option<GatewayUpdateProducerChefError> = serde_json::from_str(&content).ok();
15808        Err(Error::ResponseError(ResponseContent { status, content, entity }))
15809    }
15810}
15811
15812pub async fn gateway_update_producer_custom(configuration: &configuration::Configuration, gateway_update_producer_custom: Option<models::GatewayUpdateProducerCustom>) -> Result<models::GatewayUpdateProducerCustomOutput, Error<GatewayUpdateProducerCustomError>> {
15813    // add a prefix to parameters to efficiently prevent name collisions
15814    let p_body_gateway_update_producer_custom = gateway_update_producer_custom;
15815
15816    let uri_str = format!("{}/gateway-update-producer-custom", configuration.base_path);
15817    let mut req_builder = configuration.client.request(reqwest::Method::POST, &uri_str);
15818
15819    if let Some(ref user_agent) = configuration.user_agent {
15820        req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone());
15821    }
15822    req_builder = req_builder.json(&p_body_gateway_update_producer_custom);
15823
15824    let req = req_builder.build()?;
15825    let resp = configuration.client.execute(req).await?;
15826
15827    let status = resp.status();
15828    let content_type = resp
15829        .headers()
15830        .get("content-type")
15831        .and_then(|v| v.to_str().ok())
15832        .unwrap_or("application/octet-stream");
15833    let content_type = super::ContentType::from(content_type);
15834
15835    if !status.is_client_error() && !status.is_server_error() {
15836        let content = resp.text().await?;
15837        match content_type {
15838            ContentType::Json => serde_json::from_str(&content).map_err(Error::from),
15839            ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `models::GatewayUpdateProducerCustomOutput`"))),
15840            ContentType::Unsupported(unknown_type) => return Err(Error::from(serde_json::Error::custom(format!("Received `{unknown_type}` content type response that cannot be converted to `models::GatewayUpdateProducerCustomOutput`")))),
15841        }
15842    } else {
15843        let content = resp.text().await?;
15844        let entity: Option<GatewayUpdateProducerCustomError> = serde_json::from_str(&content).ok();
15845        Err(Error::ResponseError(ResponseContent { status, content, entity }))
15846    }
15847}
15848
15849pub async fn gateway_update_producer_dockerhub(configuration: &configuration::Configuration, gateway_update_producer_dockerhub: models::GatewayUpdateProducerDockerhub) -> Result<models::GatewayUpdateProducerDockerhubOutput, Error<GatewayUpdateProducerDockerhubError>> {
15850    // add a prefix to parameters to efficiently prevent name collisions
15851    let p_body_gateway_update_producer_dockerhub = gateway_update_producer_dockerhub;
15852
15853    let uri_str = format!("{}/gateway-update-producer-dockerhub", configuration.base_path);
15854    let mut req_builder = configuration.client.request(reqwest::Method::POST, &uri_str);
15855
15856    if let Some(ref user_agent) = configuration.user_agent {
15857        req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone());
15858    }
15859    req_builder = req_builder.json(&p_body_gateway_update_producer_dockerhub);
15860
15861    let req = req_builder.build()?;
15862    let resp = configuration.client.execute(req).await?;
15863
15864    let status = resp.status();
15865    let content_type = resp
15866        .headers()
15867        .get("content-type")
15868        .and_then(|v| v.to_str().ok())
15869        .unwrap_or("application/octet-stream");
15870    let content_type = super::ContentType::from(content_type);
15871
15872    if !status.is_client_error() && !status.is_server_error() {
15873        let content = resp.text().await?;
15874        match content_type {
15875            ContentType::Json => serde_json::from_str(&content).map_err(Error::from),
15876            ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `models::GatewayUpdateProducerDockerhubOutput`"))),
15877            ContentType::Unsupported(unknown_type) => return Err(Error::from(serde_json::Error::custom(format!("Received `{unknown_type}` content type response that cannot be converted to `models::GatewayUpdateProducerDockerhubOutput`")))),
15878        }
15879    } else {
15880        let content = resp.text().await?;
15881        let entity: Option<GatewayUpdateProducerDockerhubError> = serde_json::from_str(&content).ok();
15882        Err(Error::ResponseError(ResponseContent { status, content, entity }))
15883    }
15884}
15885
15886pub async fn gateway_update_producer_eks(configuration: &configuration::Configuration, gateway_update_producer_eks: models::GatewayUpdateProducerEks) -> Result<models::GatewayUpdateProducerEksOutput, Error<GatewayUpdateProducerEksError>> {
15887    // add a prefix to parameters to efficiently prevent name collisions
15888    let p_body_gateway_update_producer_eks = gateway_update_producer_eks;
15889
15890    let uri_str = format!("{}/gateway-update-producer-eks", configuration.base_path);
15891    let mut req_builder = configuration.client.request(reqwest::Method::POST, &uri_str);
15892
15893    if let Some(ref user_agent) = configuration.user_agent {
15894        req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone());
15895    }
15896    req_builder = req_builder.json(&p_body_gateway_update_producer_eks);
15897
15898    let req = req_builder.build()?;
15899    let resp = configuration.client.execute(req).await?;
15900
15901    let status = resp.status();
15902    let content_type = resp
15903        .headers()
15904        .get("content-type")
15905        .and_then(|v| v.to_str().ok())
15906        .unwrap_or("application/octet-stream");
15907    let content_type = super::ContentType::from(content_type);
15908
15909    if !status.is_client_error() && !status.is_server_error() {
15910        let content = resp.text().await?;
15911        match content_type {
15912            ContentType::Json => serde_json::from_str(&content).map_err(Error::from),
15913            ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `models::GatewayUpdateProducerEksOutput`"))),
15914            ContentType::Unsupported(unknown_type) => return Err(Error::from(serde_json::Error::custom(format!("Received `{unknown_type}` content type response that cannot be converted to `models::GatewayUpdateProducerEksOutput`")))),
15915        }
15916    } else {
15917        let content = resp.text().await?;
15918        let entity: Option<GatewayUpdateProducerEksError> = serde_json::from_str(&content).ok();
15919        Err(Error::ResponseError(ResponseContent { status, content, entity }))
15920    }
15921}
15922
15923pub async fn gateway_update_producer_gcp(configuration: &configuration::Configuration, gateway_update_producer_gcp: models::GatewayUpdateProducerGcp) -> Result<models::GatewayUpdateProducerGcpOutput, Error<GatewayUpdateProducerGcpError>> {
15924    // add a prefix to parameters to efficiently prevent name collisions
15925    let p_body_gateway_update_producer_gcp = gateway_update_producer_gcp;
15926
15927    let uri_str = format!("{}/gateway-update-producer-gcp", configuration.base_path);
15928    let mut req_builder = configuration.client.request(reqwest::Method::POST, &uri_str);
15929
15930    if let Some(ref user_agent) = configuration.user_agent {
15931        req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone());
15932    }
15933    req_builder = req_builder.json(&p_body_gateway_update_producer_gcp);
15934
15935    let req = req_builder.build()?;
15936    let resp = configuration.client.execute(req).await?;
15937
15938    let status = resp.status();
15939    let content_type = resp
15940        .headers()
15941        .get("content-type")
15942        .and_then(|v| v.to_str().ok())
15943        .unwrap_or("application/octet-stream");
15944    let content_type = super::ContentType::from(content_type);
15945
15946    if !status.is_client_error() && !status.is_server_error() {
15947        let content = resp.text().await?;
15948        match content_type {
15949            ContentType::Json => serde_json::from_str(&content).map_err(Error::from),
15950            ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `models::GatewayUpdateProducerGcpOutput`"))),
15951            ContentType::Unsupported(unknown_type) => return Err(Error::from(serde_json::Error::custom(format!("Received `{unknown_type}` content type response that cannot be converted to `models::GatewayUpdateProducerGcpOutput`")))),
15952        }
15953    } else {
15954        let content = resp.text().await?;
15955        let entity: Option<GatewayUpdateProducerGcpError> = serde_json::from_str(&content).ok();
15956        Err(Error::ResponseError(ResponseContent { status, content, entity }))
15957    }
15958}
15959
15960pub async fn gateway_update_producer_github(configuration: &configuration::Configuration, gateway_update_producer_github: models::GatewayUpdateProducerGithub) -> Result<models::GatewayUpdateProducerGithubOutput, Error<GatewayUpdateProducerGithubError>> {
15961    // add a prefix to parameters to efficiently prevent name collisions
15962    let p_body_gateway_update_producer_github = gateway_update_producer_github;
15963
15964    let uri_str = format!("{}/gateway-update-producer-github", configuration.base_path);
15965    let mut req_builder = configuration.client.request(reqwest::Method::POST, &uri_str);
15966
15967    if let Some(ref user_agent) = configuration.user_agent {
15968        req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone());
15969    }
15970    req_builder = req_builder.json(&p_body_gateway_update_producer_github);
15971
15972    let req = req_builder.build()?;
15973    let resp = configuration.client.execute(req).await?;
15974
15975    let status = resp.status();
15976    let content_type = resp
15977        .headers()
15978        .get("content-type")
15979        .and_then(|v| v.to_str().ok())
15980        .unwrap_or("application/octet-stream");
15981    let content_type = super::ContentType::from(content_type);
15982
15983    if !status.is_client_error() && !status.is_server_error() {
15984        let content = resp.text().await?;
15985        match content_type {
15986            ContentType::Json => serde_json::from_str(&content).map_err(Error::from),
15987            ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `models::GatewayUpdateProducerGithubOutput`"))),
15988            ContentType::Unsupported(unknown_type) => return Err(Error::from(serde_json::Error::custom(format!("Received `{unknown_type}` content type response that cannot be converted to `models::GatewayUpdateProducerGithubOutput`")))),
15989        }
15990    } else {
15991        let content = resp.text().await?;
15992        let entity: Option<GatewayUpdateProducerGithubError> = serde_json::from_str(&content).ok();
15993        Err(Error::ResponseError(ResponseContent { status, content, entity }))
15994    }
15995}
15996
15997pub async fn gateway_update_producer_gke(configuration: &configuration::Configuration, gateway_update_producer_gke: models::GatewayUpdateProducerGke) -> Result<models::GatewayUpdateProducerGkeOutput, Error<GatewayUpdateProducerGkeError>> {
15998    // add a prefix to parameters to efficiently prevent name collisions
15999    let p_body_gateway_update_producer_gke = gateway_update_producer_gke;
16000
16001    let uri_str = format!("{}/gateway-update-producer-gke", configuration.base_path);
16002    let mut req_builder = configuration.client.request(reqwest::Method::POST, &uri_str);
16003
16004    if let Some(ref user_agent) = configuration.user_agent {
16005        req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone());
16006    }
16007    req_builder = req_builder.json(&p_body_gateway_update_producer_gke);
16008
16009    let req = req_builder.build()?;
16010    let resp = configuration.client.execute(req).await?;
16011
16012    let status = resp.status();
16013    let content_type = resp
16014        .headers()
16015        .get("content-type")
16016        .and_then(|v| v.to_str().ok())
16017        .unwrap_or("application/octet-stream");
16018    let content_type = super::ContentType::from(content_type);
16019
16020    if !status.is_client_error() && !status.is_server_error() {
16021        let content = resp.text().await?;
16022        match content_type {
16023            ContentType::Json => serde_json::from_str(&content).map_err(Error::from),
16024            ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `models::GatewayUpdateProducerGkeOutput`"))),
16025            ContentType::Unsupported(unknown_type) => return Err(Error::from(serde_json::Error::custom(format!("Received `{unknown_type}` content type response that cannot be converted to `models::GatewayUpdateProducerGkeOutput`")))),
16026        }
16027    } else {
16028        let content = resp.text().await?;
16029        let entity: Option<GatewayUpdateProducerGkeError> = serde_json::from_str(&content).ok();
16030        Err(Error::ResponseError(ResponseContent { status, content, entity }))
16031    }
16032}
16033
16034pub async fn gateway_update_producer_hana_db(configuration: &configuration::Configuration, gateway_update_producer_hana_db: models::GatewayUpdateProducerHanaDb) -> Result<models::GatewayUpdateProducerHanaDbOutput, Error<GatewayUpdateProducerHanaDbError>> {
16035    // add a prefix to parameters to efficiently prevent name collisions
16036    let p_body_gateway_update_producer_hana_db = gateway_update_producer_hana_db;
16037
16038    let uri_str = format!("{}/gateway-update-producer-hana", configuration.base_path);
16039    let mut req_builder = configuration.client.request(reqwest::Method::POST, &uri_str);
16040
16041    if let Some(ref user_agent) = configuration.user_agent {
16042        req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone());
16043    }
16044    req_builder = req_builder.json(&p_body_gateway_update_producer_hana_db);
16045
16046    let req = req_builder.build()?;
16047    let resp = configuration.client.execute(req).await?;
16048
16049    let status = resp.status();
16050    let content_type = resp
16051        .headers()
16052        .get("content-type")
16053        .and_then(|v| v.to_str().ok())
16054        .unwrap_or("application/octet-stream");
16055    let content_type = super::ContentType::from(content_type);
16056
16057    if !status.is_client_error() && !status.is_server_error() {
16058        let content = resp.text().await?;
16059        match content_type {
16060            ContentType::Json => serde_json::from_str(&content).map_err(Error::from),
16061            ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `models::GatewayUpdateProducerHanaDbOutput`"))),
16062            ContentType::Unsupported(unknown_type) => return Err(Error::from(serde_json::Error::custom(format!("Received `{unknown_type}` content type response that cannot be converted to `models::GatewayUpdateProducerHanaDbOutput`")))),
16063        }
16064    } else {
16065        let content = resp.text().await?;
16066        let entity: Option<GatewayUpdateProducerHanaDbError> = serde_json::from_str(&content).ok();
16067        Err(Error::ResponseError(ResponseContent { status, content, entity }))
16068    }
16069}
16070
16071pub async fn gateway_update_producer_ldap(configuration: &configuration::Configuration, gateway_update_producer_ldap: models::GatewayUpdateProducerLdap) -> Result<models::GatewayUpdateProducerLdapOutput, Error<GatewayUpdateProducerLdapError>> {
16072    // add a prefix to parameters to efficiently prevent name collisions
16073    let p_body_gateway_update_producer_ldap = gateway_update_producer_ldap;
16074
16075    let uri_str = format!("{}/gateway-update-producer-ldap", configuration.base_path);
16076    let mut req_builder = configuration.client.request(reqwest::Method::POST, &uri_str);
16077
16078    if let Some(ref user_agent) = configuration.user_agent {
16079        req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone());
16080    }
16081    req_builder = req_builder.json(&p_body_gateway_update_producer_ldap);
16082
16083    let req = req_builder.build()?;
16084    let resp = configuration.client.execute(req).await?;
16085
16086    let status = resp.status();
16087    let content_type = resp
16088        .headers()
16089        .get("content-type")
16090        .and_then(|v| v.to_str().ok())
16091        .unwrap_or("application/octet-stream");
16092    let content_type = super::ContentType::from(content_type);
16093
16094    if !status.is_client_error() && !status.is_server_error() {
16095        let content = resp.text().await?;
16096        match content_type {
16097            ContentType::Json => serde_json::from_str(&content).map_err(Error::from),
16098            ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `models::GatewayUpdateProducerLdapOutput`"))),
16099            ContentType::Unsupported(unknown_type) => return Err(Error::from(serde_json::Error::custom(format!("Received `{unknown_type}` content type response that cannot be converted to `models::GatewayUpdateProducerLdapOutput`")))),
16100        }
16101    } else {
16102        let content = resp.text().await?;
16103        let entity: Option<GatewayUpdateProducerLdapError> = serde_json::from_str(&content).ok();
16104        Err(Error::ResponseError(ResponseContent { status, content, entity }))
16105    }
16106}
16107
16108pub async fn gateway_update_producer_mongo(configuration: &configuration::Configuration, gateway_update_producer_mongo: models::GatewayUpdateProducerMongo) -> Result<models::GatewayUpdateProducerMongoOutput, Error<GatewayUpdateProducerMongoError>> {
16109    // add a prefix to parameters to efficiently prevent name collisions
16110    let p_body_gateway_update_producer_mongo = gateway_update_producer_mongo;
16111
16112    let uri_str = format!("{}/gateway-update-producer-mongo", configuration.base_path);
16113    let mut req_builder = configuration.client.request(reqwest::Method::POST, &uri_str);
16114
16115    if let Some(ref user_agent) = configuration.user_agent {
16116        req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone());
16117    }
16118    req_builder = req_builder.json(&p_body_gateway_update_producer_mongo);
16119
16120    let req = req_builder.build()?;
16121    let resp = configuration.client.execute(req).await?;
16122
16123    let status = resp.status();
16124    let content_type = resp
16125        .headers()
16126        .get("content-type")
16127        .and_then(|v| v.to_str().ok())
16128        .unwrap_or("application/octet-stream");
16129    let content_type = super::ContentType::from(content_type);
16130
16131    if !status.is_client_error() && !status.is_server_error() {
16132        let content = resp.text().await?;
16133        match content_type {
16134            ContentType::Json => serde_json::from_str(&content).map_err(Error::from),
16135            ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `models::GatewayUpdateProducerMongoOutput`"))),
16136            ContentType::Unsupported(unknown_type) => return Err(Error::from(serde_json::Error::custom(format!("Received `{unknown_type}` content type response that cannot be converted to `models::GatewayUpdateProducerMongoOutput`")))),
16137        }
16138    } else {
16139        let content = resp.text().await?;
16140        let entity: Option<GatewayUpdateProducerMongoError> = serde_json::from_str(&content).ok();
16141        Err(Error::ResponseError(ResponseContent { status, content, entity }))
16142    }
16143}
16144
16145pub async fn gateway_update_producer_mssql(configuration: &configuration::Configuration, gateway_update_producer_mssql: models::GatewayUpdateProducerMssql) -> Result<models::GatewayUpdateProducerMssqlOutput, Error<GatewayUpdateProducerMssqlError>> {
16146    // add a prefix to parameters to efficiently prevent name collisions
16147    let p_body_gateway_update_producer_mssql = gateway_update_producer_mssql;
16148
16149    let uri_str = format!("{}/gateway-update-producer-mssql", configuration.base_path);
16150    let mut req_builder = configuration.client.request(reqwest::Method::POST, &uri_str);
16151
16152    if let Some(ref user_agent) = configuration.user_agent {
16153        req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone());
16154    }
16155    req_builder = req_builder.json(&p_body_gateway_update_producer_mssql);
16156
16157    let req = req_builder.build()?;
16158    let resp = configuration.client.execute(req).await?;
16159
16160    let status = resp.status();
16161    let content_type = resp
16162        .headers()
16163        .get("content-type")
16164        .and_then(|v| v.to_str().ok())
16165        .unwrap_or("application/octet-stream");
16166    let content_type = super::ContentType::from(content_type);
16167
16168    if !status.is_client_error() && !status.is_server_error() {
16169        let content = resp.text().await?;
16170        match content_type {
16171            ContentType::Json => serde_json::from_str(&content).map_err(Error::from),
16172            ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `models::GatewayUpdateProducerMssqlOutput`"))),
16173            ContentType::Unsupported(unknown_type) => return Err(Error::from(serde_json::Error::custom(format!("Received `{unknown_type}` content type response that cannot be converted to `models::GatewayUpdateProducerMssqlOutput`")))),
16174        }
16175    } else {
16176        let content = resp.text().await?;
16177        let entity: Option<GatewayUpdateProducerMssqlError> = serde_json::from_str(&content).ok();
16178        Err(Error::ResponseError(ResponseContent { status, content, entity }))
16179    }
16180}
16181
16182pub async fn gateway_update_producer_my_sql(configuration: &configuration::Configuration, gateway_update_producer_my_sql: models::GatewayUpdateProducerMySql) -> Result<models::GatewayUpdateProducerMySqlOutput, Error<GatewayUpdateProducerMySqlError>> {
16183    // add a prefix to parameters to efficiently prevent name collisions
16184    let p_body_gateway_update_producer_my_sql = gateway_update_producer_my_sql;
16185
16186    let uri_str = format!("{}/gateway-update-producer-mysql", configuration.base_path);
16187    let mut req_builder = configuration.client.request(reqwest::Method::POST, &uri_str);
16188
16189    if let Some(ref user_agent) = configuration.user_agent {
16190        req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone());
16191    }
16192    req_builder = req_builder.json(&p_body_gateway_update_producer_my_sql);
16193
16194    let req = req_builder.build()?;
16195    let resp = configuration.client.execute(req).await?;
16196
16197    let status = resp.status();
16198    let content_type = resp
16199        .headers()
16200        .get("content-type")
16201        .and_then(|v| v.to_str().ok())
16202        .unwrap_or("application/octet-stream");
16203    let content_type = super::ContentType::from(content_type);
16204
16205    if !status.is_client_error() && !status.is_server_error() {
16206        let content = resp.text().await?;
16207        match content_type {
16208            ContentType::Json => serde_json::from_str(&content).map_err(Error::from),
16209            ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `models::GatewayUpdateProducerMySqlOutput`"))),
16210            ContentType::Unsupported(unknown_type) => return Err(Error::from(serde_json::Error::custom(format!("Received `{unknown_type}` content type response that cannot be converted to `models::GatewayUpdateProducerMySqlOutput`")))),
16211        }
16212    } else {
16213        let content = resp.text().await?;
16214        let entity: Option<GatewayUpdateProducerMySqlError> = serde_json::from_str(&content).ok();
16215        Err(Error::ResponseError(ResponseContent { status, content, entity }))
16216    }
16217}
16218
16219pub async fn gateway_update_producer_native_k8_s(configuration: &configuration::Configuration, gateway_update_producer_native_k8_s: models::GatewayUpdateProducerNativeK8S) -> Result<models::GatewayUpdateProducerNativeK8SOutput, Error<GatewayUpdateProducerNativeK8SError>> {
16220    // add a prefix to parameters to efficiently prevent name collisions
16221    let p_body_gateway_update_producer_native_k8_s = gateway_update_producer_native_k8_s;
16222
16223    let uri_str = format!("{}/gateway-update-producer-k8s", configuration.base_path);
16224    let mut req_builder = configuration.client.request(reqwest::Method::POST, &uri_str);
16225
16226    if let Some(ref user_agent) = configuration.user_agent {
16227        req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone());
16228    }
16229    req_builder = req_builder.json(&p_body_gateway_update_producer_native_k8_s);
16230
16231    let req = req_builder.build()?;
16232    let resp = configuration.client.execute(req).await?;
16233
16234    let status = resp.status();
16235    let content_type = resp
16236        .headers()
16237        .get("content-type")
16238        .and_then(|v| v.to_str().ok())
16239        .unwrap_or("application/octet-stream");
16240    let content_type = super::ContentType::from(content_type);
16241
16242    if !status.is_client_error() && !status.is_server_error() {
16243        let content = resp.text().await?;
16244        match content_type {
16245            ContentType::Json => serde_json::from_str(&content).map_err(Error::from),
16246            ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `models::GatewayUpdateProducerNativeK8SOutput`"))),
16247            ContentType::Unsupported(unknown_type) => return Err(Error::from(serde_json::Error::custom(format!("Received `{unknown_type}` content type response that cannot be converted to `models::GatewayUpdateProducerNativeK8SOutput`")))),
16248        }
16249    } else {
16250        let content = resp.text().await?;
16251        let entity: Option<GatewayUpdateProducerNativeK8SError> = serde_json::from_str(&content).ok();
16252        Err(Error::ResponseError(ResponseContent { status, content, entity }))
16253    }
16254}
16255
16256pub async fn gateway_update_producer_oracle_db(configuration: &configuration::Configuration, gateway_update_producer_oracle_db: models::GatewayUpdateProducerOracleDb) -> Result<models::GatewayUpdateProducerOracleDbOutput, Error<GatewayUpdateProducerOracleDbError>> {
16257    // add a prefix to parameters to efficiently prevent name collisions
16258    let p_body_gateway_update_producer_oracle_db = gateway_update_producer_oracle_db;
16259
16260    let uri_str = format!("{}/gateway-update-producer-oracle", configuration.base_path);
16261    let mut req_builder = configuration.client.request(reqwest::Method::POST, &uri_str);
16262
16263    if let Some(ref user_agent) = configuration.user_agent {
16264        req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone());
16265    }
16266    req_builder = req_builder.json(&p_body_gateway_update_producer_oracle_db);
16267
16268    let req = req_builder.build()?;
16269    let resp = configuration.client.execute(req).await?;
16270
16271    let status = resp.status();
16272    let content_type = resp
16273        .headers()
16274        .get("content-type")
16275        .and_then(|v| v.to_str().ok())
16276        .unwrap_or("application/octet-stream");
16277    let content_type = super::ContentType::from(content_type);
16278
16279    if !status.is_client_error() && !status.is_server_error() {
16280        let content = resp.text().await?;
16281        match content_type {
16282            ContentType::Json => serde_json::from_str(&content).map_err(Error::from),
16283            ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `models::GatewayUpdateProducerOracleDbOutput`"))),
16284            ContentType::Unsupported(unknown_type) => return Err(Error::from(serde_json::Error::custom(format!("Received `{unknown_type}` content type response that cannot be converted to `models::GatewayUpdateProducerOracleDbOutput`")))),
16285        }
16286    } else {
16287        let content = resp.text().await?;
16288        let entity: Option<GatewayUpdateProducerOracleDbError> = serde_json::from_str(&content).ok();
16289        Err(Error::ResponseError(ResponseContent { status, content, entity }))
16290    }
16291}
16292
16293pub async fn gateway_update_producer_ping(configuration: &configuration::Configuration, gateway_update_producer_ping: models::GatewayUpdateProducerPing) -> Result<models::GatewayUpdateProducerPingOutput, Error<GatewayUpdateProducerPingError>> {
16294    // add a prefix to parameters to efficiently prevent name collisions
16295    let p_body_gateway_update_producer_ping = gateway_update_producer_ping;
16296
16297    let uri_str = format!("{}/gateway-update-producer-ping", configuration.base_path);
16298    let mut req_builder = configuration.client.request(reqwest::Method::POST, &uri_str);
16299
16300    if let Some(ref user_agent) = configuration.user_agent {
16301        req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone());
16302    }
16303    req_builder = req_builder.json(&p_body_gateway_update_producer_ping);
16304
16305    let req = req_builder.build()?;
16306    let resp = configuration.client.execute(req).await?;
16307
16308    let status = resp.status();
16309    let content_type = resp
16310        .headers()
16311        .get("content-type")
16312        .and_then(|v| v.to_str().ok())
16313        .unwrap_or("application/octet-stream");
16314    let content_type = super::ContentType::from(content_type);
16315
16316    if !status.is_client_error() && !status.is_server_error() {
16317        let content = resp.text().await?;
16318        match content_type {
16319            ContentType::Json => serde_json::from_str(&content).map_err(Error::from),
16320            ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `models::GatewayUpdateProducerPingOutput`"))),
16321            ContentType::Unsupported(unknown_type) => return Err(Error::from(serde_json::Error::custom(format!("Received `{unknown_type}` content type response that cannot be converted to `models::GatewayUpdateProducerPingOutput`")))),
16322        }
16323    } else {
16324        let content = resp.text().await?;
16325        let entity: Option<GatewayUpdateProducerPingError> = serde_json::from_str(&content).ok();
16326        Err(Error::ResponseError(ResponseContent { status, content, entity }))
16327    }
16328}
16329
16330pub async fn gateway_update_producer_postgre_sql(configuration: &configuration::Configuration, gateway_update_producer_postgre_sql: models::GatewayUpdateProducerPostgreSql) -> Result<models::GatewayUpdateProducerPostgreSqlOutput, Error<GatewayUpdateProducerPostgreSqlError>> {
16331    // add a prefix to parameters to efficiently prevent name collisions
16332    let p_body_gateway_update_producer_postgre_sql = gateway_update_producer_postgre_sql;
16333
16334    let uri_str = format!("{}/gateway-update-producer-postgresql", configuration.base_path);
16335    let mut req_builder = configuration.client.request(reqwest::Method::POST, &uri_str);
16336
16337    if let Some(ref user_agent) = configuration.user_agent {
16338        req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone());
16339    }
16340    req_builder = req_builder.json(&p_body_gateway_update_producer_postgre_sql);
16341
16342    let req = req_builder.build()?;
16343    let resp = configuration.client.execute(req).await?;
16344
16345    let status = resp.status();
16346    let content_type = resp
16347        .headers()
16348        .get("content-type")
16349        .and_then(|v| v.to_str().ok())
16350        .unwrap_or("application/octet-stream");
16351    let content_type = super::ContentType::from(content_type);
16352
16353    if !status.is_client_error() && !status.is_server_error() {
16354        let content = resp.text().await?;
16355        match content_type {
16356            ContentType::Json => serde_json::from_str(&content).map_err(Error::from),
16357            ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `models::GatewayUpdateProducerPostgreSqlOutput`"))),
16358            ContentType::Unsupported(unknown_type) => return Err(Error::from(serde_json::Error::custom(format!("Received `{unknown_type}` content type response that cannot be converted to `models::GatewayUpdateProducerPostgreSqlOutput`")))),
16359        }
16360    } else {
16361        let content = resp.text().await?;
16362        let entity: Option<GatewayUpdateProducerPostgreSqlError> = serde_json::from_str(&content).ok();
16363        Err(Error::ResponseError(ResponseContent { status, content, entity }))
16364    }
16365}
16366
16367pub async fn gateway_update_producer_rabbit_mq(configuration: &configuration::Configuration, gateway_update_producer_rabbit_mq: models::GatewayUpdateProducerRabbitMq) -> Result<models::GatewayUpdateProducerRabbitMqOutput, Error<GatewayUpdateProducerRabbitMqError>> {
16368    // add a prefix to parameters to efficiently prevent name collisions
16369    let p_body_gateway_update_producer_rabbit_mq = gateway_update_producer_rabbit_mq;
16370
16371    let uri_str = format!("{}/gateway-update-producer-rabbitmq", configuration.base_path);
16372    let mut req_builder = configuration.client.request(reqwest::Method::POST, &uri_str);
16373
16374    if let Some(ref user_agent) = configuration.user_agent {
16375        req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone());
16376    }
16377    req_builder = req_builder.json(&p_body_gateway_update_producer_rabbit_mq);
16378
16379    let req = req_builder.build()?;
16380    let resp = configuration.client.execute(req).await?;
16381
16382    let status = resp.status();
16383    let content_type = resp
16384        .headers()
16385        .get("content-type")
16386        .and_then(|v| v.to_str().ok())
16387        .unwrap_or("application/octet-stream");
16388    let content_type = super::ContentType::from(content_type);
16389
16390    if !status.is_client_error() && !status.is_server_error() {
16391        let content = resp.text().await?;
16392        match content_type {
16393            ContentType::Json => serde_json::from_str(&content).map_err(Error::from),
16394            ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `models::GatewayUpdateProducerRabbitMqOutput`"))),
16395            ContentType::Unsupported(unknown_type) => return Err(Error::from(serde_json::Error::custom(format!("Received `{unknown_type}` content type response that cannot be converted to `models::GatewayUpdateProducerRabbitMqOutput`")))),
16396        }
16397    } else {
16398        let content = resp.text().await?;
16399        let entity: Option<GatewayUpdateProducerRabbitMqError> = serde_json::from_str(&content).ok();
16400        Err(Error::ResponseError(ResponseContent { status, content, entity }))
16401    }
16402}
16403
16404pub async fn gateway_update_producer_rdp(configuration: &configuration::Configuration, gateway_update_producer_rdp: models::GatewayUpdateProducerRdp) -> Result<models::GatewayUpdateProducerRdpOutput, Error<GatewayUpdateProducerRdpError>> {
16405    // add a prefix to parameters to efficiently prevent name collisions
16406    let p_body_gateway_update_producer_rdp = gateway_update_producer_rdp;
16407
16408    let uri_str = format!("{}/gateway-update-producer-rdp", configuration.base_path);
16409    let mut req_builder = configuration.client.request(reqwest::Method::POST, &uri_str);
16410
16411    if let Some(ref user_agent) = configuration.user_agent {
16412        req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone());
16413    }
16414    req_builder = req_builder.json(&p_body_gateway_update_producer_rdp);
16415
16416    let req = req_builder.build()?;
16417    let resp = configuration.client.execute(req).await?;
16418
16419    let status = resp.status();
16420    let content_type = resp
16421        .headers()
16422        .get("content-type")
16423        .and_then(|v| v.to_str().ok())
16424        .unwrap_or("application/octet-stream");
16425    let content_type = super::ContentType::from(content_type);
16426
16427    if !status.is_client_error() && !status.is_server_error() {
16428        let content = resp.text().await?;
16429        match content_type {
16430            ContentType::Json => serde_json::from_str(&content).map_err(Error::from),
16431            ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `models::GatewayUpdateProducerRdpOutput`"))),
16432            ContentType::Unsupported(unknown_type) => return Err(Error::from(serde_json::Error::custom(format!("Received `{unknown_type}` content type response that cannot be converted to `models::GatewayUpdateProducerRdpOutput`")))),
16433        }
16434    } else {
16435        let content = resp.text().await?;
16436        let entity: Option<GatewayUpdateProducerRdpError> = serde_json::from_str(&content).ok();
16437        Err(Error::ResponseError(ResponseContent { status, content, entity }))
16438    }
16439}
16440
16441pub async fn gateway_update_producer_redis(configuration: &configuration::Configuration, gateway_update_producer_redis: models::GatewayUpdateProducerRedis) -> Result<models::GatewayUpdateProducerRedisOutput, Error<GatewayUpdateProducerRedisError>> {
16442    // add a prefix to parameters to efficiently prevent name collisions
16443    let p_body_gateway_update_producer_redis = gateway_update_producer_redis;
16444
16445    let uri_str = format!("{}/gateway-update-producer-redis", configuration.base_path);
16446    let mut req_builder = configuration.client.request(reqwest::Method::POST, &uri_str);
16447
16448    if let Some(ref user_agent) = configuration.user_agent {
16449        req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone());
16450    }
16451    req_builder = req_builder.json(&p_body_gateway_update_producer_redis);
16452
16453    let req = req_builder.build()?;
16454    let resp = configuration.client.execute(req).await?;
16455
16456    let status = resp.status();
16457    let content_type = resp
16458        .headers()
16459        .get("content-type")
16460        .and_then(|v| v.to_str().ok())
16461        .unwrap_or("application/octet-stream");
16462    let content_type = super::ContentType::from(content_type);
16463
16464    if !status.is_client_error() && !status.is_server_error() {
16465        let content = resp.text().await?;
16466        match content_type {
16467            ContentType::Json => serde_json::from_str(&content).map_err(Error::from),
16468            ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `models::GatewayUpdateProducerRedisOutput`"))),
16469            ContentType::Unsupported(unknown_type) => return Err(Error::from(serde_json::Error::custom(format!("Received `{unknown_type}` content type response that cannot be converted to `models::GatewayUpdateProducerRedisOutput`")))),
16470        }
16471    } else {
16472        let content = resp.text().await?;
16473        let entity: Option<GatewayUpdateProducerRedisError> = serde_json::from_str(&content).ok();
16474        Err(Error::ResponseError(ResponseContent { status, content, entity }))
16475    }
16476}
16477
16478pub async fn gateway_update_producer_redshift(configuration: &configuration::Configuration, gateway_update_producer_redshift: models::GatewayUpdateProducerRedshift) -> Result<models::GatewayUpdateProducerRedshiftOutput, Error<GatewayUpdateProducerRedshiftError>> {
16479    // add a prefix to parameters to efficiently prevent name collisions
16480    let p_body_gateway_update_producer_redshift = gateway_update_producer_redshift;
16481
16482    let uri_str = format!("{}/gateway-update-producer-redshift", configuration.base_path);
16483    let mut req_builder = configuration.client.request(reqwest::Method::POST, &uri_str);
16484
16485    if let Some(ref user_agent) = configuration.user_agent {
16486        req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone());
16487    }
16488    req_builder = req_builder.json(&p_body_gateway_update_producer_redshift);
16489
16490    let req = req_builder.build()?;
16491    let resp = configuration.client.execute(req).await?;
16492
16493    let status = resp.status();
16494    let content_type = resp
16495        .headers()
16496        .get("content-type")
16497        .and_then(|v| v.to_str().ok())
16498        .unwrap_or("application/octet-stream");
16499    let content_type = super::ContentType::from(content_type);
16500
16501    if !status.is_client_error() && !status.is_server_error() {
16502        let content = resp.text().await?;
16503        match content_type {
16504            ContentType::Json => serde_json::from_str(&content).map_err(Error::from),
16505            ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `models::GatewayUpdateProducerRedshiftOutput`"))),
16506            ContentType::Unsupported(unknown_type) => return Err(Error::from(serde_json::Error::custom(format!("Received `{unknown_type}` content type response that cannot be converted to `models::GatewayUpdateProducerRedshiftOutput`")))),
16507        }
16508    } else {
16509        let content = resp.text().await?;
16510        let entity: Option<GatewayUpdateProducerRedshiftError> = serde_json::from_str(&content).ok();
16511        Err(Error::ResponseError(ResponseContent { status, content, entity }))
16512    }
16513}
16514
16515pub async fn gateway_update_producer_snowflake(configuration: &configuration::Configuration, gateway_update_producer_snowflake: models::GatewayUpdateProducerSnowflake) -> Result<models::GatewayUpdateProducerSnowflakeOutput, Error<GatewayUpdateProducerSnowflakeError>> {
16516    // add a prefix to parameters to efficiently prevent name collisions
16517    let p_body_gateway_update_producer_snowflake = gateway_update_producer_snowflake;
16518
16519    let uri_str = format!("{}/gateway-update-producer-snowflake", configuration.base_path);
16520    let mut req_builder = configuration.client.request(reqwest::Method::POST, &uri_str);
16521
16522    if let Some(ref user_agent) = configuration.user_agent {
16523        req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone());
16524    }
16525    req_builder = req_builder.json(&p_body_gateway_update_producer_snowflake);
16526
16527    let req = req_builder.build()?;
16528    let resp = configuration.client.execute(req).await?;
16529
16530    let status = resp.status();
16531    let content_type = resp
16532        .headers()
16533        .get("content-type")
16534        .and_then(|v| v.to_str().ok())
16535        .unwrap_or("application/octet-stream");
16536    let content_type = super::ContentType::from(content_type);
16537
16538    if !status.is_client_error() && !status.is_server_error() {
16539        let content = resp.text().await?;
16540        match content_type {
16541            ContentType::Json => serde_json::from_str(&content).map_err(Error::from),
16542            ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `models::GatewayUpdateProducerSnowflakeOutput`"))),
16543            ContentType::Unsupported(unknown_type) => return Err(Error::from(serde_json::Error::custom(format!("Received `{unknown_type}` content type response that cannot be converted to `models::GatewayUpdateProducerSnowflakeOutput`")))),
16544        }
16545    } else {
16546        let content = resp.text().await?;
16547        let entity: Option<GatewayUpdateProducerSnowflakeError> = serde_json::from_str(&content).ok();
16548        Err(Error::ResponseError(ResponseContent { status, content, entity }))
16549    }
16550}
16551
16552pub async fn gateway_update_producer_venafi(configuration: &configuration::Configuration, gateway_update_producer_venafi: models::GatewayUpdateProducerVenafi) -> Result<models::GatewayUpdateProducerVenafiOutput, Error<GatewayUpdateProducerVenafiError>> {
16553    // add a prefix to parameters to efficiently prevent name collisions
16554    let p_body_gateway_update_producer_venafi = gateway_update_producer_venafi;
16555
16556    let uri_str = format!("{}/gateway-update-producer-certificate-automation", configuration.base_path);
16557    let mut req_builder = configuration.client.request(reqwest::Method::POST, &uri_str);
16558
16559    if let Some(ref user_agent) = configuration.user_agent {
16560        req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone());
16561    }
16562    req_builder = req_builder.json(&p_body_gateway_update_producer_venafi);
16563
16564    let req = req_builder.build()?;
16565    let resp = configuration.client.execute(req).await?;
16566
16567    let status = resp.status();
16568    let content_type = resp
16569        .headers()
16570        .get("content-type")
16571        .and_then(|v| v.to_str().ok())
16572        .unwrap_or("application/octet-stream");
16573    let content_type = super::ContentType::from(content_type);
16574
16575    if !status.is_client_error() && !status.is_server_error() {
16576        let content = resp.text().await?;
16577        match content_type {
16578            ContentType::Json => serde_json::from_str(&content).map_err(Error::from),
16579            ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `models::GatewayUpdateProducerVenafiOutput`"))),
16580            ContentType::Unsupported(unknown_type) => return Err(Error::from(serde_json::Error::custom(format!("Received `{unknown_type}` content type response that cannot be converted to `models::GatewayUpdateProducerVenafiOutput`")))),
16581        }
16582    } else {
16583        let content = resp.text().await?;
16584        let entity: Option<GatewayUpdateProducerVenafiError> = serde_json::from_str(&content).ok();
16585        Err(Error::ResponseError(ResponseContent { status, content, entity }))
16586    }
16587}
16588
16589pub async fn gateway_update_remote_access(configuration: &configuration::Configuration, gateway_update_remote_access: models::GatewayUpdateRemoteAccess) -> Result<serde_json::Value, Error<GatewayUpdateRemoteAccessError>> {
16590    // add a prefix to parameters to efficiently prevent name collisions
16591    let p_body_gateway_update_remote_access = gateway_update_remote_access;
16592
16593    let uri_str = format!("{}/gateway-update-remote-access", configuration.base_path);
16594    let mut req_builder = configuration.client.request(reqwest::Method::POST, &uri_str);
16595
16596    if let Some(ref user_agent) = configuration.user_agent {
16597        req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone());
16598    }
16599    req_builder = req_builder.json(&p_body_gateway_update_remote_access);
16600
16601    let req = req_builder.build()?;
16602    let resp = configuration.client.execute(req).await?;
16603
16604    let status = resp.status();
16605    let content_type = resp
16606        .headers()
16607        .get("content-type")
16608        .and_then(|v| v.to_str().ok())
16609        .unwrap_or("application/octet-stream");
16610    let content_type = super::ContentType::from(content_type);
16611
16612    if !status.is_client_error() && !status.is_server_error() {
16613        let content = resp.text().await?;
16614        match content_type {
16615            ContentType::Json => serde_json::from_str(&content).map_err(Error::from),
16616            ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `serde_json::Value`"))),
16617            ContentType::Unsupported(unknown_type) => return Err(Error::from(serde_json::Error::custom(format!("Received `{unknown_type}` content type response that cannot be converted to `serde_json::Value`")))),
16618        }
16619    } else {
16620        let content = resp.text().await?;
16621        let entity: Option<GatewayUpdateRemoteAccessError> = serde_json::from_str(&content).ok();
16622        Err(Error::ResponseError(ResponseContent { status, content, entity }))
16623    }
16624}
16625
16626pub async fn gateway_update_remote_access_desktop_app(configuration: &configuration::Configuration, gateway_update_remote_access_desktop_app: models::GatewayUpdateRemoteAccessDesktopApp) -> Result<serde_json::Value, Error<GatewayUpdateRemoteAccessDesktopAppError>> {
16627    // add a prefix to parameters to efficiently prevent name collisions
16628    let p_body_gateway_update_remote_access_desktop_app = gateway_update_remote_access_desktop_app;
16629
16630    let uri_str = format!("{}/gateway-update-remote-access-desktop-app", configuration.base_path);
16631    let mut req_builder = configuration.client.request(reqwest::Method::POST, &uri_str);
16632
16633    if let Some(ref user_agent) = configuration.user_agent {
16634        req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone());
16635    }
16636    req_builder = req_builder.json(&p_body_gateway_update_remote_access_desktop_app);
16637
16638    let req = req_builder.build()?;
16639    let resp = configuration.client.execute(req).await?;
16640
16641    let status = resp.status();
16642    let content_type = resp
16643        .headers()
16644        .get("content-type")
16645        .and_then(|v| v.to_str().ok())
16646        .unwrap_or("application/octet-stream");
16647    let content_type = super::ContentType::from(content_type);
16648
16649    if !status.is_client_error() && !status.is_server_error() {
16650        let content = resp.text().await?;
16651        match content_type {
16652            ContentType::Json => serde_json::from_str(&content).map_err(Error::from),
16653            ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `serde_json::Value`"))),
16654            ContentType::Unsupported(unknown_type) => return Err(Error::from(serde_json::Error::custom(format!("Received `{unknown_type}` content type response that cannot be converted to `serde_json::Value`")))),
16655        }
16656    } else {
16657        let content = resp.text().await?;
16658        let entity: Option<GatewayUpdateRemoteAccessDesktopAppError> = serde_json::from_str(&content).ok();
16659        Err(Error::ResponseError(ResponseContent { status, content, entity }))
16660    }
16661}
16662
16663pub async fn gateway_update_remote_access_rdp_recordings(configuration: &configuration::Configuration, gateway_update_remote_access_rdp_recordings: models::GatewayUpdateRemoteAccessRdpRecordings) -> Result<serde_json::Value, Error<GatewayUpdateRemoteAccessRdpRecordingsError>> {
16664    // add a prefix to parameters to efficiently prevent name collisions
16665    let p_body_gateway_update_remote_access_rdp_recordings = gateway_update_remote_access_rdp_recordings;
16666
16667    let uri_str = format!("{}/gateway-update-remote-access-rdp-recording", configuration.base_path);
16668    let mut req_builder = configuration.client.request(reqwest::Method::POST, &uri_str);
16669
16670    if let Some(ref user_agent) = configuration.user_agent {
16671        req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone());
16672    }
16673    req_builder = req_builder.json(&p_body_gateway_update_remote_access_rdp_recordings);
16674
16675    let req = req_builder.build()?;
16676    let resp = configuration.client.execute(req).await?;
16677
16678    let status = resp.status();
16679    let content_type = resp
16680        .headers()
16681        .get("content-type")
16682        .and_then(|v| v.to_str().ok())
16683        .unwrap_or("application/octet-stream");
16684    let content_type = super::ContentType::from(content_type);
16685
16686    if !status.is_client_error() && !status.is_server_error() {
16687        let content = resp.text().await?;
16688        match content_type {
16689            ContentType::Json => serde_json::from_str(&content).map_err(Error::from),
16690            ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `serde_json::Value`"))),
16691            ContentType::Unsupported(unknown_type) => return Err(Error::from(serde_json::Error::custom(format!("Received `{unknown_type}` content type response that cannot be converted to `serde_json::Value`")))),
16692        }
16693    } else {
16694        let content = resp.text().await?;
16695        let entity: Option<GatewayUpdateRemoteAccessRdpRecordingsError> = serde_json::from_str(&content).ok();
16696        Err(Error::ResponseError(ResponseContent { status, content, entity }))
16697    }
16698}
16699
16700pub async fn gateway_update_tls_cert(configuration: &configuration::Configuration, gateway_update_tls_cert: models::GatewayUpdateTlsCert) -> Result<models::GatewayUpdateTlsCertOutput, Error<GatewayUpdateTlsCertError>> {
16701    // add a prefix to parameters to efficiently prevent name collisions
16702    let p_body_gateway_update_tls_cert = gateway_update_tls_cert;
16703
16704    let uri_str = format!("{}/gateway-update-tls-cert", configuration.base_path);
16705    let mut req_builder = configuration.client.request(reqwest::Method::POST, &uri_str);
16706
16707    if let Some(ref user_agent) = configuration.user_agent {
16708        req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone());
16709    }
16710    req_builder = req_builder.json(&p_body_gateway_update_tls_cert);
16711
16712    let req = req_builder.build()?;
16713    let resp = configuration.client.execute(req).await?;
16714
16715    let status = resp.status();
16716    let content_type = resp
16717        .headers()
16718        .get("content-type")
16719        .and_then(|v| v.to_str().ok())
16720        .unwrap_or("application/octet-stream");
16721    let content_type = super::ContentType::from(content_type);
16722
16723    if !status.is_client_error() && !status.is_server_error() {
16724        let content = resp.text().await?;
16725        match content_type {
16726            ContentType::Json => serde_json::from_str(&content).map_err(Error::from),
16727            ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `models::GatewayUpdateTlsCertOutput`"))),
16728            ContentType::Unsupported(unknown_type) => return Err(Error::from(serde_json::Error::custom(format!("Received `{unknown_type}` content type response that cannot be converted to `models::GatewayUpdateTlsCertOutput`")))),
16729        }
16730    } else {
16731        let content = resp.text().await?;
16732        let entity: Option<GatewayUpdateTlsCertError> = serde_json::from_str(&content).ok();
16733        Err(Error::ResponseError(ResponseContent { status, content, entity }))
16734    }
16735}
16736
16737pub async fn gateway_update_tmp_users(configuration: &configuration::Configuration, gateway_update_tmp_users: models::GatewayUpdateTmpUsers) -> Result<(), Error<GatewayUpdateTmpUsersError>> {
16738    // add a prefix to parameters to efficiently prevent name collisions
16739    let p_body_gateway_update_tmp_users = gateway_update_tmp_users;
16740
16741    let uri_str = format!("{}/gateway-update-producer-tmp-creds", configuration.base_path);
16742    let mut req_builder = configuration.client.request(reqwest::Method::POST, &uri_str);
16743
16744    if let Some(ref user_agent) = configuration.user_agent {
16745        req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone());
16746    }
16747    req_builder = req_builder.json(&p_body_gateway_update_tmp_users);
16748
16749    let req = req_builder.build()?;
16750    let resp = configuration.client.execute(req).await?;
16751
16752    let status = resp.status();
16753
16754    if !status.is_client_error() && !status.is_server_error() {
16755        Ok(())
16756    } else {
16757        let content = resp.text().await?;
16758        let entity: Option<GatewayUpdateTmpUsersError> = serde_json::from_str(&content).ok();
16759        Err(Error::ResponseError(ResponseContent { status, content, entity }))
16760    }
16761}
16762
16763pub async fn generate_acme_eab(configuration: &configuration::Configuration, generate_acme_eab: models::GenerateAcmeEab) -> Result<models::GenerateAcmeEabOutput, Error<GenerateAcmeEabError>> {
16764    // add a prefix to parameters to efficiently prevent name collisions
16765    let p_body_generate_acme_eab = generate_acme_eab;
16766
16767    let uri_str = format!("{}/generate-acme-eab", configuration.base_path);
16768    let mut req_builder = configuration.client.request(reqwest::Method::POST, &uri_str);
16769
16770    if let Some(ref user_agent) = configuration.user_agent {
16771        req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone());
16772    }
16773    req_builder = req_builder.json(&p_body_generate_acme_eab);
16774
16775    let req = req_builder.build()?;
16776    let resp = configuration.client.execute(req).await?;
16777
16778    let status = resp.status();
16779    let content_type = resp
16780        .headers()
16781        .get("content-type")
16782        .and_then(|v| v.to_str().ok())
16783        .unwrap_or("application/octet-stream");
16784    let content_type = super::ContentType::from(content_type);
16785
16786    if !status.is_client_error() && !status.is_server_error() {
16787        let content = resp.text().await?;
16788        match content_type {
16789            ContentType::Json => serde_json::from_str(&content).map_err(Error::from),
16790            ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `models::GenerateAcmeEabOutput`"))),
16791            ContentType::Unsupported(unknown_type) => return Err(Error::from(serde_json::Error::custom(format!("Received `{unknown_type}` content type response that cannot be converted to `models::GenerateAcmeEabOutput`")))),
16792        }
16793    } else {
16794        let content = resp.text().await?;
16795        let entity: Option<GenerateAcmeEabError> = serde_json::from_str(&content).ok();
16796        Err(Error::ResponseError(ResponseContent { status, content, entity }))
16797    }
16798}
16799
16800pub async fn generate_ca(configuration: &configuration::Configuration, generate_ca: models::GenerateCa) -> Result<models::GenerateCaOutput, Error<GenerateCaError>> {
16801    // add a prefix to parameters to efficiently prevent name collisions
16802    let p_body_generate_ca = generate_ca;
16803
16804    let uri_str = format!("{}/generate-ca", configuration.base_path);
16805    let mut req_builder = configuration.client.request(reqwest::Method::POST, &uri_str);
16806
16807    if let Some(ref user_agent) = configuration.user_agent {
16808        req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone());
16809    }
16810    req_builder = req_builder.json(&p_body_generate_ca);
16811
16812    let req = req_builder.build()?;
16813    let resp = configuration.client.execute(req).await?;
16814
16815    let status = resp.status();
16816    let content_type = resp
16817        .headers()
16818        .get("content-type")
16819        .and_then(|v| v.to_str().ok())
16820        .unwrap_or("application/octet-stream");
16821    let content_type = super::ContentType::from(content_type);
16822
16823    if !status.is_client_error() && !status.is_server_error() {
16824        let content = resp.text().await?;
16825        match content_type {
16826            ContentType::Json => serde_json::from_str(&content).map_err(Error::from),
16827            ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `models::GenerateCaOutput`"))),
16828            ContentType::Unsupported(unknown_type) => return Err(Error::from(serde_json::Error::custom(format!("Received `{unknown_type}` content type response that cannot be converted to `models::GenerateCaOutput`")))),
16829        }
16830    } else {
16831        let content = resp.text().await?;
16832        let entity: Option<GenerateCaError> = serde_json::from_str(&content).ok();
16833        Err(Error::ResponseError(ResponseContent { status, content, entity }))
16834    }
16835}
16836
16837pub async fn generate_csr(configuration: &configuration::Configuration, generate_csr: models::GenerateCsr) -> Result<models::GenerateCsrOutput, Error<GenerateCsrError>> {
16838    // add a prefix to parameters to efficiently prevent name collisions
16839    let p_body_generate_csr = generate_csr;
16840
16841    let uri_str = format!("{}/generate-csr", configuration.base_path);
16842    let mut req_builder = configuration.client.request(reqwest::Method::POST, &uri_str);
16843
16844    if let Some(ref user_agent) = configuration.user_agent {
16845        req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone());
16846    }
16847    req_builder = req_builder.json(&p_body_generate_csr);
16848
16849    let req = req_builder.build()?;
16850    let resp = configuration.client.execute(req).await?;
16851
16852    let status = resp.status();
16853    let content_type = resp
16854        .headers()
16855        .get("content-type")
16856        .and_then(|v| v.to_str().ok())
16857        .unwrap_or("application/octet-stream");
16858    let content_type = super::ContentType::from(content_type);
16859
16860    if !status.is_client_error() && !status.is_server_error() {
16861        let content = resp.text().await?;
16862        match content_type {
16863            ContentType::Json => serde_json::from_str(&content).map_err(Error::from),
16864            ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `models::GenerateCsrOutput`"))),
16865            ContentType::Unsupported(unknown_type) => return Err(Error::from(serde_json::Error::custom(format!("Received `{unknown_type}` content type response that cannot be converted to `models::GenerateCsrOutput`")))),
16866        }
16867    } else {
16868        let content = resp.text().await?;
16869        let entity: Option<GenerateCsrError> = serde_json::from_str(&content).ok();
16870        Err(Error::ResponseError(ResponseContent { status, content, entity }))
16871    }
16872}
16873
16874pub async fn get_account_logo(configuration: &configuration::Configuration, ) -> Result<std::collections::HashMap<String, String>, Error<GetAccountLogoError>> {
16875
16876    let uri_str = format!("{}/get-account-logo", configuration.base_path);
16877    let mut req_builder = configuration.client.request(reqwest::Method::POST, &uri_str);
16878
16879    if let Some(ref user_agent) = configuration.user_agent {
16880        req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone());
16881    }
16882
16883    let req = req_builder.build()?;
16884    let resp = configuration.client.execute(req).await?;
16885
16886    let status = resp.status();
16887    let content_type = resp
16888        .headers()
16889        .get("content-type")
16890        .and_then(|v| v.to_str().ok())
16891        .unwrap_or("application/octet-stream");
16892    let content_type = super::ContentType::from(content_type);
16893
16894    if !status.is_client_error() && !status.is_server_error() {
16895        let content = resp.text().await?;
16896        match content_type {
16897            ContentType::Json => serde_json::from_str(&content).map_err(Error::from),
16898            ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `std::collections::HashMap&lt;String, String&gt;`"))),
16899            ContentType::Unsupported(unknown_type) => return Err(Error::from(serde_json::Error::custom(format!("Received `{unknown_type}` content type response that cannot be converted to `std::collections::HashMap&lt;String, String&gt;`")))),
16900        }
16901    } else {
16902        let content = resp.text().await?;
16903        let entity: Option<GetAccountLogoError> = serde_json::from_str(&content).ok();
16904        Err(Error::ResponseError(ResponseContent { status, content, entity }))
16905    }
16906}
16907
16908pub async fn get_account_settings(configuration: &configuration::Configuration, get_account_settings: models::GetAccountSettings) -> Result<models::GetAccountSettingsCommandOutput, Error<GetAccountSettingsError>> {
16909    // add a prefix to parameters to efficiently prevent name collisions
16910    let p_body_get_account_settings = get_account_settings;
16911
16912    let uri_str = format!("{}/get-account-settings", configuration.base_path);
16913    let mut req_builder = configuration.client.request(reqwest::Method::POST, &uri_str);
16914
16915    if let Some(ref user_agent) = configuration.user_agent {
16916        req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone());
16917    }
16918    req_builder = req_builder.json(&p_body_get_account_settings);
16919
16920    let req = req_builder.build()?;
16921    let resp = configuration.client.execute(req).await?;
16922
16923    let status = resp.status();
16924    let content_type = resp
16925        .headers()
16926        .get("content-type")
16927        .and_then(|v| v.to_str().ok())
16928        .unwrap_or("application/octet-stream");
16929    let content_type = super::ContentType::from(content_type);
16930
16931    if !status.is_client_error() && !status.is_server_error() {
16932        let content = resp.text().await?;
16933        match content_type {
16934            ContentType::Json => serde_json::from_str(&content).map_err(Error::from),
16935            ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `models::GetAccountSettingsCommandOutput`"))),
16936            ContentType::Unsupported(unknown_type) => return Err(Error::from(serde_json::Error::custom(format!("Received `{unknown_type}` content type response that cannot be converted to `models::GetAccountSettingsCommandOutput`")))),
16937        }
16938    } else {
16939        let content = resp.text().await?;
16940        let entity: Option<GetAccountSettingsError> = serde_json::from_str(&content).ok();
16941        Err(Error::ResponseError(ResponseContent { status, content, entity }))
16942    }
16943}
16944
16945pub async fn get_analytics_data(configuration: &configuration::Configuration, get_analytics_data: models::GetAnalyticsData) -> Result<models::AllAnalyticsData, Error<GetAnalyticsDataError>> {
16946    // add a prefix to parameters to efficiently prevent name collisions
16947    let p_body_get_analytics_data = get_analytics_data;
16948
16949    let uri_str = format!("{}/get-analytics-data", configuration.base_path);
16950    let mut req_builder = configuration.client.request(reqwest::Method::POST, &uri_str);
16951
16952    if let Some(ref user_agent) = configuration.user_agent {
16953        req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone());
16954    }
16955    req_builder = req_builder.json(&p_body_get_analytics_data);
16956
16957    let req = req_builder.build()?;
16958    let resp = configuration.client.execute(req).await?;
16959
16960    let status = resp.status();
16961    let content_type = resp
16962        .headers()
16963        .get("content-type")
16964        .and_then(|v| v.to_str().ok())
16965        .unwrap_or("application/octet-stream");
16966    let content_type = super::ContentType::from(content_type);
16967
16968    if !status.is_client_error() && !status.is_server_error() {
16969        let content = resp.text().await?;
16970        match content_type {
16971            ContentType::Json => serde_json::from_str(&content).map_err(Error::from),
16972            ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `models::AllAnalyticsData`"))),
16973            ContentType::Unsupported(unknown_type) => return Err(Error::from(serde_json::Error::custom(format!("Received `{unknown_type}` content type response that cannot be converted to `models::AllAnalyticsData`")))),
16974        }
16975    } else {
16976        let content = resp.text().await?;
16977        let entity: Option<GetAnalyticsDataError> = serde_json::from_str(&content).ok();
16978        Err(Error::ResponseError(ResponseContent { status, content, entity }))
16979    }
16980}
16981
16982pub async fn get_auth_method(configuration: &configuration::Configuration, get_auth_method: models::GetAuthMethod) -> Result<models::AuthMethod, Error<GetAuthMethodError>> {
16983    // add a prefix to parameters to efficiently prevent name collisions
16984    let p_body_get_auth_method = get_auth_method;
16985
16986    let uri_str = format!("{}/get-auth-method", configuration.base_path);
16987    let mut req_builder = configuration.client.request(reqwest::Method::POST, &uri_str);
16988
16989    if let Some(ref user_agent) = configuration.user_agent {
16990        req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone());
16991    }
16992    req_builder = req_builder.json(&p_body_get_auth_method);
16993
16994    let req = req_builder.build()?;
16995    let resp = configuration.client.execute(req).await?;
16996
16997    let status = resp.status();
16998    let content_type = resp
16999        .headers()
17000        .get("content-type")
17001        .and_then(|v| v.to_str().ok())
17002        .unwrap_or("application/octet-stream");
17003    let content_type = super::ContentType::from(content_type);
17004
17005    if !status.is_client_error() && !status.is_server_error() {
17006        let content = resp.text().await?;
17007        match content_type {
17008            ContentType::Json => serde_json::from_str(&content).map_err(Error::from),
17009            ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `models::AuthMethod`"))),
17010            ContentType::Unsupported(unknown_type) => return Err(Error::from(serde_json::Error::custom(format!("Received `{unknown_type}` content type response that cannot be converted to `models::AuthMethod`")))),
17011        }
17012    } else {
17013        let content = resp.text().await?;
17014        let entity: Option<GetAuthMethodError> = serde_json::from_str(&content).ok();
17015        Err(Error::ResponseError(ResponseContent { status, content, entity }))
17016    }
17017}
17018
17019pub async fn get_cert_challenge(configuration: &configuration::Configuration, get_cert_challenge: models::GetCertChallenge) -> Result<models::GetCertChallengeOutput, Error<GetCertChallengeError>> {
17020    // add a prefix to parameters to efficiently prevent name collisions
17021    let p_body_get_cert_challenge = get_cert_challenge;
17022
17023    let uri_str = format!("{}/get-cert-challenge", configuration.base_path);
17024    let mut req_builder = configuration.client.request(reqwest::Method::POST, &uri_str);
17025
17026    if let Some(ref user_agent) = configuration.user_agent {
17027        req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone());
17028    }
17029    req_builder = req_builder.json(&p_body_get_cert_challenge);
17030
17031    let req = req_builder.build()?;
17032    let resp = configuration.client.execute(req).await?;
17033
17034    let status = resp.status();
17035    let content_type = resp
17036        .headers()
17037        .get("content-type")
17038        .and_then(|v| v.to_str().ok())
17039        .unwrap_or("application/octet-stream");
17040    let content_type = super::ContentType::from(content_type);
17041
17042    if !status.is_client_error() && !status.is_server_error() {
17043        let content = resp.text().await?;
17044        match content_type {
17045            ContentType::Json => serde_json::from_str(&content).map_err(Error::from),
17046            ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `models::GetCertChallengeOutput`"))),
17047            ContentType::Unsupported(unknown_type) => return Err(Error::from(serde_json::Error::custom(format!("Received `{unknown_type}` content type response that cannot be converted to `models::GetCertChallengeOutput`")))),
17048        }
17049    } else {
17050        let content = resp.text().await?;
17051        let entity: Option<GetCertChallengeError> = serde_json::from_str(&content).ok();
17052        Err(Error::ResponseError(ResponseContent { status, content, entity }))
17053    }
17054}
17055
17056pub async fn get_certificate_value(configuration: &configuration::Configuration, get_certificate_value: models::GetCertificateValue) -> Result<models::GetCertificateValueOutput, Error<GetCertificateValueError>> {
17057    // add a prefix to parameters to efficiently prevent name collisions
17058    let p_body_get_certificate_value = get_certificate_value;
17059
17060    let uri_str = format!("{}/get-certificate-value", configuration.base_path);
17061    let mut req_builder = configuration.client.request(reqwest::Method::POST, &uri_str);
17062
17063    if let Some(ref user_agent) = configuration.user_agent {
17064        req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone());
17065    }
17066    req_builder = req_builder.json(&p_body_get_certificate_value);
17067
17068    let req = req_builder.build()?;
17069    let resp = configuration.client.execute(req).await?;
17070
17071    let status = resp.status();
17072    let content_type = resp
17073        .headers()
17074        .get("content-type")
17075        .and_then(|v| v.to_str().ok())
17076        .unwrap_or("application/octet-stream");
17077    let content_type = super::ContentType::from(content_type);
17078
17079    if !status.is_client_error() && !status.is_server_error() {
17080        let content = resp.text().await?;
17081        match content_type {
17082            ContentType::Json => serde_json::from_str(&content).map_err(Error::from),
17083            ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `models::GetCertificateValueOutput`"))),
17084            ContentType::Unsupported(unknown_type) => return Err(Error::from(serde_json::Error::custom(format!("Received `{unknown_type}` content type response that cannot be converted to `models::GetCertificateValueOutput`")))),
17085        }
17086    } else {
17087        let content = resp.text().await?;
17088        let entity: Option<GetCertificateValueError> = serde_json::from_str(&content).ok();
17089        Err(Error::ResponseError(ResponseContent { status, content, entity }))
17090    }
17091}
17092
17093pub async fn get_dynamic_secret_value(configuration: &configuration::Configuration, get_dynamic_secret_value: models::GetDynamicSecretValue) -> Result<serde_json::Value, Error<GetDynamicSecretValueError>> {
17094    // add a prefix to parameters to efficiently prevent name collisions
17095    let p_body_get_dynamic_secret_value = get_dynamic_secret_value;
17096
17097    let uri_str = format!("{}/get-dynamic-secret-value", configuration.base_path);
17098    let mut req_builder = configuration.client.request(reqwest::Method::POST, &uri_str);
17099
17100    if let Some(ref user_agent) = configuration.user_agent {
17101        req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone());
17102    }
17103    req_builder = req_builder.json(&p_body_get_dynamic_secret_value);
17104
17105    let req = req_builder.build()?;
17106    let resp = configuration.client.execute(req).await?;
17107
17108    let status = resp.status();
17109    let content_type = resp
17110        .headers()
17111        .get("content-type")
17112        .and_then(|v| v.to_str().ok())
17113        .unwrap_or("application/octet-stream");
17114    let content_type = super::ContentType::from(content_type);
17115
17116    if !status.is_client_error() && !status.is_server_error() {
17117        let content = resp.text().await?;
17118        match content_type {
17119            ContentType::Json => serde_json::from_str(&content).map_err(Error::from),
17120            ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `serde_json::Value`"))),
17121            ContentType::Unsupported(unknown_type) => return Err(Error::from(serde_json::Error::custom(format!("Received `{unknown_type}` content type response that cannot be converted to `serde_json::Value`")))),
17122        }
17123    } else {
17124        let content = resp.text().await?;
17125        let entity: Option<GetDynamicSecretValueError> = serde_json::from_str(&content).ok();
17126        Err(Error::ResponseError(ResponseContent { status, content, entity }))
17127    }
17128}
17129
17130pub async fn get_event_forwarder(configuration: &configuration::Configuration, get_event_forwarder: models::GetEventForwarder) -> Result<models::GetEventForwarderOutput, Error<GetEventForwarderError>> {
17131    // add a prefix to parameters to efficiently prevent name collisions
17132    let p_body_get_event_forwarder = get_event_forwarder;
17133
17134    let uri_str = format!("{}/get-event-forwarder", configuration.base_path);
17135    let mut req_builder = configuration.client.request(reqwest::Method::POST, &uri_str);
17136
17137    if let Some(ref user_agent) = configuration.user_agent {
17138        req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone());
17139    }
17140    req_builder = req_builder.json(&p_body_get_event_forwarder);
17141
17142    let req = req_builder.build()?;
17143    let resp = configuration.client.execute(req).await?;
17144
17145    let status = resp.status();
17146    let content_type = resp
17147        .headers()
17148        .get("content-type")
17149        .and_then(|v| v.to_str().ok())
17150        .unwrap_or("application/octet-stream");
17151    let content_type = super::ContentType::from(content_type);
17152
17153    if !status.is_client_error() && !status.is_server_error() {
17154        let content = resp.text().await?;
17155        match content_type {
17156            ContentType::Json => serde_json::from_str(&content).map_err(Error::from),
17157            ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `models::GetEventForwarderOutput`"))),
17158            ContentType::Unsupported(unknown_type) => return Err(Error::from(serde_json::Error::custom(format!("Received `{unknown_type}` content type response that cannot be converted to `models::GetEventForwarderOutput`")))),
17159        }
17160    } else {
17161        let content = resp.text().await?;
17162        let entity: Option<GetEventForwarderError> = serde_json::from_str(&content).ok();
17163        Err(Error::ResponseError(ResponseContent { status, content, entity }))
17164    }
17165}
17166
17167pub async fn get_group(configuration: &configuration::Configuration, get_group: models::GetGroup) -> Result<models::GetGroupOutput, Error<GetGroupError>> {
17168    // add a prefix to parameters to efficiently prevent name collisions
17169    let p_body_get_group = get_group;
17170
17171    let uri_str = format!("{}/get-group", configuration.base_path);
17172    let mut req_builder = configuration.client.request(reqwest::Method::POST, &uri_str);
17173
17174    if let Some(ref user_agent) = configuration.user_agent {
17175        req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone());
17176    }
17177    req_builder = req_builder.json(&p_body_get_group);
17178
17179    let req = req_builder.build()?;
17180    let resp = configuration.client.execute(req).await?;
17181
17182    let status = resp.status();
17183    let content_type = resp
17184        .headers()
17185        .get("content-type")
17186        .and_then(|v| v.to_str().ok())
17187        .unwrap_or("application/octet-stream");
17188    let content_type = super::ContentType::from(content_type);
17189
17190    if !status.is_client_error() && !status.is_server_error() {
17191        let content = resp.text().await?;
17192        match content_type {
17193            ContentType::Json => serde_json::from_str(&content).map_err(Error::from),
17194            ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `models::GetGroupOutput`"))),
17195            ContentType::Unsupported(unknown_type) => return Err(Error::from(serde_json::Error::custom(format!("Received `{unknown_type}` content type response that cannot be converted to `models::GetGroupOutput`")))),
17196        }
17197    } else {
17198        let content = resp.text().await?;
17199        let entity: Option<GetGroupError> = serde_json::from_str(&content).ok();
17200        Err(Error::ResponseError(ResponseContent { status, content, entity }))
17201    }
17202}
17203
17204pub async fn get_kube_exec_creds(configuration: &configuration::Configuration, get_kube_exec_creds: models::GetKubeExecCreds) -> Result<models::GetKubeExecCredsOutput, Error<GetKubeExecCredsError>> {
17205    // add a prefix to parameters to efficiently prevent name collisions
17206    let p_body_get_kube_exec_creds = get_kube_exec_creds;
17207
17208    let uri_str = format!("{}/get-kube-exec-creds", configuration.base_path);
17209    let mut req_builder = configuration.client.request(reqwest::Method::POST, &uri_str);
17210
17211    if let Some(ref user_agent) = configuration.user_agent {
17212        req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone());
17213    }
17214    req_builder = req_builder.json(&p_body_get_kube_exec_creds);
17215
17216    let req = req_builder.build()?;
17217    let resp = configuration.client.execute(req).await?;
17218
17219    let status = resp.status();
17220    let content_type = resp
17221        .headers()
17222        .get("content-type")
17223        .and_then(|v| v.to_str().ok())
17224        .unwrap_or("application/octet-stream");
17225    let content_type = super::ContentType::from(content_type);
17226
17227    if !status.is_client_error() && !status.is_server_error() {
17228        let content = resp.text().await?;
17229        match content_type {
17230            ContentType::Json => serde_json::from_str(&content).map_err(Error::from),
17231            ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `models::GetKubeExecCredsOutput`"))),
17232            ContentType::Unsupported(unknown_type) => return Err(Error::from(serde_json::Error::custom(format!("Received `{unknown_type}` content type response that cannot be converted to `models::GetKubeExecCredsOutput`")))),
17233        }
17234    } else {
17235        let content = resp.text().await?;
17236        let entity: Option<GetKubeExecCredsError> = serde_json::from_str(&content).ok();
17237        Err(Error::ResponseError(ResponseContent { status, content, entity }))
17238    }
17239}
17240
17241pub async fn get_last_user_event_status(configuration: &configuration::Configuration, get_last_user_event_status: models::GetLastUserEventStatus) -> Result<models::GetUserEventStatusOutput, Error<GetLastUserEventStatusError>> {
17242    // add a prefix to parameters to efficiently prevent name collisions
17243    let p_body_get_last_user_event_status = get_last_user_event_status;
17244
17245    let uri_str = format!("{}/user-event-last-status", configuration.base_path);
17246    let mut req_builder = configuration.client.request(reqwest::Method::POST, &uri_str);
17247
17248    if let Some(ref user_agent) = configuration.user_agent {
17249        req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone());
17250    }
17251    req_builder = req_builder.json(&p_body_get_last_user_event_status);
17252
17253    let req = req_builder.build()?;
17254    let resp = configuration.client.execute(req).await?;
17255
17256    let status = resp.status();
17257    let content_type = resp
17258        .headers()
17259        .get("content-type")
17260        .and_then(|v| v.to_str().ok())
17261        .unwrap_or("application/octet-stream");
17262    let content_type = super::ContentType::from(content_type);
17263
17264    if !status.is_client_error() && !status.is_server_error() {
17265        let content = resp.text().await?;
17266        match content_type {
17267            ContentType::Json => serde_json::from_str(&content).map_err(Error::from),
17268            ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `models::GetUserEventStatusOutput`"))),
17269            ContentType::Unsupported(unknown_type) => return Err(Error::from(serde_json::Error::custom(format!("Received `{unknown_type}` content type response that cannot be converted to `models::GetUserEventStatusOutput`")))),
17270        }
17271    } else {
17272        let content = resp.text().await?;
17273        let entity: Option<GetLastUserEventStatusError> = serde_json::from_str(&content).ok();
17274        Err(Error::ResponseError(ResponseContent { status, content, entity }))
17275    }
17276}
17277
17278pub async fn get_pki_certificate(configuration: &configuration::Configuration, get_pki_certificate: models::GetPkiCertificate) -> Result<models::GetPkiCertificateOutput, Error<GetPkiCertificateError>> {
17279    // add a prefix to parameters to efficiently prevent name collisions
17280    let p_body_get_pki_certificate = get_pki_certificate;
17281
17282    let uri_str = format!("{}/get-pki-certificate", configuration.base_path);
17283    let mut req_builder = configuration.client.request(reqwest::Method::POST, &uri_str);
17284
17285    if let Some(ref user_agent) = configuration.user_agent {
17286        req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone());
17287    }
17288    req_builder = req_builder.json(&p_body_get_pki_certificate);
17289
17290    let req = req_builder.build()?;
17291    let resp = configuration.client.execute(req).await?;
17292
17293    let status = resp.status();
17294    let content_type = resp
17295        .headers()
17296        .get("content-type")
17297        .and_then(|v| v.to_str().ok())
17298        .unwrap_or("application/octet-stream");
17299    let content_type = super::ContentType::from(content_type);
17300
17301    if !status.is_client_error() && !status.is_server_error() {
17302        let content = resp.text().await?;
17303        match content_type {
17304            ContentType::Json => serde_json::from_str(&content).map_err(Error::from),
17305            ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `models::GetPkiCertificateOutput`"))),
17306            ContentType::Unsupported(unknown_type) => return Err(Error::from(serde_json::Error::custom(format!("Received `{unknown_type}` content type response that cannot be converted to `models::GetPkiCertificateOutput`")))),
17307        }
17308    } else {
17309        let content = resp.text().await?;
17310        let entity: Option<GetPkiCertificateError> = serde_json::from_str(&content).ok();
17311        Err(Error::ResponseError(ResponseContent { status, content, entity }))
17312    }
17313}
17314
17315pub async fn get_role(configuration: &configuration::Configuration, get_role: models::GetRole) -> Result<models::Role, Error<GetRoleError>> {
17316    // add a prefix to parameters to efficiently prevent name collisions
17317    let p_body_get_role = get_role;
17318
17319    let uri_str = format!("{}/get-role", configuration.base_path);
17320    let mut req_builder = configuration.client.request(reqwest::Method::POST, &uri_str);
17321
17322    if let Some(ref user_agent) = configuration.user_agent {
17323        req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone());
17324    }
17325    req_builder = req_builder.json(&p_body_get_role);
17326
17327    let req = req_builder.build()?;
17328    let resp = configuration.client.execute(req).await?;
17329
17330    let status = resp.status();
17331    let content_type = resp
17332        .headers()
17333        .get("content-type")
17334        .and_then(|v| v.to_str().ok())
17335        .unwrap_or("application/octet-stream");
17336    let content_type = super::ContentType::from(content_type);
17337
17338    if !status.is_client_error() && !status.is_server_error() {
17339        let content = resp.text().await?;
17340        match content_type {
17341            ContentType::Json => serde_json::from_str(&content).map_err(Error::from),
17342            ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `models::Role`"))),
17343            ContentType::Unsupported(unknown_type) => return Err(Error::from(serde_json::Error::custom(format!("Received `{unknown_type}` content type response that cannot be converted to `models::Role`")))),
17344        }
17345    } else {
17346        let content = resp.text().await?;
17347        let entity: Option<GetRoleError> = serde_json::from_str(&content).ok();
17348        Err(Error::ResponseError(ResponseContent { status, content, entity }))
17349    }
17350}
17351
17352pub async fn get_rotated_secret_value(configuration: &configuration::Configuration, get_rotated_secret_value: models::GetRotatedSecretValue) -> Result<serde_json::Value, Error<GetRotatedSecretValueError>> {
17353    // add a prefix to parameters to efficiently prevent name collisions
17354    let p_body_get_rotated_secret_value = get_rotated_secret_value;
17355
17356    let uri_str = format!("{}/get-rotated-secret-value", configuration.base_path);
17357    let mut req_builder = configuration.client.request(reqwest::Method::POST, &uri_str);
17358
17359    if let Some(ref user_agent) = configuration.user_agent {
17360        req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone());
17361    }
17362    req_builder = req_builder.json(&p_body_get_rotated_secret_value);
17363
17364    let req = req_builder.build()?;
17365    let resp = configuration.client.execute(req).await?;
17366
17367    let status = resp.status();
17368    let content_type = resp
17369        .headers()
17370        .get("content-type")
17371        .and_then(|v| v.to_str().ok())
17372        .unwrap_or("application/octet-stream");
17373    let content_type = super::ContentType::from(content_type);
17374
17375    if !status.is_client_error() && !status.is_server_error() {
17376        let content = resp.text().await?;
17377        match content_type {
17378            ContentType::Json => serde_json::from_str(&content).map_err(Error::from),
17379            ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `serde_json::Value`"))),
17380            ContentType::Unsupported(unknown_type) => return Err(Error::from(serde_json::Error::custom(format!("Received `{unknown_type}` content type response that cannot be converted to `serde_json::Value`")))),
17381        }
17382    } else {
17383        let content = resp.text().await?;
17384        let entity: Option<GetRotatedSecretValueError> = serde_json::from_str(&content).ok();
17385        Err(Error::ResponseError(ResponseContent { status, content, entity }))
17386    }
17387}
17388
17389pub async fn get_rsa_public(configuration: &configuration::Configuration, get_rsa_public: models::GetRsaPublic) -> Result<models::GetRsaPublicOutput, Error<GetRsaPublicError>> {
17390    // add a prefix to parameters to efficiently prevent name collisions
17391    let p_body_get_rsa_public = get_rsa_public;
17392
17393    let uri_str = format!("{}/get-rsa-public", configuration.base_path);
17394    let mut req_builder = configuration.client.request(reqwest::Method::POST, &uri_str);
17395
17396    if let Some(ref user_agent) = configuration.user_agent {
17397        req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone());
17398    }
17399    req_builder = req_builder.json(&p_body_get_rsa_public);
17400
17401    let req = req_builder.build()?;
17402    let resp = configuration.client.execute(req).await?;
17403
17404    let status = resp.status();
17405    let content_type = resp
17406        .headers()
17407        .get("content-type")
17408        .and_then(|v| v.to_str().ok())
17409        .unwrap_or("application/octet-stream");
17410    let content_type = super::ContentType::from(content_type);
17411
17412    if !status.is_client_error() && !status.is_server_error() {
17413        let content = resp.text().await?;
17414        match content_type {
17415            ContentType::Json => serde_json::from_str(&content).map_err(Error::from),
17416            ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `models::GetRsaPublicOutput`"))),
17417            ContentType::Unsupported(unknown_type) => return Err(Error::from(serde_json::Error::custom(format!("Received `{unknown_type}` content type response that cannot be converted to `models::GetRsaPublicOutput`")))),
17418        }
17419    } else {
17420        let content = resp.text().await?;
17421        let entity: Option<GetRsaPublicError> = serde_json::from_str(&content).ok();
17422        Err(Error::ResponseError(ResponseContent { status, content, entity }))
17423    }
17424}
17425
17426pub async fn get_secret_value(configuration: &configuration::Configuration, get_secret_value: models::GetSecretValue) -> Result<serde_json::Value, Error<GetSecretValueError>> {
17427    // add a prefix to parameters to efficiently prevent name collisions
17428    let p_body_get_secret_value = get_secret_value;
17429
17430    let uri_str = format!("{}/get-secret-value", configuration.base_path);
17431    let mut req_builder = configuration.client.request(reqwest::Method::POST, &uri_str);
17432
17433    if let Some(ref user_agent) = configuration.user_agent {
17434        req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone());
17435    }
17436    req_builder = req_builder.json(&p_body_get_secret_value);
17437
17438    let req = req_builder.build()?;
17439    let resp = configuration.client.execute(req).await?;
17440
17441    let status = resp.status();
17442    let content_type = resp
17443        .headers()
17444        .get("content-type")
17445        .and_then(|v| v.to_str().ok())
17446        .unwrap_or("application/octet-stream");
17447    let content_type = super::ContentType::from(content_type);
17448
17449    if !status.is_client_error() && !status.is_server_error() {
17450        let content = resp.text().await?;
17451        match content_type {
17452            ContentType::Json => serde_json::from_str(&content).map_err(Error::from),
17453            ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `serde_json::Value`"))),
17454            ContentType::Unsupported(unknown_type) => return Err(Error::from(serde_json::Error::custom(format!("Received `{unknown_type}` content type response that cannot be converted to `serde_json::Value`")))),
17455        }
17456    } else {
17457        let content = resp.text().await?;
17458        let entity: Option<GetSecretValueError> = serde_json::from_str(&content).ok();
17459        Err(Error::ResponseError(ResponseContent { status, content, entity }))
17460    }
17461}
17462
17463pub async fn get_ssh_certificate(configuration: &configuration::Configuration, get_ssh_certificate: models::GetSshCertificate) -> Result<models::GetSshCertificateOutput, Error<GetSshCertificateError>> {
17464    // add a prefix to parameters to efficiently prevent name collisions
17465    let p_body_get_ssh_certificate = get_ssh_certificate;
17466
17467    let uri_str = format!("{}/get-ssh-certificate", configuration.base_path);
17468    let mut req_builder = configuration.client.request(reqwest::Method::POST, &uri_str);
17469
17470    if let Some(ref user_agent) = configuration.user_agent {
17471        req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone());
17472    }
17473    req_builder = req_builder.json(&p_body_get_ssh_certificate);
17474
17475    let req = req_builder.build()?;
17476    let resp = configuration.client.execute(req).await?;
17477
17478    let status = resp.status();
17479    let content_type = resp
17480        .headers()
17481        .get("content-type")
17482        .and_then(|v| v.to_str().ok())
17483        .unwrap_or("application/octet-stream");
17484    let content_type = super::ContentType::from(content_type);
17485
17486    if !status.is_client_error() && !status.is_server_error() {
17487        let content = resp.text().await?;
17488        match content_type {
17489            ContentType::Json => serde_json::from_str(&content).map_err(Error::from),
17490            ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `models::GetSshCertificateOutput`"))),
17491            ContentType::Unsupported(unknown_type) => return Err(Error::from(serde_json::Error::custom(format!("Received `{unknown_type}` content type response that cannot be converted to `models::GetSshCertificateOutput`")))),
17492        }
17493    } else {
17494        let content = resp.text().await?;
17495        let entity: Option<GetSshCertificateError> = serde_json::from_str(&content).ok();
17496        Err(Error::ResponseError(ResponseContent { status, content, entity }))
17497    }
17498}
17499
17500pub async fn get_tags(configuration: &configuration::Configuration, get_tags: models::GetTags) -> Result<Vec<String>, Error<GetTagsError>> {
17501    // add a prefix to parameters to efficiently prevent name collisions
17502    let p_body_get_tags = get_tags;
17503
17504    let uri_str = format!("{}/get-tags", configuration.base_path);
17505    let mut req_builder = configuration.client.request(reqwest::Method::POST, &uri_str);
17506
17507    if let Some(ref user_agent) = configuration.user_agent {
17508        req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone());
17509    }
17510    req_builder = req_builder.json(&p_body_get_tags);
17511
17512    let req = req_builder.build()?;
17513    let resp = configuration.client.execute(req).await?;
17514
17515    let status = resp.status();
17516    let content_type = resp
17517        .headers()
17518        .get("content-type")
17519        .and_then(|v| v.to_str().ok())
17520        .unwrap_or("application/octet-stream");
17521    let content_type = super::ContentType::from(content_type);
17522
17523    if !status.is_client_error() && !status.is_server_error() {
17524        let content = resp.text().await?;
17525        match content_type {
17526            ContentType::Json => serde_json::from_str(&content).map_err(Error::from),
17527            ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `Vec&lt;String&gt;`"))),
17528            ContentType::Unsupported(unknown_type) => return Err(Error::from(serde_json::Error::custom(format!("Received `{unknown_type}` content type response that cannot be converted to `Vec&lt;String&gt;`")))),
17529        }
17530    } else {
17531        let content = resp.text().await?;
17532        let entity: Option<GetTagsError> = serde_json::from_str(&content).ok();
17533        Err(Error::ResponseError(ResponseContent { status, content, entity }))
17534    }
17535}
17536
17537pub async fn get_target(configuration: &configuration::Configuration, get_target: models::GetTarget) -> Result<models::Target, Error<GetTargetError>> {
17538    // add a prefix to parameters to efficiently prevent name collisions
17539    let p_body_get_target = get_target;
17540
17541    let uri_str = format!("{}/get-target", configuration.base_path);
17542    let mut req_builder = configuration.client.request(reqwest::Method::POST, &uri_str);
17543
17544    if let Some(ref user_agent) = configuration.user_agent {
17545        req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone());
17546    }
17547    req_builder = req_builder.json(&p_body_get_target);
17548
17549    let req = req_builder.build()?;
17550    let resp = configuration.client.execute(req).await?;
17551
17552    let status = resp.status();
17553    let content_type = resp
17554        .headers()
17555        .get("content-type")
17556        .and_then(|v| v.to_str().ok())
17557        .unwrap_or("application/octet-stream");
17558    let content_type = super::ContentType::from(content_type);
17559
17560    if !status.is_client_error() && !status.is_server_error() {
17561        let content = resp.text().await?;
17562        match content_type {
17563            ContentType::Json => serde_json::from_str(&content).map_err(Error::from),
17564            ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `models::Target`"))),
17565            ContentType::Unsupported(unknown_type) => return Err(Error::from(serde_json::Error::custom(format!("Received `{unknown_type}` content type response that cannot be converted to `models::Target`")))),
17566        }
17567    } else {
17568        let content = resp.text().await?;
17569        let entity: Option<GetTargetError> = serde_json::from_str(&content).ok();
17570        Err(Error::ResponseError(ResponseContent { status, content, entity }))
17571    }
17572}
17573
17574pub async fn get_target_details(configuration: &configuration::Configuration, get_target_details: models::GetTargetDetails) -> Result<models::GetTargetDetailsOutput, Error<GetTargetDetailsError>> {
17575    // add a prefix to parameters to efficiently prevent name collisions
17576    let p_body_get_target_details = get_target_details;
17577
17578    let uri_str = format!("{}/get-target-details", configuration.base_path);
17579    let mut req_builder = configuration.client.request(reqwest::Method::POST, &uri_str);
17580
17581    if let Some(ref user_agent) = configuration.user_agent {
17582        req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone());
17583    }
17584    req_builder = req_builder.json(&p_body_get_target_details);
17585
17586    let req = req_builder.build()?;
17587    let resp = configuration.client.execute(req).await?;
17588
17589    let status = resp.status();
17590    let content_type = resp
17591        .headers()
17592        .get("content-type")
17593        .and_then(|v| v.to_str().ok())
17594        .unwrap_or("application/octet-stream");
17595    let content_type = super::ContentType::from(content_type);
17596
17597    if !status.is_client_error() && !status.is_server_error() {
17598        let content = resp.text().await?;
17599        match content_type {
17600            ContentType::Json => serde_json::from_str(&content).map_err(Error::from),
17601            ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `models::GetTargetDetailsOutput`"))),
17602            ContentType::Unsupported(unknown_type) => return Err(Error::from(serde_json::Error::custom(format!("Received `{unknown_type}` content type response that cannot be converted to `models::GetTargetDetailsOutput`")))),
17603        }
17604    } else {
17605        let content = resp.text().await?;
17606        let entity: Option<GetTargetDetailsError> = serde_json::from_str(&content).ok();
17607        Err(Error::ResponseError(ResponseContent { status, content, entity }))
17608    }
17609}
17610
17611pub async fn gw_update_remote_access_session_logs_aws_s3(configuration: &configuration::Configuration, gw_update_remote_access_session_logs_aws_s3: models::GwUpdateRemoteAccessSessionLogsAwsS3) -> Result<models::GatewayUpdateLogForwardingOutput, Error<GwUpdateRemoteAccessSessionLogsAwsS3Error>> {
17612    // add a prefix to parameters to efficiently prevent name collisions
17613    let p_body_gw_update_remote_access_session_logs_aws_s3 = gw_update_remote_access_session_logs_aws_s3;
17614
17615    let uri_str = format!("{}/gateway-update-remote-access-session-forwarding-aws-s3", configuration.base_path);
17616    let mut req_builder = configuration.client.request(reqwest::Method::POST, &uri_str);
17617
17618    if let Some(ref user_agent) = configuration.user_agent {
17619        req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone());
17620    }
17621    req_builder = req_builder.json(&p_body_gw_update_remote_access_session_logs_aws_s3);
17622
17623    let req = req_builder.build()?;
17624    let resp = configuration.client.execute(req).await?;
17625
17626    let status = resp.status();
17627    let content_type = resp
17628        .headers()
17629        .get("content-type")
17630        .and_then(|v| v.to_str().ok())
17631        .unwrap_or("application/octet-stream");
17632    let content_type = super::ContentType::from(content_type);
17633
17634    if !status.is_client_error() && !status.is_server_error() {
17635        let content = resp.text().await?;
17636        match content_type {
17637            ContentType::Json => serde_json::from_str(&content).map_err(Error::from),
17638            ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `models::GatewayUpdateLogForwardingOutput`"))),
17639            ContentType::Unsupported(unknown_type) => return Err(Error::from(serde_json::Error::custom(format!("Received `{unknown_type}` content type response that cannot be converted to `models::GatewayUpdateLogForwardingOutput`")))),
17640        }
17641    } else {
17642        let content = resp.text().await?;
17643        let entity: Option<GwUpdateRemoteAccessSessionLogsAwsS3Error> = serde_json::from_str(&content).ok();
17644        Err(Error::ResponseError(ResponseContent { status, content, entity }))
17645    }
17646}
17647
17648pub async fn gw_update_remote_access_session_logs_azure_analytics(configuration: &configuration::Configuration, gw_update_remote_access_session_logs_azure_analytics: models::GwUpdateRemoteAccessSessionLogsAzureAnalytics) -> Result<models::GatewayUpdateLogForwardingOutput, Error<GwUpdateRemoteAccessSessionLogsAzureAnalyticsError>> {
17649    // add a prefix to parameters to efficiently prevent name collisions
17650    let p_body_gw_update_remote_access_session_logs_azure_analytics = gw_update_remote_access_session_logs_azure_analytics;
17651
17652    let uri_str = format!("{}/gateway-update-remote-access-session-forwarding-azure-analytics", configuration.base_path);
17653    let mut req_builder = configuration.client.request(reqwest::Method::POST, &uri_str);
17654
17655    if let Some(ref user_agent) = configuration.user_agent {
17656        req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone());
17657    }
17658    req_builder = req_builder.json(&p_body_gw_update_remote_access_session_logs_azure_analytics);
17659
17660    let req = req_builder.build()?;
17661    let resp = configuration.client.execute(req).await?;
17662
17663    let status = resp.status();
17664    let content_type = resp
17665        .headers()
17666        .get("content-type")
17667        .and_then(|v| v.to_str().ok())
17668        .unwrap_or("application/octet-stream");
17669    let content_type = super::ContentType::from(content_type);
17670
17671    if !status.is_client_error() && !status.is_server_error() {
17672        let content = resp.text().await?;
17673        match content_type {
17674            ContentType::Json => serde_json::from_str(&content).map_err(Error::from),
17675            ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `models::GatewayUpdateLogForwardingOutput`"))),
17676            ContentType::Unsupported(unknown_type) => return Err(Error::from(serde_json::Error::custom(format!("Received `{unknown_type}` content type response that cannot be converted to `models::GatewayUpdateLogForwardingOutput`")))),
17677        }
17678    } else {
17679        let content = resp.text().await?;
17680        let entity: Option<GwUpdateRemoteAccessSessionLogsAzureAnalyticsError> = serde_json::from_str(&content).ok();
17681        Err(Error::ResponseError(ResponseContent { status, content, entity }))
17682    }
17683}
17684
17685pub async fn gw_update_remote_access_session_logs_datadog(configuration: &configuration::Configuration, gw_update_remote_access_session_logs_datadog: models::GwUpdateRemoteAccessSessionLogsDatadog) -> Result<models::GatewayUpdateLogForwardingOutput, Error<GwUpdateRemoteAccessSessionLogsDatadogError>> {
17686    // add a prefix to parameters to efficiently prevent name collisions
17687    let p_body_gw_update_remote_access_session_logs_datadog = gw_update_remote_access_session_logs_datadog;
17688
17689    let uri_str = format!("{}/gateway-update-remote-access-session-forwarding-datadog", configuration.base_path);
17690    let mut req_builder = configuration.client.request(reqwest::Method::POST, &uri_str);
17691
17692    if let Some(ref user_agent) = configuration.user_agent {
17693        req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone());
17694    }
17695    req_builder = req_builder.json(&p_body_gw_update_remote_access_session_logs_datadog);
17696
17697    let req = req_builder.build()?;
17698    let resp = configuration.client.execute(req).await?;
17699
17700    let status = resp.status();
17701    let content_type = resp
17702        .headers()
17703        .get("content-type")
17704        .and_then(|v| v.to_str().ok())
17705        .unwrap_or("application/octet-stream");
17706    let content_type = super::ContentType::from(content_type);
17707
17708    if !status.is_client_error() && !status.is_server_error() {
17709        let content = resp.text().await?;
17710        match content_type {
17711            ContentType::Json => serde_json::from_str(&content).map_err(Error::from),
17712            ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `models::GatewayUpdateLogForwardingOutput`"))),
17713            ContentType::Unsupported(unknown_type) => return Err(Error::from(serde_json::Error::custom(format!("Received `{unknown_type}` content type response that cannot be converted to `models::GatewayUpdateLogForwardingOutput`")))),
17714        }
17715    } else {
17716        let content = resp.text().await?;
17717        let entity: Option<GwUpdateRemoteAccessSessionLogsDatadogError> = serde_json::from_str(&content).ok();
17718        Err(Error::ResponseError(ResponseContent { status, content, entity }))
17719    }
17720}
17721
17722pub async fn gw_update_remote_access_session_logs_elasticsearch(configuration: &configuration::Configuration, gw_update_remote_access_session_logs_elasticsearch: models::GwUpdateRemoteAccessSessionLogsElasticsearch) -> Result<models::GatewayUpdateLogForwardingOutput, Error<GwUpdateRemoteAccessSessionLogsElasticsearchError>> {
17723    // add a prefix to parameters to efficiently prevent name collisions
17724    let p_body_gw_update_remote_access_session_logs_elasticsearch = gw_update_remote_access_session_logs_elasticsearch;
17725
17726    let uri_str = format!("{}/gateway-update-remote-access-session-forwarding-elasticsearch", configuration.base_path);
17727    let mut req_builder = configuration.client.request(reqwest::Method::POST, &uri_str);
17728
17729    if let Some(ref user_agent) = configuration.user_agent {
17730        req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone());
17731    }
17732    req_builder = req_builder.json(&p_body_gw_update_remote_access_session_logs_elasticsearch);
17733
17734    let req = req_builder.build()?;
17735    let resp = configuration.client.execute(req).await?;
17736
17737    let status = resp.status();
17738    let content_type = resp
17739        .headers()
17740        .get("content-type")
17741        .and_then(|v| v.to_str().ok())
17742        .unwrap_or("application/octet-stream");
17743    let content_type = super::ContentType::from(content_type);
17744
17745    if !status.is_client_error() && !status.is_server_error() {
17746        let content = resp.text().await?;
17747        match content_type {
17748            ContentType::Json => serde_json::from_str(&content).map_err(Error::from),
17749            ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `models::GatewayUpdateLogForwardingOutput`"))),
17750            ContentType::Unsupported(unknown_type) => return Err(Error::from(serde_json::Error::custom(format!("Received `{unknown_type}` content type response that cannot be converted to `models::GatewayUpdateLogForwardingOutput`")))),
17751        }
17752    } else {
17753        let content = resp.text().await?;
17754        let entity: Option<GwUpdateRemoteAccessSessionLogsElasticsearchError> = serde_json::from_str(&content).ok();
17755        Err(Error::ResponseError(ResponseContent { status, content, entity }))
17756    }
17757}
17758
17759pub async fn gw_update_remote_access_session_logs_google_chronicle(configuration: &configuration::Configuration, gw_update_remote_access_session_logs_google_chronicle: models::GwUpdateRemoteAccessSessionLogsGoogleChronicle) -> Result<models::GatewayUpdateLogForwardingOutput, Error<GwUpdateRemoteAccessSessionLogsGoogleChronicleError>> {
17760    // add a prefix to parameters to efficiently prevent name collisions
17761    let p_body_gw_update_remote_access_session_logs_google_chronicle = gw_update_remote_access_session_logs_google_chronicle;
17762
17763    let uri_str = format!("{}/gateway-update-remote-access-session-forwarding-google-chronicle", configuration.base_path);
17764    let mut req_builder = configuration.client.request(reqwest::Method::POST, &uri_str);
17765
17766    if let Some(ref user_agent) = configuration.user_agent {
17767        req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone());
17768    }
17769    req_builder = req_builder.json(&p_body_gw_update_remote_access_session_logs_google_chronicle);
17770
17771    let req = req_builder.build()?;
17772    let resp = configuration.client.execute(req).await?;
17773
17774    let status = resp.status();
17775    let content_type = resp
17776        .headers()
17777        .get("content-type")
17778        .and_then(|v| v.to_str().ok())
17779        .unwrap_or("application/octet-stream");
17780    let content_type = super::ContentType::from(content_type);
17781
17782    if !status.is_client_error() && !status.is_server_error() {
17783        let content = resp.text().await?;
17784        match content_type {
17785            ContentType::Json => serde_json::from_str(&content).map_err(Error::from),
17786            ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `models::GatewayUpdateLogForwardingOutput`"))),
17787            ContentType::Unsupported(unknown_type) => return Err(Error::from(serde_json::Error::custom(format!("Received `{unknown_type}` content type response that cannot be converted to `models::GatewayUpdateLogForwardingOutput`")))),
17788        }
17789    } else {
17790        let content = resp.text().await?;
17791        let entity: Option<GwUpdateRemoteAccessSessionLogsGoogleChronicleError> = serde_json::from_str(&content).ok();
17792        Err(Error::ResponseError(ResponseContent { status, content, entity }))
17793    }
17794}
17795
17796pub async fn gw_update_remote_access_session_logs_logstash(configuration: &configuration::Configuration, gw_update_remote_access_session_logs_logstash: models::GwUpdateRemoteAccessSessionLogsLogstash) -> Result<models::GatewayUpdateLogForwardingOutput, Error<GwUpdateRemoteAccessSessionLogsLogstashError>> {
17797    // add a prefix to parameters to efficiently prevent name collisions
17798    let p_body_gw_update_remote_access_session_logs_logstash = gw_update_remote_access_session_logs_logstash;
17799
17800    let uri_str = format!("{}/gateway-update-remote-access-session-forwarding-logstash", configuration.base_path);
17801    let mut req_builder = configuration.client.request(reqwest::Method::POST, &uri_str);
17802
17803    if let Some(ref user_agent) = configuration.user_agent {
17804        req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone());
17805    }
17806    req_builder = req_builder.json(&p_body_gw_update_remote_access_session_logs_logstash);
17807
17808    let req = req_builder.build()?;
17809    let resp = configuration.client.execute(req).await?;
17810
17811    let status = resp.status();
17812    let content_type = resp
17813        .headers()
17814        .get("content-type")
17815        .and_then(|v| v.to_str().ok())
17816        .unwrap_or("application/octet-stream");
17817    let content_type = super::ContentType::from(content_type);
17818
17819    if !status.is_client_error() && !status.is_server_error() {
17820        let content = resp.text().await?;
17821        match content_type {
17822            ContentType::Json => serde_json::from_str(&content).map_err(Error::from),
17823            ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `models::GatewayUpdateLogForwardingOutput`"))),
17824            ContentType::Unsupported(unknown_type) => return Err(Error::from(serde_json::Error::custom(format!("Received `{unknown_type}` content type response that cannot be converted to `models::GatewayUpdateLogForwardingOutput`")))),
17825        }
17826    } else {
17827        let content = resp.text().await?;
17828        let entity: Option<GwUpdateRemoteAccessSessionLogsLogstashError> = serde_json::from_str(&content).ok();
17829        Err(Error::ResponseError(ResponseContent { status, content, entity }))
17830    }
17831}
17832
17833pub async fn gw_update_remote_access_session_logs_logz_io(configuration: &configuration::Configuration, gw_update_remote_access_session_logs_logz_io: models::GwUpdateRemoteAccessSessionLogsLogzIo) -> Result<models::GatewayUpdateLogForwardingOutput, Error<GwUpdateRemoteAccessSessionLogsLogzIoError>> {
17834    // add a prefix to parameters to efficiently prevent name collisions
17835    let p_body_gw_update_remote_access_session_logs_logz_io = gw_update_remote_access_session_logs_logz_io;
17836
17837    let uri_str = format!("{}/gateway-update-remote-access-session-forwarding-logz-io", configuration.base_path);
17838    let mut req_builder = configuration.client.request(reqwest::Method::POST, &uri_str);
17839
17840    if let Some(ref user_agent) = configuration.user_agent {
17841        req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone());
17842    }
17843    req_builder = req_builder.json(&p_body_gw_update_remote_access_session_logs_logz_io);
17844
17845    let req = req_builder.build()?;
17846    let resp = configuration.client.execute(req).await?;
17847
17848    let status = resp.status();
17849    let content_type = resp
17850        .headers()
17851        .get("content-type")
17852        .and_then(|v| v.to_str().ok())
17853        .unwrap_or("application/octet-stream");
17854    let content_type = super::ContentType::from(content_type);
17855
17856    if !status.is_client_error() && !status.is_server_error() {
17857        let content = resp.text().await?;
17858        match content_type {
17859            ContentType::Json => serde_json::from_str(&content).map_err(Error::from),
17860            ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `models::GatewayUpdateLogForwardingOutput`"))),
17861            ContentType::Unsupported(unknown_type) => return Err(Error::from(serde_json::Error::custom(format!("Received `{unknown_type}` content type response that cannot be converted to `models::GatewayUpdateLogForwardingOutput`")))),
17862        }
17863    } else {
17864        let content = resp.text().await?;
17865        let entity: Option<GwUpdateRemoteAccessSessionLogsLogzIoError> = serde_json::from_str(&content).ok();
17866        Err(Error::ResponseError(ResponseContent { status, content, entity }))
17867    }
17868}
17869
17870pub async fn gw_update_remote_access_session_logs_splunk(configuration: &configuration::Configuration, gw_update_remote_access_session_logs_splunk: models::GwUpdateRemoteAccessSessionLogsSplunk) -> Result<models::GatewayUpdateLogForwardingOutput, Error<GwUpdateRemoteAccessSessionLogsSplunkError>> {
17871    // add a prefix to parameters to efficiently prevent name collisions
17872    let p_body_gw_update_remote_access_session_logs_splunk = gw_update_remote_access_session_logs_splunk;
17873
17874    let uri_str = format!("{}/gateway-update-remote-access-session-forwarding-splunk", configuration.base_path);
17875    let mut req_builder = configuration.client.request(reqwest::Method::POST, &uri_str);
17876
17877    if let Some(ref user_agent) = configuration.user_agent {
17878        req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone());
17879    }
17880    req_builder = req_builder.json(&p_body_gw_update_remote_access_session_logs_splunk);
17881
17882    let req = req_builder.build()?;
17883    let resp = configuration.client.execute(req).await?;
17884
17885    let status = resp.status();
17886    let content_type = resp
17887        .headers()
17888        .get("content-type")
17889        .and_then(|v| v.to_str().ok())
17890        .unwrap_or("application/octet-stream");
17891    let content_type = super::ContentType::from(content_type);
17892
17893    if !status.is_client_error() && !status.is_server_error() {
17894        let content = resp.text().await?;
17895        match content_type {
17896            ContentType::Json => serde_json::from_str(&content).map_err(Error::from),
17897            ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `models::GatewayUpdateLogForwardingOutput`"))),
17898            ContentType::Unsupported(unknown_type) => return Err(Error::from(serde_json::Error::custom(format!("Received `{unknown_type}` content type response that cannot be converted to `models::GatewayUpdateLogForwardingOutput`")))),
17899        }
17900    } else {
17901        let content = resp.text().await?;
17902        let entity: Option<GwUpdateRemoteAccessSessionLogsSplunkError> = serde_json::from_str(&content).ok();
17903        Err(Error::ResponseError(ResponseContent { status, content, entity }))
17904    }
17905}
17906
17907pub async fn gw_update_remote_access_session_logs_stdout(configuration: &configuration::Configuration, gw_update_remote_access_session_logs_stdout: models::GwUpdateRemoteAccessSessionLogsStdout) -> Result<models::GatewayUpdateLogForwardingOutput, Error<GwUpdateRemoteAccessSessionLogsStdoutError>> {
17908    // add a prefix to parameters to efficiently prevent name collisions
17909    let p_body_gw_update_remote_access_session_logs_stdout = gw_update_remote_access_session_logs_stdout;
17910
17911    let uri_str = format!("{}/gateway-update-remote-access-session-forwarding-stdout", configuration.base_path);
17912    let mut req_builder = configuration.client.request(reqwest::Method::POST, &uri_str);
17913
17914    if let Some(ref user_agent) = configuration.user_agent {
17915        req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone());
17916    }
17917    req_builder = req_builder.json(&p_body_gw_update_remote_access_session_logs_stdout);
17918
17919    let req = req_builder.build()?;
17920    let resp = configuration.client.execute(req).await?;
17921
17922    let status = resp.status();
17923    let content_type = resp
17924        .headers()
17925        .get("content-type")
17926        .and_then(|v| v.to_str().ok())
17927        .unwrap_or("application/octet-stream");
17928    let content_type = super::ContentType::from(content_type);
17929
17930    if !status.is_client_error() && !status.is_server_error() {
17931        let content = resp.text().await?;
17932        match content_type {
17933            ContentType::Json => serde_json::from_str(&content).map_err(Error::from),
17934            ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `models::GatewayUpdateLogForwardingOutput`"))),
17935            ContentType::Unsupported(unknown_type) => return Err(Error::from(serde_json::Error::custom(format!("Received `{unknown_type}` content type response that cannot be converted to `models::GatewayUpdateLogForwardingOutput`")))),
17936        }
17937    } else {
17938        let content = resp.text().await?;
17939        let entity: Option<GwUpdateRemoteAccessSessionLogsStdoutError> = serde_json::from_str(&content).ok();
17940        Err(Error::ResponseError(ResponseContent { status, content, entity }))
17941    }
17942}
17943
17944pub async fn gw_update_remote_access_session_logs_sumologic(configuration: &configuration::Configuration, gw_update_remote_access_session_logs_sumologic: models::GwUpdateRemoteAccessSessionLogsSumologic) -> Result<models::GatewayUpdateLogForwardingOutput, Error<GwUpdateRemoteAccessSessionLogsSumologicError>> {
17945    // add a prefix to parameters to efficiently prevent name collisions
17946    let p_body_gw_update_remote_access_session_logs_sumologic = gw_update_remote_access_session_logs_sumologic;
17947
17948    let uri_str = format!("{}/gateway-update-remote-access-session-forwarding-sumologic", configuration.base_path);
17949    let mut req_builder = configuration.client.request(reqwest::Method::POST, &uri_str);
17950
17951    if let Some(ref user_agent) = configuration.user_agent {
17952        req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone());
17953    }
17954    req_builder = req_builder.json(&p_body_gw_update_remote_access_session_logs_sumologic);
17955
17956    let req = req_builder.build()?;
17957    let resp = configuration.client.execute(req).await?;
17958
17959    let status = resp.status();
17960    let content_type = resp
17961        .headers()
17962        .get("content-type")
17963        .and_then(|v| v.to_str().ok())
17964        .unwrap_or("application/octet-stream");
17965    let content_type = super::ContentType::from(content_type);
17966
17967    if !status.is_client_error() && !status.is_server_error() {
17968        let content = resp.text().await?;
17969        match content_type {
17970            ContentType::Json => serde_json::from_str(&content).map_err(Error::from),
17971            ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `models::GatewayUpdateLogForwardingOutput`"))),
17972            ContentType::Unsupported(unknown_type) => return Err(Error::from(serde_json::Error::custom(format!("Received `{unknown_type}` content type response that cannot be converted to `models::GatewayUpdateLogForwardingOutput`")))),
17973        }
17974    } else {
17975        let content = resp.text().await?;
17976        let entity: Option<GwUpdateRemoteAccessSessionLogsSumologicError> = serde_json::from_str(&content).ok();
17977        Err(Error::ResponseError(ResponseContent { status, content, entity }))
17978    }
17979}
17980
17981pub async fn gw_update_remote_access_session_logs_syslog(configuration: &configuration::Configuration, gw_update_remote_access_session_logs_syslog: models::GwUpdateRemoteAccessSessionLogsSyslog) -> Result<models::GatewayUpdateLogForwardingOutput, Error<GwUpdateRemoteAccessSessionLogsSyslogError>> {
17982    // add a prefix to parameters to efficiently prevent name collisions
17983    let p_body_gw_update_remote_access_session_logs_syslog = gw_update_remote_access_session_logs_syslog;
17984
17985    let uri_str = format!("{}/gateway-update-remote-access-session-forwarding-syslog", configuration.base_path);
17986    let mut req_builder = configuration.client.request(reqwest::Method::POST, &uri_str);
17987
17988    if let Some(ref user_agent) = configuration.user_agent {
17989        req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone());
17990    }
17991    req_builder = req_builder.json(&p_body_gw_update_remote_access_session_logs_syslog);
17992
17993    let req = req_builder.build()?;
17994    let resp = configuration.client.execute(req).await?;
17995
17996    let status = resp.status();
17997    let content_type = resp
17998        .headers()
17999        .get("content-type")
18000        .and_then(|v| v.to_str().ok())
18001        .unwrap_or("application/octet-stream");
18002    let content_type = super::ContentType::from(content_type);
18003
18004    if !status.is_client_error() && !status.is_server_error() {
18005        let content = resp.text().await?;
18006        match content_type {
18007            ContentType::Json => serde_json::from_str(&content).map_err(Error::from),
18008            ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `models::GatewayUpdateLogForwardingOutput`"))),
18009            ContentType::Unsupported(unknown_type) => return Err(Error::from(serde_json::Error::custom(format!("Received `{unknown_type}` content type response that cannot be converted to `models::GatewayUpdateLogForwardingOutput`")))),
18010        }
18011    } else {
18012        let content = resp.text().await?;
18013        let entity: Option<GwUpdateRemoteAccessSessionLogsSyslogError> = serde_json::from_str(&content).ok();
18014        Err(Error::ResponseError(ResponseContent { status, content, entity }))
18015    }
18016}
18017
18018pub async fn hmac(configuration: &configuration::Configuration, hmac: models::Hmac) -> Result<models::HmacOutput, Error<HmacError>> {
18019    // add a prefix to parameters to efficiently prevent name collisions
18020    let p_body_hmac = hmac;
18021
18022    let uri_str = format!("{}/hmac", configuration.base_path);
18023    let mut req_builder = configuration.client.request(reqwest::Method::POST, &uri_str);
18024
18025    if let Some(ref user_agent) = configuration.user_agent {
18026        req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone());
18027    }
18028    req_builder = req_builder.json(&p_body_hmac);
18029
18030    let req = req_builder.build()?;
18031    let resp = configuration.client.execute(req).await?;
18032
18033    let status = resp.status();
18034    let content_type = resp
18035        .headers()
18036        .get("content-type")
18037        .and_then(|v| v.to_str().ok())
18038        .unwrap_or("application/octet-stream");
18039    let content_type = super::ContentType::from(content_type);
18040
18041    if !status.is_client_error() && !status.is_server_error() {
18042        let content = resp.text().await?;
18043        match content_type {
18044            ContentType::Json => serde_json::from_str(&content).map_err(Error::from),
18045            ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `models::HmacOutput`"))),
18046            ContentType::Unsupported(unknown_type) => return Err(Error::from(serde_json::Error::custom(format!("Received `{unknown_type}` content type response that cannot be converted to `models::HmacOutput`")))),
18047        }
18048    } else {
18049        let content = resp.text().await?;
18050        let entity: Option<HmacError> = serde_json::from_str(&content).ok();
18051        Err(Error::ResponseError(ResponseContent { status, content, entity }))
18052    }
18053}
18054
18055pub async fn import_passwords(configuration: &configuration::Configuration, import_passwords: models::ImportPasswords) -> Result<models::ImportPasswordsOutput, Error<ImportPasswordsError>> {
18056    // add a prefix to parameters to efficiently prevent name collisions
18057    let p_body_import_passwords = import_passwords;
18058
18059    let uri_str = format!("{}/import-passwords", configuration.base_path);
18060    let mut req_builder = configuration.client.request(reqwest::Method::POST, &uri_str);
18061
18062    if let Some(ref user_agent) = configuration.user_agent {
18063        req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone());
18064    }
18065    req_builder = req_builder.json(&p_body_import_passwords);
18066
18067    let req = req_builder.build()?;
18068    let resp = configuration.client.execute(req).await?;
18069
18070    let status = resp.status();
18071    let content_type = resp
18072        .headers()
18073        .get("content-type")
18074        .and_then(|v| v.to_str().ok())
18075        .unwrap_or("application/octet-stream");
18076    let content_type = super::ContentType::from(content_type);
18077
18078    if !status.is_client_error() && !status.is_server_error() {
18079        let content = resp.text().await?;
18080        match content_type {
18081            ContentType::Json => serde_json::from_str(&content).map_err(Error::from),
18082            ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `models::ImportPasswordsOutput`"))),
18083            ContentType::Unsupported(unknown_type) => return Err(Error::from(serde_json::Error::custom(format!("Received `{unknown_type}` content type response that cannot be converted to `models::ImportPasswordsOutput`")))),
18084        }
18085    } else {
18086        let content = resp.text().await?;
18087        let entity: Option<ImportPasswordsError> = serde_json::from_str(&content).ok();
18088        Err(Error::ResponseError(ResponseContent { status, content, entity }))
18089    }
18090}
18091
18092pub async fn kmip_client_delete_rule(configuration: &configuration::Configuration, kmip_client_delete_rule: Option<models::KmipClientDeleteRule>) -> Result<models::KmipClientUpdateResponse, Error<KmipClientDeleteRuleError>> {
18093    // add a prefix to parameters to efficiently prevent name collisions
18094    let p_body_kmip_client_delete_rule = kmip_client_delete_rule;
18095
18096    let uri_str = format!("{}/kmip-client-delete-rule", configuration.base_path);
18097    let mut req_builder = configuration.client.request(reqwest::Method::POST, &uri_str);
18098
18099    if let Some(ref user_agent) = configuration.user_agent {
18100        req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone());
18101    }
18102    req_builder = req_builder.json(&p_body_kmip_client_delete_rule);
18103
18104    let req = req_builder.build()?;
18105    let resp = configuration.client.execute(req).await?;
18106
18107    let status = resp.status();
18108    let content_type = resp
18109        .headers()
18110        .get("content-type")
18111        .and_then(|v| v.to_str().ok())
18112        .unwrap_or("application/octet-stream");
18113    let content_type = super::ContentType::from(content_type);
18114
18115    if !status.is_client_error() && !status.is_server_error() {
18116        let content = resp.text().await?;
18117        match content_type {
18118            ContentType::Json => serde_json::from_str(&content).map_err(Error::from),
18119            ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `models::KmipClientUpdateResponse`"))),
18120            ContentType::Unsupported(unknown_type) => return Err(Error::from(serde_json::Error::custom(format!("Received `{unknown_type}` content type response that cannot be converted to `models::KmipClientUpdateResponse`")))),
18121        }
18122    } else {
18123        let content = resp.text().await?;
18124        let entity: Option<KmipClientDeleteRuleError> = serde_json::from_str(&content).ok();
18125        Err(Error::ResponseError(ResponseContent { status, content, entity }))
18126    }
18127}
18128
18129pub async fn kmip_client_set_rule(configuration: &configuration::Configuration, kmip_client_set_rule: Option<models::KmipClientSetRule>) -> Result<models::KmipClientUpdateResponse, Error<KmipClientSetRuleError>> {
18130    // add a prefix to parameters to efficiently prevent name collisions
18131    let p_body_kmip_client_set_rule = kmip_client_set_rule;
18132
18133    let uri_str = format!("{}/kmip-client-set-rule", configuration.base_path);
18134    let mut req_builder = configuration.client.request(reqwest::Method::POST, &uri_str);
18135
18136    if let Some(ref user_agent) = configuration.user_agent {
18137        req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone());
18138    }
18139    req_builder = req_builder.json(&p_body_kmip_client_set_rule);
18140
18141    let req = req_builder.build()?;
18142    let resp = configuration.client.execute(req).await?;
18143
18144    let status = resp.status();
18145    let content_type = resp
18146        .headers()
18147        .get("content-type")
18148        .and_then(|v| v.to_str().ok())
18149        .unwrap_or("application/octet-stream");
18150    let content_type = super::ContentType::from(content_type);
18151
18152    if !status.is_client_error() && !status.is_server_error() {
18153        let content = resp.text().await?;
18154        match content_type {
18155            ContentType::Json => serde_json::from_str(&content).map_err(Error::from),
18156            ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `models::KmipClientUpdateResponse`"))),
18157            ContentType::Unsupported(unknown_type) => return Err(Error::from(serde_json::Error::custom(format!("Received `{unknown_type}` content type response that cannot be converted to `models::KmipClientUpdateResponse`")))),
18158        }
18159    } else {
18160        let content = resp.text().await?;
18161        let entity: Option<KmipClientSetRuleError> = serde_json::from_str(&content).ok();
18162        Err(Error::ResponseError(ResponseContent { status, content, entity }))
18163    }
18164}
18165
18166pub async fn kmip_create_client(configuration: &configuration::Configuration, kmip_create_client: Option<models::KmipCreateClient>) -> Result<models::KmipCreateClientOutput, Error<KmipCreateClientError>> {
18167    // add a prefix to parameters to efficiently prevent name collisions
18168    let p_body_kmip_create_client = kmip_create_client;
18169
18170    let uri_str = format!("{}/kmip-create-client", configuration.base_path);
18171    let mut req_builder = configuration.client.request(reqwest::Method::POST, &uri_str);
18172
18173    if let Some(ref user_agent) = configuration.user_agent {
18174        req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone());
18175    }
18176    req_builder = req_builder.json(&p_body_kmip_create_client);
18177
18178    let req = req_builder.build()?;
18179    let resp = configuration.client.execute(req).await?;
18180
18181    let status = resp.status();
18182    let content_type = resp
18183        .headers()
18184        .get("content-type")
18185        .and_then(|v| v.to_str().ok())
18186        .unwrap_or("application/octet-stream");
18187    let content_type = super::ContentType::from(content_type);
18188
18189    if !status.is_client_error() && !status.is_server_error() {
18190        let content = resp.text().await?;
18191        match content_type {
18192            ContentType::Json => serde_json::from_str(&content).map_err(Error::from),
18193            ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `models::KmipCreateClientOutput`"))),
18194            ContentType::Unsupported(unknown_type) => return Err(Error::from(serde_json::Error::custom(format!("Received `{unknown_type}` content type response that cannot be converted to `models::KmipCreateClientOutput`")))),
18195        }
18196    } else {
18197        let content = resp.text().await?;
18198        let entity: Option<KmipCreateClientError> = serde_json::from_str(&content).ok();
18199        Err(Error::ResponseError(ResponseContent { status, content, entity }))
18200    }
18201}
18202
18203pub async fn kmip_delete_client(configuration: &configuration::Configuration, kmip_delete_client: Option<models::KmipDeleteClient>) -> Result<serde_json::Value, Error<KmipDeleteClientError>> {
18204    // add a prefix to parameters to efficiently prevent name collisions
18205    let p_body_kmip_delete_client = kmip_delete_client;
18206
18207    let uri_str = format!("{}/kmip-delete-client", configuration.base_path);
18208    let mut req_builder = configuration.client.request(reqwest::Method::POST, &uri_str);
18209
18210    if let Some(ref user_agent) = configuration.user_agent {
18211        req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone());
18212    }
18213    req_builder = req_builder.json(&p_body_kmip_delete_client);
18214
18215    let req = req_builder.build()?;
18216    let resp = configuration.client.execute(req).await?;
18217
18218    let status = resp.status();
18219    let content_type = resp
18220        .headers()
18221        .get("content-type")
18222        .and_then(|v| v.to_str().ok())
18223        .unwrap_or("application/octet-stream");
18224    let content_type = super::ContentType::from(content_type);
18225
18226    if !status.is_client_error() && !status.is_server_error() {
18227        let content = resp.text().await?;
18228        match content_type {
18229            ContentType::Json => serde_json::from_str(&content).map_err(Error::from),
18230            ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `serde_json::Value`"))),
18231            ContentType::Unsupported(unknown_type) => return Err(Error::from(serde_json::Error::custom(format!("Received `{unknown_type}` content type response that cannot be converted to `serde_json::Value`")))),
18232        }
18233    } else {
18234        let content = resp.text().await?;
18235        let entity: Option<KmipDeleteClientError> = serde_json::from_str(&content).ok();
18236        Err(Error::ResponseError(ResponseContent { status, content, entity }))
18237    }
18238}
18239
18240pub async fn kmip_delete_server(configuration: &configuration::Configuration, kmip_delete_server: Option<models::KmipDeleteServer>) -> Result<serde_json::Value, Error<KmipDeleteServerError>> {
18241    // add a prefix to parameters to efficiently prevent name collisions
18242    let p_body_kmip_delete_server = kmip_delete_server;
18243
18244    let uri_str = format!("{}/kmip-delete-environment", configuration.base_path);
18245    let mut req_builder = configuration.client.request(reqwest::Method::DELETE, &uri_str);
18246
18247    if let Some(ref user_agent) = configuration.user_agent {
18248        req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone());
18249    }
18250    req_builder = req_builder.json(&p_body_kmip_delete_server);
18251
18252    let req = req_builder.build()?;
18253    let resp = configuration.client.execute(req).await?;
18254
18255    let status = resp.status();
18256    let content_type = resp
18257        .headers()
18258        .get("content-type")
18259        .and_then(|v| v.to_str().ok())
18260        .unwrap_or("application/octet-stream");
18261    let content_type = super::ContentType::from(content_type);
18262
18263    if !status.is_client_error() && !status.is_server_error() {
18264        let content = resp.text().await?;
18265        match content_type {
18266            ContentType::Json => serde_json::from_str(&content).map_err(Error::from),
18267            ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `serde_json::Value`"))),
18268            ContentType::Unsupported(unknown_type) => return Err(Error::from(serde_json::Error::custom(format!("Received `{unknown_type}` content type response that cannot be converted to `serde_json::Value`")))),
18269        }
18270    } else {
18271        let content = resp.text().await?;
18272        let entity: Option<KmipDeleteServerError> = serde_json::from_str(&content).ok();
18273        Err(Error::ResponseError(ResponseContent { status, content, entity }))
18274    }
18275}
18276
18277pub async fn kmip_describe_client(configuration: &configuration::Configuration, kmip_describe_client: Option<models::KmipDescribeClient>) -> Result<models::KmipClientGetResponse, Error<KmipDescribeClientError>> {
18278    // add a prefix to parameters to efficiently prevent name collisions
18279    let p_body_kmip_describe_client = kmip_describe_client;
18280
18281    let uri_str = format!("{}/kmip-get-client", configuration.base_path);
18282    let mut req_builder = configuration.client.request(reqwest::Method::POST, &uri_str);
18283
18284    if let Some(ref user_agent) = configuration.user_agent {
18285        req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone());
18286    }
18287    req_builder = req_builder.json(&p_body_kmip_describe_client);
18288
18289    let req = req_builder.build()?;
18290    let resp = configuration.client.execute(req).await?;
18291
18292    let status = resp.status();
18293    let content_type = resp
18294        .headers()
18295        .get("content-type")
18296        .and_then(|v| v.to_str().ok())
18297        .unwrap_or("application/octet-stream");
18298    let content_type = super::ContentType::from(content_type);
18299
18300    if !status.is_client_error() && !status.is_server_error() {
18301        let content = resp.text().await?;
18302        match content_type {
18303            ContentType::Json => serde_json::from_str(&content).map_err(Error::from),
18304            ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `models::KmipClientGetResponse`"))),
18305            ContentType::Unsupported(unknown_type) => return Err(Error::from(serde_json::Error::custom(format!("Received `{unknown_type}` content type response that cannot be converted to `models::KmipClientGetResponse`")))),
18306        }
18307    } else {
18308        let content = resp.text().await?;
18309        let entity: Option<KmipDescribeClientError> = serde_json::from_str(&content).ok();
18310        Err(Error::ResponseError(ResponseContent { status, content, entity }))
18311    }
18312}
18313
18314pub async fn kmip_describe_server(configuration: &configuration::Configuration, kmip_describe_server: Option<models::KmipDescribeServer>) -> Result<models::KmipDescribeServerOutput, Error<KmipDescribeServerError>> {
18315    // add a prefix to parameters to efficiently prevent name collisions
18316    let p_body_kmip_describe_server = kmip_describe_server;
18317
18318    let uri_str = format!("{}/kmip-get-environment", configuration.base_path);
18319    let mut req_builder = configuration.client.request(reqwest::Method::POST, &uri_str);
18320
18321    if let Some(ref user_agent) = configuration.user_agent {
18322        req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone());
18323    }
18324    req_builder = req_builder.json(&p_body_kmip_describe_server);
18325
18326    let req = req_builder.build()?;
18327    let resp = configuration.client.execute(req).await?;
18328
18329    let status = resp.status();
18330    let content_type = resp
18331        .headers()
18332        .get("content-type")
18333        .and_then(|v| v.to_str().ok())
18334        .unwrap_or("application/octet-stream");
18335    let content_type = super::ContentType::from(content_type);
18336
18337    if !status.is_client_error() && !status.is_server_error() {
18338        let content = resp.text().await?;
18339        match content_type {
18340            ContentType::Json => serde_json::from_str(&content).map_err(Error::from),
18341            ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `models::KmipDescribeServerOutput`"))),
18342            ContentType::Unsupported(unknown_type) => return Err(Error::from(serde_json::Error::custom(format!("Received `{unknown_type}` content type response that cannot be converted to `models::KmipDescribeServerOutput`")))),
18343        }
18344    } else {
18345        let content = resp.text().await?;
18346        let entity: Option<KmipDescribeServerError> = serde_json::from_str(&content).ok();
18347        Err(Error::ResponseError(ResponseContent { status, content, entity }))
18348    }
18349}
18350
18351pub async fn kmip_list_clients(configuration: &configuration::Configuration, kmip_list_clients: Option<models::KmipListClients>) -> Result<models::KmipClientListResponse, Error<KmipListClientsError>> {
18352    // add a prefix to parameters to efficiently prevent name collisions
18353    let p_body_kmip_list_clients = kmip_list_clients;
18354
18355    let uri_str = format!("{}/kmip-list-clients", configuration.base_path);
18356    let mut req_builder = configuration.client.request(reqwest::Method::POST, &uri_str);
18357
18358    if let Some(ref user_agent) = configuration.user_agent {
18359        req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone());
18360    }
18361    req_builder = req_builder.json(&p_body_kmip_list_clients);
18362
18363    let req = req_builder.build()?;
18364    let resp = configuration.client.execute(req).await?;
18365
18366    let status = resp.status();
18367    let content_type = resp
18368        .headers()
18369        .get("content-type")
18370        .and_then(|v| v.to_str().ok())
18371        .unwrap_or("application/octet-stream");
18372    let content_type = super::ContentType::from(content_type);
18373
18374    if !status.is_client_error() && !status.is_server_error() {
18375        let content = resp.text().await?;
18376        match content_type {
18377            ContentType::Json => serde_json::from_str(&content).map_err(Error::from),
18378            ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `models::KmipClientListResponse`"))),
18379            ContentType::Unsupported(unknown_type) => return Err(Error::from(serde_json::Error::custom(format!("Received `{unknown_type}` content type response that cannot be converted to `models::KmipClientListResponse`")))),
18380        }
18381    } else {
18382        let content = resp.text().await?;
18383        let entity: Option<KmipListClientsError> = serde_json::from_str(&content).ok();
18384        Err(Error::ResponseError(ResponseContent { status, content, entity }))
18385    }
18386}
18387
18388pub async fn kmip_move_server(configuration: &configuration::Configuration, kmip_move_server: Option<models::KmipMoveServer>) -> Result<models::KmipMoveServerOutput, Error<KmipMoveServerError>> {
18389    // add a prefix to parameters to efficiently prevent name collisions
18390    let p_body_kmip_move_server = kmip_move_server;
18391
18392    let uri_str = format!("{}/kmip-move-environment", configuration.base_path);
18393    let mut req_builder = configuration.client.request(reqwest::Method::POST, &uri_str);
18394
18395    if let Some(ref user_agent) = configuration.user_agent {
18396        req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone());
18397    }
18398    req_builder = req_builder.json(&p_body_kmip_move_server);
18399
18400    let req = req_builder.build()?;
18401    let resp = configuration.client.execute(req).await?;
18402
18403    let status = resp.status();
18404    let content_type = resp
18405        .headers()
18406        .get("content-type")
18407        .and_then(|v| v.to_str().ok())
18408        .unwrap_or("application/octet-stream");
18409    let content_type = super::ContentType::from(content_type);
18410
18411    if !status.is_client_error() && !status.is_server_error() {
18412        let content = resp.text().await?;
18413        match content_type {
18414            ContentType::Json => serde_json::from_str(&content).map_err(Error::from),
18415            ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `models::KmipMoveServerOutput`"))),
18416            ContentType::Unsupported(unknown_type) => return Err(Error::from(serde_json::Error::custom(format!("Received `{unknown_type}` content type response that cannot be converted to `models::KmipMoveServerOutput`")))),
18417        }
18418    } else {
18419        let content = resp.text().await?;
18420        let entity: Option<KmipMoveServerError> = serde_json::from_str(&content).ok();
18421        Err(Error::ResponseError(ResponseContent { status, content, entity }))
18422    }
18423}
18424
18425pub async fn kmip_renew_client_certificate(configuration: &configuration::Configuration, kmip_renew_client_certificate: Option<models::KmipRenewClientCertificate>) -> Result<models::KmipRenewClientCertificateOutput, Error<KmipRenewClientCertificateError>> {
18426    // add a prefix to parameters to efficiently prevent name collisions
18427    let p_body_kmip_renew_client_certificate = kmip_renew_client_certificate;
18428
18429    let uri_str = format!("{}/kmip-renew-client", configuration.base_path);
18430    let mut req_builder = configuration.client.request(reqwest::Method::POST, &uri_str);
18431
18432    if let Some(ref user_agent) = configuration.user_agent {
18433        req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone());
18434    }
18435    req_builder = req_builder.json(&p_body_kmip_renew_client_certificate);
18436
18437    let req = req_builder.build()?;
18438    let resp = configuration.client.execute(req).await?;
18439
18440    let status = resp.status();
18441    let content_type = resp
18442        .headers()
18443        .get("content-type")
18444        .and_then(|v| v.to_str().ok())
18445        .unwrap_or("application/octet-stream");
18446    let content_type = super::ContentType::from(content_type);
18447
18448    if !status.is_client_error() && !status.is_server_error() {
18449        let content = resp.text().await?;
18450        match content_type {
18451            ContentType::Json => serde_json::from_str(&content).map_err(Error::from),
18452            ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `models::KmipRenewClientCertificateOutput`"))),
18453            ContentType::Unsupported(unknown_type) => return Err(Error::from(serde_json::Error::custom(format!("Received `{unknown_type}` content type response that cannot be converted to `models::KmipRenewClientCertificateOutput`")))),
18454        }
18455    } else {
18456        let content = resp.text().await?;
18457        let entity: Option<KmipRenewClientCertificateError> = serde_json::from_str(&content).ok();
18458        Err(Error::ResponseError(ResponseContent { status, content, entity }))
18459    }
18460}
18461
18462pub async fn kmip_renew_server_certificate(configuration: &configuration::Configuration, kmip_renew_server_certificate: Option<models::KmipRenewServerCertificate>) -> Result<models::KmipRenewServerCertificateOutput, Error<KmipRenewServerCertificateError>> {
18463    // add a prefix to parameters to efficiently prevent name collisions
18464    let p_body_kmip_renew_server_certificate = kmip_renew_server_certificate;
18465
18466    let uri_str = format!("{}/kmip-renew-environment", configuration.base_path);
18467    let mut req_builder = configuration.client.request(reqwest::Method::POST, &uri_str);
18468
18469    if let Some(ref user_agent) = configuration.user_agent {
18470        req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone());
18471    }
18472    req_builder = req_builder.json(&p_body_kmip_renew_server_certificate);
18473
18474    let req = req_builder.build()?;
18475    let resp = configuration.client.execute(req).await?;
18476
18477    let status = resp.status();
18478    let content_type = resp
18479        .headers()
18480        .get("content-type")
18481        .and_then(|v| v.to_str().ok())
18482        .unwrap_or("application/octet-stream");
18483    let content_type = super::ContentType::from(content_type);
18484
18485    if !status.is_client_error() && !status.is_server_error() {
18486        let content = resp.text().await?;
18487        match content_type {
18488            ContentType::Json => serde_json::from_str(&content).map_err(Error::from),
18489            ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `models::KmipRenewServerCertificateOutput`"))),
18490            ContentType::Unsupported(unknown_type) => return Err(Error::from(serde_json::Error::custom(format!("Received `{unknown_type}` content type response that cannot be converted to `models::KmipRenewServerCertificateOutput`")))),
18491        }
18492    } else {
18493        let content = resp.text().await?;
18494        let entity: Option<KmipRenewServerCertificateError> = serde_json::from_str(&content).ok();
18495        Err(Error::ResponseError(ResponseContent { status, content, entity }))
18496    }
18497}
18498
18499pub async fn kmip_server_setup(configuration: &configuration::Configuration, kmip_server_setup: Option<models::KmipServerSetup>) -> Result<models::KmipEnvironmentCreateResponse, Error<KmipServerSetupError>> {
18500    // add a prefix to parameters to efficiently prevent name collisions
18501    let p_body_kmip_server_setup = kmip_server_setup;
18502
18503    let uri_str = format!("{}/kmip-create-environment", configuration.base_path);
18504    let mut req_builder = configuration.client.request(reqwest::Method::POST, &uri_str);
18505
18506    if let Some(ref user_agent) = configuration.user_agent {
18507        req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone());
18508    }
18509    req_builder = req_builder.json(&p_body_kmip_server_setup);
18510
18511    let req = req_builder.build()?;
18512    let resp = configuration.client.execute(req).await?;
18513
18514    let status = resp.status();
18515    let content_type = resp
18516        .headers()
18517        .get("content-type")
18518        .and_then(|v| v.to_str().ok())
18519        .unwrap_or("application/octet-stream");
18520    let content_type = super::ContentType::from(content_type);
18521
18522    if !status.is_client_error() && !status.is_server_error() {
18523        let content = resp.text().await?;
18524        match content_type {
18525            ContentType::Json => serde_json::from_str(&content).map_err(Error::from),
18526            ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `models::KmipEnvironmentCreateResponse`"))),
18527            ContentType::Unsupported(unknown_type) => return Err(Error::from(serde_json::Error::custom(format!("Received `{unknown_type}` content type response that cannot be converted to `models::KmipEnvironmentCreateResponse`")))),
18528        }
18529    } else {
18530        let content = resp.text().await?;
18531        let entity: Option<KmipServerSetupError> = serde_json::from_str(&content).ok();
18532        Err(Error::ResponseError(ResponseContent { status, content, entity }))
18533    }
18534}
18535
18536pub async fn kmip_set_server_state(configuration: &configuration::Configuration, kmip_set_server_state: Option<models::KmipSetServerState>) -> Result<models::KmipSetServerStateOutput, Error<KmipSetServerStateError>> {
18537    // add a prefix to parameters to efficiently prevent name collisions
18538    let p_body_kmip_set_server_state = kmip_set_server_state;
18539
18540    let uri_str = format!("{}/kmip-set-environment-state", configuration.base_path);
18541    let mut req_builder = configuration.client.request(reqwest::Method::POST, &uri_str);
18542
18543    if let Some(ref user_agent) = configuration.user_agent {
18544        req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone());
18545    }
18546    req_builder = req_builder.json(&p_body_kmip_set_server_state);
18547
18548    let req = req_builder.build()?;
18549    let resp = configuration.client.execute(req).await?;
18550
18551    let status = resp.status();
18552    let content_type = resp
18553        .headers()
18554        .get("content-type")
18555        .and_then(|v| v.to_str().ok())
18556        .unwrap_or("application/octet-stream");
18557    let content_type = super::ContentType::from(content_type);
18558
18559    if !status.is_client_error() && !status.is_server_error() {
18560        let content = resp.text().await?;
18561        match content_type {
18562            ContentType::Json => serde_json::from_str(&content).map_err(Error::from),
18563            ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `models::KmipSetServerStateOutput`"))),
18564            ContentType::Unsupported(unknown_type) => return Err(Error::from(serde_json::Error::custom(format!("Received `{unknown_type}` content type response that cannot be converted to `models::KmipSetServerStateOutput`")))),
18565        }
18566    } else {
18567        let content = resp.text().await?;
18568        let entity: Option<KmipSetServerStateError> = serde_json::from_str(&content).ok();
18569        Err(Error::ResponseError(ResponseContent { status, content, entity }))
18570    }
18571}
18572
18573pub async fn kubeconfig_generate(configuration: &configuration::Configuration, ) -> Result<models::KubeconfigGenerateOutput, Error<KubeconfigGenerateError>> {
18574
18575    let uri_str = format!("{}/kubeconfig-generate", configuration.base_path);
18576    let mut req_builder = configuration.client.request(reqwest::Method::POST, &uri_str);
18577
18578    if let Some(ref user_agent) = configuration.user_agent {
18579        req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone());
18580    }
18581
18582    let req = req_builder.build()?;
18583    let resp = configuration.client.execute(req).await?;
18584
18585    let status = resp.status();
18586    let content_type = resp
18587        .headers()
18588        .get("content-type")
18589        .and_then(|v| v.to_str().ok())
18590        .unwrap_or("application/octet-stream");
18591    let content_type = super::ContentType::from(content_type);
18592
18593    if !status.is_client_error() && !status.is_server_error() {
18594        let content = resp.text().await?;
18595        match content_type {
18596            ContentType::Json => serde_json::from_str(&content).map_err(Error::from),
18597            ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `models::KubeconfigGenerateOutput`"))),
18598            ContentType::Unsupported(unknown_type) => return Err(Error::from(serde_json::Error::custom(format!("Received `{unknown_type}` content type response that cannot be converted to `models::KubeconfigGenerateOutput`")))),
18599        }
18600    } else {
18601        let content = resp.text().await?;
18602        let entity: Option<KubeconfigGenerateError> = serde_json::from_str(&content).ok();
18603        Err(Error::ResponseError(ResponseContent { status, content, entity }))
18604    }
18605}
18606
18607pub async fn list_acme_accounts(configuration: &configuration::Configuration, list_acme_accounts: models::ListAcmeAccounts) -> Result<models::ListAcmeAccountsOutput, Error<ListAcmeAccountsError>> {
18608    // add a prefix to parameters to efficiently prevent name collisions
18609    let p_body_list_acme_accounts = list_acme_accounts;
18610
18611    let uri_str = format!("{}/list-acme-accounts", configuration.base_path);
18612    let mut req_builder = configuration.client.request(reqwest::Method::POST, &uri_str);
18613
18614    if let Some(ref user_agent) = configuration.user_agent {
18615        req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone());
18616    }
18617    req_builder = req_builder.json(&p_body_list_acme_accounts);
18618
18619    let req = req_builder.build()?;
18620    let resp = configuration.client.execute(req).await?;
18621
18622    let status = resp.status();
18623    let content_type = resp
18624        .headers()
18625        .get("content-type")
18626        .and_then(|v| v.to_str().ok())
18627        .unwrap_or("application/octet-stream");
18628    let content_type = super::ContentType::from(content_type);
18629
18630    if !status.is_client_error() && !status.is_server_error() {
18631        let content = resp.text().await?;
18632        match content_type {
18633            ContentType::Json => serde_json::from_str(&content).map_err(Error::from),
18634            ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `models::ListAcmeAccountsOutput`"))),
18635            ContentType::Unsupported(unknown_type) => return Err(Error::from(serde_json::Error::custom(format!("Received `{unknown_type}` content type response that cannot be converted to `models::ListAcmeAccountsOutput`")))),
18636        }
18637    } else {
18638        let content = resp.text().await?;
18639        let entity: Option<ListAcmeAccountsError> = serde_json::from_str(&content).ok();
18640        Err(Error::ResponseError(ResponseContent { status, content, entity }))
18641    }
18642}
18643
18644pub async fn list_auth_methods(configuration: &configuration::Configuration, list_auth_methods: models::ListAuthMethods) -> Result<models::ListAuthMethodsOutput, Error<ListAuthMethodsError>> {
18645    // add a prefix to parameters to efficiently prevent name collisions
18646    let p_body_list_auth_methods = list_auth_methods;
18647
18648    let uri_str = format!("{}/list-auth-methods", configuration.base_path);
18649    let mut req_builder = configuration.client.request(reqwest::Method::POST, &uri_str);
18650
18651    if let Some(ref user_agent) = configuration.user_agent {
18652        req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone());
18653    }
18654    req_builder = req_builder.json(&p_body_list_auth_methods);
18655
18656    let req = req_builder.build()?;
18657    let resp = configuration.client.execute(req).await?;
18658
18659    let status = resp.status();
18660    let content_type = resp
18661        .headers()
18662        .get("content-type")
18663        .and_then(|v| v.to_str().ok())
18664        .unwrap_or("application/octet-stream");
18665    let content_type = super::ContentType::from(content_type);
18666
18667    if !status.is_client_error() && !status.is_server_error() {
18668        let content = resp.text().await?;
18669        match content_type {
18670            ContentType::Json => serde_json::from_str(&content).map_err(Error::from),
18671            ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `models::ListAuthMethodsOutput`"))),
18672            ContentType::Unsupported(unknown_type) => return Err(Error::from(serde_json::Error::custom(format!("Received `{unknown_type}` content type response that cannot be converted to `models::ListAuthMethodsOutput`")))),
18673        }
18674    } else {
18675        let content = resp.text().await?;
18676        let entity: Option<ListAuthMethodsError> = serde_json::from_str(&content).ok();
18677        Err(Error::ResponseError(ResponseContent { status, content, entity }))
18678    }
18679}
18680
18681pub async fn list_gateways(configuration: &configuration::Configuration, list_gateways: models::ListGateways) -> Result<models::GatewaysListResponse, Error<ListGatewaysError>> {
18682    // add a prefix to parameters to efficiently prevent name collisions
18683    let p_body_list_gateways = list_gateways;
18684
18685    let uri_str = format!("{}/list-gateways", configuration.base_path);
18686    let mut req_builder = configuration.client.request(reqwest::Method::POST, &uri_str);
18687
18688    if let Some(ref user_agent) = configuration.user_agent {
18689        req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone());
18690    }
18691    req_builder = req_builder.json(&p_body_list_gateways);
18692
18693    let req = req_builder.build()?;
18694    let resp = configuration.client.execute(req).await?;
18695
18696    let status = resp.status();
18697    let content_type = resp
18698        .headers()
18699        .get("content-type")
18700        .and_then(|v| v.to_str().ok())
18701        .unwrap_or("application/octet-stream");
18702    let content_type = super::ContentType::from(content_type);
18703
18704    if !status.is_client_error() && !status.is_server_error() {
18705        let content = resp.text().await?;
18706        match content_type {
18707            ContentType::Json => serde_json::from_str(&content).map_err(Error::from),
18708            ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `models::GatewaysListResponse`"))),
18709            ContentType::Unsupported(unknown_type) => return Err(Error::from(serde_json::Error::custom(format!("Received `{unknown_type}` content type response that cannot be converted to `models::GatewaysListResponse`")))),
18710        }
18711    } else {
18712        let content = resp.text().await?;
18713        let entity: Option<ListGatewaysError> = serde_json::from_str(&content).ok();
18714        Err(Error::ResponseError(ResponseContent { status, content, entity }))
18715    }
18716}
18717
18718pub async fn list_groups(configuration: &configuration::Configuration, list_groups: models::ListGroups) -> Result<models::ListGroupsOutput, Error<ListGroupsError>> {
18719    // add a prefix to parameters to efficiently prevent name collisions
18720    let p_body_list_groups = list_groups;
18721
18722    let uri_str = format!("{}/list-group", configuration.base_path);
18723    let mut req_builder = configuration.client.request(reqwest::Method::POST, &uri_str);
18724
18725    if let Some(ref user_agent) = configuration.user_agent {
18726        req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone());
18727    }
18728    req_builder = req_builder.json(&p_body_list_groups);
18729
18730    let req = req_builder.build()?;
18731    let resp = configuration.client.execute(req).await?;
18732
18733    let status = resp.status();
18734    let content_type = resp
18735        .headers()
18736        .get("content-type")
18737        .and_then(|v| v.to_str().ok())
18738        .unwrap_or("application/octet-stream");
18739    let content_type = super::ContentType::from(content_type);
18740
18741    if !status.is_client_error() && !status.is_server_error() {
18742        let content = resp.text().await?;
18743        match content_type {
18744            ContentType::Json => serde_json::from_str(&content).map_err(Error::from),
18745            ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `models::ListGroupsOutput`"))),
18746            ContentType::Unsupported(unknown_type) => return Err(Error::from(serde_json::Error::custom(format!("Received `{unknown_type}` content type response that cannot be converted to `models::ListGroupsOutput`")))),
18747        }
18748    } else {
18749        let content = resp.text().await?;
18750        let entity: Option<ListGroupsError> = serde_json::from_str(&content).ok();
18751        Err(Error::ResponseError(ResponseContent { status, content, entity }))
18752    }
18753}
18754
18755pub async fn list_items(configuration: &configuration::Configuration, list_items: models::ListItems) -> Result<models::ListItemsInPathOutput, Error<ListItemsError>> {
18756    // add a prefix to parameters to efficiently prevent name collisions
18757    let p_body_list_items = list_items;
18758
18759    let uri_str = format!("{}/list-items", configuration.base_path);
18760    let mut req_builder = configuration.client.request(reqwest::Method::POST, &uri_str);
18761
18762    if let Some(ref user_agent) = configuration.user_agent {
18763        req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone());
18764    }
18765    req_builder = req_builder.json(&p_body_list_items);
18766
18767    let req = req_builder.build()?;
18768    let resp = configuration.client.execute(req).await?;
18769
18770    let status = resp.status();
18771    let content_type = resp
18772        .headers()
18773        .get("content-type")
18774        .and_then(|v| v.to_str().ok())
18775        .unwrap_or("application/octet-stream");
18776    let content_type = super::ContentType::from(content_type);
18777
18778    if !status.is_client_error() && !status.is_server_error() {
18779        let content = resp.text().await?;
18780        match content_type {
18781            ContentType::Json => serde_json::from_str(&content).map_err(Error::from),
18782            ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `models::ListItemsInPathOutput`"))),
18783            ContentType::Unsupported(unknown_type) => return Err(Error::from(serde_json::Error::custom(format!("Received `{unknown_type}` content type response that cannot be converted to `models::ListItemsInPathOutput`")))),
18784        }
18785    } else {
18786        let content = resp.text().await?;
18787        let entity: Option<ListItemsError> = serde_json::from_str(&content).ok();
18788        Err(Error::ResponseError(ResponseContent { status, content, entity }))
18789    }
18790}
18791
18792pub async fn list_roles(configuration: &configuration::Configuration, list_roles: models::ListRoles) -> Result<models::ListRolesOutput, Error<ListRolesError>> {
18793    // add a prefix to parameters to efficiently prevent name collisions
18794    let p_body_list_roles = list_roles;
18795
18796    let uri_str = format!("{}/list-roles", configuration.base_path);
18797    let mut req_builder = configuration.client.request(reqwest::Method::POST, &uri_str);
18798
18799    if let Some(ref user_agent) = configuration.user_agent {
18800        req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone());
18801    }
18802    req_builder = req_builder.json(&p_body_list_roles);
18803
18804    let req = req_builder.build()?;
18805    let resp = configuration.client.execute(req).await?;
18806
18807    let status = resp.status();
18808    let content_type = resp
18809        .headers()
18810        .get("content-type")
18811        .and_then(|v| v.to_str().ok())
18812        .unwrap_or("application/octet-stream");
18813    let content_type = super::ContentType::from(content_type);
18814
18815    if !status.is_client_error() && !status.is_server_error() {
18816        let content = resp.text().await?;
18817        match content_type {
18818            ContentType::Json => serde_json::from_str(&content).map_err(Error::from),
18819            ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `models::ListRolesOutput`"))),
18820            ContentType::Unsupported(unknown_type) => return Err(Error::from(serde_json::Error::custom(format!("Received `{unknown_type}` content type response that cannot be converted to `models::ListRolesOutput`")))),
18821        }
18822    } else {
18823        let content = resp.text().await?;
18824        let entity: Option<ListRolesError> = serde_json::from_str(&content).ok();
18825        Err(Error::ResponseError(ResponseContent { status, content, entity }))
18826    }
18827}
18828
18829pub async fn list_shared_items(configuration: &configuration::Configuration, list_shared_items: models::ListSharedItems) -> Result<(), Error<ListSharedItemsError>> {
18830    // add a prefix to parameters to efficiently prevent name collisions
18831    let p_body_list_shared_items = list_shared_items;
18832
18833    let uri_str = format!("{}/list-shared-items", configuration.base_path);
18834    let mut req_builder = configuration.client.request(reqwest::Method::POST, &uri_str);
18835
18836    if let Some(ref user_agent) = configuration.user_agent {
18837        req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone());
18838    }
18839    req_builder = req_builder.json(&p_body_list_shared_items);
18840
18841    let req = req_builder.build()?;
18842    let resp = configuration.client.execute(req).await?;
18843
18844    let status = resp.status();
18845
18846    if !status.is_client_error() && !status.is_server_error() {
18847        Ok(())
18848    } else {
18849        let content = resp.text().await?;
18850        let entity: Option<ListSharedItemsError> = serde_json::from_str(&content).ok();
18851        Err(Error::ResponseError(ResponseContent { status, content, entity }))
18852    }
18853}
18854
18855pub async fn list_sra_bastions(configuration: &configuration::Configuration, list_sra_bastions: models::ListSraBastions) -> Result<models::BastionsList, Error<ListSraBastionsError>> {
18856    // add a prefix to parameters to efficiently prevent name collisions
18857    let p_body_list_sra_bastions = list_sra_bastions;
18858
18859    let uri_str = format!("{}/list-sra-bastions", configuration.base_path);
18860    let mut req_builder = configuration.client.request(reqwest::Method::POST, &uri_str);
18861
18862    if let Some(ref user_agent) = configuration.user_agent {
18863        req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone());
18864    }
18865    req_builder = req_builder.json(&p_body_list_sra_bastions);
18866
18867    let req = req_builder.build()?;
18868    let resp = configuration.client.execute(req).await?;
18869
18870    let status = resp.status();
18871    let content_type = resp
18872        .headers()
18873        .get("content-type")
18874        .and_then(|v| v.to_str().ok())
18875        .unwrap_or("application/octet-stream");
18876    let content_type = super::ContentType::from(content_type);
18877
18878    if !status.is_client_error() && !status.is_server_error() {
18879        let content = resp.text().await?;
18880        match content_type {
18881            ContentType::Json => serde_json::from_str(&content).map_err(Error::from),
18882            ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `models::BastionsList`"))),
18883            ContentType::Unsupported(unknown_type) => return Err(Error::from(serde_json::Error::custom(format!("Received `{unknown_type}` content type response that cannot be converted to `models::BastionsList`")))),
18884        }
18885    } else {
18886        let content = resp.text().await?;
18887        let entity: Option<ListSraBastionsError> = serde_json::from_str(&content).ok();
18888        Err(Error::ResponseError(ResponseContent { status, content, entity }))
18889    }
18890}
18891
18892pub async fn list_sra_sessions(configuration: &configuration::Configuration, list_sra_sessions: models::ListSraSessions) -> Result<models::ListSraSessionsOutput, Error<ListSraSessionsError>> {
18893    // add a prefix to parameters to efficiently prevent name collisions
18894    let p_body_list_sra_sessions = list_sra_sessions;
18895
18896    let uri_str = format!("{}/list-sra-sessions", configuration.base_path);
18897    let mut req_builder = configuration.client.request(reqwest::Method::POST, &uri_str);
18898
18899    if let Some(ref user_agent) = configuration.user_agent {
18900        req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone());
18901    }
18902    req_builder = req_builder.json(&p_body_list_sra_sessions);
18903
18904    let req = req_builder.build()?;
18905    let resp = configuration.client.execute(req).await?;
18906
18907    let status = resp.status();
18908    let content_type = resp
18909        .headers()
18910        .get("content-type")
18911        .and_then(|v| v.to_str().ok())
18912        .unwrap_or("application/octet-stream");
18913    let content_type = super::ContentType::from(content_type);
18914
18915    if !status.is_client_error() && !status.is_server_error() {
18916        let content = resp.text().await?;
18917        match content_type {
18918            ContentType::Json => serde_json::from_str(&content).map_err(Error::from),
18919            ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `models::ListSraSessionsOutput`"))),
18920            ContentType::Unsupported(unknown_type) => return Err(Error::from(serde_json::Error::custom(format!("Received `{unknown_type}` content type response that cannot be converted to `models::ListSraSessionsOutput`")))),
18921        }
18922    } else {
18923        let content = resp.text().await?;
18924        let entity: Option<ListSraSessionsError> = serde_json::from_str(&content).ok();
18925        Err(Error::ResponseError(ResponseContent { status, content, entity }))
18926    }
18927}
18928
18929pub async fn list_targets(configuration: &configuration::Configuration, list_targets: models::ListTargets) -> Result<models::ListTargetsOutput, Error<ListTargetsError>> {
18930    // add a prefix to parameters to efficiently prevent name collisions
18931    let p_body_list_targets = list_targets;
18932
18933    let uri_str = format!("{}/list-targets", configuration.base_path);
18934    let mut req_builder = configuration.client.request(reqwest::Method::POST, &uri_str);
18935
18936    if let Some(ref user_agent) = configuration.user_agent {
18937        req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone());
18938    }
18939    req_builder = req_builder.json(&p_body_list_targets);
18940
18941    let req = req_builder.build()?;
18942    let resp = configuration.client.execute(req).await?;
18943
18944    let status = resp.status();
18945    let content_type = resp
18946        .headers()
18947        .get("content-type")
18948        .and_then(|v| v.to_str().ok())
18949        .unwrap_or("application/octet-stream");
18950    let content_type = super::ContentType::from(content_type);
18951
18952    if !status.is_client_error() && !status.is_server_error() {
18953        let content = resp.text().await?;
18954        match content_type {
18955            ContentType::Json => serde_json::from_str(&content).map_err(Error::from),
18956            ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `models::ListTargetsOutput`"))),
18957            ContentType::Unsupported(unknown_type) => return Err(Error::from(serde_json::Error::custom(format!("Received `{unknown_type}` content type response that cannot be converted to `models::ListTargetsOutput`")))),
18958        }
18959    } else {
18960        let content = resp.text().await?;
18961        let entity: Option<ListTargetsError> = serde_json::from_str(&content).ok();
18962        Err(Error::ResponseError(ResponseContent { status, content, entity }))
18963    }
18964}
18965
18966pub async fn move_objects(configuration: &configuration::Configuration, move_objects: models::MoveObjects) -> Result<serde_json::Value, Error<MoveObjectsError>> {
18967    // add a prefix to parameters to efficiently prevent name collisions
18968    let p_body_move_objects = move_objects;
18969
18970    let uri_str = format!("{}/move-objects", configuration.base_path);
18971    let mut req_builder = configuration.client.request(reqwest::Method::POST, &uri_str);
18972
18973    if let Some(ref user_agent) = configuration.user_agent {
18974        req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone());
18975    }
18976    req_builder = req_builder.json(&p_body_move_objects);
18977
18978    let req = req_builder.build()?;
18979    let resp = configuration.client.execute(req).await?;
18980
18981    let status = resp.status();
18982    let content_type = resp
18983        .headers()
18984        .get("content-type")
18985        .and_then(|v| v.to_str().ok())
18986        .unwrap_or("application/octet-stream");
18987    let content_type = super::ContentType::from(content_type);
18988
18989    if !status.is_client_error() && !status.is_server_error() {
18990        let content = resp.text().await?;
18991        match content_type {
18992            ContentType::Json => serde_json::from_str(&content).map_err(Error::from),
18993            ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `serde_json::Value`"))),
18994            ContentType::Unsupported(unknown_type) => return Err(Error::from(serde_json::Error::custom(format!("Received `{unknown_type}` content type response that cannot be converted to `serde_json::Value`")))),
18995        }
18996    } else {
18997        let content = resp.text().await?;
18998        let entity: Option<MoveObjectsError> = serde_json::from_str(&content).ok();
18999        Err(Error::ResponseError(ResponseContent { status, content, entity }))
19000    }
19001}
19002
19003pub async fn policies_delete(configuration: &configuration::Configuration, policies_delete: models::PoliciesDelete) -> Result<serde_json::Value, Error<PoliciesDeleteError>> {
19004    // add a prefix to parameters to efficiently prevent name collisions
19005    let p_body_policies_delete = policies_delete;
19006
19007    let uri_str = format!("{}/policy-delete", configuration.base_path);
19008    let mut req_builder = configuration.client.request(reqwest::Method::POST, &uri_str);
19009
19010    if let Some(ref user_agent) = configuration.user_agent {
19011        req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone());
19012    }
19013    req_builder = req_builder.json(&p_body_policies_delete);
19014
19015    let req = req_builder.build()?;
19016    let resp = configuration.client.execute(req).await?;
19017
19018    let status = resp.status();
19019    let content_type = resp
19020        .headers()
19021        .get("content-type")
19022        .and_then(|v| v.to_str().ok())
19023        .unwrap_or("application/octet-stream");
19024    let content_type = super::ContentType::from(content_type);
19025
19026    if !status.is_client_error() && !status.is_server_error() {
19027        let content = resp.text().await?;
19028        match content_type {
19029            ContentType::Json => serde_json::from_str(&content).map_err(Error::from),
19030            ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `serde_json::Value`"))),
19031            ContentType::Unsupported(unknown_type) => return Err(Error::from(serde_json::Error::custom(format!("Received `{unknown_type}` content type response that cannot be converted to `serde_json::Value`")))),
19032        }
19033    } else {
19034        let content = resp.text().await?;
19035        let entity: Option<PoliciesDeleteError> = serde_json::from_str(&content).ok();
19036        Err(Error::ResponseError(ResponseContent { status, content, entity }))
19037    }
19038}
19039
19040pub async fn policies_get(configuration: &configuration::Configuration, policies_get: models::PoliciesGet) -> Result<models::PoliciesGetOutput, Error<PoliciesGetError>> {
19041    // add a prefix to parameters to efficiently prevent name collisions
19042    let p_body_policies_get = policies_get;
19043
19044    let uri_str = format!("{}/policy-get", configuration.base_path);
19045    let mut req_builder = configuration.client.request(reqwest::Method::POST, &uri_str);
19046
19047    if let Some(ref user_agent) = configuration.user_agent {
19048        req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone());
19049    }
19050    req_builder = req_builder.json(&p_body_policies_get);
19051
19052    let req = req_builder.build()?;
19053    let resp = configuration.client.execute(req).await?;
19054
19055    let status = resp.status();
19056    let content_type = resp
19057        .headers()
19058        .get("content-type")
19059        .and_then(|v| v.to_str().ok())
19060        .unwrap_or("application/octet-stream");
19061    let content_type = super::ContentType::from(content_type);
19062
19063    if !status.is_client_error() && !status.is_server_error() {
19064        let content = resp.text().await?;
19065        match content_type {
19066            ContentType::Json => serde_json::from_str(&content).map_err(Error::from),
19067            ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `models::PoliciesGetOutput`"))),
19068            ContentType::Unsupported(unknown_type) => return Err(Error::from(serde_json::Error::custom(format!("Received `{unknown_type}` content type response that cannot be converted to `models::PoliciesGetOutput`")))),
19069        }
19070    } else {
19071        let content = resp.text().await?;
19072        let entity: Option<PoliciesGetError> = serde_json::from_str(&content).ok();
19073        Err(Error::ResponseError(ResponseContent { status, content, entity }))
19074    }
19075}
19076
19077pub async fn policies_list(configuration: &configuration::Configuration, policies_list: models::PoliciesList) -> Result<models::PoliciesListOutput, Error<PoliciesListError>> {
19078    // add a prefix to parameters to efficiently prevent name collisions
19079    let p_body_policies_list = policies_list;
19080
19081    let uri_str = format!("{}/policy-list", configuration.base_path);
19082    let mut req_builder = configuration.client.request(reqwest::Method::POST, &uri_str);
19083
19084    if let Some(ref user_agent) = configuration.user_agent {
19085        req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone());
19086    }
19087    req_builder = req_builder.json(&p_body_policies_list);
19088
19089    let req = req_builder.build()?;
19090    let resp = configuration.client.execute(req).await?;
19091
19092    let status = resp.status();
19093    let content_type = resp
19094        .headers()
19095        .get("content-type")
19096        .and_then(|v| v.to_str().ok())
19097        .unwrap_or("application/octet-stream");
19098    let content_type = super::ContentType::from(content_type);
19099
19100    if !status.is_client_error() && !status.is_server_error() {
19101        let content = resp.text().await?;
19102        match content_type {
19103            ContentType::Json => serde_json::from_str(&content).map_err(Error::from),
19104            ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `models::PoliciesListOutput`"))),
19105            ContentType::Unsupported(unknown_type) => return Err(Error::from(serde_json::Error::custom(format!("Received `{unknown_type}` content type response that cannot be converted to `models::PoliciesListOutput`")))),
19106        }
19107    } else {
19108        let content = resp.text().await?;
19109        let entity: Option<PoliciesListError> = serde_json::from_str(&content).ok();
19110        Err(Error::ResponseError(ResponseContent { status, content, entity }))
19111    }
19112}
19113
19114pub async fn policy_create_keys(configuration: &configuration::Configuration, policy_create_keys: models::PolicyCreateKeys) -> Result<models::PoliciesCreateOutput, Error<PolicyCreateKeysError>> {
19115    // add a prefix to parameters to efficiently prevent name collisions
19116    let p_body_policy_create_keys = policy_create_keys;
19117
19118    let uri_str = format!("{}/policy-create-keys", configuration.base_path);
19119    let mut req_builder = configuration.client.request(reqwest::Method::POST, &uri_str);
19120
19121    if let Some(ref user_agent) = configuration.user_agent {
19122        req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone());
19123    }
19124    req_builder = req_builder.json(&p_body_policy_create_keys);
19125
19126    let req = req_builder.build()?;
19127    let resp = configuration.client.execute(req).await?;
19128
19129    let status = resp.status();
19130    let content_type = resp
19131        .headers()
19132        .get("content-type")
19133        .and_then(|v| v.to_str().ok())
19134        .unwrap_or("application/octet-stream");
19135    let content_type = super::ContentType::from(content_type);
19136
19137    if !status.is_client_error() && !status.is_server_error() {
19138        let content = resp.text().await?;
19139        match content_type {
19140            ContentType::Json => serde_json::from_str(&content).map_err(Error::from),
19141            ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `models::PoliciesCreateOutput`"))),
19142            ContentType::Unsupported(unknown_type) => return Err(Error::from(serde_json::Error::custom(format!("Received `{unknown_type}` content type response that cannot be converted to `models::PoliciesCreateOutput`")))),
19143        }
19144    } else {
19145        let content = resp.text().await?;
19146        let entity: Option<PolicyCreateKeysError> = serde_json::from_str(&content).ok();
19147        Err(Error::ResponseError(ResponseContent { status, content, entity }))
19148    }
19149}
19150
19151pub async fn policy_update_keys(configuration: &configuration::Configuration, policy_update_keys: models::PolicyUpdateKeys) -> Result<serde_json::Value, Error<PolicyUpdateKeysError>> {
19152    // add a prefix to parameters to efficiently prevent name collisions
19153    let p_body_policy_update_keys = policy_update_keys;
19154
19155    let uri_str = format!("{}/policy-update-keys", configuration.base_path);
19156    let mut req_builder = configuration.client.request(reqwest::Method::POST, &uri_str);
19157
19158    if let Some(ref user_agent) = configuration.user_agent {
19159        req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone());
19160    }
19161    req_builder = req_builder.json(&p_body_policy_update_keys);
19162
19163    let req = req_builder.build()?;
19164    let resp = configuration.client.execute(req).await?;
19165
19166    let status = resp.status();
19167    let content_type = resp
19168        .headers()
19169        .get("content-type")
19170        .and_then(|v| v.to_str().ok())
19171        .unwrap_or("application/octet-stream");
19172    let content_type = super::ContentType::from(content_type);
19173
19174    if !status.is_client_error() && !status.is_server_error() {
19175        let content = resp.text().await?;
19176        match content_type {
19177            ContentType::Json => serde_json::from_str(&content).map_err(Error::from),
19178            ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `serde_json::Value`"))),
19179            ContentType::Unsupported(unknown_type) => return Err(Error::from(serde_json::Error::custom(format!("Received `{unknown_type}` content type response that cannot be converted to `serde_json::Value`")))),
19180        }
19181    } else {
19182        let content = resp.text().await?;
19183        let entity: Option<PolicyUpdateKeysError> = serde_json::from_str(&content).ok();
19184        Err(Error::ResponseError(ResponseContent { status, content, entity }))
19185    }
19186}
19187
19188pub async fn provision_certificate(configuration: &configuration::Configuration, provision_certificate: models::ProvisionCertificate) -> Result<models::ProvisionCertificateOutput, Error<ProvisionCertificateError>> {
19189    // add a prefix to parameters to efficiently prevent name collisions
19190    let p_body_provision_certificate = provision_certificate;
19191
19192    let uri_str = format!("{}/provision-certificate", configuration.base_path);
19193    let mut req_builder = configuration.client.request(reqwest::Method::POST, &uri_str);
19194
19195    if let Some(ref user_agent) = configuration.user_agent {
19196        req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone());
19197    }
19198    req_builder = req_builder.json(&p_body_provision_certificate);
19199
19200    let req = req_builder.build()?;
19201    let resp = configuration.client.execute(req).await?;
19202
19203    let status = resp.status();
19204    let content_type = resp
19205        .headers()
19206        .get("content-type")
19207        .and_then(|v| v.to_str().ok())
19208        .unwrap_or("application/octet-stream");
19209    let content_type = super::ContentType::from(content_type);
19210
19211    if !status.is_client_error() && !status.is_server_error() {
19212        let content = resp.text().await?;
19213        match content_type {
19214            ContentType::Json => serde_json::from_str(&content).map_err(Error::from),
19215            ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `models::ProvisionCertificateOutput`"))),
19216            ContentType::Unsupported(unknown_type) => return Err(Error::from(serde_json::Error::custom(format!("Received `{unknown_type}` content type response that cannot be converted to `models::ProvisionCertificateOutput`")))),
19217        }
19218    } else {
19219        let content = resp.text().await?;
19220        let entity: Option<ProvisionCertificateError> = serde_json::from_str(&content).ok();
19221        Err(Error::ResponseError(ResponseContent { status, content, entity }))
19222    }
19223}
19224
19225pub async fn raw_creds(configuration: &configuration::Configuration, raw_creds: Option<models::RawCreds>) -> Result<models::SystemAccessCredentialsReplyObj, Error<RawCredsError>> {
19226    // add a prefix to parameters to efficiently prevent name collisions
19227    let p_body_raw_creds = raw_creds;
19228
19229    let uri_str = format!("{}/raw-creds", configuration.base_path);
19230    let mut req_builder = configuration.client.request(reqwest::Method::POST, &uri_str);
19231
19232    if let Some(ref user_agent) = configuration.user_agent {
19233        req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone());
19234    }
19235    req_builder = req_builder.json(&p_body_raw_creds);
19236
19237    let req = req_builder.build()?;
19238    let resp = configuration.client.execute(req).await?;
19239
19240    let status = resp.status();
19241    let content_type = resp
19242        .headers()
19243        .get("content-type")
19244        .and_then(|v| v.to_str().ok())
19245        .unwrap_or("application/octet-stream");
19246    let content_type = super::ContentType::from(content_type);
19247
19248    if !status.is_client_error() && !status.is_server_error() {
19249        let content = resp.text().await?;
19250        match content_type {
19251            ContentType::Json => serde_json::from_str(&content).map_err(Error::from),
19252            ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `models::SystemAccessCredentialsReplyObj`"))),
19253            ContentType::Unsupported(unknown_type) => return Err(Error::from(serde_json::Error::custom(format!("Received `{unknown_type}` content type response that cannot be converted to `models::SystemAccessCredentialsReplyObj`")))),
19254        }
19255    } else {
19256        let content = resp.text().await?;
19257        let entity: Option<RawCredsError> = serde_json::from_str(&content).ok();
19258        Err(Error::ResponseError(ResponseContent { status, content, entity }))
19259    }
19260}
19261
19262pub async fn refresh_key(configuration: &configuration::Configuration, refresh_key: models::RefreshKey) -> Result<models::RefreshKeyOutput, Error<RefreshKeyError>> {
19263    // add a prefix to parameters to efficiently prevent name collisions
19264    let p_body_refresh_key = refresh_key;
19265
19266    let uri_str = format!("{}/refresh-key", configuration.base_path);
19267    let mut req_builder = configuration.client.request(reqwest::Method::POST, &uri_str);
19268
19269    if let Some(ref user_agent) = configuration.user_agent {
19270        req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone());
19271    }
19272    req_builder = req_builder.json(&p_body_refresh_key);
19273
19274    let req = req_builder.build()?;
19275    let resp = configuration.client.execute(req).await?;
19276
19277    let status = resp.status();
19278    let content_type = resp
19279        .headers()
19280        .get("content-type")
19281        .and_then(|v| v.to_str().ok())
19282        .unwrap_or("application/octet-stream");
19283    let content_type = super::ContentType::from(content_type);
19284
19285    if !status.is_client_error() && !status.is_server_error() {
19286        let content = resp.text().await?;
19287        match content_type {
19288            ContentType::Json => serde_json::from_str(&content).map_err(Error::from),
19289            ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `models::RefreshKeyOutput`"))),
19290            ContentType::Unsupported(unknown_type) => return Err(Error::from(serde_json::Error::custom(format!("Received `{unknown_type}` content type response that cannot be converted to `models::RefreshKeyOutput`")))),
19291        }
19292    } else {
19293        let content = resp.text().await?;
19294        let entity: Option<RefreshKeyError> = serde_json::from_str(&content).ok();
19295        Err(Error::ResponseError(ResponseContent { status, content, entity }))
19296    }
19297}
19298
19299pub async fn renew_certificate(configuration: &configuration::Configuration, renew_certificate: models::RenewCertificate) -> Result<models::RenewCertificateOutput, Error<RenewCertificateError>> {
19300    // add a prefix to parameters to efficiently prevent name collisions
19301    let p_body_renew_certificate = renew_certificate;
19302
19303    let uri_str = format!("{}/renew-certificate", configuration.base_path);
19304    let mut req_builder = configuration.client.request(reqwest::Method::POST, &uri_str);
19305
19306    if let Some(ref user_agent) = configuration.user_agent {
19307        req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone());
19308    }
19309    req_builder = req_builder.json(&p_body_renew_certificate);
19310
19311    let req = req_builder.build()?;
19312    let resp = configuration.client.execute(req).await?;
19313
19314    let status = resp.status();
19315    let content_type = resp
19316        .headers()
19317        .get("content-type")
19318        .and_then(|v| v.to_str().ok())
19319        .unwrap_or("application/octet-stream");
19320    let content_type = super::ContentType::from(content_type);
19321
19322    if !status.is_client_error() && !status.is_server_error() {
19323        let content = resp.text().await?;
19324        match content_type {
19325            ContentType::Json => serde_json::from_str(&content).map_err(Error::from),
19326            ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `models::RenewCertificateOutput`"))),
19327            ContentType::Unsupported(unknown_type) => return Err(Error::from(serde_json::Error::custom(format!("Received `{unknown_type}` content type response that cannot be converted to `models::RenewCertificateOutput`")))),
19328        }
19329    } else {
19330        let content = resp.text().await?;
19331        let entity: Option<RenewCertificateError> = serde_json::from_str(&content).ok();
19332        Err(Error::ResponseError(ResponseContent { status, content, entity }))
19333    }
19334}
19335
19336pub async fn request_access(configuration: &configuration::Configuration, request_access: models::RequestAccess) -> Result<models::RequestAccessOutput, Error<RequestAccessError>> {
19337    // add a prefix to parameters to efficiently prevent name collisions
19338    let p_body_request_access = request_access;
19339
19340    let uri_str = format!("{}/request-access", configuration.base_path);
19341    let mut req_builder = configuration.client.request(reqwest::Method::POST, &uri_str);
19342
19343    if let Some(ref user_agent) = configuration.user_agent {
19344        req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone());
19345    }
19346    req_builder = req_builder.json(&p_body_request_access);
19347
19348    let req = req_builder.build()?;
19349    let resp = configuration.client.execute(req).await?;
19350
19351    let status = resp.status();
19352    let content_type = resp
19353        .headers()
19354        .get("content-type")
19355        .and_then(|v| v.to_str().ok())
19356        .unwrap_or("application/octet-stream");
19357    let content_type = super::ContentType::from(content_type);
19358
19359    if !status.is_client_error() && !status.is_server_error() {
19360        let content = resp.text().await?;
19361        match content_type {
19362            ContentType::Json => serde_json::from_str(&content).map_err(Error::from),
19363            ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `models::RequestAccessOutput`"))),
19364            ContentType::Unsupported(unknown_type) => return Err(Error::from(serde_json::Error::custom(format!("Received `{unknown_type}` content type response that cannot be converted to `models::RequestAccessOutput`")))),
19365        }
19366    } else {
19367        let content = resp.text().await?;
19368        let entity: Option<RequestAccessError> = serde_json::from_str(&content).ok();
19369        Err(Error::ResponseError(ResponseContent { status, content, entity }))
19370    }
19371}
19372
19373pub async fn reset_access_key(configuration: &configuration::Configuration, reset_access_key: models::ResetAccessKey) -> Result<models::ResetAuthMethodAccessKeyOutput, Error<ResetAccessKeyError>> {
19374    // add a prefix to parameters to efficiently prevent name collisions
19375    let p_body_reset_access_key = reset_access_key;
19376
19377    let uri_str = format!("{}/reset-access-key", configuration.base_path);
19378    let mut req_builder = configuration.client.request(reqwest::Method::POST, &uri_str);
19379
19380    if let Some(ref user_agent) = configuration.user_agent {
19381        req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone());
19382    }
19383    req_builder = req_builder.json(&p_body_reset_access_key);
19384
19385    let req = req_builder.build()?;
19386    let resp = configuration.client.execute(req).await?;
19387
19388    let status = resp.status();
19389    let content_type = resp
19390        .headers()
19391        .get("content-type")
19392        .and_then(|v| v.to_str().ok())
19393        .unwrap_or("application/octet-stream");
19394    let content_type = super::ContentType::from(content_type);
19395
19396    if !status.is_client_error() && !status.is_server_error() {
19397        let content = resp.text().await?;
19398        match content_type {
19399            ContentType::Json => serde_json::from_str(&content).map_err(Error::from),
19400            ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `models::ResetAuthMethodAccessKeyOutput`"))),
19401            ContentType::Unsupported(unknown_type) => return Err(Error::from(serde_json::Error::custom(format!("Received `{unknown_type}` content type response that cannot be converted to `models::ResetAuthMethodAccessKeyOutput`")))),
19402        }
19403    } else {
19404        let content = resp.text().await?;
19405        let entity: Option<ResetAccessKeyError> = serde_json::from_str(&content).ok();
19406        Err(Error::ResponseError(ResponseContent { status, content, entity }))
19407    }
19408}
19409
19410pub async fn reverse_rbac(configuration: &configuration::Configuration, reverse_rbac: models::ReverseRbac) -> Result<models::ReverseRbacOutput, Error<ReverseRbacError>> {
19411    // add a prefix to parameters to efficiently prevent name collisions
19412    let p_body_reverse_rbac = reverse_rbac;
19413
19414    let uri_str = format!("{}/reverse-rbac", configuration.base_path);
19415    let mut req_builder = configuration.client.request(reqwest::Method::POST, &uri_str);
19416
19417    if let Some(ref user_agent) = configuration.user_agent {
19418        req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone());
19419    }
19420    req_builder = req_builder.json(&p_body_reverse_rbac);
19421
19422    let req = req_builder.build()?;
19423    let resp = configuration.client.execute(req).await?;
19424
19425    let status = resp.status();
19426    let content_type = resp
19427        .headers()
19428        .get("content-type")
19429        .and_then(|v| v.to_str().ok())
19430        .unwrap_or("application/octet-stream");
19431    let content_type = super::ContentType::from(content_type);
19432
19433    if !status.is_client_error() && !status.is_server_error() {
19434        let content = resp.text().await?;
19435        match content_type {
19436            ContentType::Json => serde_json::from_str(&content).map_err(Error::from),
19437            ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `models::ReverseRbacOutput`"))),
19438            ContentType::Unsupported(unknown_type) => return Err(Error::from(serde_json::Error::custom(format!("Received `{unknown_type}` content type response that cannot be converted to `models::ReverseRbacOutput`")))),
19439        }
19440    } else {
19441        let content = resp.text().await?;
19442        let entity: Option<ReverseRbacError> = serde_json::from_str(&content).ok();
19443        Err(Error::ResponseError(ResponseContent { status, content, entity }))
19444    }
19445}
19446
19447pub async fn revoke_certificate(configuration: &configuration::Configuration, revoke_certificate: models::RevokeCertificate) -> Result<serde_json::Value, Error<RevokeCertificateError>> {
19448    // add a prefix to parameters to efficiently prevent name collisions
19449    let p_body_revoke_certificate = revoke_certificate;
19450
19451    let uri_str = format!("{}/revoke-certificate", configuration.base_path);
19452    let mut req_builder = configuration.client.request(reqwest::Method::POST, &uri_str);
19453
19454    if let Some(ref user_agent) = configuration.user_agent {
19455        req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone());
19456    }
19457    req_builder = req_builder.json(&p_body_revoke_certificate);
19458
19459    let req = req_builder.build()?;
19460    let resp = configuration.client.execute(req).await?;
19461
19462    let status = resp.status();
19463    let content_type = resp
19464        .headers()
19465        .get("content-type")
19466        .and_then(|v| v.to_str().ok())
19467        .unwrap_or("application/octet-stream");
19468    let content_type = super::ContentType::from(content_type);
19469
19470    if !status.is_client_error() && !status.is_server_error() {
19471        let content = resp.text().await?;
19472        match content_type {
19473            ContentType::Json => serde_json::from_str(&content).map_err(Error::from),
19474            ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `serde_json::Value`"))),
19475            ContentType::Unsupported(unknown_type) => return Err(Error::from(serde_json::Error::custom(format!("Received `{unknown_type}` content type response that cannot be converted to `serde_json::Value`")))),
19476        }
19477    } else {
19478        let content = resp.text().await?;
19479        let entity: Option<RevokeCertificateError> = serde_json::from_str(&content).ok();
19480        Err(Error::ResponseError(ResponseContent { status, content, entity }))
19481    }
19482}
19483
19484pub async fn revoke_creds(configuration: &configuration::Configuration, ) -> Result<serde_json::Value, Error<RevokeCredsError>> {
19485
19486    let uri_str = format!("{}/revoke-creds", configuration.base_path);
19487    let mut req_builder = configuration.client.request(reqwest::Method::POST, &uri_str);
19488
19489    if let Some(ref user_agent) = configuration.user_agent {
19490        req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone());
19491    }
19492
19493    let req = req_builder.build()?;
19494    let resp = configuration.client.execute(req).await?;
19495
19496    let status = resp.status();
19497    let content_type = resp
19498        .headers()
19499        .get("content-type")
19500        .and_then(|v| v.to_str().ok())
19501        .unwrap_or("application/octet-stream");
19502    let content_type = super::ContentType::from(content_type);
19503
19504    if !status.is_client_error() && !status.is_server_error() {
19505        let content = resp.text().await?;
19506        match content_type {
19507            ContentType::Json => serde_json::from_str(&content).map_err(Error::from),
19508            ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `serde_json::Value`"))),
19509            ContentType::Unsupported(unknown_type) => return Err(Error::from(serde_json::Error::custom(format!("Received `{unknown_type}` content type response that cannot be converted to `serde_json::Value`")))),
19510        }
19511    } else {
19512        let content = resp.text().await?;
19513        let entity: Option<RevokeCredsError> = serde_json::from_str(&content).ok();
19514        Err(Error::ResponseError(ResponseContent { status, content, entity }))
19515    }
19516}
19517
19518pub async fn rollback_secret(configuration: &configuration::Configuration, rollback_secret: models::RollbackSecret) -> Result<models::RollbackSecretOutput, Error<RollbackSecretError>> {
19519    // add a prefix to parameters to efficiently prevent name collisions
19520    let p_body_rollback_secret = rollback_secret;
19521
19522    let uri_str = format!("{}/rollback-secret", configuration.base_path);
19523    let mut req_builder = configuration.client.request(reqwest::Method::POST, &uri_str);
19524
19525    if let Some(ref user_agent) = configuration.user_agent {
19526        req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone());
19527    }
19528    req_builder = req_builder.json(&p_body_rollback_secret);
19529
19530    let req = req_builder.build()?;
19531    let resp = configuration.client.execute(req).await?;
19532
19533    let status = resp.status();
19534    let content_type = resp
19535        .headers()
19536        .get("content-type")
19537        .and_then(|v| v.to_str().ok())
19538        .unwrap_or("application/octet-stream");
19539    let content_type = super::ContentType::from(content_type);
19540
19541    if !status.is_client_error() && !status.is_server_error() {
19542        let content = resp.text().await?;
19543        match content_type {
19544            ContentType::Json => serde_json::from_str(&content).map_err(Error::from),
19545            ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `models::RollbackSecretOutput`"))),
19546            ContentType::Unsupported(unknown_type) => return Err(Error::from(serde_json::Error::custom(format!("Received `{unknown_type}` content type response that cannot be converted to `models::RollbackSecretOutput`")))),
19547        }
19548    } else {
19549        let content = resp.text().await?;
19550        let entity: Option<RollbackSecretError> = serde_json::from_str(&content).ok();
19551        Err(Error::ResponseError(ResponseContent { status, content, entity }))
19552    }
19553}
19554
19555pub async fn rotate_key(configuration: &configuration::Configuration, rotate_key: models::RotateKey) -> Result<models::RotateKeyOutput, Error<RotateKeyError>> {
19556    // add a prefix to parameters to efficiently prevent name collisions
19557    let p_body_rotate_key = rotate_key;
19558
19559    let uri_str = format!("{}/rotate-key", configuration.base_path);
19560    let mut req_builder = configuration.client.request(reqwest::Method::POST, &uri_str);
19561
19562    if let Some(ref user_agent) = configuration.user_agent {
19563        req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone());
19564    }
19565    req_builder = req_builder.json(&p_body_rotate_key);
19566
19567    let req = req_builder.build()?;
19568    let resp = configuration.client.execute(req).await?;
19569
19570    let status = resp.status();
19571    let content_type = resp
19572        .headers()
19573        .get("content-type")
19574        .and_then(|v| v.to_str().ok())
19575        .unwrap_or("application/octet-stream");
19576    let content_type = super::ContentType::from(content_type);
19577
19578    if !status.is_client_error() && !status.is_server_error() {
19579        let content = resp.text().await?;
19580        match content_type {
19581            ContentType::Json => serde_json::from_str(&content).map_err(Error::from),
19582            ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `models::RotateKeyOutput`"))),
19583            ContentType::Unsupported(unknown_type) => return Err(Error::from(serde_json::Error::custom(format!("Received `{unknown_type}` content type response that cannot be converted to `models::RotateKeyOutput`")))),
19584        }
19585    } else {
19586        let content = resp.text().await?;
19587        let entity: Option<RotateKeyError> = serde_json::from_str(&content).ok();
19588        Err(Error::ResponseError(ResponseContent { status, content, entity }))
19589    }
19590}
19591
19592pub async fn rotate_oidc_client_secret(configuration: &configuration::Configuration, rotate_oidc_client_secret: models::RotateOidcClientSecret) -> Result<models::RotateOidcClientOutput, Error<RotateOidcClientSecretError>> {
19593    // add a prefix to parameters to efficiently prevent name collisions
19594    let p_body_rotate_oidc_client_secret = rotate_oidc_client_secret;
19595
19596    let uri_str = format!("{}/rotate-oidc-client-secret", configuration.base_path);
19597    let mut req_builder = configuration.client.request(reqwest::Method::POST, &uri_str);
19598
19599    if let Some(ref user_agent) = configuration.user_agent {
19600        req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone());
19601    }
19602    req_builder = req_builder.json(&p_body_rotate_oidc_client_secret);
19603
19604    let req = req_builder.build()?;
19605    let resp = configuration.client.execute(req).await?;
19606
19607    let status = resp.status();
19608    let content_type = resp
19609        .headers()
19610        .get("content-type")
19611        .and_then(|v| v.to_str().ok())
19612        .unwrap_or("application/octet-stream");
19613    let content_type = super::ContentType::from(content_type);
19614
19615    if !status.is_client_error() && !status.is_server_error() {
19616        let content = resp.text().await?;
19617        match content_type {
19618            ContentType::Json => serde_json::from_str(&content).map_err(Error::from),
19619            ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `models::RotateOidcClientOutput`"))),
19620            ContentType::Unsupported(unknown_type) => return Err(Error::from(serde_json::Error::custom(format!("Received `{unknown_type}` content type response that cannot be converted to `models::RotateOidcClientOutput`")))),
19621        }
19622    } else {
19623        let content = resp.text().await?;
19624        let entity: Option<RotateOidcClientSecretError> = serde_json::from_str(&content).ok();
19625        Err(Error::ResponseError(ResponseContent { status, content, entity }))
19626    }
19627}
19628
19629pub async fn rotate_secret(configuration: &configuration::Configuration, rotate_secret: models::RotateSecret) -> Result<models::RotatedSecretOutput, Error<RotateSecretError>> {
19630    // add a prefix to parameters to efficiently prevent name collisions
19631    let p_body_rotate_secret = rotate_secret;
19632
19633    let uri_str = format!("{}/gateway-rotate-secret", configuration.base_path);
19634    let mut req_builder = configuration.client.request(reqwest::Method::POST, &uri_str);
19635
19636    if let Some(ref user_agent) = configuration.user_agent {
19637        req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone());
19638    }
19639    req_builder = req_builder.json(&p_body_rotate_secret);
19640
19641    let req = req_builder.build()?;
19642    let resp = configuration.client.execute(req).await?;
19643
19644    let status = resp.status();
19645    let content_type = resp
19646        .headers()
19647        .get("content-type")
19648        .and_then(|v| v.to_str().ok())
19649        .unwrap_or("application/octet-stream");
19650    let content_type = super::ContentType::from(content_type);
19651
19652    if !status.is_client_error() && !status.is_server_error() {
19653        let content = resp.text().await?;
19654        match content_type {
19655            ContentType::Json => serde_json::from_str(&content).map_err(Error::from),
19656            ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `models::RotatedSecretOutput`"))),
19657            ContentType::Unsupported(unknown_type) => return Err(Error::from(serde_json::Error::custom(format!("Received `{unknown_type}` content type response that cannot be converted to `models::RotatedSecretOutput`")))),
19658        }
19659    } else {
19660        let content = resp.text().await?;
19661        let entity: Option<RotateSecretError> = serde_json::from_str(&content).ok();
19662        Err(Error::ResponseError(ResponseContent { status, content, entity }))
19663    }
19664}
19665
19666pub async fn rotated_secret_create_aws(configuration: &configuration::Configuration, rotated_secret_create_aws: models::RotatedSecretCreateAws) -> Result<models::RotatedSecretCreateOutput, Error<RotatedSecretCreateAwsError>> {
19667    // add a prefix to parameters to efficiently prevent name collisions
19668    let p_body_rotated_secret_create_aws = rotated_secret_create_aws;
19669
19670    let uri_str = format!("{}/rotated-secret-create-aws", configuration.base_path);
19671    let mut req_builder = configuration.client.request(reqwest::Method::POST, &uri_str);
19672
19673    if let Some(ref user_agent) = configuration.user_agent {
19674        req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone());
19675    }
19676    req_builder = req_builder.json(&p_body_rotated_secret_create_aws);
19677
19678    let req = req_builder.build()?;
19679    let resp = configuration.client.execute(req).await?;
19680
19681    let status = resp.status();
19682    let content_type = resp
19683        .headers()
19684        .get("content-type")
19685        .and_then(|v| v.to_str().ok())
19686        .unwrap_or("application/octet-stream");
19687    let content_type = super::ContentType::from(content_type);
19688
19689    if !status.is_client_error() && !status.is_server_error() {
19690        let content = resp.text().await?;
19691        match content_type {
19692            ContentType::Json => serde_json::from_str(&content).map_err(Error::from),
19693            ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `models::RotatedSecretCreateOutput`"))),
19694            ContentType::Unsupported(unknown_type) => return Err(Error::from(serde_json::Error::custom(format!("Received `{unknown_type}` content type response that cannot be converted to `models::RotatedSecretCreateOutput`")))),
19695        }
19696    } else {
19697        let content = resp.text().await?;
19698        let entity: Option<RotatedSecretCreateAwsError> = serde_json::from_str(&content).ok();
19699        Err(Error::ResponseError(ResponseContent { status, content, entity }))
19700    }
19701}
19702
19703pub async fn rotated_secret_create_azure(configuration: &configuration::Configuration, rotated_secret_create_azure: models::RotatedSecretCreateAzure) -> Result<models::RotatedSecretCreateOutput, Error<RotatedSecretCreateAzureError>> {
19704    // add a prefix to parameters to efficiently prevent name collisions
19705    let p_body_rotated_secret_create_azure = rotated_secret_create_azure;
19706
19707    let uri_str = format!("{}/rotated-secret-create-azure", configuration.base_path);
19708    let mut req_builder = configuration.client.request(reqwest::Method::POST, &uri_str);
19709
19710    if let Some(ref user_agent) = configuration.user_agent {
19711        req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone());
19712    }
19713    req_builder = req_builder.json(&p_body_rotated_secret_create_azure);
19714
19715    let req = req_builder.build()?;
19716    let resp = configuration.client.execute(req).await?;
19717
19718    let status = resp.status();
19719    let content_type = resp
19720        .headers()
19721        .get("content-type")
19722        .and_then(|v| v.to_str().ok())
19723        .unwrap_or("application/octet-stream");
19724    let content_type = super::ContentType::from(content_type);
19725
19726    if !status.is_client_error() && !status.is_server_error() {
19727        let content = resp.text().await?;
19728        match content_type {
19729            ContentType::Json => serde_json::from_str(&content).map_err(Error::from),
19730            ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `models::RotatedSecretCreateOutput`"))),
19731            ContentType::Unsupported(unknown_type) => return Err(Error::from(serde_json::Error::custom(format!("Received `{unknown_type}` content type response that cannot be converted to `models::RotatedSecretCreateOutput`")))),
19732        }
19733    } else {
19734        let content = resp.text().await?;
19735        let entity: Option<RotatedSecretCreateAzureError> = serde_json::from_str(&content).ok();
19736        Err(Error::ResponseError(ResponseContent { status, content, entity }))
19737    }
19738}
19739
19740pub async fn rotated_secret_create_cassandra(configuration: &configuration::Configuration, rotated_secret_create_cassandra: models::RotatedSecretCreateCassandra) -> Result<models::RotatedSecretCreateOutput, Error<RotatedSecretCreateCassandraError>> {
19741    // add a prefix to parameters to efficiently prevent name collisions
19742    let p_body_rotated_secret_create_cassandra = rotated_secret_create_cassandra;
19743
19744    let uri_str = format!("{}/rotated-secret-create-cassandra", configuration.base_path);
19745    let mut req_builder = configuration.client.request(reqwest::Method::POST, &uri_str);
19746
19747    if let Some(ref user_agent) = configuration.user_agent {
19748        req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone());
19749    }
19750    req_builder = req_builder.json(&p_body_rotated_secret_create_cassandra);
19751
19752    let req = req_builder.build()?;
19753    let resp = configuration.client.execute(req).await?;
19754
19755    let status = resp.status();
19756    let content_type = resp
19757        .headers()
19758        .get("content-type")
19759        .and_then(|v| v.to_str().ok())
19760        .unwrap_or("application/octet-stream");
19761    let content_type = super::ContentType::from(content_type);
19762
19763    if !status.is_client_error() && !status.is_server_error() {
19764        let content = resp.text().await?;
19765        match content_type {
19766            ContentType::Json => serde_json::from_str(&content).map_err(Error::from),
19767            ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `models::RotatedSecretCreateOutput`"))),
19768            ContentType::Unsupported(unknown_type) => return Err(Error::from(serde_json::Error::custom(format!("Received `{unknown_type}` content type response that cannot be converted to `models::RotatedSecretCreateOutput`")))),
19769        }
19770    } else {
19771        let content = resp.text().await?;
19772        let entity: Option<RotatedSecretCreateCassandraError> = serde_json::from_str(&content).ok();
19773        Err(Error::ResponseError(ResponseContent { status, content, entity }))
19774    }
19775}
19776
19777pub async fn rotated_secret_create_custom(configuration: &configuration::Configuration, rotated_secret_create_custom: models::RotatedSecretCreateCustom) -> Result<models::RotatedSecretCreateOutput, Error<RotatedSecretCreateCustomError>> {
19778    // add a prefix to parameters to efficiently prevent name collisions
19779    let p_body_rotated_secret_create_custom = rotated_secret_create_custom;
19780
19781    let uri_str = format!("{}/rotated-secret-create-custom", configuration.base_path);
19782    let mut req_builder = configuration.client.request(reqwest::Method::POST, &uri_str);
19783
19784    if let Some(ref user_agent) = configuration.user_agent {
19785        req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone());
19786    }
19787    req_builder = req_builder.json(&p_body_rotated_secret_create_custom);
19788
19789    let req = req_builder.build()?;
19790    let resp = configuration.client.execute(req).await?;
19791
19792    let status = resp.status();
19793    let content_type = resp
19794        .headers()
19795        .get("content-type")
19796        .and_then(|v| v.to_str().ok())
19797        .unwrap_or("application/octet-stream");
19798    let content_type = super::ContentType::from(content_type);
19799
19800    if !status.is_client_error() && !status.is_server_error() {
19801        let content = resp.text().await?;
19802        match content_type {
19803            ContentType::Json => serde_json::from_str(&content).map_err(Error::from),
19804            ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `models::RotatedSecretCreateOutput`"))),
19805            ContentType::Unsupported(unknown_type) => return Err(Error::from(serde_json::Error::custom(format!("Received `{unknown_type}` content type response that cannot be converted to `models::RotatedSecretCreateOutput`")))),
19806        }
19807    } else {
19808        let content = resp.text().await?;
19809        let entity: Option<RotatedSecretCreateCustomError> = serde_json::from_str(&content).ok();
19810        Err(Error::ResponseError(ResponseContent { status, content, entity }))
19811    }
19812}
19813
19814pub async fn rotated_secret_create_dockerhub(configuration: &configuration::Configuration, rotated_secret_create_dockerhub: models::RotatedSecretCreateDockerhub) -> Result<models::RotatedSecretCreateOutput, Error<RotatedSecretCreateDockerhubError>> {
19815    // add a prefix to parameters to efficiently prevent name collisions
19816    let p_body_rotated_secret_create_dockerhub = rotated_secret_create_dockerhub;
19817
19818    let uri_str = format!("{}/rotated-secret-create-dockerhub", configuration.base_path);
19819    let mut req_builder = configuration.client.request(reqwest::Method::POST, &uri_str);
19820
19821    if let Some(ref user_agent) = configuration.user_agent {
19822        req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone());
19823    }
19824    req_builder = req_builder.json(&p_body_rotated_secret_create_dockerhub);
19825
19826    let req = req_builder.build()?;
19827    let resp = configuration.client.execute(req).await?;
19828
19829    let status = resp.status();
19830    let content_type = resp
19831        .headers()
19832        .get("content-type")
19833        .and_then(|v| v.to_str().ok())
19834        .unwrap_or("application/octet-stream");
19835    let content_type = super::ContentType::from(content_type);
19836
19837    if !status.is_client_error() && !status.is_server_error() {
19838        let content = resp.text().await?;
19839        match content_type {
19840            ContentType::Json => serde_json::from_str(&content).map_err(Error::from),
19841            ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `models::RotatedSecretCreateOutput`"))),
19842            ContentType::Unsupported(unknown_type) => return Err(Error::from(serde_json::Error::custom(format!("Received `{unknown_type}` content type response that cannot be converted to `models::RotatedSecretCreateOutput`")))),
19843        }
19844    } else {
19845        let content = resp.text().await?;
19846        let entity: Option<RotatedSecretCreateDockerhubError> = serde_json::from_str(&content).ok();
19847        Err(Error::ResponseError(ResponseContent { status, content, entity }))
19848    }
19849}
19850
19851pub async fn rotated_secret_create_gcp(configuration: &configuration::Configuration, rotated_secret_create_gcp: models::RotatedSecretCreateGcp) -> Result<models::RotatedSecretCreateOutput, Error<RotatedSecretCreateGcpError>> {
19852    // add a prefix to parameters to efficiently prevent name collisions
19853    let p_body_rotated_secret_create_gcp = rotated_secret_create_gcp;
19854
19855    let uri_str = format!("{}/rotated-secret-create-gcp", configuration.base_path);
19856    let mut req_builder = configuration.client.request(reqwest::Method::POST, &uri_str);
19857
19858    if let Some(ref user_agent) = configuration.user_agent {
19859        req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone());
19860    }
19861    req_builder = req_builder.json(&p_body_rotated_secret_create_gcp);
19862
19863    let req = req_builder.build()?;
19864    let resp = configuration.client.execute(req).await?;
19865
19866    let status = resp.status();
19867    let content_type = resp
19868        .headers()
19869        .get("content-type")
19870        .and_then(|v| v.to_str().ok())
19871        .unwrap_or("application/octet-stream");
19872    let content_type = super::ContentType::from(content_type);
19873
19874    if !status.is_client_error() && !status.is_server_error() {
19875        let content = resp.text().await?;
19876        match content_type {
19877            ContentType::Json => serde_json::from_str(&content).map_err(Error::from),
19878            ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `models::RotatedSecretCreateOutput`"))),
19879            ContentType::Unsupported(unknown_type) => return Err(Error::from(serde_json::Error::custom(format!("Received `{unknown_type}` content type response that cannot be converted to `models::RotatedSecretCreateOutput`")))),
19880        }
19881    } else {
19882        let content = resp.text().await?;
19883        let entity: Option<RotatedSecretCreateGcpError> = serde_json::from_str(&content).ok();
19884        Err(Error::ResponseError(ResponseContent { status, content, entity }))
19885    }
19886}
19887
19888pub async fn rotated_secret_create_hanadb(configuration: &configuration::Configuration, rotated_secret_create_hanadb: models::RotatedSecretCreateHanadb) -> Result<models::RotatedSecretCreateOutput, Error<RotatedSecretCreateHanadbError>> {
19889    // add a prefix to parameters to efficiently prevent name collisions
19890    let p_body_rotated_secret_create_hanadb = rotated_secret_create_hanadb;
19891
19892    let uri_str = format!("{}/rotated-secret-create-hanadb", configuration.base_path);
19893    let mut req_builder = configuration.client.request(reqwest::Method::POST, &uri_str);
19894
19895    if let Some(ref user_agent) = configuration.user_agent {
19896        req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone());
19897    }
19898    req_builder = req_builder.json(&p_body_rotated_secret_create_hanadb);
19899
19900    let req = req_builder.build()?;
19901    let resp = configuration.client.execute(req).await?;
19902
19903    let status = resp.status();
19904    let content_type = resp
19905        .headers()
19906        .get("content-type")
19907        .and_then(|v| v.to_str().ok())
19908        .unwrap_or("application/octet-stream");
19909    let content_type = super::ContentType::from(content_type);
19910
19911    if !status.is_client_error() && !status.is_server_error() {
19912        let content = resp.text().await?;
19913        match content_type {
19914            ContentType::Json => serde_json::from_str(&content).map_err(Error::from),
19915            ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `models::RotatedSecretCreateOutput`"))),
19916            ContentType::Unsupported(unknown_type) => return Err(Error::from(serde_json::Error::custom(format!("Received `{unknown_type}` content type response that cannot be converted to `models::RotatedSecretCreateOutput`")))),
19917        }
19918    } else {
19919        let content = resp.text().await?;
19920        let entity: Option<RotatedSecretCreateHanadbError> = serde_json::from_str(&content).ok();
19921        Err(Error::ResponseError(ResponseContent { status, content, entity }))
19922    }
19923}
19924
19925pub async fn rotated_secret_create_ldap(configuration: &configuration::Configuration, rotated_secret_create_ldap: models::RotatedSecretCreateLdap) -> Result<models::RotatedSecretCreateOutput, Error<RotatedSecretCreateLdapError>> {
19926    // add a prefix to parameters to efficiently prevent name collisions
19927    let p_body_rotated_secret_create_ldap = rotated_secret_create_ldap;
19928
19929    let uri_str = format!("{}/rotated-secret-create-ldap", configuration.base_path);
19930    let mut req_builder = configuration.client.request(reqwest::Method::POST, &uri_str);
19931
19932    if let Some(ref user_agent) = configuration.user_agent {
19933        req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone());
19934    }
19935    req_builder = req_builder.json(&p_body_rotated_secret_create_ldap);
19936
19937    let req = req_builder.build()?;
19938    let resp = configuration.client.execute(req).await?;
19939
19940    let status = resp.status();
19941    let content_type = resp
19942        .headers()
19943        .get("content-type")
19944        .and_then(|v| v.to_str().ok())
19945        .unwrap_or("application/octet-stream");
19946    let content_type = super::ContentType::from(content_type);
19947
19948    if !status.is_client_error() && !status.is_server_error() {
19949        let content = resp.text().await?;
19950        match content_type {
19951            ContentType::Json => serde_json::from_str(&content).map_err(Error::from),
19952            ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `models::RotatedSecretCreateOutput`"))),
19953            ContentType::Unsupported(unknown_type) => return Err(Error::from(serde_json::Error::custom(format!("Received `{unknown_type}` content type response that cannot be converted to `models::RotatedSecretCreateOutput`")))),
19954        }
19955    } else {
19956        let content = resp.text().await?;
19957        let entity: Option<RotatedSecretCreateLdapError> = serde_json::from_str(&content).ok();
19958        Err(Error::ResponseError(ResponseContent { status, content, entity }))
19959    }
19960}
19961
19962pub async fn rotated_secret_create_mongodb(configuration: &configuration::Configuration, rotated_secret_create_mongodb: models::RotatedSecretCreateMongodb) -> Result<models::RotatedSecretCreateOutput, Error<RotatedSecretCreateMongodbError>> {
19963    // add a prefix to parameters to efficiently prevent name collisions
19964    let p_body_rotated_secret_create_mongodb = rotated_secret_create_mongodb;
19965
19966    let uri_str = format!("{}/rotated-secret-create-mongodb", configuration.base_path);
19967    let mut req_builder = configuration.client.request(reqwest::Method::POST, &uri_str);
19968
19969    if let Some(ref user_agent) = configuration.user_agent {
19970        req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone());
19971    }
19972    req_builder = req_builder.json(&p_body_rotated_secret_create_mongodb);
19973
19974    let req = req_builder.build()?;
19975    let resp = configuration.client.execute(req).await?;
19976
19977    let status = resp.status();
19978    let content_type = resp
19979        .headers()
19980        .get("content-type")
19981        .and_then(|v| v.to_str().ok())
19982        .unwrap_or("application/octet-stream");
19983    let content_type = super::ContentType::from(content_type);
19984
19985    if !status.is_client_error() && !status.is_server_error() {
19986        let content = resp.text().await?;
19987        match content_type {
19988            ContentType::Json => serde_json::from_str(&content).map_err(Error::from),
19989            ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `models::RotatedSecretCreateOutput`"))),
19990            ContentType::Unsupported(unknown_type) => return Err(Error::from(serde_json::Error::custom(format!("Received `{unknown_type}` content type response that cannot be converted to `models::RotatedSecretCreateOutput`")))),
19991        }
19992    } else {
19993        let content = resp.text().await?;
19994        let entity: Option<RotatedSecretCreateMongodbError> = serde_json::from_str(&content).ok();
19995        Err(Error::ResponseError(ResponseContent { status, content, entity }))
19996    }
19997}
19998
19999pub async fn rotated_secret_create_mssql(configuration: &configuration::Configuration, rotated_secret_create_mssql: models::RotatedSecretCreateMssql) -> Result<models::RotatedSecretCreateOutput, Error<RotatedSecretCreateMssqlError>> {
20000    // add a prefix to parameters to efficiently prevent name collisions
20001    let p_body_rotated_secret_create_mssql = rotated_secret_create_mssql;
20002
20003    let uri_str = format!("{}/rotated-secret-create-mssql", configuration.base_path);
20004    let mut req_builder = configuration.client.request(reqwest::Method::POST, &uri_str);
20005
20006    if let Some(ref user_agent) = configuration.user_agent {
20007        req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone());
20008    }
20009    req_builder = req_builder.json(&p_body_rotated_secret_create_mssql);
20010
20011    let req = req_builder.build()?;
20012    let resp = configuration.client.execute(req).await?;
20013
20014    let status = resp.status();
20015    let content_type = resp
20016        .headers()
20017        .get("content-type")
20018        .and_then(|v| v.to_str().ok())
20019        .unwrap_or("application/octet-stream");
20020    let content_type = super::ContentType::from(content_type);
20021
20022    if !status.is_client_error() && !status.is_server_error() {
20023        let content = resp.text().await?;
20024        match content_type {
20025            ContentType::Json => serde_json::from_str(&content).map_err(Error::from),
20026            ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `models::RotatedSecretCreateOutput`"))),
20027            ContentType::Unsupported(unknown_type) => return Err(Error::from(serde_json::Error::custom(format!("Received `{unknown_type}` content type response that cannot be converted to `models::RotatedSecretCreateOutput`")))),
20028        }
20029    } else {
20030        let content = resp.text().await?;
20031        let entity: Option<RotatedSecretCreateMssqlError> = serde_json::from_str(&content).ok();
20032        Err(Error::ResponseError(ResponseContent { status, content, entity }))
20033    }
20034}
20035
20036pub async fn rotated_secret_create_mysql(configuration: &configuration::Configuration, rotated_secret_create_mysql: models::RotatedSecretCreateMysql) -> Result<models::RotatedSecretCreateOutput, Error<RotatedSecretCreateMysqlError>> {
20037    // add a prefix to parameters to efficiently prevent name collisions
20038    let p_body_rotated_secret_create_mysql = rotated_secret_create_mysql;
20039
20040    let uri_str = format!("{}/rotated-secret-create-mysql", configuration.base_path);
20041    let mut req_builder = configuration.client.request(reqwest::Method::POST, &uri_str);
20042
20043    if let Some(ref user_agent) = configuration.user_agent {
20044        req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone());
20045    }
20046    req_builder = req_builder.json(&p_body_rotated_secret_create_mysql);
20047
20048    let req = req_builder.build()?;
20049    let resp = configuration.client.execute(req).await?;
20050
20051    let status = resp.status();
20052    let content_type = resp
20053        .headers()
20054        .get("content-type")
20055        .and_then(|v| v.to_str().ok())
20056        .unwrap_or("application/octet-stream");
20057    let content_type = super::ContentType::from(content_type);
20058
20059    if !status.is_client_error() && !status.is_server_error() {
20060        let content = resp.text().await?;
20061        match content_type {
20062            ContentType::Json => serde_json::from_str(&content).map_err(Error::from),
20063            ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `models::RotatedSecretCreateOutput`"))),
20064            ContentType::Unsupported(unknown_type) => return Err(Error::from(serde_json::Error::custom(format!("Received `{unknown_type}` content type response that cannot be converted to `models::RotatedSecretCreateOutput`")))),
20065        }
20066    } else {
20067        let content = resp.text().await?;
20068        let entity: Option<RotatedSecretCreateMysqlError> = serde_json::from_str(&content).ok();
20069        Err(Error::ResponseError(ResponseContent { status, content, entity }))
20070    }
20071}
20072
20073pub async fn rotated_secret_create_open_ai(configuration: &configuration::Configuration, rotated_secret_create_open_ai: models::RotatedSecretCreateOpenAi) -> Result<models::RotatedSecretCreateOutput, Error<RotatedSecretCreateOpenAiError>> {
20074    // add a prefix to parameters to efficiently prevent name collisions
20075    let p_body_rotated_secret_create_open_ai = rotated_secret_create_open_ai;
20076
20077    let uri_str = format!("{}/rotated-secret-create-openai", configuration.base_path);
20078    let mut req_builder = configuration.client.request(reqwest::Method::POST, &uri_str);
20079
20080    if let Some(ref user_agent) = configuration.user_agent {
20081        req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone());
20082    }
20083    req_builder = req_builder.json(&p_body_rotated_secret_create_open_ai);
20084
20085    let req = req_builder.build()?;
20086    let resp = configuration.client.execute(req).await?;
20087
20088    let status = resp.status();
20089    let content_type = resp
20090        .headers()
20091        .get("content-type")
20092        .and_then(|v| v.to_str().ok())
20093        .unwrap_or("application/octet-stream");
20094    let content_type = super::ContentType::from(content_type);
20095
20096    if !status.is_client_error() && !status.is_server_error() {
20097        let content = resp.text().await?;
20098        match content_type {
20099            ContentType::Json => serde_json::from_str(&content).map_err(Error::from),
20100            ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `models::RotatedSecretCreateOutput`"))),
20101            ContentType::Unsupported(unknown_type) => return Err(Error::from(serde_json::Error::custom(format!("Received `{unknown_type}` content type response that cannot be converted to `models::RotatedSecretCreateOutput`")))),
20102        }
20103    } else {
20104        let content = resp.text().await?;
20105        let entity: Option<RotatedSecretCreateOpenAiError> = serde_json::from_str(&content).ok();
20106        Err(Error::ResponseError(ResponseContent { status, content, entity }))
20107    }
20108}
20109
20110pub async fn rotated_secret_create_oracledb(configuration: &configuration::Configuration, rotated_secret_create_oracledb: models::RotatedSecretCreateOracledb) -> Result<models::RotatedSecretCreateOutput, Error<RotatedSecretCreateOracledbError>> {
20111    // add a prefix to parameters to efficiently prevent name collisions
20112    let p_body_rotated_secret_create_oracledb = rotated_secret_create_oracledb;
20113
20114    let uri_str = format!("{}/rotated-secret-create-oracledb", configuration.base_path);
20115    let mut req_builder = configuration.client.request(reqwest::Method::POST, &uri_str);
20116
20117    if let Some(ref user_agent) = configuration.user_agent {
20118        req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone());
20119    }
20120    req_builder = req_builder.json(&p_body_rotated_secret_create_oracledb);
20121
20122    let req = req_builder.build()?;
20123    let resp = configuration.client.execute(req).await?;
20124
20125    let status = resp.status();
20126    let content_type = resp
20127        .headers()
20128        .get("content-type")
20129        .and_then(|v| v.to_str().ok())
20130        .unwrap_or("application/octet-stream");
20131    let content_type = super::ContentType::from(content_type);
20132
20133    if !status.is_client_error() && !status.is_server_error() {
20134        let content = resp.text().await?;
20135        match content_type {
20136            ContentType::Json => serde_json::from_str(&content).map_err(Error::from),
20137            ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `models::RotatedSecretCreateOutput`"))),
20138            ContentType::Unsupported(unknown_type) => return Err(Error::from(serde_json::Error::custom(format!("Received `{unknown_type}` content type response that cannot be converted to `models::RotatedSecretCreateOutput`")))),
20139        }
20140    } else {
20141        let content = resp.text().await?;
20142        let entity: Option<RotatedSecretCreateOracledbError> = serde_json::from_str(&content).ok();
20143        Err(Error::ResponseError(ResponseContent { status, content, entity }))
20144    }
20145}
20146
20147pub async fn rotated_secret_create_postgresql(configuration: &configuration::Configuration, rotated_secret_create_postgresql: models::RotatedSecretCreatePostgresql) -> Result<models::RotatedSecretCreateOutput, Error<RotatedSecretCreatePostgresqlError>> {
20148    // add a prefix to parameters to efficiently prevent name collisions
20149    let p_body_rotated_secret_create_postgresql = rotated_secret_create_postgresql;
20150
20151    let uri_str = format!("{}/rotated-secret-create-postgresql", configuration.base_path);
20152    let mut req_builder = configuration.client.request(reqwest::Method::POST, &uri_str);
20153
20154    if let Some(ref user_agent) = configuration.user_agent {
20155        req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone());
20156    }
20157    req_builder = req_builder.json(&p_body_rotated_secret_create_postgresql);
20158
20159    let req = req_builder.build()?;
20160    let resp = configuration.client.execute(req).await?;
20161
20162    let status = resp.status();
20163    let content_type = resp
20164        .headers()
20165        .get("content-type")
20166        .and_then(|v| v.to_str().ok())
20167        .unwrap_or("application/octet-stream");
20168    let content_type = super::ContentType::from(content_type);
20169
20170    if !status.is_client_error() && !status.is_server_error() {
20171        let content = resp.text().await?;
20172        match content_type {
20173            ContentType::Json => serde_json::from_str(&content).map_err(Error::from),
20174            ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `models::RotatedSecretCreateOutput`"))),
20175            ContentType::Unsupported(unknown_type) => return Err(Error::from(serde_json::Error::custom(format!("Received `{unknown_type}` content type response that cannot be converted to `models::RotatedSecretCreateOutput`")))),
20176        }
20177    } else {
20178        let content = resp.text().await?;
20179        let entity: Option<RotatedSecretCreatePostgresqlError> = serde_json::from_str(&content).ok();
20180        Err(Error::ResponseError(ResponseContent { status, content, entity }))
20181    }
20182}
20183
20184pub async fn rotated_secret_create_redis(configuration: &configuration::Configuration, rotated_secret_create_redis: models::RotatedSecretCreateRedis) -> Result<models::RotatedSecretCreateOutput, Error<RotatedSecretCreateRedisError>> {
20185    // add a prefix to parameters to efficiently prevent name collisions
20186    let p_body_rotated_secret_create_redis = rotated_secret_create_redis;
20187
20188    let uri_str = format!("{}/rotated-secret-create-redis", configuration.base_path);
20189    let mut req_builder = configuration.client.request(reqwest::Method::POST, &uri_str);
20190
20191    if let Some(ref user_agent) = configuration.user_agent {
20192        req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone());
20193    }
20194    req_builder = req_builder.json(&p_body_rotated_secret_create_redis);
20195
20196    let req = req_builder.build()?;
20197    let resp = configuration.client.execute(req).await?;
20198
20199    let status = resp.status();
20200    let content_type = resp
20201        .headers()
20202        .get("content-type")
20203        .and_then(|v| v.to_str().ok())
20204        .unwrap_or("application/octet-stream");
20205    let content_type = super::ContentType::from(content_type);
20206
20207    if !status.is_client_error() && !status.is_server_error() {
20208        let content = resp.text().await?;
20209        match content_type {
20210            ContentType::Json => serde_json::from_str(&content).map_err(Error::from),
20211            ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `models::RotatedSecretCreateOutput`"))),
20212            ContentType::Unsupported(unknown_type) => return Err(Error::from(serde_json::Error::custom(format!("Received `{unknown_type}` content type response that cannot be converted to `models::RotatedSecretCreateOutput`")))),
20213        }
20214    } else {
20215        let content = resp.text().await?;
20216        let entity: Option<RotatedSecretCreateRedisError> = serde_json::from_str(&content).ok();
20217        Err(Error::ResponseError(ResponseContent { status, content, entity }))
20218    }
20219}
20220
20221pub async fn rotated_secret_create_redshift(configuration: &configuration::Configuration, rotated_secret_create_redshift: models::RotatedSecretCreateRedshift) -> Result<models::RotatedSecretCreateOutput, Error<RotatedSecretCreateRedshiftError>> {
20222    // add a prefix to parameters to efficiently prevent name collisions
20223    let p_body_rotated_secret_create_redshift = rotated_secret_create_redshift;
20224
20225    let uri_str = format!("{}/rotated-secret-create-redshift", configuration.base_path);
20226    let mut req_builder = configuration.client.request(reqwest::Method::POST, &uri_str);
20227
20228    if let Some(ref user_agent) = configuration.user_agent {
20229        req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone());
20230    }
20231    req_builder = req_builder.json(&p_body_rotated_secret_create_redshift);
20232
20233    let req = req_builder.build()?;
20234    let resp = configuration.client.execute(req).await?;
20235
20236    let status = resp.status();
20237    let content_type = resp
20238        .headers()
20239        .get("content-type")
20240        .and_then(|v| v.to_str().ok())
20241        .unwrap_or("application/octet-stream");
20242    let content_type = super::ContentType::from(content_type);
20243
20244    if !status.is_client_error() && !status.is_server_error() {
20245        let content = resp.text().await?;
20246        match content_type {
20247            ContentType::Json => serde_json::from_str(&content).map_err(Error::from),
20248            ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `models::RotatedSecretCreateOutput`"))),
20249            ContentType::Unsupported(unknown_type) => return Err(Error::from(serde_json::Error::custom(format!("Received `{unknown_type}` content type response that cannot be converted to `models::RotatedSecretCreateOutput`")))),
20250        }
20251    } else {
20252        let content = resp.text().await?;
20253        let entity: Option<RotatedSecretCreateRedshiftError> = serde_json::from_str(&content).ok();
20254        Err(Error::ResponseError(ResponseContent { status, content, entity }))
20255    }
20256}
20257
20258pub async fn rotated_secret_create_snowflake(configuration: &configuration::Configuration, rotated_secret_create_snowflake: models::RotatedSecretCreateSnowflake) -> Result<models::RotatedSecretCreateOutput, Error<RotatedSecretCreateSnowflakeError>> {
20259    // add a prefix to parameters to efficiently prevent name collisions
20260    let p_body_rotated_secret_create_snowflake = rotated_secret_create_snowflake;
20261
20262    let uri_str = format!("{}/rotated-secret-create-snowflake", configuration.base_path);
20263    let mut req_builder = configuration.client.request(reqwest::Method::POST, &uri_str);
20264
20265    if let Some(ref user_agent) = configuration.user_agent {
20266        req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone());
20267    }
20268    req_builder = req_builder.json(&p_body_rotated_secret_create_snowflake);
20269
20270    let req = req_builder.build()?;
20271    let resp = configuration.client.execute(req).await?;
20272
20273    let status = resp.status();
20274    let content_type = resp
20275        .headers()
20276        .get("content-type")
20277        .and_then(|v| v.to_str().ok())
20278        .unwrap_or("application/octet-stream");
20279    let content_type = super::ContentType::from(content_type);
20280
20281    if !status.is_client_error() && !status.is_server_error() {
20282        let content = resp.text().await?;
20283        match content_type {
20284            ContentType::Json => serde_json::from_str(&content).map_err(Error::from),
20285            ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `models::RotatedSecretCreateOutput`"))),
20286            ContentType::Unsupported(unknown_type) => return Err(Error::from(serde_json::Error::custom(format!("Received `{unknown_type}` content type response that cannot be converted to `models::RotatedSecretCreateOutput`")))),
20287        }
20288    } else {
20289        let content = resp.text().await?;
20290        let entity: Option<RotatedSecretCreateSnowflakeError> = serde_json::from_str(&content).ok();
20291        Err(Error::ResponseError(ResponseContent { status, content, entity }))
20292    }
20293}
20294
20295pub async fn rotated_secret_create_splunk(configuration: &configuration::Configuration, rotated_secret_create_splunk: models::RotatedSecretCreateSplunk) -> Result<models::RotatedSecretCreateOutput, Error<RotatedSecretCreateSplunkError>> {
20296    // add a prefix to parameters to efficiently prevent name collisions
20297    let p_body_rotated_secret_create_splunk = rotated_secret_create_splunk;
20298
20299    let uri_str = format!("{}/rotated-secret-create-splunk", configuration.base_path);
20300    let mut req_builder = configuration.client.request(reqwest::Method::POST, &uri_str);
20301
20302    if let Some(ref user_agent) = configuration.user_agent {
20303        req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone());
20304    }
20305    req_builder = req_builder.json(&p_body_rotated_secret_create_splunk);
20306
20307    let req = req_builder.build()?;
20308    let resp = configuration.client.execute(req).await?;
20309
20310    let status = resp.status();
20311    let content_type = resp
20312        .headers()
20313        .get("content-type")
20314        .and_then(|v| v.to_str().ok())
20315        .unwrap_or("application/octet-stream");
20316    let content_type = super::ContentType::from(content_type);
20317
20318    if !status.is_client_error() && !status.is_server_error() {
20319        let content = resp.text().await?;
20320        match content_type {
20321            ContentType::Json => serde_json::from_str(&content).map_err(Error::from),
20322            ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `models::RotatedSecretCreateOutput`"))),
20323            ContentType::Unsupported(unknown_type) => return Err(Error::from(serde_json::Error::custom(format!("Received `{unknown_type}` content type response that cannot be converted to `models::RotatedSecretCreateOutput`")))),
20324        }
20325    } else {
20326        let content = resp.text().await?;
20327        let entity: Option<RotatedSecretCreateSplunkError> = serde_json::from_str(&content).ok();
20328        Err(Error::ResponseError(ResponseContent { status, content, entity }))
20329    }
20330}
20331
20332pub async fn rotated_secret_create_ssh(configuration: &configuration::Configuration, rotated_secret_create_ssh: models::RotatedSecretCreateSsh) -> Result<models::RotatedSecretCreateOutput, Error<RotatedSecretCreateSshError>> {
20333    // add a prefix to parameters to efficiently prevent name collisions
20334    let p_body_rotated_secret_create_ssh = rotated_secret_create_ssh;
20335
20336    let uri_str = format!("{}/rotated-secret-create-ssh", configuration.base_path);
20337    let mut req_builder = configuration.client.request(reqwest::Method::POST, &uri_str);
20338
20339    if let Some(ref user_agent) = configuration.user_agent {
20340        req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone());
20341    }
20342    req_builder = req_builder.json(&p_body_rotated_secret_create_ssh);
20343
20344    let req = req_builder.build()?;
20345    let resp = configuration.client.execute(req).await?;
20346
20347    let status = resp.status();
20348    let content_type = resp
20349        .headers()
20350        .get("content-type")
20351        .and_then(|v| v.to_str().ok())
20352        .unwrap_or("application/octet-stream");
20353    let content_type = super::ContentType::from(content_type);
20354
20355    if !status.is_client_error() && !status.is_server_error() {
20356        let content = resp.text().await?;
20357        match content_type {
20358            ContentType::Json => serde_json::from_str(&content).map_err(Error::from),
20359            ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `models::RotatedSecretCreateOutput`"))),
20360            ContentType::Unsupported(unknown_type) => return Err(Error::from(serde_json::Error::custom(format!("Received `{unknown_type}` content type response that cannot be converted to `models::RotatedSecretCreateOutput`")))),
20361        }
20362    } else {
20363        let content = resp.text().await?;
20364        let entity: Option<RotatedSecretCreateSshError> = serde_json::from_str(&content).ok();
20365        Err(Error::ResponseError(ResponseContent { status, content, entity }))
20366    }
20367}
20368
20369pub async fn rotated_secret_create_windows(configuration: &configuration::Configuration, rotated_secret_create_windows: models::RotatedSecretCreateWindows) -> Result<models::RotatedSecretCreateOutput, Error<RotatedSecretCreateWindowsError>> {
20370    // add a prefix to parameters to efficiently prevent name collisions
20371    let p_body_rotated_secret_create_windows = rotated_secret_create_windows;
20372
20373    let uri_str = format!("{}/rotated-secret-create-windows", configuration.base_path);
20374    let mut req_builder = configuration.client.request(reqwest::Method::POST, &uri_str);
20375
20376    if let Some(ref user_agent) = configuration.user_agent {
20377        req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone());
20378    }
20379    req_builder = req_builder.json(&p_body_rotated_secret_create_windows);
20380
20381    let req = req_builder.build()?;
20382    let resp = configuration.client.execute(req).await?;
20383
20384    let status = resp.status();
20385    let content_type = resp
20386        .headers()
20387        .get("content-type")
20388        .and_then(|v| v.to_str().ok())
20389        .unwrap_or("application/octet-stream");
20390    let content_type = super::ContentType::from(content_type);
20391
20392    if !status.is_client_error() && !status.is_server_error() {
20393        let content = resp.text().await?;
20394        match content_type {
20395            ContentType::Json => serde_json::from_str(&content).map_err(Error::from),
20396            ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `models::RotatedSecretCreateOutput`"))),
20397            ContentType::Unsupported(unknown_type) => return Err(Error::from(serde_json::Error::custom(format!("Received `{unknown_type}` content type response that cannot be converted to `models::RotatedSecretCreateOutput`")))),
20398        }
20399    } else {
20400        let content = resp.text().await?;
20401        let entity: Option<RotatedSecretCreateWindowsError> = serde_json::from_str(&content).ok();
20402        Err(Error::ResponseError(ResponseContent { status, content, entity }))
20403    }
20404}
20405
20406pub async fn rotated_secret_delete(configuration: &configuration::Configuration, rotated_secret_delete: models::RotatedSecretDelete) -> Result<models::DeleteItemOutput, Error<RotatedSecretDeleteError>> {
20407    // add a prefix to parameters to efficiently prevent name collisions
20408    let p_body_rotated_secret_delete = rotated_secret_delete;
20409
20410    let uri_str = format!("{}/rotated-secret-delete", configuration.base_path);
20411    let mut req_builder = configuration.client.request(reqwest::Method::POST, &uri_str);
20412
20413    if let Some(ref user_agent) = configuration.user_agent {
20414        req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone());
20415    }
20416    req_builder = req_builder.json(&p_body_rotated_secret_delete);
20417
20418    let req = req_builder.build()?;
20419    let resp = configuration.client.execute(req).await?;
20420
20421    let status = resp.status();
20422    let content_type = resp
20423        .headers()
20424        .get("content-type")
20425        .and_then(|v| v.to_str().ok())
20426        .unwrap_or("application/octet-stream");
20427    let content_type = super::ContentType::from(content_type);
20428
20429    if !status.is_client_error() && !status.is_server_error() {
20430        let content = resp.text().await?;
20431        match content_type {
20432            ContentType::Json => serde_json::from_str(&content).map_err(Error::from),
20433            ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `models::DeleteItemOutput`"))),
20434            ContentType::Unsupported(unknown_type) => return Err(Error::from(serde_json::Error::custom(format!("Received `{unknown_type}` content type response that cannot be converted to `models::DeleteItemOutput`")))),
20435        }
20436    } else {
20437        let content = resp.text().await?;
20438        let entity: Option<RotatedSecretDeleteError> = serde_json::from_str(&content).ok();
20439        Err(Error::ResponseError(ResponseContent { status, content, entity }))
20440    }
20441}
20442
20443pub async fn rotated_secret_delete_sync(configuration: &configuration::Configuration, rotated_secret_delete_sync: models::RotatedSecretDeleteSync) -> Result<models::RotatedSecretDeleteSyncOutput, Error<RotatedSecretDeleteSyncError>> {
20444    // add a prefix to parameters to efficiently prevent name collisions
20445    let p_body_rotated_secret_delete_sync = rotated_secret_delete_sync;
20446
20447    let uri_str = format!("{}/rotated-secret-delete-sync", configuration.base_path);
20448    let mut req_builder = configuration.client.request(reqwest::Method::POST, &uri_str);
20449
20450    if let Some(ref user_agent) = configuration.user_agent {
20451        req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone());
20452    }
20453    req_builder = req_builder.json(&p_body_rotated_secret_delete_sync);
20454
20455    let req = req_builder.build()?;
20456    let resp = configuration.client.execute(req).await?;
20457
20458    let status = resp.status();
20459    let content_type = resp
20460        .headers()
20461        .get("content-type")
20462        .and_then(|v| v.to_str().ok())
20463        .unwrap_or("application/octet-stream");
20464    let content_type = super::ContentType::from(content_type);
20465
20466    if !status.is_client_error() && !status.is_server_error() {
20467        let content = resp.text().await?;
20468        match content_type {
20469            ContentType::Json => serde_json::from_str(&content).map_err(Error::from),
20470            ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `models::RotatedSecretDeleteSyncOutput`"))),
20471            ContentType::Unsupported(unknown_type) => return Err(Error::from(serde_json::Error::custom(format!("Received `{unknown_type}` content type response that cannot be converted to `models::RotatedSecretDeleteSyncOutput`")))),
20472        }
20473    } else {
20474        let content = resp.text().await?;
20475        let entity: Option<RotatedSecretDeleteSyncError> = serde_json::from_str(&content).ok();
20476        Err(Error::ResponseError(ResponseContent { status, content, entity }))
20477    }
20478}
20479
20480pub async fn rotated_secret_get_value(configuration: &configuration::Configuration, rotated_secret_get_value: models::RotatedSecretGetValue) -> Result<std::collections::HashMap<String, serde_json::Value>, Error<RotatedSecretGetValueError>> {
20481    // add a prefix to parameters to efficiently prevent name collisions
20482    let p_body_rotated_secret_get_value = rotated_secret_get_value;
20483
20484    let uri_str = format!("{}/rotated-secret-get-value", configuration.base_path);
20485    let mut req_builder = configuration.client.request(reqwest::Method::POST, &uri_str);
20486
20487    if let Some(ref user_agent) = configuration.user_agent {
20488        req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone());
20489    }
20490    req_builder = req_builder.json(&p_body_rotated_secret_get_value);
20491
20492    let req = req_builder.build()?;
20493    let resp = configuration.client.execute(req).await?;
20494
20495    let status = resp.status();
20496    let content_type = resp
20497        .headers()
20498        .get("content-type")
20499        .and_then(|v| v.to_str().ok())
20500        .unwrap_or("application/octet-stream");
20501    let content_type = super::ContentType::from(content_type);
20502
20503    if !status.is_client_error() && !status.is_server_error() {
20504        let content = resp.text().await?;
20505        match content_type {
20506            ContentType::Json => serde_json::from_str(&content).map_err(Error::from),
20507            ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `std::collections::HashMap&lt;String, serde_json::Value&gt;`"))),
20508            ContentType::Unsupported(unknown_type) => return Err(Error::from(serde_json::Error::custom(format!("Received `{unknown_type}` content type response that cannot be converted to `std::collections::HashMap&lt;String, serde_json::Value&gt;`")))),
20509        }
20510    } else {
20511        let content = resp.text().await?;
20512        let entity: Option<RotatedSecretGetValueError> = serde_json::from_str(&content).ok();
20513        Err(Error::ResponseError(ResponseContent { status, content, entity }))
20514    }
20515}
20516
20517pub async fn rotated_secret_list(configuration: &configuration::Configuration, rotated_secret_list: models::RotatedSecretList) -> Result<models::GetProducersListReplyObj, Error<RotatedSecretListError>> {
20518    // add a prefix to parameters to efficiently prevent name collisions
20519    let p_body_rotated_secret_list = rotated_secret_list;
20520
20521    let uri_str = format!("{}/rotated-secret-list", configuration.base_path);
20522    let mut req_builder = configuration.client.request(reqwest::Method::POST, &uri_str);
20523
20524    if let Some(ref user_agent) = configuration.user_agent {
20525        req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone());
20526    }
20527    req_builder = req_builder.json(&p_body_rotated_secret_list);
20528
20529    let req = req_builder.build()?;
20530    let resp = configuration.client.execute(req).await?;
20531
20532    let status = resp.status();
20533    let content_type = resp
20534        .headers()
20535        .get("content-type")
20536        .and_then(|v| v.to_str().ok())
20537        .unwrap_or("application/octet-stream");
20538    let content_type = super::ContentType::from(content_type);
20539
20540    if !status.is_client_error() && !status.is_server_error() {
20541        let content = resp.text().await?;
20542        match content_type {
20543            ContentType::Json => serde_json::from_str(&content).map_err(Error::from),
20544            ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `models::GetProducersListReplyObj`"))),
20545            ContentType::Unsupported(unknown_type) => return Err(Error::from(serde_json::Error::custom(format!("Received `{unknown_type}` content type response that cannot be converted to `models::GetProducersListReplyObj`")))),
20546        }
20547    } else {
20548        let content = resp.text().await?;
20549        let entity: Option<RotatedSecretListError> = serde_json::from_str(&content).ok();
20550        Err(Error::ResponseError(ResponseContent { status, content, entity }))
20551    }
20552}
20553
20554pub async fn rotated_secret_sync(configuration: &configuration::Configuration, rotated_secret_sync: models::RotatedSecretSync) -> Result<serde_json::Value, Error<RotatedSecretSyncError>> {
20555    // add a prefix to parameters to efficiently prevent name collisions
20556    let p_body_rotated_secret_sync = rotated_secret_sync;
20557
20558    let uri_str = format!("{}/rotated-secret-sync", configuration.base_path);
20559    let mut req_builder = configuration.client.request(reqwest::Method::POST, &uri_str);
20560
20561    if let Some(ref user_agent) = configuration.user_agent {
20562        req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone());
20563    }
20564    req_builder = req_builder.json(&p_body_rotated_secret_sync);
20565
20566    let req = req_builder.build()?;
20567    let resp = configuration.client.execute(req).await?;
20568
20569    let status = resp.status();
20570    let content_type = resp
20571        .headers()
20572        .get("content-type")
20573        .and_then(|v| v.to_str().ok())
20574        .unwrap_or("application/octet-stream");
20575    let content_type = super::ContentType::from(content_type);
20576
20577    if !status.is_client_error() && !status.is_server_error() {
20578        let content = resp.text().await?;
20579        match content_type {
20580            ContentType::Json => serde_json::from_str(&content).map_err(Error::from),
20581            ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `serde_json::Value`"))),
20582            ContentType::Unsupported(unknown_type) => return Err(Error::from(serde_json::Error::custom(format!("Received `{unknown_type}` content type response that cannot be converted to `serde_json::Value`")))),
20583        }
20584    } else {
20585        let content = resp.text().await?;
20586        let entity: Option<RotatedSecretSyncError> = serde_json::from_str(&content).ok();
20587        Err(Error::ResponseError(ResponseContent { status, content, entity }))
20588    }
20589}
20590
20591pub async fn rotated_secret_update_aws(configuration: &configuration::Configuration, rotated_secret_update_aws: models::RotatedSecretUpdateAws) -> Result<models::RotatedSecretUpdateOutput, Error<RotatedSecretUpdateAwsError>> {
20592    // add a prefix to parameters to efficiently prevent name collisions
20593    let p_body_rotated_secret_update_aws = rotated_secret_update_aws;
20594
20595    let uri_str = format!("{}/rotated-secret-update-aws", configuration.base_path);
20596    let mut req_builder = configuration.client.request(reqwest::Method::POST, &uri_str);
20597
20598    if let Some(ref user_agent) = configuration.user_agent {
20599        req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone());
20600    }
20601    req_builder = req_builder.json(&p_body_rotated_secret_update_aws);
20602
20603    let req = req_builder.build()?;
20604    let resp = configuration.client.execute(req).await?;
20605
20606    let status = resp.status();
20607    let content_type = resp
20608        .headers()
20609        .get("content-type")
20610        .and_then(|v| v.to_str().ok())
20611        .unwrap_or("application/octet-stream");
20612    let content_type = super::ContentType::from(content_type);
20613
20614    if !status.is_client_error() && !status.is_server_error() {
20615        let content = resp.text().await?;
20616        match content_type {
20617            ContentType::Json => serde_json::from_str(&content).map_err(Error::from),
20618            ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `models::RotatedSecretUpdateOutput`"))),
20619            ContentType::Unsupported(unknown_type) => return Err(Error::from(serde_json::Error::custom(format!("Received `{unknown_type}` content type response that cannot be converted to `models::RotatedSecretUpdateOutput`")))),
20620        }
20621    } else {
20622        let content = resp.text().await?;
20623        let entity: Option<RotatedSecretUpdateAwsError> = serde_json::from_str(&content).ok();
20624        Err(Error::ResponseError(ResponseContent { status, content, entity }))
20625    }
20626}
20627
20628pub async fn rotated_secret_update_azure(configuration: &configuration::Configuration, rotated_secret_update_azure: models::RotatedSecretUpdateAzure) -> Result<models::RotatedSecretUpdateOutput, Error<RotatedSecretUpdateAzureError>> {
20629    // add a prefix to parameters to efficiently prevent name collisions
20630    let p_body_rotated_secret_update_azure = rotated_secret_update_azure;
20631
20632    let uri_str = format!("{}/rotated-secret-update-azure", configuration.base_path);
20633    let mut req_builder = configuration.client.request(reqwest::Method::POST, &uri_str);
20634
20635    if let Some(ref user_agent) = configuration.user_agent {
20636        req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone());
20637    }
20638    req_builder = req_builder.json(&p_body_rotated_secret_update_azure);
20639
20640    let req = req_builder.build()?;
20641    let resp = configuration.client.execute(req).await?;
20642
20643    let status = resp.status();
20644    let content_type = resp
20645        .headers()
20646        .get("content-type")
20647        .and_then(|v| v.to_str().ok())
20648        .unwrap_or("application/octet-stream");
20649    let content_type = super::ContentType::from(content_type);
20650
20651    if !status.is_client_error() && !status.is_server_error() {
20652        let content = resp.text().await?;
20653        match content_type {
20654            ContentType::Json => serde_json::from_str(&content).map_err(Error::from),
20655            ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `models::RotatedSecretUpdateOutput`"))),
20656            ContentType::Unsupported(unknown_type) => return Err(Error::from(serde_json::Error::custom(format!("Received `{unknown_type}` content type response that cannot be converted to `models::RotatedSecretUpdateOutput`")))),
20657        }
20658    } else {
20659        let content = resp.text().await?;
20660        let entity: Option<RotatedSecretUpdateAzureError> = serde_json::from_str(&content).ok();
20661        Err(Error::ResponseError(ResponseContent { status, content, entity }))
20662    }
20663}
20664
20665pub async fn rotated_secret_update_cassandra(configuration: &configuration::Configuration, rotated_secret_update_cassandra: models::RotatedSecretUpdateCassandra) -> Result<models::RotatedSecretUpdateOutput, Error<RotatedSecretUpdateCassandraError>> {
20666    // add a prefix to parameters to efficiently prevent name collisions
20667    let p_body_rotated_secret_update_cassandra = rotated_secret_update_cassandra;
20668
20669    let uri_str = format!("{}/rotated-secret-update-cassandra", configuration.base_path);
20670    let mut req_builder = configuration.client.request(reqwest::Method::POST, &uri_str);
20671
20672    if let Some(ref user_agent) = configuration.user_agent {
20673        req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone());
20674    }
20675    req_builder = req_builder.json(&p_body_rotated_secret_update_cassandra);
20676
20677    let req = req_builder.build()?;
20678    let resp = configuration.client.execute(req).await?;
20679
20680    let status = resp.status();
20681    let content_type = resp
20682        .headers()
20683        .get("content-type")
20684        .and_then(|v| v.to_str().ok())
20685        .unwrap_or("application/octet-stream");
20686    let content_type = super::ContentType::from(content_type);
20687
20688    if !status.is_client_error() && !status.is_server_error() {
20689        let content = resp.text().await?;
20690        match content_type {
20691            ContentType::Json => serde_json::from_str(&content).map_err(Error::from),
20692            ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `models::RotatedSecretUpdateOutput`"))),
20693            ContentType::Unsupported(unknown_type) => return Err(Error::from(serde_json::Error::custom(format!("Received `{unknown_type}` content type response that cannot be converted to `models::RotatedSecretUpdateOutput`")))),
20694        }
20695    } else {
20696        let content = resp.text().await?;
20697        let entity: Option<RotatedSecretUpdateCassandraError> = serde_json::from_str(&content).ok();
20698        Err(Error::ResponseError(ResponseContent { status, content, entity }))
20699    }
20700}
20701
20702pub async fn rotated_secret_update_custom(configuration: &configuration::Configuration, rotated_secret_update_custom: models::RotatedSecretUpdateCustom) -> Result<models::RotatedSecretUpdateOutput, Error<RotatedSecretUpdateCustomError>> {
20703    // add a prefix to parameters to efficiently prevent name collisions
20704    let p_body_rotated_secret_update_custom = rotated_secret_update_custom;
20705
20706    let uri_str = format!("{}/rotated-secret-update-custom", configuration.base_path);
20707    let mut req_builder = configuration.client.request(reqwest::Method::POST, &uri_str);
20708
20709    if let Some(ref user_agent) = configuration.user_agent {
20710        req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone());
20711    }
20712    req_builder = req_builder.json(&p_body_rotated_secret_update_custom);
20713
20714    let req = req_builder.build()?;
20715    let resp = configuration.client.execute(req).await?;
20716
20717    let status = resp.status();
20718    let content_type = resp
20719        .headers()
20720        .get("content-type")
20721        .and_then(|v| v.to_str().ok())
20722        .unwrap_or("application/octet-stream");
20723    let content_type = super::ContentType::from(content_type);
20724
20725    if !status.is_client_error() && !status.is_server_error() {
20726        let content = resp.text().await?;
20727        match content_type {
20728            ContentType::Json => serde_json::from_str(&content).map_err(Error::from),
20729            ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `models::RotatedSecretUpdateOutput`"))),
20730            ContentType::Unsupported(unknown_type) => return Err(Error::from(serde_json::Error::custom(format!("Received `{unknown_type}` content type response that cannot be converted to `models::RotatedSecretUpdateOutput`")))),
20731        }
20732    } else {
20733        let content = resp.text().await?;
20734        let entity: Option<RotatedSecretUpdateCustomError> = serde_json::from_str(&content).ok();
20735        Err(Error::ResponseError(ResponseContent { status, content, entity }))
20736    }
20737}
20738
20739pub async fn rotated_secret_update_dockerhub(configuration: &configuration::Configuration, rotated_secret_update_dockerhub: models::RotatedSecretUpdateDockerhub) -> Result<models::RotatedSecretUpdateOutput, Error<RotatedSecretUpdateDockerhubError>> {
20740    // add a prefix to parameters to efficiently prevent name collisions
20741    let p_body_rotated_secret_update_dockerhub = rotated_secret_update_dockerhub;
20742
20743    let uri_str = format!("{}/rotated-secret-update-dockerhub", configuration.base_path);
20744    let mut req_builder = configuration.client.request(reqwest::Method::POST, &uri_str);
20745
20746    if let Some(ref user_agent) = configuration.user_agent {
20747        req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone());
20748    }
20749    req_builder = req_builder.json(&p_body_rotated_secret_update_dockerhub);
20750
20751    let req = req_builder.build()?;
20752    let resp = configuration.client.execute(req).await?;
20753
20754    let status = resp.status();
20755    let content_type = resp
20756        .headers()
20757        .get("content-type")
20758        .and_then(|v| v.to_str().ok())
20759        .unwrap_or("application/octet-stream");
20760    let content_type = super::ContentType::from(content_type);
20761
20762    if !status.is_client_error() && !status.is_server_error() {
20763        let content = resp.text().await?;
20764        match content_type {
20765            ContentType::Json => serde_json::from_str(&content).map_err(Error::from),
20766            ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `models::RotatedSecretUpdateOutput`"))),
20767            ContentType::Unsupported(unknown_type) => return Err(Error::from(serde_json::Error::custom(format!("Received `{unknown_type}` content type response that cannot be converted to `models::RotatedSecretUpdateOutput`")))),
20768        }
20769    } else {
20770        let content = resp.text().await?;
20771        let entity: Option<RotatedSecretUpdateDockerhubError> = serde_json::from_str(&content).ok();
20772        Err(Error::ResponseError(ResponseContent { status, content, entity }))
20773    }
20774}
20775
20776pub async fn rotated_secret_update_gcp(configuration: &configuration::Configuration, rotated_secret_update_gcp: models::RotatedSecretUpdateGcp) -> Result<models::RotatedSecretUpdateOutput, Error<RotatedSecretUpdateGcpError>> {
20777    // add a prefix to parameters to efficiently prevent name collisions
20778    let p_body_rotated_secret_update_gcp = rotated_secret_update_gcp;
20779
20780    let uri_str = format!("{}/rotated-secret-update-gcp", configuration.base_path);
20781    let mut req_builder = configuration.client.request(reqwest::Method::POST, &uri_str);
20782
20783    if let Some(ref user_agent) = configuration.user_agent {
20784        req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone());
20785    }
20786    req_builder = req_builder.json(&p_body_rotated_secret_update_gcp);
20787
20788    let req = req_builder.build()?;
20789    let resp = configuration.client.execute(req).await?;
20790
20791    let status = resp.status();
20792    let content_type = resp
20793        .headers()
20794        .get("content-type")
20795        .and_then(|v| v.to_str().ok())
20796        .unwrap_or("application/octet-stream");
20797    let content_type = super::ContentType::from(content_type);
20798
20799    if !status.is_client_error() && !status.is_server_error() {
20800        let content = resp.text().await?;
20801        match content_type {
20802            ContentType::Json => serde_json::from_str(&content).map_err(Error::from),
20803            ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `models::RotatedSecretUpdateOutput`"))),
20804            ContentType::Unsupported(unknown_type) => return Err(Error::from(serde_json::Error::custom(format!("Received `{unknown_type}` content type response that cannot be converted to `models::RotatedSecretUpdateOutput`")))),
20805        }
20806    } else {
20807        let content = resp.text().await?;
20808        let entity: Option<RotatedSecretUpdateGcpError> = serde_json::from_str(&content).ok();
20809        Err(Error::ResponseError(ResponseContent { status, content, entity }))
20810    }
20811}
20812
20813pub async fn rotated_secret_update_hanadb(configuration: &configuration::Configuration, rotated_secret_update_hanadb: models::RotatedSecretUpdateHanadb) -> Result<models::RotatedSecretUpdateOutput, Error<RotatedSecretUpdateHanadbError>> {
20814    // add a prefix to parameters to efficiently prevent name collisions
20815    let p_body_rotated_secret_update_hanadb = rotated_secret_update_hanadb;
20816
20817    let uri_str = format!("{}/rotated-secret-update-hanadb", configuration.base_path);
20818    let mut req_builder = configuration.client.request(reqwest::Method::POST, &uri_str);
20819
20820    if let Some(ref user_agent) = configuration.user_agent {
20821        req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone());
20822    }
20823    req_builder = req_builder.json(&p_body_rotated_secret_update_hanadb);
20824
20825    let req = req_builder.build()?;
20826    let resp = configuration.client.execute(req).await?;
20827
20828    let status = resp.status();
20829    let content_type = resp
20830        .headers()
20831        .get("content-type")
20832        .and_then(|v| v.to_str().ok())
20833        .unwrap_or("application/octet-stream");
20834    let content_type = super::ContentType::from(content_type);
20835
20836    if !status.is_client_error() && !status.is_server_error() {
20837        let content = resp.text().await?;
20838        match content_type {
20839            ContentType::Json => serde_json::from_str(&content).map_err(Error::from),
20840            ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `models::RotatedSecretUpdateOutput`"))),
20841            ContentType::Unsupported(unknown_type) => return Err(Error::from(serde_json::Error::custom(format!("Received `{unknown_type}` content type response that cannot be converted to `models::RotatedSecretUpdateOutput`")))),
20842        }
20843    } else {
20844        let content = resp.text().await?;
20845        let entity: Option<RotatedSecretUpdateHanadbError> = serde_json::from_str(&content).ok();
20846        Err(Error::ResponseError(ResponseContent { status, content, entity }))
20847    }
20848}
20849
20850pub async fn rotated_secret_update_ldap(configuration: &configuration::Configuration, rotated_secret_update_ldap: models::RotatedSecretUpdateLdap) -> Result<models::RotatedSecretUpdateOutput, Error<RotatedSecretUpdateLdapError>> {
20851    // add a prefix to parameters to efficiently prevent name collisions
20852    let p_body_rotated_secret_update_ldap = rotated_secret_update_ldap;
20853
20854    let uri_str = format!("{}/rotated-secret-update-ldap", configuration.base_path);
20855    let mut req_builder = configuration.client.request(reqwest::Method::POST, &uri_str);
20856
20857    if let Some(ref user_agent) = configuration.user_agent {
20858        req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone());
20859    }
20860    req_builder = req_builder.json(&p_body_rotated_secret_update_ldap);
20861
20862    let req = req_builder.build()?;
20863    let resp = configuration.client.execute(req).await?;
20864
20865    let status = resp.status();
20866    let content_type = resp
20867        .headers()
20868        .get("content-type")
20869        .and_then(|v| v.to_str().ok())
20870        .unwrap_or("application/octet-stream");
20871    let content_type = super::ContentType::from(content_type);
20872
20873    if !status.is_client_error() && !status.is_server_error() {
20874        let content = resp.text().await?;
20875        match content_type {
20876            ContentType::Json => serde_json::from_str(&content).map_err(Error::from),
20877            ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `models::RotatedSecretUpdateOutput`"))),
20878            ContentType::Unsupported(unknown_type) => return Err(Error::from(serde_json::Error::custom(format!("Received `{unknown_type}` content type response that cannot be converted to `models::RotatedSecretUpdateOutput`")))),
20879        }
20880    } else {
20881        let content = resp.text().await?;
20882        let entity: Option<RotatedSecretUpdateLdapError> = serde_json::from_str(&content).ok();
20883        Err(Error::ResponseError(ResponseContent { status, content, entity }))
20884    }
20885}
20886
20887pub async fn rotated_secret_update_mongodb(configuration: &configuration::Configuration, rotated_secret_update_mongodb: models::RotatedSecretUpdateMongodb) -> Result<models::RotatedSecretUpdateOutput, Error<RotatedSecretUpdateMongodbError>> {
20888    // add a prefix to parameters to efficiently prevent name collisions
20889    let p_body_rotated_secret_update_mongodb = rotated_secret_update_mongodb;
20890
20891    let uri_str = format!("{}/rotated-secret-update-mongodb", configuration.base_path);
20892    let mut req_builder = configuration.client.request(reqwest::Method::POST, &uri_str);
20893
20894    if let Some(ref user_agent) = configuration.user_agent {
20895        req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone());
20896    }
20897    req_builder = req_builder.json(&p_body_rotated_secret_update_mongodb);
20898
20899    let req = req_builder.build()?;
20900    let resp = configuration.client.execute(req).await?;
20901
20902    let status = resp.status();
20903    let content_type = resp
20904        .headers()
20905        .get("content-type")
20906        .and_then(|v| v.to_str().ok())
20907        .unwrap_or("application/octet-stream");
20908    let content_type = super::ContentType::from(content_type);
20909
20910    if !status.is_client_error() && !status.is_server_error() {
20911        let content = resp.text().await?;
20912        match content_type {
20913            ContentType::Json => serde_json::from_str(&content).map_err(Error::from),
20914            ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `models::RotatedSecretUpdateOutput`"))),
20915            ContentType::Unsupported(unknown_type) => return Err(Error::from(serde_json::Error::custom(format!("Received `{unknown_type}` content type response that cannot be converted to `models::RotatedSecretUpdateOutput`")))),
20916        }
20917    } else {
20918        let content = resp.text().await?;
20919        let entity: Option<RotatedSecretUpdateMongodbError> = serde_json::from_str(&content).ok();
20920        Err(Error::ResponseError(ResponseContent { status, content, entity }))
20921    }
20922}
20923
20924pub async fn rotated_secret_update_mssql(configuration: &configuration::Configuration, rotated_secret_update_mssql: models::RotatedSecretUpdateMssql) -> Result<models::RotatedSecretUpdateOutput, Error<RotatedSecretUpdateMssqlError>> {
20925    // add a prefix to parameters to efficiently prevent name collisions
20926    let p_body_rotated_secret_update_mssql = rotated_secret_update_mssql;
20927
20928    let uri_str = format!("{}/rotated-secret-update-mssql", configuration.base_path);
20929    let mut req_builder = configuration.client.request(reqwest::Method::POST, &uri_str);
20930
20931    if let Some(ref user_agent) = configuration.user_agent {
20932        req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone());
20933    }
20934    req_builder = req_builder.json(&p_body_rotated_secret_update_mssql);
20935
20936    let req = req_builder.build()?;
20937    let resp = configuration.client.execute(req).await?;
20938
20939    let status = resp.status();
20940    let content_type = resp
20941        .headers()
20942        .get("content-type")
20943        .and_then(|v| v.to_str().ok())
20944        .unwrap_or("application/octet-stream");
20945    let content_type = super::ContentType::from(content_type);
20946
20947    if !status.is_client_error() && !status.is_server_error() {
20948        let content = resp.text().await?;
20949        match content_type {
20950            ContentType::Json => serde_json::from_str(&content).map_err(Error::from),
20951            ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `models::RotatedSecretUpdateOutput`"))),
20952            ContentType::Unsupported(unknown_type) => return Err(Error::from(serde_json::Error::custom(format!("Received `{unknown_type}` content type response that cannot be converted to `models::RotatedSecretUpdateOutput`")))),
20953        }
20954    } else {
20955        let content = resp.text().await?;
20956        let entity: Option<RotatedSecretUpdateMssqlError> = serde_json::from_str(&content).ok();
20957        Err(Error::ResponseError(ResponseContent { status, content, entity }))
20958    }
20959}
20960
20961pub async fn rotated_secret_update_mysql(configuration: &configuration::Configuration, rotated_secret_update_mysql: models::RotatedSecretUpdateMysql) -> Result<models::RotatedSecretUpdateOutput, Error<RotatedSecretUpdateMysqlError>> {
20962    // add a prefix to parameters to efficiently prevent name collisions
20963    let p_body_rotated_secret_update_mysql = rotated_secret_update_mysql;
20964
20965    let uri_str = format!("{}/rotated-secret-update-mysql", configuration.base_path);
20966    let mut req_builder = configuration.client.request(reqwest::Method::POST, &uri_str);
20967
20968    if let Some(ref user_agent) = configuration.user_agent {
20969        req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone());
20970    }
20971    req_builder = req_builder.json(&p_body_rotated_secret_update_mysql);
20972
20973    let req = req_builder.build()?;
20974    let resp = configuration.client.execute(req).await?;
20975
20976    let status = resp.status();
20977    let content_type = resp
20978        .headers()
20979        .get("content-type")
20980        .and_then(|v| v.to_str().ok())
20981        .unwrap_or("application/octet-stream");
20982    let content_type = super::ContentType::from(content_type);
20983
20984    if !status.is_client_error() && !status.is_server_error() {
20985        let content = resp.text().await?;
20986        match content_type {
20987            ContentType::Json => serde_json::from_str(&content).map_err(Error::from),
20988            ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `models::RotatedSecretUpdateOutput`"))),
20989            ContentType::Unsupported(unknown_type) => return Err(Error::from(serde_json::Error::custom(format!("Received `{unknown_type}` content type response that cannot be converted to `models::RotatedSecretUpdateOutput`")))),
20990        }
20991    } else {
20992        let content = resp.text().await?;
20993        let entity: Option<RotatedSecretUpdateMysqlError> = serde_json::from_str(&content).ok();
20994        Err(Error::ResponseError(ResponseContent { status, content, entity }))
20995    }
20996}
20997
20998pub async fn rotated_secret_update_open_ai(configuration: &configuration::Configuration, rotated_secret_update_open_ai: models::RotatedSecretUpdateOpenAi) -> Result<models::RotatedSecretUpdateOutput, Error<RotatedSecretUpdateOpenAiError>> {
20999    // add a prefix to parameters to efficiently prevent name collisions
21000    let p_body_rotated_secret_update_open_ai = rotated_secret_update_open_ai;
21001
21002    let uri_str = format!("{}/rotated-secret-update-openai", configuration.base_path);
21003    let mut req_builder = configuration.client.request(reqwest::Method::POST, &uri_str);
21004
21005    if let Some(ref user_agent) = configuration.user_agent {
21006        req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone());
21007    }
21008    req_builder = req_builder.json(&p_body_rotated_secret_update_open_ai);
21009
21010    let req = req_builder.build()?;
21011    let resp = configuration.client.execute(req).await?;
21012
21013    let status = resp.status();
21014    let content_type = resp
21015        .headers()
21016        .get("content-type")
21017        .and_then(|v| v.to_str().ok())
21018        .unwrap_or("application/octet-stream");
21019    let content_type = super::ContentType::from(content_type);
21020
21021    if !status.is_client_error() && !status.is_server_error() {
21022        let content = resp.text().await?;
21023        match content_type {
21024            ContentType::Json => serde_json::from_str(&content).map_err(Error::from),
21025            ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `models::RotatedSecretUpdateOutput`"))),
21026            ContentType::Unsupported(unknown_type) => return Err(Error::from(serde_json::Error::custom(format!("Received `{unknown_type}` content type response that cannot be converted to `models::RotatedSecretUpdateOutput`")))),
21027        }
21028    } else {
21029        let content = resp.text().await?;
21030        let entity: Option<RotatedSecretUpdateOpenAiError> = serde_json::from_str(&content).ok();
21031        Err(Error::ResponseError(ResponseContent { status, content, entity }))
21032    }
21033}
21034
21035pub async fn rotated_secret_update_oracledb(configuration: &configuration::Configuration, rotated_secret_update_oracledb: models::RotatedSecretUpdateOracledb) -> Result<models::RotatedSecretUpdateOutput, Error<RotatedSecretUpdateOracledbError>> {
21036    // add a prefix to parameters to efficiently prevent name collisions
21037    let p_body_rotated_secret_update_oracledb = rotated_secret_update_oracledb;
21038
21039    let uri_str = format!("{}/rotated-secret-update-oracledb", configuration.base_path);
21040    let mut req_builder = configuration.client.request(reqwest::Method::POST, &uri_str);
21041
21042    if let Some(ref user_agent) = configuration.user_agent {
21043        req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone());
21044    }
21045    req_builder = req_builder.json(&p_body_rotated_secret_update_oracledb);
21046
21047    let req = req_builder.build()?;
21048    let resp = configuration.client.execute(req).await?;
21049
21050    let status = resp.status();
21051    let content_type = resp
21052        .headers()
21053        .get("content-type")
21054        .and_then(|v| v.to_str().ok())
21055        .unwrap_or("application/octet-stream");
21056    let content_type = super::ContentType::from(content_type);
21057
21058    if !status.is_client_error() && !status.is_server_error() {
21059        let content = resp.text().await?;
21060        match content_type {
21061            ContentType::Json => serde_json::from_str(&content).map_err(Error::from),
21062            ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `models::RotatedSecretUpdateOutput`"))),
21063            ContentType::Unsupported(unknown_type) => return Err(Error::from(serde_json::Error::custom(format!("Received `{unknown_type}` content type response that cannot be converted to `models::RotatedSecretUpdateOutput`")))),
21064        }
21065    } else {
21066        let content = resp.text().await?;
21067        let entity: Option<RotatedSecretUpdateOracledbError> = serde_json::from_str(&content).ok();
21068        Err(Error::ResponseError(ResponseContent { status, content, entity }))
21069    }
21070}
21071
21072pub async fn rotated_secret_update_postgresql(configuration: &configuration::Configuration, rotated_secret_update_postgresql: models::RotatedSecretUpdatePostgresql) -> Result<models::RotatedSecretUpdateOutput, Error<RotatedSecretUpdatePostgresqlError>> {
21073    // add a prefix to parameters to efficiently prevent name collisions
21074    let p_body_rotated_secret_update_postgresql = rotated_secret_update_postgresql;
21075
21076    let uri_str = format!("{}/rotated-secret-update-postgresql", configuration.base_path);
21077    let mut req_builder = configuration.client.request(reqwest::Method::POST, &uri_str);
21078
21079    if let Some(ref user_agent) = configuration.user_agent {
21080        req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone());
21081    }
21082    req_builder = req_builder.json(&p_body_rotated_secret_update_postgresql);
21083
21084    let req = req_builder.build()?;
21085    let resp = configuration.client.execute(req).await?;
21086
21087    let status = resp.status();
21088    let content_type = resp
21089        .headers()
21090        .get("content-type")
21091        .and_then(|v| v.to_str().ok())
21092        .unwrap_or("application/octet-stream");
21093    let content_type = super::ContentType::from(content_type);
21094
21095    if !status.is_client_error() && !status.is_server_error() {
21096        let content = resp.text().await?;
21097        match content_type {
21098            ContentType::Json => serde_json::from_str(&content).map_err(Error::from),
21099            ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `models::RotatedSecretUpdateOutput`"))),
21100            ContentType::Unsupported(unknown_type) => return Err(Error::from(serde_json::Error::custom(format!("Received `{unknown_type}` content type response that cannot be converted to `models::RotatedSecretUpdateOutput`")))),
21101        }
21102    } else {
21103        let content = resp.text().await?;
21104        let entity: Option<RotatedSecretUpdatePostgresqlError> = serde_json::from_str(&content).ok();
21105        Err(Error::ResponseError(ResponseContent { status, content, entity }))
21106    }
21107}
21108
21109pub async fn rotated_secret_update_redis(configuration: &configuration::Configuration, rotated_secret_update_redis: models::RotatedSecretUpdateRedis) -> Result<models::RotatedSecretUpdateOutput, Error<RotatedSecretUpdateRedisError>> {
21110    // add a prefix to parameters to efficiently prevent name collisions
21111    let p_body_rotated_secret_update_redis = rotated_secret_update_redis;
21112
21113    let uri_str = format!("{}/rotated-secret-update-redis", configuration.base_path);
21114    let mut req_builder = configuration.client.request(reqwest::Method::POST, &uri_str);
21115
21116    if let Some(ref user_agent) = configuration.user_agent {
21117        req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone());
21118    }
21119    req_builder = req_builder.json(&p_body_rotated_secret_update_redis);
21120
21121    let req = req_builder.build()?;
21122    let resp = configuration.client.execute(req).await?;
21123
21124    let status = resp.status();
21125    let content_type = resp
21126        .headers()
21127        .get("content-type")
21128        .and_then(|v| v.to_str().ok())
21129        .unwrap_or("application/octet-stream");
21130    let content_type = super::ContentType::from(content_type);
21131
21132    if !status.is_client_error() && !status.is_server_error() {
21133        let content = resp.text().await?;
21134        match content_type {
21135            ContentType::Json => serde_json::from_str(&content).map_err(Error::from),
21136            ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `models::RotatedSecretUpdateOutput`"))),
21137            ContentType::Unsupported(unknown_type) => return Err(Error::from(serde_json::Error::custom(format!("Received `{unknown_type}` content type response that cannot be converted to `models::RotatedSecretUpdateOutput`")))),
21138        }
21139    } else {
21140        let content = resp.text().await?;
21141        let entity: Option<RotatedSecretUpdateRedisError> = serde_json::from_str(&content).ok();
21142        Err(Error::ResponseError(ResponseContent { status, content, entity }))
21143    }
21144}
21145
21146pub async fn rotated_secret_update_redshift(configuration: &configuration::Configuration, rotated_secret_update_redshift: models::RotatedSecretUpdateRedshift) -> Result<models::RotatedSecretUpdateOutput, Error<RotatedSecretUpdateRedshiftError>> {
21147    // add a prefix to parameters to efficiently prevent name collisions
21148    let p_body_rotated_secret_update_redshift = rotated_secret_update_redshift;
21149
21150    let uri_str = format!("{}/rotated-secret-update-redshift", configuration.base_path);
21151    let mut req_builder = configuration.client.request(reqwest::Method::POST, &uri_str);
21152
21153    if let Some(ref user_agent) = configuration.user_agent {
21154        req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone());
21155    }
21156    req_builder = req_builder.json(&p_body_rotated_secret_update_redshift);
21157
21158    let req = req_builder.build()?;
21159    let resp = configuration.client.execute(req).await?;
21160
21161    let status = resp.status();
21162    let content_type = resp
21163        .headers()
21164        .get("content-type")
21165        .and_then(|v| v.to_str().ok())
21166        .unwrap_or("application/octet-stream");
21167    let content_type = super::ContentType::from(content_type);
21168
21169    if !status.is_client_error() && !status.is_server_error() {
21170        let content = resp.text().await?;
21171        match content_type {
21172            ContentType::Json => serde_json::from_str(&content).map_err(Error::from),
21173            ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `models::RotatedSecretUpdateOutput`"))),
21174            ContentType::Unsupported(unknown_type) => return Err(Error::from(serde_json::Error::custom(format!("Received `{unknown_type}` content type response that cannot be converted to `models::RotatedSecretUpdateOutput`")))),
21175        }
21176    } else {
21177        let content = resp.text().await?;
21178        let entity: Option<RotatedSecretUpdateRedshiftError> = serde_json::from_str(&content).ok();
21179        Err(Error::ResponseError(ResponseContent { status, content, entity }))
21180    }
21181}
21182
21183pub async fn rotated_secret_update_snowflake(configuration: &configuration::Configuration, rotated_secret_update_snowflake: models::RotatedSecretUpdateSnowflake) -> Result<models::RotatedSecretUpdateOutput, Error<RotatedSecretUpdateSnowflakeError>> {
21184    // add a prefix to parameters to efficiently prevent name collisions
21185    let p_body_rotated_secret_update_snowflake = rotated_secret_update_snowflake;
21186
21187    let uri_str = format!("{}/rotated-secret-update-snowflake", configuration.base_path);
21188    let mut req_builder = configuration.client.request(reqwest::Method::POST, &uri_str);
21189
21190    if let Some(ref user_agent) = configuration.user_agent {
21191        req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone());
21192    }
21193    req_builder = req_builder.json(&p_body_rotated_secret_update_snowflake);
21194
21195    let req = req_builder.build()?;
21196    let resp = configuration.client.execute(req).await?;
21197
21198    let status = resp.status();
21199    let content_type = resp
21200        .headers()
21201        .get("content-type")
21202        .and_then(|v| v.to_str().ok())
21203        .unwrap_or("application/octet-stream");
21204    let content_type = super::ContentType::from(content_type);
21205
21206    if !status.is_client_error() && !status.is_server_error() {
21207        let content = resp.text().await?;
21208        match content_type {
21209            ContentType::Json => serde_json::from_str(&content).map_err(Error::from),
21210            ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `models::RotatedSecretUpdateOutput`"))),
21211            ContentType::Unsupported(unknown_type) => return Err(Error::from(serde_json::Error::custom(format!("Received `{unknown_type}` content type response that cannot be converted to `models::RotatedSecretUpdateOutput`")))),
21212        }
21213    } else {
21214        let content = resp.text().await?;
21215        let entity: Option<RotatedSecretUpdateSnowflakeError> = serde_json::from_str(&content).ok();
21216        Err(Error::ResponseError(ResponseContent { status, content, entity }))
21217    }
21218}
21219
21220pub async fn rotated_secret_update_splunk(configuration: &configuration::Configuration, rotated_secret_update_splunk: models::RotatedSecretUpdateSplunk) -> Result<models::RotatedSecretUpdateOutput, Error<RotatedSecretUpdateSplunkError>> {
21221    // add a prefix to parameters to efficiently prevent name collisions
21222    let p_body_rotated_secret_update_splunk = rotated_secret_update_splunk;
21223
21224    let uri_str = format!("{}/rotated-secret-update-splunk", configuration.base_path);
21225    let mut req_builder = configuration.client.request(reqwest::Method::POST, &uri_str);
21226
21227    if let Some(ref user_agent) = configuration.user_agent {
21228        req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone());
21229    }
21230    req_builder = req_builder.json(&p_body_rotated_secret_update_splunk);
21231
21232    let req = req_builder.build()?;
21233    let resp = configuration.client.execute(req).await?;
21234
21235    let status = resp.status();
21236    let content_type = resp
21237        .headers()
21238        .get("content-type")
21239        .and_then(|v| v.to_str().ok())
21240        .unwrap_or("application/octet-stream");
21241    let content_type = super::ContentType::from(content_type);
21242
21243    if !status.is_client_error() && !status.is_server_error() {
21244        let content = resp.text().await?;
21245        match content_type {
21246            ContentType::Json => serde_json::from_str(&content).map_err(Error::from),
21247            ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `models::RotatedSecretUpdateOutput`"))),
21248            ContentType::Unsupported(unknown_type) => return Err(Error::from(serde_json::Error::custom(format!("Received `{unknown_type}` content type response that cannot be converted to `models::RotatedSecretUpdateOutput`")))),
21249        }
21250    } else {
21251        let content = resp.text().await?;
21252        let entity: Option<RotatedSecretUpdateSplunkError> = serde_json::from_str(&content).ok();
21253        Err(Error::ResponseError(ResponseContent { status, content, entity }))
21254    }
21255}
21256
21257pub async fn rotated_secret_update_ssh(configuration: &configuration::Configuration, rotated_secret_update_ssh: models::RotatedSecretUpdateSsh) -> Result<models::RotatedSecretUpdateOutput, Error<RotatedSecretUpdateSshError>> {
21258    // add a prefix to parameters to efficiently prevent name collisions
21259    let p_body_rotated_secret_update_ssh = rotated_secret_update_ssh;
21260
21261    let uri_str = format!("{}/rotated-secret-update-ssh", configuration.base_path);
21262    let mut req_builder = configuration.client.request(reqwest::Method::POST, &uri_str);
21263
21264    if let Some(ref user_agent) = configuration.user_agent {
21265        req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone());
21266    }
21267    req_builder = req_builder.json(&p_body_rotated_secret_update_ssh);
21268
21269    let req = req_builder.build()?;
21270    let resp = configuration.client.execute(req).await?;
21271
21272    let status = resp.status();
21273    let content_type = resp
21274        .headers()
21275        .get("content-type")
21276        .and_then(|v| v.to_str().ok())
21277        .unwrap_or("application/octet-stream");
21278    let content_type = super::ContentType::from(content_type);
21279
21280    if !status.is_client_error() && !status.is_server_error() {
21281        let content = resp.text().await?;
21282        match content_type {
21283            ContentType::Json => serde_json::from_str(&content).map_err(Error::from),
21284            ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `models::RotatedSecretUpdateOutput`"))),
21285            ContentType::Unsupported(unknown_type) => return Err(Error::from(serde_json::Error::custom(format!("Received `{unknown_type}` content type response that cannot be converted to `models::RotatedSecretUpdateOutput`")))),
21286        }
21287    } else {
21288        let content = resp.text().await?;
21289        let entity: Option<RotatedSecretUpdateSshError> = serde_json::from_str(&content).ok();
21290        Err(Error::ResponseError(ResponseContent { status, content, entity }))
21291    }
21292}
21293
21294pub async fn rotated_secret_update_windows(configuration: &configuration::Configuration, rotated_secret_update_windows: models::RotatedSecretUpdateWindows) -> Result<models::RotatedSecretUpdateOutput, Error<RotatedSecretUpdateWindowsError>> {
21295    // add a prefix to parameters to efficiently prevent name collisions
21296    let p_body_rotated_secret_update_windows = rotated_secret_update_windows;
21297
21298    let uri_str = format!("{}/rotated-secret-update-windows", configuration.base_path);
21299    let mut req_builder = configuration.client.request(reqwest::Method::POST, &uri_str);
21300
21301    if let Some(ref user_agent) = configuration.user_agent {
21302        req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone());
21303    }
21304    req_builder = req_builder.json(&p_body_rotated_secret_update_windows);
21305
21306    let req = req_builder.build()?;
21307    let resp = configuration.client.execute(req).await?;
21308
21309    let status = resp.status();
21310    let content_type = resp
21311        .headers()
21312        .get("content-type")
21313        .and_then(|v| v.to_str().ok())
21314        .unwrap_or("application/octet-stream");
21315    let content_type = super::ContentType::from(content_type);
21316
21317    if !status.is_client_error() && !status.is_server_error() {
21318        let content = resp.text().await?;
21319        match content_type {
21320            ContentType::Json => serde_json::from_str(&content).map_err(Error::from),
21321            ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `models::RotatedSecretUpdateOutput`"))),
21322            ContentType::Unsupported(unknown_type) => return Err(Error::from(serde_json::Error::custom(format!("Received `{unknown_type}` content type response that cannot be converted to `models::RotatedSecretUpdateOutput`")))),
21323        }
21324    } else {
21325        let content = resp.text().await?;
21326        let entity: Option<RotatedSecretUpdateWindowsError> = serde_json::from_str(&content).ok();
21327        Err(Error::ResponseError(ResponseContent { status, content, entity }))
21328    }
21329}
21330
21331pub async fn set_item_state(configuration: &configuration::Configuration, set_item_state: models::SetItemState) -> Result<serde_json::Value, Error<SetItemStateError>> {
21332    // add a prefix to parameters to efficiently prevent name collisions
21333    let p_body_set_item_state = set_item_state;
21334
21335    let uri_str = format!("{}/set-item-state", configuration.base_path);
21336    let mut req_builder = configuration.client.request(reqwest::Method::POST, &uri_str);
21337
21338    if let Some(ref user_agent) = configuration.user_agent {
21339        req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone());
21340    }
21341    req_builder = req_builder.json(&p_body_set_item_state);
21342
21343    let req = req_builder.build()?;
21344    let resp = configuration.client.execute(req).await?;
21345
21346    let status = resp.status();
21347    let content_type = resp
21348        .headers()
21349        .get("content-type")
21350        .and_then(|v| v.to_str().ok())
21351        .unwrap_or("application/octet-stream");
21352    let content_type = super::ContentType::from(content_type);
21353
21354    if !status.is_client_error() && !status.is_server_error() {
21355        let content = resp.text().await?;
21356        match content_type {
21357            ContentType::Json => serde_json::from_str(&content).map_err(Error::from),
21358            ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `serde_json::Value`"))),
21359            ContentType::Unsupported(unknown_type) => return Err(Error::from(serde_json::Error::custom(format!("Received `{unknown_type}` content type response that cannot be converted to `serde_json::Value`")))),
21360        }
21361    } else {
21362        let content = resp.text().await?;
21363        let entity: Option<SetItemStateError> = serde_json::from_str(&content).ok();
21364        Err(Error::ResponseError(ResponseContent { status, content, entity }))
21365    }
21366}
21367
21368pub async fn set_role_rule(configuration: &configuration::Configuration, set_role_rule: models::SetRoleRule) -> Result<serde_json::Value, Error<SetRoleRuleError>> {
21369    // add a prefix to parameters to efficiently prevent name collisions
21370    let p_body_set_role_rule = set_role_rule;
21371
21372    let uri_str = format!("{}/set-role-rule", configuration.base_path);
21373    let mut req_builder = configuration.client.request(reqwest::Method::POST, &uri_str);
21374
21375    if let Some(ref user_agent) = configuration.user_agent {
21376        req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone());
21377    }
21378    req_builder = req_builder.json(&p_body_set_role_rule);
21379
21380    let req = req_builder.build()?;
21381    let resp = configuration.client.execute(req).await?;
21382
21383    let status = resp.status();
21384    let content_type = resp
21385        .headers()
21386        .get("content-type")
21387        .and_then(|v| v.to_str().ok())
21388        .unwrap_or("application/octet-stream");
21389    let content_type = super::ContentType::from(content_type);
21390
21391    if !status.is_client_error() && !status.is_server_error() {
21392        let content = resp.text().await?;
21393        match content_type {
21394            ContentType::Json => serde_json::from_str(&content).map_err(Error::from),
21395            ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `serde_json::Value`"))),
21396            ContentType::Unsupported(unknown_type) => return Err(Error::from(serde_json::Error::custom(format!("Received `{unknown_type}` content type response that cannot be converted to `serde_json::Value`")))),
21397        }
21398    } else {
21399        let content = resp.text().await?;
21400        let entity: Option<SetRoleRuleError> = serde_json::from_str(&content).ok();
21401        Err(Error::ResponseError(ResponseContent { status, content, entity }))
21402    }
21403}
21404
21405pub async fn share_item(configuration: &configuration::Configuration, share_item: models::ShareItem) -> Result<models::ShareItemOutput, Error<ShareItemError>> {
21406    // add a prefix to parameters to efficiently prevent name collisions
21407    let p_body_share_item = share_item;
21408
21409    let uri_str = format!("{}/share-item", configuration.base_path);
21410    let mut req_builder = configuration.client.request(reqwest::Method::POST, &uri_str);
21411
21412    if let Some(ref user_agent) = configuration.user_agent {
21413        req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone());
21414    }
21415    req_builder = req_builder.json(&p_body_share_item);
21416
21417    let req = req_builder.build()?;
21418    let resp = configuration.client.execute(req).await?;
21419
21420    let status = resp.status();
21421    let content_type = resp
21422        .headers()
21423        .get("content-type")
21424        .and_then(|v| v.to_str().ok())
21425        .unwrap_or("application/octet-stream");
21426    let content_type = super::ContentType::from(content_type);
21427
21428    if !status.is_client_error() && !status.is_server_error() {
21429        let content = resp.text().await?;
21430        match content_type {
21431            ContentType::Json => serde_json::from_str(&content).map_err(Error::from),
21432            ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `models::ShareItemOutput`"))),
21433            ContentType::Unsupported(unknown_type) => return Err(Error::from(serde_json::Error::custom(format!("Received `{unknown_type}` content type response that cannot be converted to `models::ShareItemOutput`")))),
21434        }
21435    } else {
21436        let content = resp.text().await?;
21437        let entity: Option<ShareItemError> = serde_json::from_str(&content).ok();
21438        Err(Error::ResponseError(ResponseContent { status, content, entity }))
21439    }
21440}
21441
21442pub async fn sign_data_with_classic_key(configuration: &configuration::Configuration, sign_data_with_classic_key: models::SignDataWithClassicKey) -> Result<models::SignOutput, Error<SignDataWithClassicKeyError>> {
21443    // add a prefix to parameters to efficiently prevent name collisions
21444    let p_body_sign_data_with_classic_key = sign_data_with_classic_key;
21445
21446    let uri_str = format!("{}/sign-data-with-classic-key", configuration.base_path);
21447    let mut req_builder = configuration.client.request(reqwest::Method::POST, &uri_str);
21448
21449    if let Some(ref user_agent) = configuration.user_agent {
21450        req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone());
21451    }
21452    req_builder = req_builder.json(&p_body_sign_data_with_classic_key);
21453
21454    let req = req_builder.build()?;
21455    let resp = configuration.client.execute(req).await?;
21456
21457    let status = resp.status();
21458    let content_type = resp
21459        .headers()
21460        .get("content-type")
21461        .and_then(|v| v.to_str().ok())
21462        .unwrap_or("application/octet-stream");
21463    let content_type = super::ContentType::from(content_type);
21464
21465    if !status.is_client_error() && !status.is_server_error() {
21466        let content = resp.text().await?;
21467        match content_type {
21468            ContentType::Json => serde_json::from_str(&content).map_err(Error::from),
21469            ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `models::SignOutput`"))),
21470            ContentType::Unsupported(unknown_type) => return Err(Error::from(serde_json::Error::custom(format!("Received `{unknown_type}` content type response that cannot be converted to `models::SignOutput`")))),
21471        }
21472    } else {
21473        let content = resp.text().await?;
21474        let entity: Option<SignDataWithClassicKeyError> = serde_json::from_str(&content).ok();
21475        Err(Error::ResponseError(ResponseContent { status, content, entity }))
21476    }
21477}
21478
21479pub async fn sign_ec_dsa(configuration: &configuration::Configuration, sign_ec_dsa: models::SignEcDsa) -> Result<models::SignEcDsaOutput, Error<SignEcDsaError>> {
21480    // add a prefix to parameters to efficiently prevent name collisions
21481    let p_body_sign_ec_dsa = sign_ec_dsa;
21482
21483    let uri_str = format!("{}/sign-ecdsa", configuration.base_path);
21484    let mut req_builder = configuration.client.request(reqwest::Method::POST, &uri_str);
21485
21486    if let Some(ref user_agent) = configuration.user_agent {
21487        req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone());
21488    }
21489    req_builder = req_builder.json(&p_body_sign_ec_dsa);
21490
21491    let req = req_builder.build()?;
21492    let resp = configuration.client.execute(req).await?;
21493
21494    let status = resp.status();
21495    let content_type = resp
21496        .headers()
21497        .get("content-type")
21498        .and_then(|v| v.to_str().ok())
21499        .unwrap_or("application/octet-stream");
21500    let content_type = super::ContentType::from(content_type);
21501
21502    if !status.is_client_error() && !status.is_server_error() {
21503        let content = resp.text().await?;
21504        match content_type {
21505            ContentType::Json => serde_json::from_str(&content).map_err(Error::from),
21506            ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `models::SignEcDsaOutput`"))),
21507            ContentType::Unsupported(unknown_type) => return Err(Error::from(serde_json::Error::custom(format!("Received `{unknown_type}` content type response that cannot be converted to `models::SignEcDsaOutput`")))),
21508        }
21509    } else {
21510        let content = resp.text().await?;
21511        let entity: Option<SignEcDsaError> = serde_json::from_str(&content).ok();
21512        Err(Error::ResponseError(ResponseContent { status, content, entity }))
21513    }
21514}
21515
21516pub async fn sign_gpg(configuration: &configuration::Configuration, sign_gpg: models::SignGpg) -> Result<models::SignGpgOutput, Error<SignGpgError>> {
21517    // add a prefix to parameters to efficiently prevent name collisions
21518    let p_body_sign_gpg = sign_gpg;
21519
21520    let uri_str = format!("{}/sign-gpg", configuration.base_path);
21521    let mut req_builder = configuration.client.request(reqwest::Method::POST, &uri_str);
21522
21523    if let Some(ref user_agent) = configuration.user_agent {
21524        req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone());
21525    }
21526    req_builder = req_builder.json(&p_body_sign_gpg);
21527
21528    let req = req_builder.build()?;
21529    let resp = configuration.client.execute(req).await?;
21530
21531    let status = resp.status();
21532    let content_type = resp
21533        .headers()
21534        .get("content-type")
21535        .and_then(|v| v.to_str().ok())
21536        .unwrap_or("application/octet-stream");
21537    let content_type = super::ContentType::from(content_type);
21538
21539    if !status.is_client_error() && !status.is_server_error() {
21540        let content = resp.text().await?;
21541        match content_type {
21542            ContentType::Json => serde_json::from_str(&content).map_err(Error::from),
21543            ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `models::SignGpgOutput`"))),
21544            ContentType::Unsupported(unknown_type) => return Err(Error::from(serde_json::Error::custom(format!("Received `{unknown_type}` content type response that cannot be converted to `models::SignGpgOutput`")))),
21545        }
21546    } else {
21547        let content = resp.text().await?;
21548        let entity: Option<SignGpgError> = serde_json::from_str(&content).ok();
21549        Err(Error::ResponseError(ResponseContent { status, content, entity }))
21550    }
21551}
21552
21553pub async fn sign_jwt_with_classic_key(configuration: &configuration::Configuration, sign_jwt_with_classic_key: models::SignJwtWithClassicKey) -> Result<models::SignJwtOutput, Error<SignJwtWithClassicKeyError>> {
21554    // add a prefix to parameters to efficiently prevent name collisions
21555    let p_body_sign_jwt_with_classic_key = sign_jwt_with_classic_key;
21556
21557    let uri_str = format!("{}/sign-jwt-with-classic-key", configuration.base_path);
21558    let mut req_builder = configuration.client.request(reqwest::Method::POST, &uri_str);
21559
21560    if let Some(ref user_agent) = configuration.user_agent {
21561        req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone());
21562    }
21563    req_builder = req_builder.json(&p_body_sign_jwt_with_classic_key);
21564
21565    let req = req_builder.build()?;
21566    let resp = configuration.client.execute(req).await?;
21567
21568    let status = resp.status();
21569    let content_type = resp
21570        .headers()
21571        .get("content-type")
21572        .and_then(|v| v.to_str().ok())
21573        .unwrap_or("application/octet-stream");
21574    let content_type = super::ContentType::from(content_type);
21575
21576    if !status.is_client_error() && !status.is_server_error() {
21577        let content = resp.text().await?;
21578        match content_type {
21579            ContentType::Json => serde_json::from_str(&content).map_err(Error::from),
21580            ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `models::SignJwtOutput`"))),
21581            ContentType::Unsupported(unknown_type) => return Err(Error::from(serde_json::Error::custom(format!("Received `{unknown_type}` content type response that cannot be converted to `models::SignJwtOutput`")))),
21582        }
21583    } else {
21584        let content = resp.text().await?;
21585        let entity: Option<SignJwtWithClassicKeyError> = serde_json::from_str(&content).ok();
21586        Err(Error::ResponseError(ResponseContent { status, content, entity }))
21587    }
21588}
21589
21590pub async fn sign_pkcs1(configuration: &configuration::Configuration, sign_pkcs1: models::SignPkcs1) -> Result<models::SignPkcs1Output, Error<SignPkcs1Error>> {
21591    // add a prefix to parameters to efficiently prevent name collisions
21592    let p_body_sign_pkcs1 = sign_pkcs1;
21593
21594    let uri_str = format!("{}/sign-pkcs1", configuration.base_path);
21595    let mut req_builder = configuration.client.request(reqwest::Method::POST, &uri_str);
21596
21597    if let Some(ref user_agent) = configuration.user_agent {
21598        req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone());
21599    }
21600    req_builder = req_builder.json(&p_body_sign_pkcs1);
21601
21602    let req = req_builder.build()?;
21603    let resp = configuration.client.execute(req).await?;
21604
21605    let status = resp.status();
21606    let content_type = resp
21607        .headers()
21608        .get("content-type")
21609        .and_then(|v| v.to_str().ok())
21610        .unwrap_or("application/octet-stream");
21611    let content_type = super::ContentType::from(content_type);
21612
21613    if !status.is_client_error() && !status.is_server_error() {
21614        let content = resp.text().await?;
21615        match content_type {
21616            ContentType::Json => serde_json::from_str(&content).map_err(Error::from),
21617            ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `models::SignPkcs1Output`"))),
21618            ContentType::Unsupported(unknown_type) => return Err(Error::from(serde_json::Error::custom(format!("Received `{unknown_type}` content type response that cannot be converted to `models::SignPkcs1Output`")))),
21619        }
21620    } else {
21621        let content = resp.text().await?;
21622        let entity: Option<SignPkcs1Error> = serde_json::from_str(&content).ok();
21623        Err(Error::ResponseError(ResponseContent { status, content, entity }))
21624    }
21625}
21626
21627pub async fn sign_pki_cert_with_classic_key(configuration: &configuration::Configuration, sign_pki_cert_with_classic_key: models::SignPkiCertWithClassicKey) -> Result<models::SignPkiCertOutput, Error<SignPkiCertWithClassicKeyError>> {
21628    // add a prefix to parameters to efficiently prevent name collisions
21629    let p_body_sign_pki_cert_with_classic_key = sign_pki_cert_with_classic_key;
21630
21631    let uri_str = format!("{}/sign-pki-cert-with-classic-key", configuration.base_path);
21632    let mut req_builder = configuration.client.request(reqwest::Method::POST, &uri_str);
21633
21634    if let Some(ref user_agent) = configuration.user_agent {
21635        req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone());
21636    }
21637    req_builder = req_builder.json(&p_body_sign_pki_cert_with_classic_key);
21638
21639    let req = req_builder.build()?;
21640    let resp = configuration.client.execute(req).await?;
21641
21642    let status = resp.status();
21643    let content_type = resp
21644        .headers()
21645        .get("content-type")
21646        .and_then(|v| v.to_str().ok())
21647        .unwrap_or("application/octet-stream");
21648    let content_type = super::ContentType::from(content_type);
21649
21650    if !status.is_client_error() && !status.is_server_error() {
21651        let content = resp.text().await?;
21652        match content_type {
21653            ContentType::Json => serde_json::from_str(&content).map_err(Error::from),
21654            ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `models::SignPkiCertOutput`"))),
21655            ContentType::Unsupported(unknown_type) => return Err(Error::from(serde_json::Error::custom(format!("Received `{unknown_type}` content type response that cannot be converted to `models::SignPkiCertOutput`")))),
21656        }
21657    } else {
21658        let content = resp.text().await?;
21659        let entity: Option<SignPkiCertWithClassicKeyError> = serde_json::from_str(&content).ok();
21660        Err(Error::ResponseError(ResponseContent { status, content, entity }))
21661    }
21662}
21663
21664pub async fn sign_rsa_ssa_pss(configuration: &configuration::Configuration, sign_rsa_ssa_pss: models::SignRsaSsaPss) -> Result<models::SignRsaSsaPssOutput, Error<SignRsaSsaPssError>> {
21665    // add a prefix to parameters to efficiently prevent name collisions
21666    let p_body_sign_rsa_ssa_pss = sign_rsa_ssa_pss;
21667
21668    let uri_str = format!("{}/sign-rsassa-pss", configuration.base_path);
21669    let mut req_builder = configuration.client.request(reqwest::Method::POST, &uri_str);
21670
21671    if let Some(ref user_agent) = configuration.user_agent {
21672        req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone());
21673    }
21674    req_builder = req_builder.json(&p_body_sign_rsa_ssa_pss);
21675
21676    let req = req_builder.build()?;
21677    let resp = configuration.client.execute(req).await?;
21678
21679    let status = resp.status();
21680    let content_type = resp
21681        .headers()
21682        .get("content-type")
21683        .and_then(|v| v.to_str().ok())
21684        .unwrap_or("application/octet-stream");
21685    let content_type = super::ContentType::from(content_type);
21686
21687    if !status.is_client_error() && !status.is_server_error() {
21688        let content = resp.text().await?;
21689        match content_type {
21690            ContentType::Json => serde_json::from_str(&content).map_err(Error::from),
21691            ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `models::SignRsaSsaPssOutput`"))),
21692            ContentType::Unsupported(unknown_type) => return Err(Error::from(serde_json::Error::custom(format!("Received `{unknown_type}` content type response that cannot be converted to `models::SignRsaSsaPssOutput`")))),
21693        }
21694    } else {
21695        let content = resp.text().await?;
21696        let entity: Option<SignRsaSsaPssError> = serde_json::from_str(&content).ok();
21697        Err(Error::ResponseError(ResponseContent { status, content, entity }))
21698    }
21699}
21700
21701pub async fn static_creds_auth(configuration: &configuration::Configuration, static_creds_auth: models::StaticCredsAuth) -> Result<models::StaticCredsAuthOutput, Error<StaticCredsAuthError>> {
21702    // add a prefix to parameters to efficiently prevent name collisions
21703    let p_body_static_creds_auth = static_creds_auth;
21704
21705    let uri_str = format!("{}/static-creds-auth", configuration.base_path);
21706    let mut req_builder = configuration.client.request(reqwest::Method::POST, &uri_str);
21707
21708    if let Some(ref user_agent) = configuration.user_agent {
21709        req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone());
21710    }
21711    req_builder = req_builder.json(&p_body_static_creds_auth);
21712
21713    let req = req_builder.build()?;
21714    let resp = configuration.client.execute(req).await?;
21715
21716    let status = resp.status();
21717    let content_type = resp
21718        .headers()
21719        .get("content-type")
21720        .and_then(|v| v.to_str().ok())
21721        .unwrap_or("application/octet-stream");
21722    let content_type = super::ContentType::from(content_type);
21723
21724    if !status.is_client_error() && !status.is_server_error() {
21725        let content = resp.text().await?;
21726        match content_type {
21727            ContentType::Json => serde_json::from_str(&content).map_err(Error::from),
21728            ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `models::StaticCredsAuthOutput`"))),
21729            ContentType::Unsupported(unknown_type) => return Err(Error::from(serde_json::Error::custom(format!("Received `{unknown_type}` content type response that cannot be converted to `models::StaticCredsAuthOutput`")))),
21730        }
21731    } else {
21732        let content = resp.text().await?;
21733        let entity: Option<StaticCredsAuthError> = serde_json::from_str(&content).ok();
21734        Err(Error::ResponseError(ResponseContent { status, content, entity }))
21735    }
21736}
21737
21738pub async fn static_secret_delete_sync(configuration: &configuration::Configuration, static_secret_delete_sync: models::StaticSecretDeleteSync) -> Result<models::StaticSecretDeleteSyncOutput, Error<StaticSecretDeleteSyncError>> {
21739    // add a prefix to parameters to efficiently prevent name collisions
21740    let p_body_static_secret_delete_sync = static_secret_delete_sync;
21741
21742    let uri_str = format!("{}/static-secret-delete-sync", configuration.base_path);
21743    let mut req_builder = configuration.client.request(reqwest::Method::POST, &uri_str);
21744
21745    if let Some(ref user_agent) = configuration.user_agent {
21746        req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone());
21747    }
21748    req_builder = req_builder.json(&p_body_static_secret_delete_sync);
21749
21750    let req = req_builder.build()?;
21751    let resp = configuration.client.execute(req).await?;
21752
21753    let status = resp.status();
21754    let content_type = resp
21755        .headers()
21756        .get("content-type")
21757        .and_then(|v| v.to_str().ok())
21758        .unwrap_or("application/octet-stream");
21759    let content_type = super::ContentType::from(content_type);
21760
21761    if !status.is_client_error() && !status.is_server_error() {
21762        let content = resp.text().await?;
21763        match content_type {
21764            ContentType::Json => serde_json::from_str(&content).map_err(Error::from),
21765            ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `models::StaticSecretDeleteSyncOutput`"))),
21766            ContentType::Unsupported(unknown_type) => return Err(Error::from(serde_json::Error::custom(format!("Received `{unknown_type}` content type response that cannot be converted to `models::StaticSecretDeleteSyncOutput`")))),
21767        }
21768    } else {
21769        let content = resp.text().await?;
21770        let entity: Option<StaticSecretDeleteSyncError> = serde_json::from_str(&content).ok();
21771        Err(Error::ResponseError(ResponseContent { status, content, entity }))
21772    }
21773}
21774
21775pub async fn static_secret_sync(configuration: &configuration::Configuration, static_secret_sync: models::StaticSecretSync) -> Result<models::SecretSyncOutput, Error<StaticSecretSyncError>> {
21776    // add a prefix to parameters to efficiently prevent name collisions
21777    let p_body_static_secret_sync = static_secret_sync;
21778
21779    let uri_str = format!("{}/static-secret-sync", configuration.base_path);
21780    let mut req_builder = configuration.client.request(reqwest::Method::POST, &uri_str);
21781
21782    if let Some(ref user_agent) = configuration.user_agent {
21783        req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone());
21784    }
21785    req_builder = req_builder.json(&p_body_static_secret_sync);
21786
21787    let req = req_builder.build()?;
21788    let resp = configuration.client.execute(req).await?;
21789
21790    let status = resp.status();
21791    let content_type = resp
21792        .headers()
21793        .get("content-type")
21794        .and_then(|v| v.to_str().ok())
21795        .unwrap_or("application/octet-stream");
21796    let content_type = super::ContentType::from(content_type);
21797
21798    if !status.is_client_error() && !status.is_server_error() {
21799        let content = resp.text().await?;
21800        match content_type {
21801            ContentType::Json => serde_json::from_str(&content).map_err(Error::from),
21802            ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `models::SecretSyncOutput`"))),
21803            ContentType::Unsupported(unknown_type) => return Err(Error::from(serde_json::Error::custom(format!("Received `{unknown_type}` content type response that cannot be converted to `models::SecretSyncOutput`")))),
21804        }
21805    } else {
21806        let content = resp.text().await?;
21807        let entity: Option<StaticSecretSyncError> = serde_json::from_str(&content).ok();
21808        Err(Error::ResponseError(ResponseContent { status, content, entity }))
21809    }
21810}
21811
21812pub async fn target_create_artifactory(configuration: &configuration::Configuration, target_create_artifactory: models::TargetCreateArtifactory) -> Result<models::TargetCreateOutput, Error<TargetCreateArtifactoryError>> {
21813    // add a prefix to parameters to efficiently prevent name collisions
21814    let p_body_target_create_artifactory = target_create_artifactory;
21815
21816    let uri_str = format!("{}/target-create-artifactory", configuration.base_path);
21817    let mut req_builder = configuration.client.request(reqwest::Method::POST, &uri_str);
21818
21819    if let Some(ref user_agent) = configuration.user_agent {
21820        req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone());
21821    }
21822    req_builder = req_builder.json(&p_body_target_create_artifactory);
21823
21824    let req = req_builder.build()?;
21825    let resp = configuration.client.execute(req).await?;
21826
21827    let status = resp.status();
21828    let content_type = resp
21829        .headers()
21830        .get("content-type")
21831        .and_then(|v| v.to_str().ok())
21832        .unwrap_or("application/octet-stream");
21833    let content_type = super::ContentType::from(content_type);
21834
21835    if !status.is_client_error() && !status.is_server_error() {
21836        let content = resp.text().await?;
21837        match content_type {
21838            ContentType::Json => serde_json::from_str(&content).map_err(Error::from),
21839            ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `models::TargetCreateOutput`"))),
21840            ContentType::Unsupported(unknown_type) => return Err(Error::from(serde_json::Error::custom(format!("Received `{unknown_type}` content type response that cannot be converted to `models::TargetCreateOutput`")))),
21841        }
21842    } else {
21843        let content = resp.text().await?;
21844        let entity: Option<TargetCreateArtifactoryError> = serde_json::from_str(&content).ok();
21845        Err(Error::ResponseError(ResponseContent { status, content, entity }))
21846    }
21847}
21848
21849pub async fn target_create_aws(configuration: &configuration::Configuration, target_create_aws: models::TargetCreateAws) -> Result<models::TargetCreateOutput, Error<TargetCreateAwsError>> {
21850    // add a prefix to parameters to efficiently prevent name collisions
21851    let p_body_target_create_aws = target_create_aws;
21852
21853    let uri_str = format!("{}/target-create-aws", configuration.base_path);
21854    let mut req_builder = configuration.client.request(reqwest::Method::POST, &uri_str);
21855
21856    if let Some(ref user_agent) = configuration.user_agent {
21857        req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone());
21858    }
21859    req_builder = req_builder.json(&p_body_target_create_aws);
21860
21861    let req = req_builder.build()?;
21862    let resp = configuration.client.execute(req).await?;
21863
21864    let status = resp.status();
21865    let content_type = resp
21866        .headers()
21867        .get("content-type")
21868        .and_then(|v| v.to_str().ok())
21869        .unwrap_or("application/octet-stream");
21870    let content_type = super::ContentType::from(content_type);
21871
21872    if !status.is_client_error() && !status.is_server_error() {
21873        let content = resp.text().await?;
21874        match content_type {
21875            ContentType::Json => serde_json::from_str(&content).map_err(Error::from),
21876            ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `models::TargetCreateOutput`"))),
21877            ContentType::Unsupported(unknown_type) => return Err(Error::from(serde_json::Error::custom(format!("Received `{unknown_type}` content type response that cannot be converted to `models::TargetCreateOutput`")))),
21878        }
21879    } else {
21880        let content = resp.text().await?;
21881        let entity: Option<TargetCreateAwsError> = serde_json::from_str(&content).ok();
21882        Err(Error::ResponseError(ResponseContent { status, content, entity }))
21883    }
21884}
21885
21886pub async fn target_create_azure(configuration: &configuration::Configuration, target_create_azure: models::TargetCreateAzure) -> Result<models::TargetCreateOutput, Error<TargetCreateAzureError>> {
21887    // add a prefix to parameters to efficiently prevent name collisions
21888    let p_body_target_create_azure = target_create_azure;
21889
21890    let uri_str = format!("{}/target-create-azure", configuration.base_path);
21891    let mut req_builder = configuration.client.request(reqwest::Method::POST, &uri_str);
21892
21893    if let Some(ref user_agent) = configuration.user_agent {
21894        req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone());
21895    }
21896    req_builder = req_builder.json(&p_body_target_create_azure);
21897
21898    let req = req_builder.build()?;
21899    let resp = configuration.client.execute(req).await?;
21900
21901    let status = resp.status();
21902    let content_type = resp
21903        .headers()
21904        .get("content-type")
21905        .and_then(|v| v.to_str().ok())
21906        .unwrap_or("application/octet-stream");
21907    let content_type = super::ContentType::from(content_type);
21908
21909    if !status.is_client_error() && !status.is_server_error() {
21910        let content = resp.text().await?;
21911        match content_type {
21912            ContentType::Json => serde_json::from_str(&content).map_err(Error::from),
21913            ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `models::TargetCreateOutput`"))),
21914            ContentType::Unsupported(unknown_type) => return Err(Error::from(serde_json::Error::custom(format!("Received `{unknown_type}` content type response that cannot be converted to `models::TargetCreateOutput`")))),
21915        }
21916    } else {
21917        let content = resp.text().await?;
21918        let entity: Option<TargetCreateAzureError> = serde_json::from_str(&content).ok();
21919        Err(Error::ResponseError(ResponseContent { status, content, entity }))
21920    }
21921}
21922
21923pub async fn target_create_db(configuration: &configuration::Configuration, target_create_db: models::TargetCreateDb) -> Result<models::TargetCreateOutput, Error<TargetCreateDbError>> {
21924    // add a prefix to parameters to efficiently prevent name collisions
21925    let p_body_target_create_db = target_create_db;
21926
21927    let uri_str = format!("{}/target-create-db", configuration.base_path);
21928    let mut req_builder = configuration.client.request(reqwest::Method::POST, &uri_str);
21929
21930    if let Some(ref user_agent) = configuration.user_agent {
21931        req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone());
21932    }
21933    req_builder = req_builder.json(&p_body_target_create_db);
21934
21935    let req = req_builder.build()?;
21936    let resp = configuration.client.execute(req).await?;
21937
21938    let status = resp.status();
21939    let content_type = resp
21940        .headers()
21941        .get("content-type")
21942        .and_then(|v| v.to_str().ok())
21943        .unwrap_or("application/octet-stream");
21944    let content_type = super::ContentType::from(content_type);
21945
21946    if !status.is_client_error() && !status.is_server_error() {
21947        let content = resp.text().await?;
21948        match content_type {
21949            ContentType::Json => serde_json::from_str(&content).map_err(Error::from),
21950            ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `models::TargetCreateOutput`"))),
21951            ContentType::Unsupported(unknown_type) => return Err(Error::from(serde_json::Error::custom(format!("Received `{unknown_type}` content type response that cannot be converted to `models::TargetCreateOutput`")))),
21952        }
21953    } else {
21954        let content = resp.text().await?;
21955        let entity: Option<TargetCreateDbError> = serde_json::from_str(&content).ok();
21956        Err(Error::ResponseError(ResponseContent { status, content, entity }))
21957    }
21958}
21959
21960pub async fn target_create_dockerhub(configuration: &configuration::Configuration, target_create_dockerhub: models::TargetCreateDockerhub) -> Result<models::TargetCreateOutput, Error<TargetCreateDockerhubError>> {
21961    // add a prefix to parameters to efficiently prevent name collisions
21962    let p_body_target_create_dockerhub = target_create_dockerhub;
21963
21964    let uri_str = format!("{}/target-create-dockerhub", configuration.base_path);
21965    let mut req_builder = configuration.client.request(reqwest::Method::POST, &uri_str);
21966
21967    if let Some(ref user_agent) = configuration.user_agent {
21968        req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone());
21969    }
21970    req_builder = req_builder.json(&p_body_target_create_dockerhub);
21971
21972    let req = req_builder.build()?;
21973    let resp = configuration.client.execute(req).await?;
21974
21975    let status = resp.status();
21976    let content_type = resp
21977        .headers()
21978        .get("content-type")
21979        .and_then(|v| v.to_str().ok())
21980        .unwrap_or("application/octet-stream");
21981    let content_type = super::ContentType::from(content_type);
21982
21983    if !status.is_client_error() && !status.is_server_error() {
21984        let content = resp.text().await?;
21985        match content_type {
21986            ContentType::Json => serde_json::from_str(&content).map_err(Error::from),
21987            ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `models::TargetCreateOutput`"))),
21988            ContentType::Unsupported(unknown_type) => return Err(Error::from(serde_json::Error::custom(format!("Received `{unknown_type}` content type response that cannot be converted to `models::TargetCreateOutput`")))),
21989        }
21990    } else {
21991        let content = resp.text().await?;
21992        let entity: Option<TargetCreateDockerhubError> = serde_json::from_str(&content).ok();
21993        Err(Error::ResponseError(ResponseContent { status, content, entity }))
21994    }
21995}
21996
21997pub async fn target_create_eks(configuration: &configuration::Configuration, target_create_eks: models::TargetCreateEks) -> Result<models::TargetCreateOutput, Error<TargetCreateEksError>> {
21998    // add a prefix to parameters to efficiently prevent name collisions
21999    let p_body_target_create_eks = target_create_eks;
22000
22001    let uri_str = format!("{}/target-create-eks", configuration.base_path);
22002    let mut req_builder = configuration.client.request(reqwest::Method::POST, &uri_str);
22003
22004    if let Some(ref user_agent) = configuration.user_agent {
22005        req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone());
22006    }
22007    req_builder = req_builder.json(&p_body_target_create_eks);
22008
22009    let req = req_builder.build()?;
22010    let resp = configuration.client.execute(req).await?;
22011
22012    let status = resp.status();
22013    let content_type = resp
22014        .headers()
22015        .get("content-type")
22016        .and_then(|v| v.to_str().ok())
22017        .unwrap_or("application/octet-stream");
22018    let content_type = super::ContentType::from(content_type);
22019
22020    if !status.is_client_error() && !status.is_server_error() {
22021        let content = resp.text().await?;
22022        match content_type {
22023            ContentType::Json => serde_json::from_str(&content).map_err(Error::from),
22024            ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `models::TargetCreateOutput`"))),
22025            ContentType::Unsupported(unknown_type) => return Err(Error::from(serde_json::Error::custom(format!("Received `{unknown_type}` content type response that cannot be converted to `models::TargetCreateOutput`")))),
22026        }
22027    } else {
22028        let content = resp.text().await?;
22029        let entity: Option<TargetCreateEksError> = serde_json::from_str(&content).ok();
22030        Err(Error::ResponseError(ResponseContent { status, content, entity }))
22031    }
22032}
22033
22034pub async fn target_create_gcp(configuration: &configuration::Configuration, target_create_gcp: models::TargetCreateGcp) -> Result<models::TargetCreateOutput, Error<TargetCreateGcpError>> {
22035    // add a prefix to parameters to efficiently prevent name collisions
22036    let p_body_target_create_gcp = target_create_gcp;
22037
22038    let uri_str = format!("{}/target-create-gcp", configuration.base_path);
22039    let mut req_builder = configuration.client.request(reqwest::Method::POST, &uri_str);
22040
22041    if let Some(ref user_agent) = configuration.user_agent {
22042        req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone());
22043    }
22044    req_builder = req_builder.json(&p_body_target_create_gcp);
22045
22046    let req = req_builder.build()?;
22047    let resp = configuration.client.execute(req).await?;
22048
22049    let status = resp.status();
22050    let content_type = resp
22051        .headers()
22052        .get("content-type")
22053        .and_then(|v| v.to_str().ok())
22054        .unwrap_or("application/octet-stream");
22055    let content_type = super::ContentType::from(content_type);
22056
22057    if !status.is_client_error() && !status.is_server_error() {
22058        let content = resp.text().await?;
22059        match content_type {
22060            ContentType::Json => serde_json::from_str(&content).map_err(Error::from),
22061            ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `models::TargetCreateOutput`"))),
22062            ContentType::Unsupported(unknown_type) => return Err(Error::from(serde_json::Error::custom(format!("Received `{unknown_type}` content type response that cannot be converted to `models::TargetCreateOutput`")))),
22063        }
22064    } else {
22065        let content = resp.text().await?;
22066        let entity: Option<TargetCreateGcpError> = serde_json::from_str(&content).ok();
22067        Err(Error::ResponseError(ResponseContent { status, content, entity }))
22068    }
22069}
22070
22071pub async fn target_create_gemini(configuration: &configuration::Configuration, target_create_gemini: models::TargetCreateGemini) -> Result<models::TargetCreateOutput, Error<TargetCreateGeminiError>> {
22072    // add a prefix to parameters to efficiently prevent name collisions
22073    let p_body_target_create_gemini = target_create_gemini;
22074
22075    let uri_str = format!("{}/target-create-gemini", configuration.base_path);
22076    let mut req_builder = configuration.client.request(reqwest::Method::POST, &uri_str);
22077
22078    if let Some(ref user_agent) = configuration.user_agent {
22079        req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone());
22080    }
22081    req_builder = req_builder.json(&p_body_target_create_gemini);
22082
22083    let req = req_builder.build()?;
22084    let resp = configuration.client.execute(req).await?;
22085
22086    let status = resp.status();
22087    let content_type = resp
22088        .headers()
22089        .get("content-type")
22090        .and_then(|v| v.to_str().ok())
22091        .unwrap_or("application/octet-stream");
22092    let content_type = super::ContentType::from(content_type);
22093
22094    if !status.is_client_error() && !status.is_server_error() {
22095        let content = resp.text().await?;
22096        match content_type {
22097            ContentType::Json => serde_json::from_str(&content).map_err(Error::from),
22098            ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `models::TargetCreateOutput`"))),
22099            ContentType::Unsupported(unknown_type) => return Err(Error::from(serde_json::Error::custom(format!("Received `{unknown_type}` content type response that cannot be converted to `models::TargetCreateOutput`")))),
22100        }
22101    } else {
22102        let content = resp.text().await?;
22103        let entity: Option<TargetCreateGeminiError> = serde_json::from_str(&content).ok();
22104        Err(Error::ResponseError(ResponseContent { status, content, entity }))
22105    }
22106}
22107
22108pub async fn target_create_github(configuration: &configuration::Configuration, target_create_github: models::TargetCreateGithub) -> Result<models::TargetCreateOutput, Error<TargetCreateGithubError>> {
22109    // add a prefix to parameters to efficiently prevent name collisions
22110    let p_body_target_create_github = target_create_github;
22111
22112    let uri_str = format!("{}/target-create-github", configuration.base_path);
22113    let mut req_builder = configuration.client.request(reqwest::Method::POST, &uri_str);
22114
22115    if let Some(ref user_agent) = configuration.user_agent {
22116        req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone());
22117    }
22118    req_builder = req_builder.json(&p_body_target_create_github);
22119
22120    let req = req_builder.build()?;
22121    let resp = configuration.client.execute(req).await?;
22122
22123    let status = resp.status();
22124    let content_type = resp
22125        .headers()
22126        .get("content-type")
22127        .and_then(|v| v.to_str().ok())
22128        .unwrap_or("application/octet-stream");
22129    let content_type = super::ContentType::from(content_type);
22130
22131    if !status.is_client_error() && !status.is_server_error() {
22132        let content = resp.text().await?;
22133        match content_type {
22134            ContentType::Json => serde_json::from_str(&content).map_err(Error::from),
22135            ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `models::TargetCreateOutput`"))),
22136            ContentType::Unsupported(unknown_type) => return Err(Error::from(serde_json::Error::custom(format!("Received `{unknown_type}` content type response that cannot be converted to `models::TargetCreateOutput`")))),
22137        }
22138    } else {
22139        let content = resp.text().await?;
22140        let entity: Option<TargetCreateGithubError> = serde_json::from_str(&content).ok();
22141        Err(Error::ResponseError(ResponseContent { status, content, entity }))
22142    }
22143}
22144
22145pub async fn target_create_gitlab(configuration: &configuration::Configuration, target_create_gitlab: models::TargetCreateGitlab) -> Result<models::TargetCreateOutput, Error<TargetCreateGitlabError>> {
22146    // add a prefix to parameters to efficiently prevent name collisions
22147    let p_body_target_create_gitlab = target_create_gitlab;
22148
22149    let uri_str = format!("{}/target-create-gitlab", configuration.base_path);
22150    let mut req_builder = configuration.client.request(reqwest::Method::POST, &uri_str);
22151
22152    if let Some(ref user_agent) = configuration.user_agent {
22153        req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone());
22154    }
22155    req_builder = req_builder.json(&p_body_target_create_gitlab);
22156
22157    let req = req_builder.build()?;
22158    let resp = configuration.client.execute(req).await?;
22159
22160    let status = resp.status();
22161    let content_type = resp
22162        .headers()
22163        .get("content-type")
22164        .and_then(|v| v.to_str().ok())
22165        .unwrap_or("application/octet-stream");
22166    let content_type = super::ContentType::from(content_type);
22167
22168    if !status.is_client_error() && !status.is_server_error() {
22169        let content = resp.text().await?;
22170        match content_type {
22171            ContentType::Json => serde_json::from_str(&content).map_err(Error::from),
22172            ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `models::TargetCreateOutput`"))),
22173            ContentType::Unsupported(unknown_type) => return Err(Error::from(serde_json::Error::custom(format!("Received `{unknown_type}` content type response that cannot be converted to `models::TargetCreateOutput`")))),
22174        }
22175    } else {
22176        let content = resp.text().await?;
22177        let entity: Option<TargetCreateGitlabError> = serde_json::from_str(&content).ok();
22178        Err(Error::ResponseError(ResponseContent { status, content, entity }))
22179    }
22180}
22181
22182pub async fn target_create_gke(configuration: &configuration::Configuration, target_create_gke: models::TargetCreateGke) -> Result<models::TargetCreateOutput, Error<TargetCreateGkeError>> {
22183    // add a prefix to parameters to efficiently prevent name collisions
22184    let p_body_target_create_gke = target_create_gke;
22185
22186    let uri_str = format!("{}/target-create-gke", configuration.base_path);
22187    let mut req_builder = configuration.client.request(reqwest::Method::POST, &uri_str);
22188
22189    if let Some(ref user_agent) = configuration.user_agent {
22190        req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone());
22191    }
22192    req_builder = req_builder.json(&p_body_target_create_gke);
22193
22194    let req = req_builder.build()?;
22195    let resp = configuration.client.execute(req).await?;
22196
22197    let status = resp.status();
22198    let content_type = resp
22199        .headers()
22200        .get("content-type")
22201        .and_then(|v| v.to_str().ok())
22202        .unwrap_or("application/octet-stream");
22203    let content_type = super::ContentType::from(content_type);
22204
22205    if !status.is_client_error() && !status.is_server_error() {
22206        let content = resp.text().await?;
22207        match content_type {
22208            ContentType::Json => serde_json::from_str(&content).map_err(Error::from),
22209            ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `models::TargetCreateOutput`"))),
22210            ContentType::Unsupported(unknown_type) => return Err(Error::from(serde_json::Error::custom(format!("Received `{unknown_type}` content type response that cannot be converted to `models::TargetCreateOutput`")))),
22211        }
22212    } else {
22213        let content = resp.text().await?;
22214        let entity: Option<TargetCreateGkeError> = serde_json::from_str(&content).ok();
22215        Err(Error::ResponseError(ResponseContent { status, content, entity }))
22216    }
22217}
22218
22219pub async fn target_create_global_sign(configuration: &configuration::Configuration, target_create_global_sign: models::TargetCreateGlobalSign) -> Result<models::TargetCreateOutput, Error<TargetCreateGlobalSignError>> {
22220    // add a prefix to parameters to efficiently prevent name collisions
22221    let p_body_target_create_global_sign = target_create_global_sign;
22222
22223    let uri_str = format!("{}/target-create-globalsign", configuration.base_path);
22224    let mut req_builder = configuration.client.request(reqwest::Method::POST, &uri_str);
22225
22226    if let Some(ref user_agent) = configuration.user_agent {
22227        req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone());
22228    }
22229    req_builder = req_builder.json(&p_body_target_create_global_sign);
22230
22231    let req = req_builder.build()?;
22232    let resp = configuration.client.execute(req).await?;
22233
22234    let status = resp.status();
22235    let content_type = resp
22236        .headers()
22237        .get("content-type")
22238        .and_then(|v| v.to_str().ok())
22239        .unwrap_or("application/octet-stream");
22240    let content_type = super::ContentType::from(content_type);
22241
22242    if !status.is_client_error() && !status.is_server_error() {
22243        let content = resp.text().await?;
22244        match content_type {
22245            ContentType::Json => serde_json::from_str(&content).map_err(Error::from),
22246            ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `models::TargetCreateOutput`"))),
22247            ContentType::Unsupported(unknown_type) => return Err(Error::from(serde_json::Error::custom(format!("Received `{unknown_type}` content type response that cannot be converted to `models::TargetCreateOutput`")))),
22248        }
22249    } else {
22250        let content = resp.text().await?;
22251        let entity: Option<TargetCreateGlobalSignError> = serde_json::from_str(&content).ok();
22252        Err(Error::ResponseError(ResponseContent { status, content, entity }))
22253    }
22254}
22255
22256pub async fn target_create_global_sign_atlas(configuration: &configuration::Configuration, target_create_global_sign_atlas: models::TargetCreateGlobalSignAtlas) -> Result<models::TargetCreateOutput, Error<TargetCreateGlobalSignAtlasError>> {
22257    // add a prefix to parameters to efficiently prevent name collisions
22258    let p_body_target_create_global_sign_atlas = target_create_global_sign_atlas;
22259
22260    let uri_str = format!("{}/target-create-globalsign-atlas", configuration.base_path);
22261    let mut req_builder = configuration.client.request(reqwest::Method::POST, &uri_str);
22262
22263    if let Some(ref user_agent) = configuration.user_agent {
22264        req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone());
22265    }
22266    req_builder = req_builder.json(&p_body_target_create_global_sign_atlas);
22267
22268    let req = req_builder.build()?;
22269    let resp = configuration.client.execute(req).await?;
22270
22271    let status = resp.status();
22272    let content_type = resp
22273        .headers()
22274        .get("content-type")
22275        .and_then(|v| v.to_str().ok())
22276        .unwrap_or("application/octet-stream");
22277    let content_type = super::ContentType::from(content_type);
22278
22279    if !status.is_client_error() && !status.is_server_error() {
22280        let content = resp.text().await?;
22281        match content_type {
22282            ContentType::Json => serde_json::from_str(&content).map_err(Error::from),
22283            ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `models::TargetCreateOutput`"))),
22284            ContentType::Unsupported(unknown_type) => return Err(Error::from(serde_json::Error::custom(format!("Received `{unknown_type}` content type response that cannot be converted to `models::TargetCreateOutput`")))),
22285        }
22286    } else {
22287        let content = resp.text().await?;
22288        let entity: Option<TargetCreateGlobalSignAtlasError> = serde_json::from_str(&content).ok();
22289        Err(Error::ResponseError(ResponseContent { status, content, entity }))
22290    }
22291}
22292
22293pub async fn target_create_godaddy(configuration: &configuration::Configuration, target_create_godaddy: models::TargetCreateGodaddy) -> Result<models::TargetCreateOutput, Error<TargetCreateGodaddyError>> {
22294    // add a prefix to parameters to efficiently prevent name collisions
22295    let p_body_target_create_godaddy = target_create_godaddy;
22296
22297    let uri_str = format!("{}/target-create-godaddy", configuration.base_path);
22298    let mut req_builder = configuration.client.request(reqwest::Method::POST, &uri_str);
22299
22300    if let Some(ref user_agent) = configuration.user_agent {
22301        req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone());
22302    }
22303    req_builder = req_builder.json(&p_body_target_create_godaddy);
22304
22305    let req = req_builder.build()?;
22306    let resp = configuration.client.execute(req).await?;
22307
22308    let status = resp.status();
22309    let content_type = resp
22310        .headers()
22311        .get("content-type")
22312        .and_then(|v| v.to_str().ok())
22313        .unwrap_or("application/octet-stream");
22314    let content_type = super::ContentType::from(content_type);
22315
22316    if !status.is_client_error() && !status.is_server_error() {
22317        let content = resp.text().await?;
22318        match content_type {
22319            ContentType::Json => serde_json::from_str(&content).map_err(Error::from),
22320            ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `models::TargetCreateOutput`"))),
22321            ContentType::Unsupported(unknown_type) => return Err(Error::from(serde_json::Error::custom(format!("Received `{unknown_type}` content type response that cannot be converted to `models::TargetCreateOutput`")))),
22322        }
22323    } else {
22324        let content = resp.text().await?;
22325        let entity: Option<TargetCreateGodaddyError> = serde_json::from_str(&content).ok();
22326        Err(Error::ResponseError(ResponseContent { status, content, entity }))
22327    }
22328}
22329
22330pub async fn target_create_hashi_vault(configuration: &configuration::Configuration, target_create_hashi_vault: models::TargetCreateHashiVault) -> Result<models::TargetCreateOutput, Error<TargetCreateHashiVaultError>> {
22331    // add a prefix to parameters to efficiently prevent name collisions
22332    let p_body_target_create_hashi_vault = target_create_hashi_vault;
22333
22334    let uri_str = format!("{}/target-create-hashi-vault", configuration.base_path);
22335    let mut req_builder = configuration.client.request(reqwest::Method::POST, &uri_str);
22336
22337    if let Some(ref user_agent) = configuration.user_agent {
22338        req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone());
22339    }
22340    req_builder = req_builder.json(&p_body_target_create_hashi_vault);
22341
22342    let req = req_builder.build()?;
22343    let resp = configuration.client.execute(req).await?;
22344
22345    let status = resp.status();
22346    let content_type = resp
22347        .headers()
22348        .get("content-type")
22349        .and_then(|v| v.to_str().ok())
22350        .unwrap_or("application/octet-stream");
22351    let content_type = super::ContentType::from(content_type);
22352
22353    if !status.is_client_error() && !status.is_server_error() {
22354        let content = resp.text().await?;
22355        match content_type {
22356            ContentType::Json => serde_json::from_str(&content).map_err(Error::from),
22357            ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `models::TargetCreateOutput`"))),
22358            ContentType::Unsupported(unknown_type) => return Err(Error::from(serde_json::Error::custom(format!("Received `{unknown_type}` content type response that cannot be converted to `models::TargetCreateOutput`")))),
22359        }
22360    } else {
22361        let content = resp.text().await?;
22362        let entity: Option<TargetCreateHashiVaultError> = serde_json::from_str(&content).ok();
22363        Err(Error::ResponseError(ResponseContent { status, content, entity }))
22364    }
22365}
22366
22367pub async fn target_create_k8s(configuration: &configuration::Configuration, target_create_k8s: models::TargetCreateK8s) -> Result<models::TargetCreateOutput, Error<TargetCreateK8sError>> {
22368    // add a prefix to parameters to efficiently prevent name collisions
22369    let p_body_target_create_k8s = target_create_k8s;
22370
22371    let uri_str = format!("{}/target-create-k8s", configuration.base_path);
22372    let mut req_builder = configuration.client.request(reqwest::Method::POST, &uri_str);
22373
22374    if let Some(ref user_agent) = configuration.user_agent {
22375        req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone());
22376    }
22377    req_builder = req_builder.json(&p_body_target_create_k8s);
22378
22379    let req = req_builder.build()?;
22380    let resp = configuration.client.execute(req).await?;
22381
22382    let status = resp.status();
22383    let content_type = resp
22384        .headers()
22385        .get("content-type")
22386        .and_then(|v| v.to_str().ok())
22387        .unwrap_or("application/octet-stream");
22388    let content_type = super::ContentType::from(content_type);
22389
22390    if !status.is_client_error() && !status.is_server_error() {
22391        let content = resp.text().await?;
22392        match content_type {
22393            ContentType::Json => serde_json::from_str(&content).map_err(Error::from),
22394            ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `models::TargetCreateOutput`"))),
22395            ContentType::Unsupported(unknown_type) => return Err(Error::from(serde_json::Error::custom(format!("Received `{unknown_type}` content type response that cannot be converted to `models::TargetCreateOutput`")))),
22396        }
22397    } else {
22398        let content = resp.text().await?;
22399        let entity: Option<TargetCreateK8sError> = serde_json::from_str(&content).ok();
22400        Err(Error::ResponseError(ResponseContent { status, content, entity }))
22401    }
22402}
22403
22404pub async fn target_create_ldap(configuration: &configuration::Configuration, target_create_ldap: models::TargetCreateLdap) -> Result<models::TargetCreateOutput, Error<TargetCreateLdapError>> {
22405    // add a prefix to parameters to efficiently prevent name collisions
22406    let p_body_target_create_ldap = target_create_ldap;
22407
22408    let uri_str = format!("{}/target-create-ldap", configuration.base_path);
22409    let mut req_builder = configuration.client.request(reqwest::Method::POST, &uri_str);
22410
22411    if let Some(ref user_agent) = configuration.user_agent {
22412        req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone());
22413    }
22414    req_builder = req_builder.json(&p_body_target_create_ldap);
22415
22416    let req = req_builder.build()?;
22417    let resp = configuration.client.execute(req).await?;
22418
22419    let status = resp.status();
22420    let content_type = resp
22421        .headers()
22422        .get("content-type")
22423        .and_then(|v| v.to_str().ok())
22424        .unwrap_or("application/octet-stream");
22425    let content_type = super::ContentType::from(content_type);
22426
22427    if !status.is_client_error() && !status.is_server_error() {
22428        let content = resp.text().await?;
22429        match content_type {
22430            ContentType::Json => serde_json::from_str(&content).map_err(Error::from),
22431            ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `models::TargetCreateOutput`"))),
22432            ContentType::Unsupported(unknown_type) => return Err(Error::from(serde_json::Error::custom(format!("Received `{unknown_type}` content type response that cannot be converted to `models::TargetCreateOutput`")))),
22433        }
22434    } else {
22435        let content = resp.text().await?;
22436        let entity: Option<TargetCreateLdapError> = serde_json::from_str(&content).ok();
22437        Err(Error::ResponseError(ResponseContent { status, content, entity }))
22438    }
22439}
22440
22441pub async fn target_create_lets_encrypt(configuration: &configuration::Configuration, target_create_lets_encrypt: models::TargetCreateLetsEncrypt) -> Result<models::TargetCreateOutput, Error<TargetCreateLetsEncryptError>> {
22442    // add a prefix to parameters to efficiently prevent name collisions
22443    let p_body_target_create_lets_encrypt = target_create_lets_encrypt;
22444
22445    let uri_str = format!("{}/target-create-lets-encrypt", configuration.base_path);
22446    let mut req_builder = configuration.client.request(reqwest::Method::POST, &uri_str);
22447
22448    if let Some(ref user_agent) = configuration.user_agent {
22449        req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone());
22450    }
22451    req_builder = req_builder.json(&p_body_target_create_lets_encrypt);
22452
22453    let req = req_builder.build()?;
22454    let resp = configuration.client.execute(req).await?;
22455
22456    let status = resp.status();
22457    let content_type = resp
22458        .headers()
22459        .get("content-type")
22460        .and_then(|v| v.to_str().ok())
22461        .unwrap_or("application/octet-stream");
22462    let content_type = super::ContentType::from(content_type);
22463
22464    if !status.is_client_error() && !status.is_server_error() {
22465        let content = resp.text().await?;
22466        match content_type {
22467            ContentType::Json => serde_json::from_str(&content).map_err(Error::from),
22468            ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `models::TargetCreateOutput`"))),
22469            ContentType::Unsupported(unknown_type) => return Err(Error::from(serde_json::Error::custom(format!("Received `{unknown_type}` content type response that cannot be converted to `models::TargetCreateOutput`")))),
22470        }
22471    } else {
22472        let content = resp.text().await?;
22473        let entity: Option<TargetCreateLetsEncryptError> = serde_json::from_str(&content).ok();
22474        Err(Error::ResponseError(ResponseContent { status, content, entity }))
22475    }
22476}
22477
22478pub async fn target_create_linked(configuration: &configuration::Configuration, target_create_linked: models::TargetCreateLinked) -> Result<models::TargetCreateOutput, Error<TargetCreateLinkedError>> {
22479    // add a prefix to parameters to efficiently prevent name collisions
22480    let p_body_target_create_linked = target_create_linked;
22481
22482    let uri_str = format!("{}/target-create-linked", configuration.base_path);
22483    let mut req_builder = configuration.client.request(reqwest::Method::POST, &uri_str);
22484
22485    if let Some(ref user_agent) = configuration.user_agent {
22486        req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone());
22487    }
22488    req_builder = req_builder.json(&p_body_target_create_linked);
22489
22490    let req = req_builder.build()?;
22491    let resp = configuration.client.execute(req).await?;
22492
22493    let status = resp.status();
22494    let content_type = resp
22495        .headers()
22496        .get("content-type")
22497        .and_then(|v| v.to_str().ok())
22498        .unwrap_or("application/octet-stream");
22499    let content_type = super::ContentType::from(content_type);
22500
22501    if !status.is_client_error() && !status.is_server_error() {
22502        let content = resp.text().await?;
22503        match content_type {
22504            ContentType::Json => serde_json::from_str(&content).map_err(Error::from),
22505            ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `models::TargetCreateOutput`"))),
22506            ContentType::Unsupported(unknown_type) => return Err(Error::from(serde_json::Error::custom(format!("Received `{unknown_type}` content type response that cannot be converted to `models::TargetCreateOutput`")))),
22507        }
22508    } else {
22509        let content = resp.text().await?;
22510        let entity: Option<TargetCreateLinkedError> = serde_json::from_str(&content).ok();
22511        Err(Error::ResponseError(ResponseContent { status, content, entity }))
22512    }
22513}
22514
22515pub async fn target_create_open_ai(configuration: &configuration::Configuration, target_create_open_ai: models::TargetCreateOpenAi) -> Result<models::TargetCreateOutput, Error<TargetCreateOpenAiError>> {
22516    // add a prefix to parameters to efficiently prevent name collisions
22517    let p_body_target_create_open_ai = target_create_open_ai;
22518
22519    let uri_str = format!("{}/target-create-openai", configuration.base_path);
22520    let mut req_builder = configuration.client.request(reqwest::Method::POST, &uri_str);
22521
22522    if let Some(ref user_agent) = configuration.user_agent {
22523        req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone());
22524    }
22525    req_builder = req_builder.json(&p_body_target_create_open_ai);
22526
22527    let req = req_builder.build()?;
22528    let resp = configuration.client.execute(req).await?;
22529
22530    let status = resp.status();
22531    let content_type = resp
22532        .headers()
22533        .get("content-type")
22534        .and_then(|v| v.to_str().ok())
22535        .unwrap_or("application/octet-stream");
22536    let content_type = super::ContentType::from(content_type);
22537
22538    if !status.is_client_error() && !status.is_server_error() {
22539        let content = resp.text().await?;
22540        match content_type {
22541            ContentType::Json => serde_json::from_str(&content).map_err(Error::from),
22542            ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `models::TargetCreateOutput`"))),
22543            ContentType::Unsupported(unknown_type) => return Err(Error::from(serde_json::Error::custom(format!("Received `{unknown_type}` content type response that cannot be converted to `models::TargetCreateOutput`")))),
22544        }
22545    } else {
22546        let content = resp.text().await?;
22547        let entity: Option<TargetCreateOpenAiError> = serde_json::from_str(&content).ok();
22548        Err(Error::ResponseError(ResponseContent { status, content, entity }))
22549    }
22550}
22551
22552pub async fn target_create_ping(configuration: &configuration::Configuration, target_create_ping: models::TargetCreatePing) -> Result<models::TargetCreateOutput, Error<TargetCreatePingError>> {
22553    // add a prefix to parameters to efficiently prevent name collisions
22554    let p_body_target_create_ping = target_create_ping;
22555
22556    let uri_str = format!("{}/target-create-ping", configuration.base_path);
22557    let mut req_builder = configuration.client.request(reqwest::Method::POST, &uri_str);
22558
22559    if let Some(ref user_agent) = configuration.user_agent {
22560        req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone());
22561    }
22562    req_builder = req_builder.json(&p_body_target_create_ping);
22563
22564    let req = req_builder.build()?;
22565    let resp = configuration.client.execute(req).await?;
22566
22567    let status = resp.status();
22568    let content_type = resp
22569        .headers()
22570        .get("content-type")
22571        .and_then(|v| v.to_str().ok())
22572        .unwrap_or("application/octet-stream");
22573    let content_type = super::ContentType::from(content_type);
22574
22575    if !status.is_client_error() && !status.is_server_error() {
22576        let content = resp.text().await?;
22577        match content_type {
22578            ContentType::Json => serde_json::from_str(&content).map_err(Error::from),
22579            ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `models::TargetCreateOutput`"))),
22580            ContentType::Unsupported(unknown_type) => return Err(Error::from(serde_json::Error::custom(format!("Received `{unknown_type}` content type response that cannot be converted to `models::TargetCreateOutput`")))),
22581        }
22582    } else {
22583        let content = resp.text().await?;
22584        let entity: Option<TargetCreatePingError> = serde_json::from_str(&content).ok();
22585        Err(Error::ResponseError(ResponseContent { status, content, entity }))
22586    }
22587}
22588
22589pub async fn target_create_rabbit_mq(configuration: &configuration::Configuration, target_create_rabbit_mq: models::TargetCreateRabbitMq) -> Result<models::TargetCreateOutput, Error<TargetCreateRabbitMqError>> {
22590    // add a prefix to parameters to efficiently prevent name collisions
22591    let p_body_target_create_rabbit_mq = target_create_rabbit_mq;
22592
22593    let uri_str = format!("{}/target-create-rabbitmq", configuration.base_path);
22594    let mut req_builder = configuration.client.request(reqwest::Method::POST, &uri_str);
22595
22596    if let Some(ref user_agent) = configuration.user_agent {
22597        req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone());
22598    }
22599    req_builder = req_builder.json(&p_body_target_create_rabbit_mq);
22600
22601    let req = req_builder.build()?;
22602    let resp = configuration.client.execute(req).await?;
22603
22604    let status = resp.status();
22605    let content_type = resp
22606        .headers()
22607        .get("content-type")
22608        .and_then(|v| v.to_str().ok())
22609        .unwrap_or("application/octet-stream");
22610    let content_type = super::ContentType::from(content_type);
22611
22612    if !status.is_client_error() && !status.is_server_error() {
22613        let content = resp.text().await?;
22614        match content_type {
22615            ContentType::Json => serde_json::from_str(&content).map_err(Error::from),
22616            ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `models::TargetCreateOutput`"))),
22617            ContentType::Unsupported(unknown_type) => return Err(Error::from(serde_json::Error::custom(format!("Received `{unknown_type}` content type response that cannot be converted to `models::TargetCreateOutput`")))),
22618        }
22619    } else {
22620        let content = resp.text().await?;
22621        let entity: Option<TargetCreateRabbitMqError> = serde_json::from_str(&content).ok();
22622        Err(Error::ResponseError(ResponseContent { status, content, entity }))
22623    }
22624}
22625
22626pub async fn target_create_salesforce(configuration: &configuration::Configuration, target_create_salesforce: models::TargetCreateSalesforce) -> Result<models::TargetCreateOutput, Error<TargetCreateSalesforceError>> {
22627    // add a prefix to parameters to efficiently prevent name collisions
22628    let p_body_target_create_salesforce = target_create_salesforce;
22629
22630    let uri_str = format!("{}/target-create-salesforce", configuration.base_path);
22631    let mut req_builder = configuration.client.request(reqwest::Method::POST, &uri_str);
22632
22633    if let Some(ref user_agent) = configuration.user_agent {
22634        req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone());
22635    }
22636    req_builder = req_builder.json(&p_body_target_create_salesforce);
22637
22638    let req = req_builder.build()?;
22639    let resp = configuration.client.execute(req).await?;
22640
22641    let status = resp.status();
22642    let content_type = resp
22643        .headers()
22644        .get("content-type")
22645        .and_then(|v| v.to_str().ok())
22646        .unwrap_or("application/octet-stream");
22647    let content_type = super::ContentType::from(content_type);
22648
22649    if !status.is_client_error() && !status.is_server_error() {
22650        let content = resp.text().await?;
22651        match content_type {
22652            ContentType::Json => serde_json::from_str(&content).map_err(Error::from),
22653            ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `models::TargetCreateOutput`"))),
22654            ContentType::Unsupported(unknown_type) => return Err(Error::from(serde_json::Error::custom(format!("Received `{unknown_type}` content type response that cannot be converted to `models::TargetCreateOutput`")))),
22655        }
22656    } else {
22657        let content = resp.text().await?;
22658        let entity: Option<TargetCreateSalesforceError> = serde_json::from_str(&content).ok();
22659        Err(Error::ResponseError(ResponseContent { status, content, entity }))
22660    }
22661}
22662
22663pub async fn target_create_sectigo(configuration: &configuration::Configuration, target_create_sectigo: models::TargetCreateSectigo) -> Result<models::TargetCreateOutput, Error<TargetCreateSectigoError>> {
22664    // add a prefix to parameters to efficiently prevent name collisions
22665    let p_body_target_create_sectigo = target_create_sectigo;
22666
22667    let uri_str = format!("{}/target-create-sectigo", configuration.base_path);
22668    let mut req_builder = configuration.client.request(reqwest::Method::POST, &uri_str);
22669
22670    if let Some(ref user_agent) = configuration.user_agent {
22671        req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone());
22672    }
22673    req_builder = req_builder.json(&p_body_target_create_sectigo);
22674
22675    let req = req_builder.build()?;
22676    let resp = configuration.client.execute(req).await?;
22677
22678    let status = resp.status();
22679    let content_type = resp
22680        .headers()
22681        .get("content-type")
22682        .and_then(|v| v.to_str().ok())
22683        .unwrap_or("application/octet-stream");
22684    let content_type = super::ContentType::from(content_type);
22685
22686    if !status.is_client_error() && !status.is_server_error() {
22687        let content = resp.text().await?;
22688        match content_type {
22689            ContentType::Json => serde_json::from_str(&content).map_err(Error::from),
22690            ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `models::TargetCreateOutput`"))),
22691            ContentType::Unsupported(unknown_type) => return Err(Error::from(serde_json::Error::custom(format!("Received `{unknown_type}` content type response that cannot be converted to `models::TargetCreateOutput`")))),
22692        }
22693    } else {
22694        let content = resp.text().await?;
22695        let entity: Option<TargetCreateSectigoError> = serde_json::from_str(&content).ok();
22696        Err(Error::ResponseError(ResponseContent { status, content, entity }))
22697    }
22698}
22699
22700pub async fn target_create_splunk(configuration: &configuration::Configuration, target_create_splunk: models::TargetCreateSplunk) -> Result<models::TargetCreateOutput, Error<TargetCreateSplunkError>> {
22701    // add a prefix to parameters to efficiently prevent name collisions
22702    let p_body_target_create_splunk = target_create_splunk;
22703
22704    let uri_str = format!("{}/target-create-splunk", configuration.base_path);
22705    let mut req_builder = configuration.client.request(reqwest::Method::POST, &uri_str);
22706
22707    if let Some(ref user_agent) = configuration.user_agent {
22708        req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone());
22709    }
22710    req_builder = req_builder.json(&p_body_target_create_splunk);
22711
22712    let req = req_builder.build()?;
22713    let resp = configuration.client.execute(req).await?;
22714
22715    let status = resp.status();
22716    let content_type = resp
22717        .headers()
22718        .get("content-type")
22719        .and_then(|v| v.to_str().ok())
22720        .unwrap_or("application/octet-stream");
22721    let content_type = super::ContentType::from(content_type);
22722
22723    if !status.is_client_error() && !status.is_server_error() {
22724        let content = resp.text().await?;
22725        match content_type {
22726            ContentType::Json => serde_json::from_str(&content).map_err(Error::from),
22727            ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `models::TargetCreateOutput`"))),
22728            ContentType::Unsupported(unknown_type) => return Err(Error::from(serde_json::Error::custom(format!("Received `{unknown_type}` content type response that cannot be converted to `models::TargetCreateOutput`")))),
22729        }
22730    } else {
22731        let content = resp.text().await?;
22732        let entity: Option<TargetCreateSplunkError> = serde_json::from_str(&content).ok();
22733        Err(Error::ResponseError(ResponseContent { status, content, entity }))
22734    }
22735}
22736
22737pub async fn target_create_ssh(configuration: &configuration::Configuration, target_create_ssh: models::TargetCreateSsh) -> Result<models::TargetCreateOutput, Error<TargetCreateSshError>> {
22738    // add a prefix to parameters to efficiently prevent name collisions
22739    let p_body_target_create_ssh = target_create_ssh;
22740
22741    let uri_str = format!("{}/target-create-ssh", configuration.base_path);
22742    let mut req_builder = configuration.client.request(reqwest::Method::POST, &uri_str);
22743
22744    if let Some(ref user_agent) = configuration.user_agent {
22745        req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone());
22746    }
22747    req_builder = req_builder.json(&p_body_target_create_ssh);
22748
22749    let req = req_builder.build()?;
22750    let resp = configuration.client.execute(req).await?;
22751
22752    let status = resp.status();
22753    let content_type = resp
22754        .headers()
22755        .get("content-type")
22756        .and_then(|v| v.to_str().ok())
22757        .unwrap_or("application/octet-stream");
22758    let content_type = super::ContentType::from(content_type);
22759
22760    if !status.is_client_error() && !status.is_server_error() {
22761        let content = resp.text().await?;
22762        match content_type {
22763            ContentType::Json => serde_json::from_str(&content).map_err(Error::from),
22764            ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `models::TargetCreateOutput`"))),
22765            ContentType::Unsupported(unknown_type) => return Err(Error::from(serde_json::Error::custom(format!("Received `{unknown_type}` content type response that cannot be converted to `models::TargetCreateOutput`")))),
22766        }
22767    } else {
22768        let content = resp.text().await?;
22769        let entity: Option<TargetCreateSshError> = serde_json::from_str(&content).ok();
22770        Err(Error::ResponseError(ResponseContent { status, content, entity }))
22771    }
22772}
22773
22774pub async fn target_create_web(configuration: &configuration::Configuration, target_create_web: models::TargetCreateWeb) -> Result<models::TargetCreateOutput, Error<TargetCreateWebError>> {
22775    // add a prefix to parameters to efficiently prevent name collisions
22776    let p_body_target_create_web = target_create_web;
22777
22778    let uri_str = format!("{}/target-create-web", configuration.base_path);
22779    let mut req_builder = configuration.client.request(reqwest::Method::POST, &uri_str);
22780
22781    if let Some(ref user_agent) = configuration.user_agent {
22782        req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone());
22783    }
22784    req_builder = req_builder.json(&p_body_target_create_web);
22785
22786    let req = req_builder.build()?;
22787    let resp = configuration.client.execute(req).await?;
22788
22789    let status = resp.status();
22790    let content_type = resp
22791        .headers()
22792        .get("content-type")
22793        .and_then(|v| v.to_str().ok())
22794        .unwrap_or("application/octet-stream");
22795    let content_type = super::ContentType::from(content_type);
22796
22797    if !status.is_client_error() && !status.is_server_error() {
22798        let content = resp.text().await?;
22799        match content_type {
22800            ContentType::Json => serde_json::from_str(&content).map_err(Error::from),
22801            ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `models::TargetCreateOutput`"))),
22802            ContentType::Unsupported(unknown_type) => return Err(Error::from(serde_json::Error::custom(format!("Received `{unknown_type}` content type response that cannot be converted to `models::TargetCreateOutput`")))),
22803        }
22804    } else {
22805        let content = resp.text().await?;
22806        let entity: Option<TargetCreateWebError> = serde_json::from_str(&content).ok();
22807        Err(Error::ResponseError(ResponseContent { status, content, entity }))
22808    }
22809}
22810
22811pub async fn target_create_windows(configuration: &configuration::Configuration, target_create_windows: models::TargetCreateWindows) -> Result<models::TargetCreateOutput, Error<TargetCreateWindowsError>> {
22812    // add a prefix to parameters to efficiently prevent name collisions
22813    let p_body_target_create_windows = target_create_windows;
22814
22815    let uri_str = format!("{}/target-create-windows", configuration.base_path);
22816    let mut req_builder = configuration.client.request(reqwest::Method::POST, &uri_str);
22817
22818    if let Some(ref user_agent) = configuration.user_agent {
22819        req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone());
22820    }
22821    req_builder = req_builder.json(&p_body_target_create_windows);
22822
22823    let req = req_builder.build()?;
22824    let resp = configuration.client.execute(req).await?;
22825
22826    let status = resp.status();
22827    let content_type = resp
22828        .headers()
22829        .get("content-type")
22830        .and_then(|v| v.to_str().ok())
22831        .unwrap_or("application/octet-stream");
22832    let content_type = super::ContentType::from(content_type);
22833
22834    if !status.is_client_error() && !status.is_server_error() {
22835        let content = resp.text().await?;
22836        match content_type {
22837            ContentType::Json => serde_json::from_str(&content).map_err(Error::from),
22838            ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `models::TargetCreateOutput`"))),
22839            ContentType::Unsupported(unknown_type) => return Err(Error::from(serde_json::Error::custom(format!("Received `{unknown_type}` content type response that cannot be converted to `models::TargetCreateOutput`")))),
22840        }
22841    } else {
22842        let content = resp.text().await?;
22843        let entity: Option<TargetCreateWindowsError> = serde_json::from_str(&content).ok();
22844        Err(Error::ResponseError(ResponseContent { status, content, entity }))
22845    }
22846}
22847
22848pub async fn target_create_zero_ssl(configuration: &configuration::Configuration, target_create_zero_ssl: models::TargetCreateZeroSsl) -> Result<models::TargetCreateOutput, Error<TargetCreateZeroSslError>> {
22849    // add a prefix to parameters to efficiently prevent name collisions
22850    let p_body_target_create_zero_ssl = target_create_zero_ssl;
22851
22852    let uri_str = format!("{}/target-create-zerossl", configuration.base_path);
22853    let mut req_builder = configuration.client.request(reqwest::Method::POST, &uri_str);
22854
22855    if let Some(ref user_agent) = configuration.user_agent {
22856        req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone());
22857    }
22858    req_builder = req_builder.json(&p_body_target_create_zero_ssl);
22859
22860    let req = req_builder.build()?;
22861    let resp = configuration.client.execute(req).await?;
22862
22863    let status = resp.status();
22864    let content_type = resp
22865        .headers()
22866        .get("content-type")
22867        .and_then(|v| v.to_str().ok())
22868        .unwrap_or("application/octet-stream");
22869    let content_type = super::ContentType::from(content_type);
22870
22871    if !status.is_client_error() && !status.is_server_error() {
22872        let content = resp.text().await?;
22873        match content_type {
22874            ContentType::Json => serde_json::from_str(&content).map_err(Error::from),
22875            ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `models::TargetCreateOutput`"))),
22876            ContentType::Unsupported(unknown_type) => return Err(Error::from(serde_json::Error::custom(format!("Received `{unknown_type}` content type response that cannot be converted to `models::TargetCreateOutput`")))),
22877        }
22878    } else {
22879        let content = resp.text().await?;
22880        let entity: Option<TargetCreateZeroSslError> = serde_json::from_str(&content).ok();
22881        Err(Error::ResponseError(ResponseContent { status, content, entity }))
22882    }
22883}
22884
22885pub async fn target_delete(configuration: &configuration::Configuration, target_delete: models::TargetDelete) -> Result<serde_json::Value, Error<TargetDeleteError>> {
22886    // add a prefix to parameters to efficiently prevent name collisions
22887    let p_body_target_delete = target_delete;
22888
22889    let uri_str = format!("{}/target-delete", configuration.base_path);
22890    let mut req_builder = configuration.client.request(reqwest::Method::POST, &uri_str);
22891
22892    if let Some(ref user_agent) = configuration.user_agent {
22893        req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone());
22894    }
22895    req_builder = req_builder.json(&p_body_target_delete);
22896
22897    let req = req_builder.build()?;
22898    let resp = configuration.client.execute(req).await?;
22899
22900    let status = resp.status();
22901    let content_type = resp
22902        .headers()
22903        .get("content-type")
22904        .and_then(|v| v.to_str().ok())
22905        .unwrap_or("application/octet-stream");
22906    let content_type = super::ContentType::from(content_type);
22907
22908    if !status.is_client_error() && !status.is_server_error() {
22909        let content = resp.text().await?;
22910        match content_type {
22911            ContentType::Json => serde_json::from_str(&content).map_err(Error::from),
22912            ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `serde_json::Value`"))),
22913            ContentType::Unsupported(unknown_type) => return Err(Error::from(serde_json::Error::custom(format!("Received `{unknown_type}` content type response that cannot be converted to `serde_json::Value`")))),
22914        }
22915    } else {
22916        let content = resp.text().await?;
22917        let entity: Option<TargetDeleteError> = serde_json::from_str(&content).ok();
22918        Err(Error::ResponseError(ResponseContent { status, content, entity }))
22919    }
22920}
22921
22922pub async fn target_get(configuration: &configuration::Configuration, target_get: models::TargetGet) -> Result<models::Target, Error<TargetGetError>> {
22923    // add a prefix to parameters to efficiently prevent name collisions
22924    let p_body_target_get = target_get;
22925
22926    let uri_str = format!("{}/target-get", configuration.base_path);
22927    let mut req_builder = configuration.client.request(reqwest::Method::POST, &uri_str);
22928
22929    if let Some(ref user_agent) = configuration.user_agent {
22930        req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone());
22931    }
22932    req_builder = req_builder.json(&p_body_target_get);
22933
22934    let req = req_builder.build()?;
22935    let resp = configuration.client.execute(req).await?;
22936
22937    let status = resp.status();
22938    let content_type = resp
22939        .headers()
22940        .get("content-type")
22941        .and_then(|v| v.to_str().ok())
22942        .unwrap_or("application/octet-stream");
22943    let content_type = super::ContentType::from(content_type);
22944
22945    if !status.is_client_error() && !status.is_server_error() {
22946        let content = resp.text().await?;
22947        match content_type {
22948            ContentType::Json => serde_json::from_str(&content).map_err(Error::from),
22949            ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `models::Target`"))),
22950            ContentType::Unsupported(unknown_type) => return Err(Error::from(serde_json::Error::custom(format!("Received `{unknown_type}` content type response that cannot be converted to `models::Target`")))),
22951        }
22952    } else {
22953        let content = resp.text().await?;
22954        let entity: Option<TargetGetError> = serde_json::from_str(&content).ok();
22955        Err(Error::ResponseError(ResponseContent { status, content, entity }))
22956    }
22957}
22958
22959pub async fn target_get_details(configuration: &configuration::Configuration, target_get_details: models::TargetGetDetails) -> Result<models::GetTargetDetailsOutput, Error<TargetGetDetailsError>> {
22960    // add a prefix to parameters to efficiently prevent name collisions
22961    let p_body_target_get_details = target_get_details;
22962
22963    let uri_str = format!("{}/target-get-details", configuration.base_path);
22964    let mut req_builder = configuration.client.request(reqwest::Method::POST, &uri_str);
22965
22966    if let Some(ref user_agent) = configuration.user_agent {
22967        req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone());
22968    }
22969    req_builder = req_builder.json(&p_body_target_get_details);
22970
22971    let req = req_builder.build()?;
22972    let resp = configuration.client.execute(req).await?;
22973
22974    let status = resp.status();
22975    let content_type = resp
22976        .headers()
22977        .get("content-type")
22978        .and_then(|v| v.to_str().ok())
22979        .unwrap_or("application/octet-stream");
22980    let content_type = super::ContentType::from(content_type);
22981
22982    if !status.is_client_error() && !status.is_server_error() {
22983        let content = resp.text().await?;
22984        match content_type {
22985            ContentType::Json => serde_json::from_str(&content).map_err(Error::from),
22986            ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `models::GetTargetDetailsOutput`"))),
22987            ContentType::Unsupported(unknown_type) => return Err(Error::from(serde_json::Error::custom(format!("Received `{unknown_type}` content type response that cannot be converted to `models::GetTargetDetailsOutput`")))),
22988        }
22989    } else {
22990        let content = resp.text().await?;
22991        let entity: Option<TargetGetDetailsError> = serde_json::from_str(&content).ok();
22992        Err(Error::ResponseError(ResponseContent { status, content, entity }))
22993    }
22994}
22995
22996pub async fn target_list(configuration: &configuration::Configuration, target_list: models::TargetList) -> Result<models::ListTargetsOutput, Error<TargetListError>> {
22997    // add a prefix to parameters to efficiently prevent name collisions
22998    let p_body_target_list = target_list;
22999
23000    let uri_str = format!("{}/target-list", configuration.base_path);
23001    let mut req_builder = configuration.client.request(reqwest::Method::POST, &uri_str);
23002
23003    if let Some(ref user_agent) = configuration.user_agent {
23004        req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone());
23005    }
23006    req_builder = req_builder.json(&p_body_target_list);
23007
23008    let req = req_builder.build()?;
23009    let resp = configuration.client.execute(req).await?;
23010
23011    let status = resp.status();
23012    let content_type = resp
23013        .headers()
23014        .get("content-type")
23015        .and_then(|v| v.to_str().ok())
23016        .unwrap_or("application/octet-stream");
23017    let content_type = super::ContentType::from(content_type);
23018
23019    if !status.is_client_error() && !status.is_server_error() {
23020        let content = resp.text().await?;
23021        match content_type {
23022            ContentType::Json => serde_json::from_str(&content).map_err(Error::from),
23023            ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `models::ListTargetsOutput`"))),
23024            ContentType::Unsupported(unknown_type) => return Err(Error::from(serde_json::Error::custom(format!("Received `{unknown_type}` content type response that cannot be converted to `models::ListTargetsOutput`")))),
23025        }
23026    } else {
23027        let content = resp.text().await?;
23028        let entity: Option<TargetListError> = serde_json::from_str(&content).ok();
23029        Err(Error::ResponseError(ResponseContent { status, content, entity }))
23030    }
23031}
23032
23033pub async fn target_update_artifactory(configuration: &configuration::Configuration, target_update_artifactory: models::TargetUpdateArtifactory) -> Result<models::TargetUpdateOutput, Error<TargetUpdateArtifactoryError>> {
23034    // add a prefix to parameters to efficiently prevent name collisions
23035    let p_body_target_update_artifactory = target_update_artifactory;
23036
23037    let uri_str = format!("{}/target-update-artifactory", configuration.base_path);
23038    let mut req_builder = configuration.client.request(reqwest::Method::POST, &uri_str);
23039
23040    if let Some(ref user_agent) = configuration.user_agent {
23041        req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone());
23042    }
23043    req_builder = req_builder.json(&p_body_target_update_artifactory);
23044
23045    let req = req_builder.build()?;
23046    let resp = configuration.client.execute(req).await?;
23047
23048    let status = resp.status();
23049    let content_type = resp
23050        .headers()
23051        .get("content-type")
23052        .and_then(|v| v.to_str().ok())
23053        .unwrap_or("application/octet-stream");
23054    let content_type = super::ContentType::from(content_type);
23055
23056    if !status.is_client_error() && !status.is_server_error() {
23057        let content = resp.text().await?;
23058        match content_type {
23059            ContentType::Json => serde_json::from_str(&content).map_err(Error::from),
23060            ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `models::TargetUpdateOutput`"))),
23061            ContentType::Unsupported(unknown_type) => return Err(Error::from(serde_json::Error::custom(format!("Received `{unknown_type}` content type response that cannot be converted to `models::TargetUpdateOutput`")))),
23062        }
23063    } else {
23064        let content = resp.text().await?;
23065        let entity: Option<TargetUpdateArtifactoryError> = serde_json::from_str(&content).ok();
23066        Err(Error::ResponseError(ResponseContent { status, content, entity }))
23067    }
23068}
23069
23070pub async fn target_update_aws(configuration: &configuration::Configuration, target_update_aws: models::TargetUpdateAws) -> Result<models::TargetUpdateOutput, Error<TargetUpdateAwsError>> {
23071    // add a prefix to parameters to efficiently prevent name collisions
23072    let p_body_target_update_aws = target_update_aws;
23073
23074    let uri_str = format!("{}/target-update-aws", configuration.base_path);
23075    let mut req_builder = configuration.client.request(reqwest::Method::POST, &uri_str);
23076
23077    if let Some(ref user_agent) = configuration.user_agent {
23078        req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone());
23079    }
23080    req_builder = req_builder.json(&p_body_target_update_aws);
23081
23082    let req = req_builder.build()?;
23083    let resp = configuration.client.execute(req).await?;
23084
23085    let status = resp.status();
23086    let content_type = resp
23087        .headers()
23088        .get("content-type")
23089        .and_then(|v| v.to_str().ok())
23090        .unwrap_or("application/octet-stream");
23091    let content_type = super::ContentType::from(content_type);
23092
23093    if !status.is_client_error() && !status.is_server_error() {
23094        let content = resp.text().await?;
23095        match content_type {
23096            ContentType::Json => serde_json::from_str(&content).map_err(Error::from),
23097            ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `models::TargetUpdateOutput`"))),
23098            ContentType::Unsupported(unknown_type) => return Err(Error::from(serde_json::Error::custom(format!("Received `{unknown_type}` content type response that cannot be converted to `models::TargetUpdateOutput`")))),
23099        }
23100    } else {
23101        let content = resp.text().await?;
23102        let entity: Option<TargetUpdateAwsError> = serde_json::from_str(&content).ok();
23103        Err(Error::ResponseError(ResponseContent { status, content, entity }))
23104    }
23105}
23106
23107pub async fn target_update_azure(configuration: &configuration::Configuration, target_update_azure: models::TargetUpdateAzure) -> Result<models::TargetUpdateOutput, Error<TargetUpdateAzureError>> {
23108    // add a prefix to parameters to efficiently prevent name collisions
23109    let p_body_target_update_azure = target_update_azure;
23110
23111    let uri_str = format!("{}/target-update-azure", configuration.base_path);
23112    let mut req_builder = configuration.client.request(reqwest::Method::POST, &uri_str);
23113
23114    if let Some(ref user_agent) = configuration.user_agent {
23115        req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone());
23116    }
23117    req_builder = req_builder.json(&p_body_target_update_azure);
23118
23119    let req = req_builder.build()?;
23120    let resp = configuration.client.execute(req).await?;
23121
23122    let status = resp.status();
23123    let content_type = resp
23124        .headers()
23125        .get("content-type")
23126        .and_then(|v| v.to_str().ok())
23127        .unwrap_or("application/octet-stream");
23128    let content_type = super::ContentType::from(content_type);
23129
23130    if !status.is_client_error() && !status.is_server_error() {
23131        let content = resp.text().await?;
23132        match content_type {
23133            ContentType::Json => serde_json::from_str(&content).map_err(Error::from),
23134            ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `models::TargetUpdateOutput`"))),
23135            ContentType::Unsupported(unknown_type) => return Err(Error::from(serde_json::Error::custom(format!("Received `{unknown_type}` content type response that cannot be converted to `models::TargetUpdateOutput`")))),
23136        }
23137    } else {
23138        let content = resp.text().await?;
23139        let entity: Option<TargetUpdateAzureError> = serde_json::from_str(&content).ok();
23140        Err(Error::ResponseError(ResponseContent { status, content, entity }))
23141    }
23142}
23143
23144pub async fn target_update_db(configuration: &configuration::Configuration, target_update_db: models::TargetUpdateDb) -> Result<models::TargetUpdateOutput, Error<TargetUpdateDbError>> {
23145    // add a prefix to parameters to efficiently prevent name collisions
23146    let p_body_target_update_db = target_update_db;
23147
23148    let uri_str = format!("{}/target-update-db", configuration.base_path);
23149    let mut req_builder = configuration.client.request(reqwest::Method::POST, &uri_str);
23150
23151    if let Some(ref user_agent) = configuration.user_agent {
23152        req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone());
23153    }
23154    req_builder = req_builder.json(&p_body_target_update_db);
23155
23156    let req = req_builder.build()?;
23157    let resp = configuration.client.execute(req).await?;
23158
23159    let status = resp.status();
23160    let content_type = resp
23161        .headers()
23162        .get("content-type")
23163        .and_then(|v| v.to_str().ok())
23164        .unwrap_or("application/octet-stream");
23165    let content_type = super::ContentType::from(content_type);
23166
23167    if !status.is_client_error() && !status.is_server_error() {
23168        let content = resp.text().await?;
23169        match content_type {
23170            ContentType::Json => serde_json::from_str(&content).map_err(Error::from),
23171            ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `models::TargetUpdateOutput`"))),
23172            ContentType::Unsupported(unknown_type) => return Err(Error::from(serde_json::Error::custom(format!("Received `{unknown_type}` content type response that cannot be converted to `models::TargetUpdateOutput`")))),
23173        }
23174    } else {
23175        let content = resp.text().await?;
23176        let entity: Option<TargetUpdateDbError> = serde_json::from_str(&content).ok();
23177        Err(Error::ResponseError(ResponseContent { status, content, entity }))
23178    }
23179}
23180
23181pub async fn target_update_dockerhub(configuration: &configuration::Configuration, target_update_dockerhub: models::TargetUpdateDockerhub) -> Result<models::TargetUpdateOutput, Error<TargetUpdateDockerhubError>> {
23182    // add a prefix to parameters to efficiently prevent name collisions
23183    let p_body_target_update_dockerhub = target_update_dockerhub;
23184
23185    let uri_str = format!("{}/target-update-dockerhub", configuration.base_path);
23186    let mut req_builder = configuration.client.request(reqwest::Method::POST, &uri_str);
23187
23188    if let Some(ref user_agent) = configuration.user_agent {
23189        req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone());
23190    }
23191    req_builder = req_builder.json(&p_body_target_update_dockerhub);
23192
23193    let req = req_builder.build()?;
23194    let resp = configuration.client.execute(req).await?;
23195
23196    let status = resp.status();
23197    let content_type = resp
23198        .headers()
23199        .get("content-type")
23200        .and_then(|v| v.to_str().ok())
23201        .unwrap_or("application/octet-stream");
23202    let content_type = super::ContentType::from(content_type);
23203
23204    if !status.is_client_error() && !status.is_server_error() {
23205        let content = resp.text().await?;
23206        match content_type {
23207            ContentType::Json => serde_json::from_str(&content).map_err(Error::from),
23208            ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `models::TargetUpdateOutput`"))),
23209            ContentType::Unsupported(unknown_type) => return Err(Error::from(serde_json::Error::custom(format!("Received `{unknown_type}` content type response that cannot be converted to `models::TargetUpdateOutput`")))),
23210        }
23211    } else {
23212        let content = resp.text().await?;
23213        let entity: Option<TargetUpdateDockerhubError> = serde_json::from_str(&content).ok();
23214        Err(Error::ResponseError(ResponseContent { status, content, entity }))
23215    }
23216}
23217
23218pub async fn target_update_eks(configuration: &configuration::Configuration, target_update_eks: models::TargetUpdateEks) -> Result<models::TargetUpdateOutput, Error<TargetUpdateEksError>> {
23219    // add a prefix to parameters to efficiently prevent name collisions
23220    let p_body_target_update_eks = target_update_eks;
23221
23222    let uri_str = format!("{}/target-update-eks", configuration.base_path);
23223    let mut req_builder = configuration.client.request(reqwest::Method::POST, &uri_str);
23224
23225    if let Some(ref user_agent) = configuration.user_agent {
23226        req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone());
23227    }
23228    req_builder = req_builder.json(&p_body_target_update_eks);
23229
23230    let req = req_builder.build()?;
23231    let resp = configuration.client.execute(req).await?;
23232
23233    let status = resp.status();
23234    let content_type = resp
23235        .headers()
23236        .get("content-type")
23237        .and_then(|v| v.to_str().ok())
23238        .unwrap_or("application/octet-stream");
23239    let content_type = super::ContentType::from(content_type);
23240
23241    if !status.is_client_error() && !status.is_server_error() {
23242        let content = resp.text().await?;
23243        match content_type {
23244            ContentType::Json => serde_json::from_str(&content).map_err(Error::from),
23245            ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `models::TargetUpdateOutput`"))),
23246            ContentType::Unsupported(unknown_type) => return Err(Error::from(serde_json::Error::custom(format!("Received `{unknown_type}` content type response that cannot be converted to `models::TargetUpdateOutput`")))),
23247        }
23248    } else {
23249        let content = resp.text().await?;
23250        let entity: Option<TargetUpdateEksError> = serde_json::from_str(&content).ok();
23251        Err(Error::ResponseError(ResponseContent { status, content, entity }))
23252    }
23253}
23254
23255pub async fn target_update_gcp(configuration: &configuration::Configuration, target_update_gcp: models::TargetUpdateGcp) -> Result<models::TargetUpdateOutput, Error<TargetUpdateGcpError>> {
23256    // add a prefix to parameters to efficiently prevent name collisions
23257    let p_body_target_update_gcp = target_update_gcp;
23258
23259    let uri_str = format!("{}/target-update-gcp", configuration.base_path);
23260    let mut req_builder = configuration.client.request(reqwest::Method::POST, &uri_str);
23261
23262    if let Some(ref user_agent) = configuration.user_agent {
23263        req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone());
23264    }
23265    req_builder = req_builder.json(&p_body_target_update_gcp);
23266
23267    let req = req_builder.build()?;
23268    let resp = configuration.client.execute(req).await?;
23269
23270    let status = resp.status();
23271    let content_type = resp
23272        .headers()
23273        .get("content-type")
23274        .and_then(|v| v.to_str().ok())
23275        .unwrap_or("application/octet-stream");
23276    let content_type = super::ContentType::from(content_type);
23277
23278    if !status.is_client_error() && !status.is_server_error() {
23279        let content = resp.text().await?;
23280        match content_type {
23281            ContentType::Json => serde_json::from_str(&content).map_err(Error::from),
23282            ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `models::TargetUpdateOutput`"))),
23283            ContentType::Unsupported(unknown_type) => return Err(Error::from(serde_json::Error::custom(format!("Received `{unknown_type}` content type response that cannot be converted to `models::TargetUpdateOutput`")))),
23284        }
23285    } else {
23286        let content = resp.text().await?;
23287        let entity: Option<TargetUpdateGcpError> = serde_json::from_str(&content).ok();
23288        Err(Error::ResponseError(ResponseContent { status, content, entity }))
23289    }
23290}
23291
23292pub async fn target_update_gemini(configuration: &configuration::Configuration, target_update_gemini: models::TargetUpdateGemini) -> Result<models::TargetUpdateOutput, Error<TargetUpdateGeminiError>> {
23293    // add a prefix to parameters to efficiently prevent name collisions
23294    let p_body_target_update_gemini = target_update_gemini;
23295
23296    let uri_str = format!("{}/target-update-gemini", configuration.base_path);
23297    let mut req_builder = configuration.client.request(reqwest::Method::POST, &uri_str);
23298
23299    if let Some(ref user_agent) = configuration.user_agent {
23300        req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone());
23301    }
23302    req_builder = req_builder.json(&p_body_target_update_gemini);
23303
23304    let req = req_builder.build()?;
23305    let resp = configuration.client.execute(req).await?;
23306
23307    let status = resp.status();
23308    let content_type = resp
23309        .headers()
23310        .get("content-type")
23311        .and_then(|v| v.to_str().ok())
23312        .unwrap_or("application/octet-stream");
23313    let content_type = super::ContentType::from(content_type);
23314
23315    if !status.is_client_error() && !status.is_server_error() {
23316        let content = resp.text().await?;
23317        match content_type {
23318            ContentType::Json => serde_json::from_str(&content).map_err(Error::from),
23319            ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `models::TargetUpdateOutput`"))),
23320            ContentType::Unsupported(unknown_type) => return Err(Error::from(serde_json::Error::custom(format!("Received `{unknown_type}` content type response that cannot be converted to `models::TargetUpdateOutput`")))),
23321        }
23322    } else {
23323        let content = resp.text().await?;
23324        let entity: Option<TargetUpdateGeminiError> = serde_json::from_str(&content).ok();
23325        Err(Error::ResponseError(ResponseContent { status, content, entity }))
23326    }
23327}
23328
23329pub async fn target_update_github(configuration: &configuration::Configuration, target_update_github: models::TargetUpdateGithub) -> Result<models::TargetUpdateOutput, Error<TargetUpdateGithubError>> {
23330    // add a prefix to parameters to efficiently prevent name collisions
23331    let p_body_target_update_github = target_update_github;
23332
23333    let uri_str = format!("{}/target-update-github", configuration.base_path);
23334    let mut req_builder = configuration.client.request(reqwest::Method::POST, &uri_str);
23335
23336    if let Some(ref user_agent) = configuration.user_agent {
23337        req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone());
23338    }
23339    req_builder = req_builder.json(&p_body_target_update_github);
23340
23341    let req = req_builder.build()?;
23342    let resp = configuration.client.execute(req).await?;
23343
23344    let status = resp.status();
23345    let content_type = resp
23346        .headers()
23347        .get("content-type")
23348        .and_then(|v| v.to_str().ok())
23349        .unwrap_or("application/octet-stream");
23350    let content_type = super::ContentType::from(content_type);
23351
23352    if !status.is_client_error() && !status.is_server_error() {
23353        let content = resp.text().await?;
23354        match content_type {
23355            ContentType::Json => serde_json::from_str(&content).map_err(Error::from),
23356            ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `models::TargetUpdateOutput`"))),
23357            ContentType::Unsupported(unknown_type) => return Err(Error::from(serde_json::Error::custom(format!("Received `{unknown_type}` content type response that cannot be converted to `models::TargetUpdateOutput`")))),
23358        }
23359    } else {
23360        let content = resp.text().await?;
23361        let entity: Option<TargetUpdateGithubError> = serde_json::from_str(&content).ok();
23362        Err(Error::ResponseError(ResponseContent { status, content, entity }))
23363    }
23364}
23365
23366pub async fn target_update_gitlab(configuration: &configuration::Configuration, target_update_gitlab: models::TargetUpdateGitlab) -> Result<models::TargetUpdateOutput, Error<TargetUpdateGitlabError>> {
23367    // add a prefix to parameters to efficiently prevent name collisions
23368    let p_body_target_update_gitlab = target_update_gitlab;
23369
23370    let uri_str = format!("{}/target-update-gitlab", configuration.base_path);
23371    let mut req_builder = configuration.client.request(reqwest::Method::POST, &uri_str);
23372
23373    if let Some(ref user_agent) = configuration.user_agent {
23374        req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone());
23375    }
23376    req_builder = req_builder.json(&p_body_target_update_gitlab);
23377
23378    let req = req_builder.build()?;
23379    let resp = configuration.client.execute(req).await?;
23380
23381    let status = resp.status();
23382    let content_type = resp
23383        .headers()
23384        .get("content-type")
23385        .and_then(|v| v.to_str().ok())
23386        .unwrap_or("application/octet-stream");
23387    let content_type = super::ContentType::from(content_type);
23388
23389    if !status.is_client_error() && !status.is_server_error() {
23390        let content = resp.text().await?;
23391        match content_type {
23392            ContentType::Json => serde_json::from_str(&content).map_err(Error::from),
23393            ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `models::TargetUpdateOutput`"))),
23394            ContentType::Unsupported(unknown_type) => return Err(Error::from(serde_json::Error::custom(format!("Received `{unknown_type}` content type response that cannot be converted to `models::TargetUpdateOutput`")))),
23395        }
23396    } else {
23397        let content = resp.text().await?;
23398        let entity: Option<TargetUpdateGitlabError> = serde_json::from_str(&content).ok();
23399        Err(Error::ResponseError(ResponseContent { status, content, entity }))
23400    }
23401}
23402
23403pub async fn target_update_gke(configuration: &configuration::Configuration, target_update_gke: models::TargetUpdateGke) -> Result<models::TargetUpdateOutput, Error<TargetUpdateGkeError>> {
23404    // add a prefix to parameters to efficiently prevent name collisions
23405    let p_body_target_update_gke = target_update_gke;
23406
23407    let uri_str = format!("{}/target-update-gke", configuration.base_path);
23408    let mut req_builder = configuration.client.request(reqwest::Method::POST, &uri_str);
23409
23410    if let Some(ref user_agent) = configuration.user_agent {
23411        req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone());
23412    }
23413    req_builder = req_builder.json(&p_body_target_update_gke);
23414
23415    let req = req_builder.build()?;
23416    let resp = configuration.client.execute(req).await?;
23417
23418    let status = resp.status();
23419    let content_type = resp
23420        .headers()
23421        .get("content-type")
23422        .and_then(|v| v.to_str().ok())
23423        .unwrap_or("application/octet-stream");
23424    let content_type = super::ContentType::from(content_type);
23425
23426    if !status.is_client_error() && !status.is_server_error() {
23427        let content = resp.text().await?;
23428        match content_type {
23429            ContentType::Json => serde_json::from_str(&content).map_err(Error::from),
23430            ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `models::TargetUpdateOutput`"))),
23431            ContentType::Unsupported(unknown_type) => return Err(Error::from(serde_json::Error::custom(format!("Received `{unknown_type}` content type response that cannot be converted to `models::TargetUpdateOutput`")))),
23432        }
23433    } else {
23434        let content = resp.text().await?;
23435        let entity: Option<TargetUpdateGkeError> = serde_json::from_str(&content).ok();
23436        Err(Error::ResponseError(ResponseContent { status, content, entity }))
23437    }
23438}
23439
23440pub async fn target_update_global_sign(configuration: &configuration::Configuration, target_update_global_sign: models::TargetUpdateGlobalSign) -> Result<models::TargetUpdateOutput, Error<TargetUpdateGlobalSignError>> {
23441    // add a prefix to parameters to efficiently prevent name collisions
23442    let p_body_target_update_global_sign = target_update_global_sign;
23443
23444    let uri_str = format!("{}/target-update-globalsign", configuration.base_path);
23445    let mut req_builder = configuration.client.request(reqwest::Method::POST, &uri_str);
23446
23447    if let Some(ref user_agent) = configuration.user_agent {
23448        req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone());
23449    }
23450    req_builder = req_builder.json(&p_body_target_update_global_sign);
23451
23452    let req = req_builder.build()?;
23453    let resp = configuration.client.execute(req).await?;
23454
23455    let status = resp.status();
23456    let content_type = resp
23457        .headers()
23458        .get("content-type")
23459        .and_then(|v| v.to_str().ok())
23460        .unwrap_or("application/octet-stream");
23461    let content_type = super::ContentType::from(content_type);
23462
23463    if !status.is_client_error() && !status.is_server_error() {
23464        let content = resp.text().await?;
23465        match content_type {
23466            ContentType::Json => serde_json::from_str(&content).map_err(Error::from),
23467            ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `models::TargetUpdateOutput`"))),
23468            ContentType::Unsupported(unknown_type) => return Err(Error::from(serde_json::Error::custom(format!("Received `{unknown_type}` content type response that cannot be converted to `models::TargetUpdateOutput`")))),
23469        }
23470    } else {
23471        let content = resp.text().await?;
23472        let entity: Option<TargetUpdateGlobalSignError> = serde_json::from_str(&content).ok();
23473        Err(Error::ResponseError(ResponseContent { status, content, entity }))
23474    }
23475}
23476
23477pub async fn target_update_global_sign_atlas(configuration: &configuration::Configuration, target_update_global_sign_atlas: models::TargetUpdateGlobalSignAtlas) -> Result<models::TargetUpdateOutput, Error<TargetUpdateGlobalSignAtlasError>> {
23478    // add a prefix to parameters to efficiently prevent name collisions
23479    let p_body_target_update_global_sign_atlas = target_update_global_sign_atlas;
23480
23481    let uri_str = format!("{}/target-update-globalsign-atlas", configuration.base_path);
23482    let mut req_builder = configuration.client.request(reqwest::Method::POST, &uri_str);
23483
23484    if let Some(ref user_agent) = configuration.user_agent {
23485        req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone());
23486    }
23487    req_builder = req_builder.json(&p_body_target_update_global_sign_atlas);
23488
23489    let req = req_builder.build()?;
23490    let resp = configuration.client.execute(req).await?;
23491
23492    let status = resp.status();
23493    let content_type = resp
23494        .headers()
23495        .get("content-type")
23496        .and_then(|v| v.to_str().ok())
23497        .unwrap_or("application/octet-stream");
23498    let content_type = super::ContentType::from(content_type);
23499
23500    if !status.is_client_error() && !status.is_server_error() {
23501        let content = resp.text().await?;
23502        match content_type {
23503            ContentType::Json => serde_json::from_str(&content).map_err(Error::from),
23504            ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `models::TargetUpdateOutput`"))),
23505            ContentType::Unsupported(unknown_type) => return Err(Error::from(serde_json::Error::custom(format!("Received `{unknown_type}` content type response that cannot be converted to `models::TargetUpdateOutput`")))),
23506        }
23507    } else {
23508        let content = resp.text().await?;
23509        let entity: Option<TargetUpdateGlobalSignAtlasError> = serde_json::from_str(&content).ok();
23510        Err(Error::ResponseError(ResponseContent { status, content, entity }))
23511    }
23512}
23513
23514pub async fn target_update_godaddy(configuration: &configuration::Configuration, target_update_godaddy: models::TargetUpdateGodaddy) -> Result<models::TargetUpdateOutput, Error<TargetUpdateGodaddyError>> {
23515    // add a prefix to parameters to efficiently prevent name collisions
23516    let p_body_target_update_godaddy = target_update_godaddy;
23517
23518    let uri_str = format!("{}/target-update-godaddy", configuration.base_path);
23519    let mut req_builder = configuration.client.request(reqwest::Method::POST, &uri_str);
23520
23521    if let Some(ref user_agent) = configuration.user_agent {
23522        req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone());
23523    }
23524    req_builder = req_builder.json(&p_body_target_update_godaddy);
23525
23526    let req = req_builder.build()?;
23527    let resp = configuration.client.execute(req).await?;
23528
23529    let status = resp.status();
23530    let content_type = resp
23531        .headers()
23532        .get("content-type")
23533        .and_then(|v| v.to_str().ok())
23534        .unwrap_or("application/octet-stream");
23535    let content_type = super::ContentType::from(content_type);
23536
23537    if !status.is_client_error() && !status.is_server_error() {
23538        let content = resp.text().await?;
23539        match content_type {
23540            ContentType::Json => serde_json::from_str(&content).map_err(Error::from),
23541            ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `models::TargetUpdateOutput`"))),
23542            ContentType::Unsupported(unknown_type) => return Err(Error::from(serde_json::Error::custom(format!("Received `{unknown_type}` content type response that cannot be converted to `models::TargetUpdateOutput`")))),
23543        }
23544    } else {
23545        let content = resp.text().await?;
23546        let entity: Option<TargetUpdateGodaddyError> = serde_json::from_str(&content).ok();
23547        Err(Error::ResponseError(ResponseContent { status, content, entity }))
23548    }
23549}
23550
23551pub async fn target_update_hashi_vault(configuration: &configuration::Configuration, target_update_hashi_vault: models::TargetUpdateHashiVault) -> Result<models::TargetUpdateOutput, Error<TargetUpdateHashiVaultError>> {
23552    // add a prefix to parameters to efficiently prevent name collisions
23553    let p_body_target_update_hashi_vault = target_update_hashi_vault;
23554
23555    let uri_str = format!("{}/target-update-hashi-vault", configuration.base_path);
23556    let mut req_builder = configuration.client.request(reqwest::Method::POST, &uri_str);
23557
23558    if let Some(ref user_agent) = configuration.user_agent {
23559        req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone());
23560    }
23561    req_builder = req_builder.json(&p_body_target_update_hashi_vault);
23562
23563    let req = req_builder.build()?;
23564    let resp = configuration.client.execute(req).await?;
23565
23566    let status = resp.status();
23567    let content_type = resp
23568        .headers()
23569        .get("content-type")
23570        .and_then(|v| v.to_str().ok())
23571        .unwrap_or("application/octet-stream");
23572    let content_type = super::ContentType::from(content_type);
23573
23574    if !status.is_client_error() && !status.is_server_error() {
23575        let content = resp.text().await?;
23576        match content_type {
23577            ContentType::Json => serde_json::from_str(&content).map_err(Error::from),
23578            ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `models::TargetUpdateOutput`"))),
23579            ContentType::Unsupported(unknown_type) => return Err(Error::from(serde_json::Error::custom(format!("Received `{unknown_type}` content type response that cannot be converted to `models::TargetUpdateOutput`")))),
23580        }
23581    } else {
23582        let content = resp.text().await?;
23583        let entity: Option<TargetUpdateHashiVaultError> = serde_json::from_str(&content).ok();
23584        Err(Error::ResponseError(ResponseContent { status, content, entity }))
23585    }
23586}
23587
23588pub async fn target_update_k8s(configuration: &configuration::Configuration, target_update_k8s: models::TargetUpdateK8s) -> Result<models::TargetUpdateOutput, Error<TargetUpdateK8sError>> {
23589    // add a prefix to parameters to efficiently prevent name collisions
23590    let p_body_target_update_k8s = target_update_k8s;
23591
23592    let uri_str = format!("{}/target-update-k8s", configuration.base_path);
23593    let mut req_builder = configuration.client.request(reqwest::Method::POST, &uri_str);
23594
23595    if let Some(ref user_agent) = configuration.user_agent {
23596        req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone());
23597    }
23598    req_builder = req_builder.json(&p_body_target_update_k8s);
23599
23600    let req = req_builder.build()?;
23601    let resp = configuration.client.execute(req).await?;
23602
23603    let status = resp.status();
23604    let content_type = resp
23605        .headers()
23606        .get("content-type")
23607        .and_then(|v| v.to_str().ok())
23608        .unwrap_or("application/octet-stream");
23609    let content_type = super::ContentType::from(content_type);
23610
23611    if !status.is_client_error() && !status.is_server_error() {
23612        let content = resp.text().await?;
23613        match content_type {
23614            ContentType::Json => serde_json::from_str(&content).map_err(Error::from),
23615            ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `models::TargetUpdateOutput`"))),
23616            ContentType::Unsupported(unknown_type) => return Err(Error::from(serde_json::Error::custom(format!("Received `{unknown_type}` content type response that cannot be converted to `models::TargetUpdateOutput`")))),
23617        }
23618    } else {
23619        let content = resp.text().await?;
23620        let entity: Option<TargetUpdateK8sError> = serde_json::from_str(&content).ok();
23621        Err(Error::ResponseError(ResponseContent { status, content, entity }))
23622    }
23623}
23624
23625pub async fn target_update_ldap(configuration: &configuration::Configuration, target_update_ldap: models::TargetUpdateLdap) -> Result<models::TargetUpdateOutput, Error<TargetUpdateLdapError>> {
23626    // add a prefix to parameters to efficiently prevent name collisions
23627    let p_body_target_update_ldap = target_update_ldap;
23628
23629    let uri_str = format!("{}/target-update-ldap", configuration.base_path);
23630    let mut req_builder = configuration.client.request(reqwest::Method::POST, &uri_str);
23631
23632    if let Some(ref user_agent) = configuration.user_agent {
23633        req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone());
23634    }
23635    req_builder = req_builder.json(&p_body_target_update_ldap);
23636
23637    let req = req_builder.build()?;
23638    let resp = configuration.client.execute(req).await?;
23639
23640    let status = resp.status();
23641    let content_type = resp
23642        .headers()
23643        .get("content-type")
23644        .and_then(|v| v.to_str().ok())
23645        .unwrap_or("application/octet-stream");
23646    let content_type = super::ContentType::from(content_type);
23647
23648    if !status.is_client_error() && !status.is_server_error() {
23649        let content = resp.text().await?;
23650        match content_type {
23651            ContentType::Json => serde_json::from_str(&content).map_err(Error::from),
23652            ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `models::TargetUpdateOutput`"))),
23653            ContentType::Unsupported(unknown_type) => return Err(Error::from(serde_json::Error::custom(format!("Received `{unknown_type}` content type response that cannot be converted to `models::TargetUpdateOutput`")))),
23654        }
23655    } else {
23656        let content = resp.text().await?;
23657        let entity: Option<TargetUpdateLdapError> = serde_json::from_str(&content).ok();
23658        Err(Error::ResponseError(ResponseContent { status, content, entity }))
23659    }
23660}
23661
23662pub async fn target_update_lets_encrypt(configuration: &configuration::Configuration, target_update_lets_encrypt: models::TargetUpdateLetsEncrypt) -> Result<models::TargetUpdateOutput, Error<TargetUpdateLetsEncryptError>> {
23663    // add a prefix to parameters to efficiently prevent name collisions
23664    let p_body_target_update_lets_encrypt = target_update_lets_encrypt;
23665
23666    let uri_str = format!("{}/target-update-lets-encrypt", configuration.base_path);
23667    let mut req_builder = configuration.client.request(reqwest::Method::POST, &uri_str);
23668
23669    if let Some(ref user_agent) = configuration.user_agent {
23670        req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone());
23671    }
23672    req_builder = req_builder.json(&p_body_target_update_lets_encrypt);
23673
23674    let req = req_builder.build()?;
23675    let resp = configuration.client.execute(req).await?;
23676
23677    let status = resp.status();
23678    let content_type = resp
23679        .headers()
23680        .get("content-type")
23681        .and_then(|v| v.to_str().ok())
23682        .unwrap_or("application/octet-stream");
23683    let content_type = super::ContentType::from(content_type);
23684
23685    if !status.is_client_error() && !status.is_server_error() {
23686        let content = resp.text().await?;
23687        match content_type {
23688            ContentType::Json => serde_json::from_str(&content).map_err(Error::from),
23689            ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `models::TargetUpdateOutput`"))),
23690            ContentType::Unsupported(unknown_type) => return Err(Error::from(serde_json::Error::custom(format!("Received `{unknown_type}` content type response that cannot be converted to `models::TargetUpdateOutput`")))),
23691        }
23692    } else {
23693        let content = resp.text().await?;
23694        let entity: Option<TargetUpdateLetsEncryptError> = serde_json::from_str(&content).ok();
23695        Err(Error::ResponseError(ResponseContent { status, content, entity }))
23696    }
23697}
23698
23699pub async fn target_update_linked(configuration: &configuration::Configuration, target_update_linked: models::TargetUpdateLinked) -> Result<models::TargetUpdateOutput, Error<TargetUpdateLinkedError>> {
23700    // add a prefix to parameters to efficiently prevent name collisions
23701    let p_body_target_update_linked = target_update_linked;
23702
23703    let uri_str = format!("{}/target-update-linked", configuration.base_path);
23704    let mut req_builder = configuration.client.request(reqwest::Method::POST, &uri_str);
23705
23706    if let Some(ref user_agent) = configuration.user_agent {
23707        req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone());
23708    }
23709    req_builder = req_builder.json(&p_body_target_update_linked);
23710
23711    let req = req_builder.build()?;
23712    let resp = configuration.client.execute(req).await?;
23713
23714    let status = resp.status();
23715    let content_type = resp
23716        .headers()
23717        .get("content-type")
23718        .and_then(|v| v.to_str().ok())
23719        .unwrap_or("application/octet-stream");
23720    let content_type = super::ContentType::from(content_type);
23721
23722    if !status.is_client_error() && !status.is_server_error() {
23723        let content = resp.text().await?;
23724        match content_type {
23725            ContentType::Json => serde_json::from_str(&content).map_err(Error::from),
23726            ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `models::TargetUpdateOutput`"))),
23727            ContentType::Unsupported(unknown_type) => return Err(Error::from(serde_json::Error::custom(format!("Received `{unknown_type}` content type response that cannot be converted to `models::TargetUpdateOutput`")))),
23728        }
23729    } else {
23730        let content = resp.text().await?;
23731        let entity: Option<TargetUpdateLinkedError> = serde_json::from_str(&content).ok();
23732        Err(Error::ResponseError(ResponseContent { status, content, entity }))
23733    }
23734}
23735
23736pub async fn target_update_open_ai(configuration: &configuration::Configuration, target_update_open_ai: models::TargetUpdateOpenAi) -> Result<models::TargetUpdateOutput, Error<TargetUpdateOpenAiError>> {
23737    // add a prefix to parameters to efficiently prevent name collisions
23738    let p_body_target_update_open_ai = target_update_open_ai;
23739
23740    let uri_str = format!("{}/target-update-openai", configuration.base_path);
23741    let mut req_builder = configuration.client.request(reqwest::Method::POST, &uri_str);
23742
23743    if let Some(ref user_agent) = configuration.user_agent {
23744        req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone());
23745    }
23746    req_builder = req_builder.json(&p_body_target_update_open_ai);
23747
23748    let req = req_builder.build()?;
23749    let resp = configuration.client.execute(req).await?;
23750
23751    let status = resp.status();
23752    let content_type = resp
23753        .headers()
23754        .get("content-type")
23755        .and_then(|v| v.to_str().ok())
23756        .unwrap_or("application/octet-stream");
23757    let content_type = super::ContentType::from(content_type);
23758
23759    if !status.is_client_error() && !status.is_server_error() {
23760        let content = resp.text().await?;
23761        match content_type {
23762            ContentType::Json => serde_json::from_str(&content).map_err(Error::from),
23763            ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `models::TargetUpdateOutput`"))),
23764            ContentType::Unsupported(unknown_type) => return Err(Error::from(serde_json::Error::custom(format!("Received `{unknown_type}` content type response that cannot be converted to `models::TargetUpdateOutput`")))),
23765        }
23766    } else {
23767        let content = resp.text().await?;
23768        let entity: Option<TargetUpdateOpenAiError> = serde_json::from_str(&content).ok();
23769        Err(Error::ResponseError(ResponseContent { status, content, entity }))
23770    }
23771}
23772
23773pub async fn target_update_ping(configuration: &configuration::Configuration, target_update_ping: models::TargetUpdatePing) -> Result<models::TargetUpdateOutput, Error<TargetUpdatePingError>> {
23774    // add a prefix to parameters to efficiently prevent name collisions
23775    let p_body_target_update_ping = target_update_ping;
23776
23777    let uri_str = format!("{}/target-update-ping", configuration.base_path);
23778    let mut req_builder = configuration.client.request(reqwest::Method::POST, &uri_str);
23779
23780    if let Some(ref user_agent) = configuration.user_agent {
23781        req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone());
23782    }
23783    req_builder = req_builder.json(&p_body_target_update_ping);
23784
23785    let req = req_builder.build()?;
23786    let resp = configuration.client.execute(req).await?;
23787
23788    let status = resp.status();
23789    let content_type = resp
23790        .headers()
23791        .get("content-type")
23792        .and_then(|v| v.to_str().ok())
23793        .unwrap_or("application/octet-stream");
23794    let content_type = super::ContentType::from(content_type);
23795
23796    if !status.is_client_error() && !status.is_server_error() {
23797        let content = resp.text().await?;
23798        match content_type {
23799            ContentType::Json => serde_json::from_str(&content).map_err(Error::from),
23800            ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `models::TargetUpdateOutput`"))),
23801            ContentType::Unsupported(unknown_type) => return Err(Error::from(serde_json::Error::custom(format!("Received `{unknown_type}` content type response that cannot be converted to `models::TargetUpdateOutput`")))),
23802        }
23803    } else {
23804        let content = resp.text().await?;
23805        let entity: Option<TargetUpdatePingError> = serde_json::from_str(&content).ok();
23806        Err(Error::ResponseError(ResponseContent { status, content, entity }))
23807    }
23808}
23809
23810pub async fn target_update_rabbit_mq(configuration: &configuration::Configuration, target_update_rabbit_mq: models::TargetUpdateRabbitMq) -> Result<models::TargetUpdateOutput, Error<TargetUpdateRabbitMqError>> {
23811    // add a prefix to parameters to efficiently prevent name collisions
23812    let p_body_target_update_rabbit_mq = target_update_rabbit_mq;
23813
23814    let uri_str = format!("{}/target-update-rabbitmq", configuration.base_path);
23815    let mut req_builder = configuration.client.request(reqwest::Method::POST, &uri_str);
23816
23817    if let Some(ref user_agent) = configuration.user_agent {
23818        req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone());
23819    }
23820    req_builder = req_builder.json(&p_body_target_update_rabbit_mq);
23821
23822    let req = req_builder.build()?;
23823    let resp = configuration.client.execute(req).await?;
23824
23825    let status = resp.status();
23826    let content_type = resp
23827        .headers()
23828        .get("content-type")
23829        .and_then(|v| v.to_str().ok())
23830        .unwrap_or("application/octet-stream");
23831    let content_type = super::ContentType::from(content_type);
23832
23833    if !status.is_client_error() && !status.is_server_error() {
23834        let content = resp.text().await?;
23835        match content_type {
23836            ContentType::Json => serde_json::from_str(&content).map_err(Error::from),
23837            ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `models::TargetUpdateOutput`"))),
23838            ContentType::Unsupported(unknown_type) => return Err(Error::from(serde_json::Error::custom(format!("Received `{unknown_type}` content type response that cannot be converted to `models::TargetUpdateOutput`")))),
23839        }
23840    } else {
23841        let content = resp.text().await?;
23842        let entity: Option<TargetUpdateRabbitMqError> = serde_json::from_str(&content).ok();
23843        Err(Error::ResponseError(ResponseContent { status, content, entity }))
23844    }
23845}
23846
23847pub async fn target_update_salesforce(configuration: &configuration::Configuration, target_update_salesforce: models::TargetUpdateSalesforce) -> Result<models::TargetUpdateOutput, Error<TargetUpdateSalesforceError>> {
23848    // add a prefix to parameters to efficiently prevent name collisions
23849    let p_body_target_update_salesforce = target_update_salesforce;
23850
23851    let uri_str = format!("{}/target-update-salesforce", configuration.base_path);
23852    let mut req_builder = configuration.client.request(reqwest::Method::POST, &uri_str);
23853
23854    if let Some(ref user_agent) = configuration.user_agent {
23855        req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone());
23856    }
23857    req_builder = req_builder.json(&p_body_target_update_salesforce);
23858
23859    let req = req_builder.build()?;
23860    let resp = configuration.client.execute(req).await?;
23861
23862    let status = resp.status();
23863    let content_type = resp
23864        .headers()
23865        .get("content-type")
23866        .and_then(|v| v.to_str().ok())
23867        .unwrap_or("application/octet-stream");
23868    let content_type = super::ContentType::from(content_type);
23869
23870    if !status.is_client_error() && !status.is_server_error() {
23871        let content = resp.text().await?;
23872        match content_type {
23873            ContentType::Json => serde_json::from_str(&content).map_err(Error::from),
23874            ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `models::TargetUpdateOutput`"))),
23875            ContentType::Unsupported(unknown_type) => return Err(Error::from(serde_json::Error::custom(format!("Received `{unknown_type}` content type response that cannot be converted to `models::TargetUpdateOutput`")))),
23876        }
23877    } else {
23878        let content = resp.text().await?;
23879        let entity: Option<TargetUpdateSalesforceError> = serde_json::from_str(&content).ok();
23880        Err(Error::ResponseError(ResponseContent { status, content, entity }))
23881    }
23882}
23883
23884pub async fn target_update_sectigo(configuration: &configuration::Configuration, target_update_sectigo: models::TargetUpdateSectigo) -> Result<models::TargetUpdateOutput, Error<TargetUpdateSectigoError>> {
23885    // add a prefix to parameters to efficiently prevent name collisions
23886    let p_body_target_update_sectigo = target_update_sectigo;
23887
23888    let uri_str = format!("{}/target-update-sectigo", configuration.base_path);
23889    let mut req_builder = configuration.client.request(reqwest::Method::POST, &uri_str);
23890
23891    if let Some(ref user_agent) = configuration.user_agent {
23892        req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone());
23893    }
23894    req_builder = req_builder.json(&p_body_target_update_sectigo);
23895
23896    let req = req_builder.build()?;
23897    let resp = configuration.client.execute(req).await?;
23898
23899    let status = resp.status();
23900    let content_type = resp
23901        .headers()
23902        .get("content-type")
23903        .and_then(|v| v.to_str().ok())
23904        .unwrap_or("application/octet-stream");
23905    let content_type = super::ContentType::from(content_type);
23906
23907    if !status.is_client_error() && !status.is_server_error() {
23908        let content = resp.text().await?;
23909        match content_type {
23910            ContentType::Json => serde_json::from_str(&content).map_err(Error::from),
23911            ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `models::TargetUpdateOutput`"))),
23912            ContentType::Unsupported(unknown_type) => return Err(Error::from(serde_json::Error::custom(format!("Received `{unknown_type}` content type response that cannot be converted to `models::TargetUpdateOutput`")))),
23913        }
23914    } else {
23915        let content = resp.text().await?;
23916        let entity: Option<TargetUpdateSectigoError> = serde_json::from_str(&content).ok();
23917        Err(Error::ResponseError(ResponseContent { status, content, entity }))
23918    }
23919}
23920
23921pub async fn target_update_ssh(configuration: &configuration::Configuration, target_update_ssh: models::TargetUpdateSsh) -> Result<models::TargetUpdateOutput, Error<TargetUpdateSshError>> {
23922    // add a prefix to parameters to efficiently prevent name collisions
23923    let p_body_target_update_ssh = target_update_ssh;
23924
23925    let uri_str = format!("{}/target-update-ssh", configuration.base_path);
23926    let mut req_builder = configuration.client.request(reqwest::Method::POST, &uri_str);
23927
23928    if let Some(ref user_agent) = configuration.user_agent {
23929        req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone());
23930    }
23931    req_builder = req_builder.json(&p_body_target_update_ssh);
23932
23933    let req = req_builder.build()?;
23934    let resp = configuration.client.execute(req).await?;
23935
23936    let status = resp.status();
23937    let content_type = resp
23938        .headers()
23939        .get("content-type")
23940        .and_then(|v| v.to_str().ok())
23941        .unwrap_or("application/octet-stream");
23942    let content_type = super::ContentType::from(content_type);
23943
23944    if !status.is_client_error() && !status.is_server_error() {
23945        let content = resp.text().await?;
23946        match content_type {
23947            ContentType::Json => serde_json::from_str(&content).map_err(Error::from),
23948            ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `models::TargetUpdateOutput`"))),
23949            ContentType::Unsupported(unknown_type) => return Err(Error::from(serde_json::Error::custom(format!("Received `{unknown_type}` content type response that cannot be converted to `models::TargetUpdateOutput`")))),
23950        }
23951    } else {
23952        let content = resp.text().await?;
23953        let entity: Option<TargetUpdateSshError> = serde_json::from_str(&content).ok();
23954        Err(Error::ResponseError(ResponseContent { status, content, entity }))
23955    }
23956}
23957
23958pub async fn target_update_web(configuration: &configuration::Configuration, target_update_web: models::TargetUpdateWeb) -> Result<models::TargetUpdateOutput, Error<TargetUpdateWebError>> {
23959    // add a prefix to parameters to efficiently prevent name collisions
23960    let p_body_target_update_web = target_update_web;
23961
23962    let uri_str = format!("{}/target-update-web", configuration.base_path);
23963    let mut req_builder = configuration.client.request(reqwest::Method::POST, &uri_str);
23964
23965    if let Some(ref user_agent) = configuration.user_agent {
23966        req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone());
23967    }
23968    req_builder = req_builder.json(&p_body_target_update_web);
23969
23970    let req = req_builder.build()?;
23971    let resp = configuration.client.execute(req).await?;
23972
23973    let status = resp.status();
23974    let content_type = resp
23975        .headers()
23976        .get("content-type")
23977        .and_then(|v| v.to_str().ok())
23978        .unwrap_or("application/octet-stream");
23979    let content_type = super::ContentType::from(content_type);
23980
23981    if !status.is_client_error() && !status.is_server_error() {
23982        let content = resp.text().await?;
23983        match content_type {
23984            ContentType::Json => serde_json::from_str(&content).map_err(Error::from),
23985            ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `models::TargetUpdateOutput`"))),
23986            ContentType::Unsupported(unknown_type) => return Err(Error::from(serde_json::Error::custom(format!("Received `{unknown_type}` content type response that cannot be converted to `models::TargetUpdateOutput`")))),
23987        }
23988    } else {
23989        let content = resp.text().await?;
23990        let entity: Option<TargetUpdateWebError> = serde_json::from_str(&content).ok();
23991        Err(Error::ResponseError(ResponseContent { status, content, entity }))
23992    }
23993}
23994
23995pub async fn target_update_windows(configuration: &configuration::Configuration, target_update_windows: models::TargetUpdateWindows) -> Result<models::TargetUpdateOutput, Error<TargetUpdateWindowsError>> {
23996    // add a prefix to parameters to efficiently prevent name collisions
23997    let p_body_target_update_windows = target_update_windows;
23998
23999    let uri_str = format!("{}/target-update-windows", configuration.base_path);
24000    let mut req_builder = configuration.client.request(reqwest::Method::POST, &uri_str);
24001
24002    if let Some(ref user_agent) = configuration.user_agent {
24003        req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone());
24004    }
24005    req_builder = req_builder.json(&p_body_target_update_windows);
24006
24007    let req = req_builder.build()?;
24008    let resp = configuration.client.execute(req).await?;
24009
24010    let status = resp.status();
24011    let content_type = resp
24012        .headers()
24013        .get("content-type")
24014        .and_then(|v| v.to_str().ok())
24015        .unwrap_or("application/octet-stream");
24016    let content_type = super::ContentType::from(content_type);
24017
24018    if !status.is_client_error() && !status.is_server_error() {
24019        let content = resp.text().await?;
24020        match content_type {
24021            ContentType::Json => serde_json::from_str(&content).map_err(Error::from),
24022            ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `models::TargetUpdateOutput`"))),
24023            ContentType::Unsupported(unknown_type) => return Err(Error::from(serde_json::Error::custom(format!("Received `{unknown_type}` content type response that cannot be converted to `models::TargetUpdateOutput`")))),
24024        }
24025    } else {
24026        let content = resp.text().await?;
24027        let entity: Option<TargetUpdateWindowsError> = serde_json::from_str(&content).ok();
24028        Err(Error::ResponseError(ResponseContent { status, content, entity }))
24029    }
24030}
24031
24032pub async fn target_update_zero_ssl(configuration: &configuration::Configuration, target_update_zero_ssl: models::TargetUpdateZeroSsl) -> Result<models::TargetUpdateOutput, Error<TargetUpdateZeroSslError>> {
24033    // add a prefix to parameters to efficiently prevent name collisions
24034    let p_body_target_update_zero_ssl = target_update_zero_ssl;
24035
24036    let uri_str = format!("{}/target-update-zerossl", configuration.base_path);
24037    let mut req_builder = configuration.client.request(reqwest::Method::POST, &uri_str);
24038
24039    if let Some(ref user_agent) = configuration.user_agent {
24040        req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone());
24041    }
24042    req_builder = req_builder.json(&p_body_target_update_zero_ssl);
24043
24044    let req = req_builder.build()?;
24045    let resp = configuration.client.execute(req).await?;
24046
24047    let status = resp.status();
24048    let content_type = resp
24049        .headers()
24050        .get("content-type")
24051        .and_then(|v| v.to_str().ok())
24052        .unwrap_or("application/octet-stream");
24053    let content_type = super::ContentType::from(content_type);
24054
24055    if !status.is_client_error() && !status.is_server_error() {
24056        let content = resp.text().await?;
24057        match content_type {
24058            ContentType::Json => serde_json::from_str(&content).map_err(Error::from),
24059            ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `models::TargetUpdateOutput`"))),
24060            ContentType::Unsupported(unknown_type) => return Err(Error::from(serde_json::Error::custom(format!("Received `{unknown_type}` content type response that cannot be converted to `models::TargetUpdateOutput`")))),
24061        }
24062    } else {
24063        let content = resp.text().await?;
24064        let entity: Option<TargetUpdateZeroSslError> = serde_json::from_str(&content).ok();
24065        Err(Error::ResponseError(ResponseContent { status, content, entity }))
24066    }
24067}
24068
24069pub async fn tokenize(configuration: &configuration::Configuration, tokenize: models::Tokenize) -> Result<models::TokenizeOutput, Error<TokenizeError>> {
24070    // add a prefix to parameters to efficiently prevent name collisions
24071    let p_body_tokenize = tokenize;
24072
24073    let uri_str = format!("{}/tokenize", configuration.base_path);
24074    let mut req_builder = configuration.client.request(reqwest::Method::POST, &uri_str);
24075
24076    if let Some(ref user_agent) = configuration.user_agent {
24077        req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone());
24078    }
24079    req_builder = req_builder.json(&p_body_tokenize);
24080
24081    let req = req_builder.build()?;
24082    let resp = configuration.client.execute(req).await?;
24083
24084    let status = resp.status();
24085    let content_type = resp
24086        .headers()
24087        .get("content-type")
24088        .and_then(|v| v.to_str().ok())
24089        .unwrap_or("application/octet-stream");
24090    let content_type = super::ContentType::from(content_type);
24091
24092    if !status.is_client_error() && !status.is_server_error() {
24093        let content = resp.text().await?;
24094        match content_type {
24095            ContentType::Json => serde_json::from_str(&content).map_err(Error::from),
24096            ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `models::TokenizeOutput`"))),
24097            ContentType::Unsupported(unknown_type) => return Err(Error::from(serde_json::Error::custom(format!("Received `{unknown_type}` content type response that cannot be converted to `models::TokenizeOutput`")))),
24098        }
24099    } else {
24100        let content = resp.text().await?;
24101        let entity: Option<TokenizeError> = serde_json::from_str(&content).ok();
24102        Err(Error::ResponseError(ResponseContent { status, content, entity }))
24103    }
24104}
24105
24106pub async fn tokenize_batch(configuration: &configuration::Configuration, batch_tokenization_request_line: Vec<models::BatchTokenizationRequestLine>) -> Result<models::TokenizeOutput, Error<TokenizeBatchError>> {
24107    // add a prefix to parameters to efficiently prevent name collisions
24108    let p_body_batch_tokenization_request_line = batch_tokenization_request_line;
24109
24110    let uri_str = format!("{}/tokenize-batch", configuration.base_path);
24111    let mut req_builder = configuration.client.request(reqwest::Method::POST, &uri_str);
24112
24113    if let Some(ref user_agent) = configuration.user_agent {
24114        req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone());
24115    }
24116    req_builder = req_builder.json(&p_body_batch_tokenization_request_line);
24117
24118    let req = req_builder.build()?;
24119    let resp = configuration.client.execute(req).await?;
24120
24121    let status = resp.status();
24122    let content_type = resp
24123        .headers()
24124        .get("content-type")
24125        .and_then(|v| v.to_str().ok())
24126        .unwrap_or("application/octet-stream");
24127    let content_type = super::ContentType::from(content_type);
24128
24129    if !status.is_client_error() && !status.is_server_error() {
24130        let content = resp.text().await?;
24131        match content_type {
24132            ContentType::Json => serde_json::from_str(&content).map_err(Error::from),
24133            ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `models::TokenizeOutput`"))),
24134            ContentType::Unsupported(unknown_type) => return Err(Error::from(serde_json::Error::custom(format!("Received `{unknown_type}` content type response that cannot be converted to `models::TokenizeOutput`")))),
24135        }
24136    } else {
24137        let content = resp.text().await?;
24138        let entity: Option<TokenizeBatchError> = serde_json::from_str(&content).ok();
24139        Err(Error::ResponseError(ResponseContent { status, content, entity }))
24140    }
24141}
24142
24143pub async fn uid_create_child_token(configuration: &configuration::Configuration, uid_create_child_token: models::UidCreateChildToken) -> Result<models::UidCreateChildTokenOutput, Error<UidCreateChildTokenError>> {
24144    // add a prefix to parameters to efficiently prevent name collisions
24145    let p_body_uid_create_child_token = uid_create_child_token;
24146
24147    let uri_str = format!("{}/uid-create-child-token", configuration.base_path);
24148    let mut req_builder = configuration.client.request(reqwest::Method::POST, &uri_str);
24149
24150    if let Some(ref user_agent) = configuration.user_agent {
24151        req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone());
24152    }
24153    req_builder = req_builder.json(&p_body_uid_create_child_token);
24154
24155    let req = req_builder.build()?;
24156    let resp = configuration.client.execute(req).await?;
24157
24158    let status = resp.status();
24159    let content_type = resp
24160        .headers()
24161        .get("content-type")
24162        .and_then(|v| v.to_str().ok())
24163        .unwrap_or("application/octet-stream");
24164    let content_type = super::ContentType::from(content_type);
24165
24166    if !status.is_client_error() && !status.is_server_error() {
24167        let content = resp.text().await?;
24168        match content_type {
24169            ContentType::Json => serde_json::from_str(&content).map_err(Error::from),
24170            ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `models::UidCreateChildTokenOutput`"))),
24171            ContentType::Unsupported(unknown_type) => return Err(Error::from(serde_json::Error::custom(format!("Received `{unknown_type}` content type response that cannot be converted to `models::UidCreateChildTokenOutput`")))),
24172        }
24173    } else {
24174        let content = resp.text().await?;
24175        let entity: Option<UidCreateChildTokenError> = serde_json::from_str(&content).ok();
24176        Err(Error::ResponseError(ResponseContent { status, content, entity }))
24177    }
24178}
24179
24180pub async fn uid_generate_token(configuration: &configuration::Configuration, uid_generate_token: models::UidGenerateToken) -> Result<models::UidGenerateTokenOutput, Error<UidGenerateTokenError>> {
24181    // add a prefix to parameters to efficiently prevent name collisions
24182    let p_body_uid_generate_token = uid_generate_token;
24183
24184    let uri_str = format!("{}/uid-generate-token", configuration.base_path);
24185    let mut req_builder = configuration.client.request(reqwest::Method::POST, &uri_str);
24186
24187    if let Some(ref user_agent) = configuration.user_agent {
24188        req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone());
24189    }
24190    req_builder = req_builder.json(&p_body_uid_generate_token);
24191
24192    let req = req_builder.build()?;
24193    let resp = configuration.client.execute(req).await?;
24194
24195    let status = resp.status();
24196    let content_type = resp
24197        .headers()
24198        .get("content-type")
24199        .and_then(|v| v.to_str().ok())
24200        .unwrap_or("application/octet-stream");
24201    let content_type = super::ContentType::from(content_type);
24202
24203    if !status.is_client_error() && !status.is_server_error() {
24204        let content = resp.text().await?;
24205        match content_type {
24206            ContentType::Json => serde_json::from_str(&content).map_err(Error::from),
24207            ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `models::UidGenerateTokenOutput`"))),
24208            ContentType::Unsupported(unknown_type) => return Err(Error::from(serde_json::Error::custom(format!("Received `{unknown_type}` content type response that cannot be converted to `models::UidGenerateTokenOutput`")))),
24209        }
24210    } else {
24211        let content = resp.text().await?;
24212        let entity: Option<UidGenerateTokenError> = serde_json::from_str(&content).ok();
24213        Err(Error::ResponseError(ResponseContent { status, content, entity }))
24214    }
24215}
24216
24217pub async fn uid_list_children(configuration: &configuration::Configuration, uid_list_children: models::UidListChildren) -> Result<models::UniversalIdentityDetails, Error<UidListChildrenError>> {
24218    // add a prefix to parameters to efficiently prevent name collisions
24219    let p_body_uid_list_children = uid_list_children;
24220
24221    let uri_str = format!("{}/uid-list-children", configuration.base_path);
24222    let mut req_builder = configuration.client.request(reqwest::Method::POST, &uri_str);
24223
24224    if let Some(ref user_agent) = configuration.user_agent {
24225        req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone());
24226    }
24227    req_builder = req_builder.json(&p_body_uid_list_children);
24228
24229    let req = req_builder.build()?;
24230    let resp = configuration.client.execute(req).await?;
24231
24232    let status = resp.status();
24233    let content_type = resp
24234        .headers()
24235        .get("content-type")
24236        .and_then(|v| v.to_str().ok())
24237        .unwrap_or("application/octet-stream");
24238    let content_type = super::ContentType::from(content_type);
24239
24240    if !status.is_client_error() && !status.is_server_error() {
24241        let content = resp.text().await?;
24242        match content_type {
24243            ContentType::Json => serde_json::from_str(&content).map_err(Error::from),
24244            ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `models::UniversalIdentityDetails`"))),
24245            ContentType::Unsupported(unknown_type) => return Err(Error::from(serde_json::Error::custom(format!("Received `{unknown_type}` content type response that cannot be converted to `models::UniversalIdentityDetails`")))),
24246        }
24247    } else {
24248        let content = resp.text().await?;
24249        let entity: Option<UidListChildrenError> = serde_json::from_str(&content).ok();
24250        Err(Error::ResponseError(ResponseContent { status, content, entity }))
24251    }
24252}
24253
24254pub async fn uid_revoke_token(configuration: &configuration::Configuration, uid_revoke_token: models::UidRevokeToken) -> Result<serde_json::Value, Error<UidRevokeTokenError>> {
24255    // add a prefix to parameters to efficiently prevent name collisions
24256    let p_body_uid_revoke_token = uid_revoke_token;
24257
24258    let uri_str = format!("{}/uid-revoke-token", configuration.base_path);
24259    let mut req_builder = configuration.client.request(reqwest::Method::POST, &uri_str);
24260
24261    if let Some(ref user_agent) = configuration.user_agent {
24262        req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone());
24263    }
24264    req_builder = req_builder.json(&p_body_uid_revoke_token);
24265
24266    let req = req_builder.build()?;
24267    let resp = configuration.client.execute(req).await?;
24268
24269    let status = resp.status();
24270    let content_type = resp
24271        .headers()
24272        .get("content-type")
24273        .and_then(|v| v.to_str().ok())
24274        .unwrap_or("application/octet-stream");
24275    let content_type = super::ContentType::from(content_type);
24276
24277    if !status.is_client_error() && !status.is_server_error() {
24278        let content = resp.text().await?;
24279        match content_type {
24280            ContentType::Json => serde_json::from_str(&content).map_err(Error::from),
24281            ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `serde_json::Value`"))),
24282            ContentType::Unsupported(unknown_type) => return Err(Error::from(serde_json::Error::custom(format!("Received `{unknown_type}` content type response that cannot be converted to `serde_json::Value`")))),
24283        }
24284    } else {
24285        let content = resp.text().await?;
24286        let entity: Option<UidRevokeTokenError> = serde_json::from_str(&content).ok();
24287        Err(Error::ResponseError(ResponseContent { status, content, entity }))
24288    }
24289}
24290
24291pub async fn uid_rotate_token(configuration: &configuration::Configuration, uid_rotate_token: models::UidRotateToken) -> Result<models::UidRotateTokenOutput, Error<UidRotateTokenError>> {
24292    // add a prefix to parameters to efficiently prevent name collisions
24293    let p_body_uid_rotate_token = uid_rotate_token;
24294
24295    let uri_str = format!("{}/uid-rotate-token", configuration.base_path);
24296    let mut req_builder = configuration.client.request(reqwest::Method::POST, &uri_str);
24297
24298    if let Some(ref user_agent) = configuration.user_agent {
24299        req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone());
24300    }
24301    req_builder = req_builder.json(&p_body_uid_rotate_token);
24302
24303    let req = req_builder.build()?;
24304    let resp = configuration.client.execute(req).await?;
24305
24306    let status = resp.status();
24307    let content_type = resp
24308        .headers()
24309        .get("content-type")
24310        .and_then(|v| v.to_str().ok())
24311        .unwrap_or("application/octet-stream");
24312    let content_type = super::ContentType::from(content_type);
24313
24314    if !status.is_client_error() && !status.is_server_error() {
24315        let content = resp.text().await?;
24316        match content_type {
24317            ContentType::Json => serde_json::from_str(&content).map_err(Error::from),
24318            ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `models::UidRotateTokenOutput`"))),
24319            ContentType::Unsupported(unknown_type) => return Err(Error::from(serde_json::Error::custom(format!("Received `{unknown_type}` content type response that cannot be converted to `models::UidRotateTokenOutput`")))),
24320        }
24321    } else {
24322        let content = resp.text().await?;
24323        let entity: Option<UidRotateTokenError> = serde_json::from_str(&content).ok();
24324        Err(Error::ResponseError(ResponseContent { status, content, entity }))
24325    }
24326}
24327
24328pub async fn unwrap_token(configuration: &configuration::Configuration, unwrap_token: models::UnwrapToken) -> Result<models::UnwrapTokenOutput, Error<UnwrapTokenError>> {
24329    // add a prefix to parameters to efficiently prevent name collisions
24330    let p_body_unwrap_token = unwrap_token;
24331
24332    let uri_str = format!("{}/unwrap-token", configuration.base_path);
24333    let mut req_builder = configuration.client.request(reqwest::Method::POST, &uri_str);
24334
24335    if let Some(ref user_agent) = configuration.user_agent {
24336        req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone());
24337    }
24338    req_builder = req_builder.json(&p_body_unwrap_token);
24339
24340    let req = req_builder.build()?;
24341    let resp = configuration.client.execute(req).await?;
24342
24343    let status = resp.status();
24344    let content_type = resp
24345        .headers()
24346        .get("content-type")
24347        .and_then(|v| v.to_str().ok())
24348        .unwrap_or("application/octet-stream");
24349    let content_type = super::ContentType::from(content_type);
24350
24351    if !status.is_client_error() && !status.is_server_error() {
24352        let content = resp.text().await?;
24353        match content_type {
24354            ContentType::Json => serde_json::from_str(&content).map_err(Error::from),
24355            ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `models::UnwrapTokenOutput`"))),
24356            ContentType::Unsupported(unknown_type) => return Err(Error::from(serde_json::Error::custom(format!("Received `{unknown_type}` content type response that cannot be converted to `models::UnwrapTokenOutput`")))),
24357        }
24358    } else {
24359        let content = resp.text().await?;
24360        let entity: Option<UnwrapTokenError> = serde_json::from_str(&content).ok();
24361        Err(Error::ResponseError(ResponseContent { status, content, entity }))
24362    }
24363}
24364
24365pub async fn update_account_settings(configuration: &configuration::Configuration, update_account_settings: models::UpdateAccountSettings) -> Result<models::UpdateAccountSettingsOutput, Error<UpdateAccountSettingsError>> {
24366    // add a prefix to parameters to efficiently prevent name collisions
24367    let p_body_update_account_settings = update_account_settings;
24368
24369    let uri_str = format!("{}/update-account-settings", configuration.base_path);
24370    let mut req_builder = configuration.client.request(reqwest::Method::POST, &uri_str);
24371
24372    if let Some(ref user_agent) = configuration.user_agent {
24373        req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone());
24374    }
24375    req_builder = req_builder.json(&p_body_update_account_settings);
24376
24377    let req = req_builder.build()?;
24378    let resp = configuration.client.execute(req).await?;
24379
24380    let status = resp.status();
24381    let content_type = resp
24382        .headers()
24383        .get("content-type")
24384        .and_then(|v| v.to_str().ok())
24385        .unwrap_or("application/octet-stream");
24386    let content_type = super::ContentType::from(content_type);
24387
24388    if !status.is_client_error() && !status.is_server_error() {
24389        let content = resp.text().await?;
24390        match content_type {
24391            ContentType::Json => serde_json::from_str(&content).map_err(Error::from),
24392            ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `models::UpdateAccountSettingsOutput`"))),
24393            ContentType::Unsupported(unknown_type) => return Err(Error::from(serde_json::Error::custom(format!("Received `{unknown_type}` content type response that cannot be converted to `models::UpdateAccountSettingsOutput`")))),
24394        }
24395    } else {
24396        let content = resp.text().await?;
24397        let entity: Option<UpdateAccountSettingsError> = serde_json::from_str(&content).ok();
24398        Err(Error::ResponseError(ResponseContent { status, content, entity }))
24399    }
24400}
24401
24402pub async fn update_artifactory_target(configuration: &configuration::Configuration, update_artifactory_target: models::UpdateArtifactoryTarget) -> Result<models::UpdateArtifactoryTargetOutput, Error<UpdateArtifactoryTargetError>> {
24403    // add a prefix to parameters to efficiently prevent name collisions
24404    let p_body_update_artifactory_target = update_artifactory_target;
24405
24406    let uri_str = format!("{}/update-artifactory-target", configuration.base_path);
24407    let mut req_builder = configuration.client.request(reqwest::Method::POST, &uri_str);
24408
24409    if let Some(ref user_agent) = configuration.user_agent {
24410        req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone());
24411    }
24412    req_builder = req_builder.json(&p_body_update_artifactory_target);
24413
24414    let req = req_builder.build()?;
24415    let resp = configuration.client.execute(req).await?;
24416
24417    let status = resp.status();
24418    let content_type = resp
24419        .headers()
24420        .get("content-type")
24421        .and_then(|v| v.to_str().ok())
24422        .unwrap_or("application/octet-stream");
24423    let content_type = super::ContentType::from(content_type);
24424
24425    if !status.is_client_error() && !status.is_server_error() {
24426        let content = resp.text().await?;
24427        match content_type {
24428            ContentType::Json => serde_json::from_str(&content).map_err(Error::from),
24429            ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `models::UpdateArtifactoryTargetOutput`"))),
24430            ContentType::Unsupported(unknown_type) => return Err(Error::from(serde_json::Error::custom(format!("Received `{unknown_type}` content type response that cannot be converted to `models::UpdateArtifactoryTargetOutput`")))),
24431        }
24432    } else {
24433        let content = resp.text().await?;
24434        let entity: Option<UpdateArtifactoryTargetError> = serde_json::from_str(&content).ok();
24435        Err(Error::ResponseError(ResponseContent { status, content, entity }))
24436    }
24437}
24438
24439pub async fn update_assoc(configuration: &configuration::Configuration, update_assoc: models::UpdateAssoc) -> Result<serde_json::Value, Error<UpdateAssocError>> {
24440    // add a prefix to parameters to efficiently prevent name collisions
24441    let p_body_update_assoc = update_assoc;
24442
24443    let uri_str = format!("{}/update-assoc", configuration.base_path);
24444    let mut req_builder = configuration.client.request(reqwest::Method::POST, &uri_str);
24445
24446    if let Some(ref user_agent) = configuration.user_agent {
24447        req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone());
24448    }
24449    req_builder = req_builder.json(&p_body_update_assoc);
24450
24451    let req = req_builder.build()?;
24452    let resp = configuration.client.execute(req).await?;
24453
24454    let status = resp.status();
24455    let content_type = resp
24456        .headers()
24457        .get("content-type")
24458        .and_then(|v| v.to_str().ok())
24459        .unwrap_or("application/octet-stream");
24460    let content_type = super::ContentType::from(content_type);
24461
24462    if !status.is_client_error() && !status.is_server_error() {
24463        let content = resp.text().await?;
24464        match content_type {
24465            ContentType::Json => serde_json::from_str(&content).map_err(Error::from),
24466            ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `serde_json::Value`"))),
24467            ContentType::Unsupported(unknown_type) => return Err(Error::from(serde_json::Error::custom(format!("Received `{unknown_type}` content type response that cannot be converted to `serde_json::Value`")))),
24468        }
24469    } else {
24470        let content = resp.text().await?;
24471        let entity: Option<UpdateAssocError> = serde_json::from_str(&content).ok();
24472        Err(Error::ResponseError(ResponseContent { status, content, entity }))
24473    }
24474}
24475
24476pub async fn update_auth_method(configuration: &configuration::Configuration, update_auth_method: models::UpdateAuthMethod) -> Result<models::UpdateAuthMethodOutput, Error<UpdateAuthMethodError>> {
24477    // add a prefix to parameters to efficiently prevent name collisions
24478    let p_body_update_auth_method = update_auth_method;
24479
24480    let uri_str = format!("{}/update-auth-method", configuration.base_path);
24481    let mut req_builder = configuration.client.request(reqwest::Method::POST, &uri_str);
24482
24483    if let Some(ref user_agent) = configuration.user_agent {
24484        req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone());
24485    }
24486    req_builder = req_builder.json(&p_body_update_auth_method);
24487
24488    let req = req_builder.build()?;
24489    let resp = configuration.client.execute(req).await?;
24490
24491    let status = resp.status();
24492    let content_type = resp
24493        .headers()
24494        .get("content-type")
24495        .and_then(|v| v.to_str().ok())
24496        .unwrap_or("application/octet-stream");
24497    let content_type = super::ContentType::from(content_type);
24498
24499    if !status.is_client_error() && !status.is_server_error() {
24500        let content = resp.text().await?;
24501        match content_type {
24502            ContentType::Json => serde_json::from_str(&content).map_err(Error::from),
24503            ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `models::UpdateAuthMethodOutput`"))),
24504            ContentType::Unsupported(unknown_type) => return Err(Error::from(serde_json::Error::custom(format!("Received `{unknown_type}` content type response that cannot be converted to `models::UpdateAuthMethodOutput`")))),
24505        }
24506    } else {
24507        let content = resp.text().await?;
24508        let entity: Option<UpdateAuthMethodError> = serde_json::from_str(&content).ok();
24509        Err(Error::ResponseError(ResponseContent { status, content, entity }))
24510    }
24511}
24512
24513pub async fn update_auth_method_awsiam(configuration: &configuration::Configuration, update_auth_method_awsiam: models::UpdateAuthMethodAwsiam) -> Result<serde_json::Value, Error<UpdateAuthMethodAwsiamError>> {
24514    // add a prefix to parameters to efficiently prevent name collisions
24515    let p_body_update_auth_method_awsiam = update_auth_method_awsiam;
24516
24517    let uri_str = format!("{}/update-auth-method-aws-iam", configuration.base_path);
24518    let mut req_builder = configuration.client.request(reqwest::Method::POST, &uri_str);
24519
24520    if let Some(ref user_agent) = configuration.user_agent {
24521        req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone());
24522    }
24523    req_builder = req_builder.json(&p_body_update_auth_method_awsiam);
24524
24525    let req = req_builder.build()?;
24526    let resp = configuration.client.execute(req).await?;
24527
24528    let status = resp.status();
24529    let content_type = resp
24530        .headers()
24531        .get("content-type")
24532        .and_then(|v| v.to_str().ok())
24533        .unwrap_or("application/octet-stream");
24534    let content_type = super::ContentType::from(content_type);
24535
24536    if !status.is_client_error() && !status.is_server_error() {
24537        let content = resp.text().await?;
24538        match content_type {
24539            ContentType::Json => serde_json::from_str(&content).map_err(Error::from),
24540            ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `serde_json::Value`"))),
24541            ContentType::Unsupported(unknown_type) => return Err(Error::from(serde_json::Error::custom(format!("Received `{unknown_type}` content type response that cannot be converted to `serde_json::Value`")))),
24542        }
24543    } else {
24544        let content = resp.text().await?;
24545        let entity: Option<UpdateAuthMethodAwsiamError> = serde_json::from_str(&content).ok();
24546        Err(Error::ResponseError(ResponseContent { status, content, entity }))
24547    }
24548}
24549
24550pub async fn update_auth_method_azure_ad(configuration: &configuration::Configuration, update_auth_method_azure_ad: models::UpdateAuthMethodAzureAd) -> Result<serde_json::Value, Error<UpdateAuthMethodAzureAdError>> {
24551    // add a prefix to parameters to efficiently prevent name collisions
24552    let p_body_update_auth_method_azure_ad = update_auth_method_azure_ad;
24553
24554    let uri_str = format!("{}/update-auth-method-azure-ad", configuration.base_path);
24555    let mut req_builder = configuration.client.request(reqwest::Method::POST, &uri_str);
24556
24557    if let Some(ref user_agent) = configuration.user_agent {
24558        req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone());
24559    }
24560    req_builder = req_builder.json(&p_body_update_auth_method_azure_ad);
24561
24562    let req = req_builder.build()?;
24563    let resp = configuration.client.execute(req).await?;
24564
24565    let status = resp.status();
24566    let content_type = resp
24567        .headers()
24568        .get("content-type")
24569        .and_then(|v| v.to_str().ok())
24570        .unwrap_or("application/octet-stream");
24571    let content_type = super::ContentType::from(content_type);
24572
24573    if !status.is_client_error() && !status.is_server_error() {
24574        let content = resp.text().await?;
24575        match content_type {
24576            ContentType::Json => serde_json::from_str(&content).map_err(Error::from),
24577            ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `serde_json::Value`"))),
24578            ContentType::Unsupported(unknown_type) => return Err(Error::from(serde_json::Error::custom(format!("Received `{unknown_type}` content type response that cannot be converted to `serde_json::Value`")))),
24579        }
24580    } else {
24581        let content = resp.text().await?;
24582        let entity: Option<UpdateAuthMethodAzureAdError> = serde_json::from_str(&content).ok();
24583        Err(Error::ResponseError(ResponseContent { status, content, entity }))
24584    }
24585}
24586
24587pub async fn update_auth_method_cert(configuration: &configuration::Configuration, update_auth_method_cert: models::UpdateAuthMethodCert) -> Result<models::UpdateAuthMethodCertOutput, Error<UpdateAuthMethodCertError>> {
24588    // add a prefix to parameters to efficiently prevent name collisions
24589    let p_body_update_auth_method_cert = update_auth_method_cert;
24590
24591    let uri_str = format!("{}/update-auth-method-cert", configuration.base_path);
24592    let mut req_builder = configuration.client.request(reqwest::Method::POST, &uri_str);
24593
24594    if let Some(ref user_agent) = configuration.user_agent {
24595        req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone());
24596    }
24597    req_builder = req_builder.json(&p_body_update_auth_method_cert);
24598
24599    let req = req_builder.build()?;
24600    let resp = configuration.client.execute(req).await?;
24601
24602    let status = resp.status();
24603    let content_type = resp
24604        .headers()
24605        .get("content-type")
24606        .and_then(|v| v.to_str().ok())
24607        .unwrap_or("application/octet-stream");
24608    let content_type = super::ContentType::from(content_type);
24609
24610    if !status.is_client_error() && !status.is_server_error() {
24611        let content = resp.text().await?;
24612        match content_type {
24613            ContentType::Json => serde_json::from_str(&content).map_err(Error::from),
24614            ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `models::UpdateAuthMethodCertOutput`"))),
24615            ContentType::Unsupported(unknown_type) => return Err(Error::from(serde_json::Error::custom(format!("Received `{unknown_type}` content type response that cannot be converted to `models::UpdateAuthMethodCertOutput`")))),
24616        }
24617    } else {
24618        let content = resp.text().await?;
24619        let entity: Option<UpdateAuthMethodCertError> = serde_json::from_str(&content).ok();
24620        Err(Error::ResponseError(ResponseContent { status, content, entity }))
24621    }
24622}
24623
24624pub async fn update_auth_method_gcp(configuration: &configuration::Configuration, update_auth_method_gcp: models::UpdateAuthMethodGcp) -> Result<serde_json::Value, Error<UpdateAuthMethodGcpError>> {
24625    // add a prefix to parameters to efficiently prevent name collisions
24626    let p_body_update_auth_method_gcp = update_auth_method_gcp;
24627
24628    let uri_str = format!("{}/update-auth-method-gcp", configuration.base_path);
24629    let mut req_builder = configuration.client.request(reqwest::Method::POST, &uri_str);
24630
24631    if let Some(ref user_agent) = configuration.user_agent {
24632        req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone());
24633    }
24634    req_builder = req_builder.json(&p_body_update_auth_method_gcp);
24635
24636    let req = req_builder.build()?;
24637    let resp = configuration.client.execute(req).await?;
24638
24639    let status = resp.status();
24640    let content_type = resp
24641        .headers()
24642        .get("content-type")
24643        .and_then(|v| v.to_str().ok())
24644        .unwrap_or("application/octet-stream");
24645    let content_type = super::ContentType::from(content_type);
24646
24647    if !status.is_client_error() && !status.is_server_error() {
24648        let content = resp.text().await?;
24649        match content_type {
24650            ContentType::Json => serde_json::from_str(&content).map_err(Error::from),
24651            ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `serde_json::Value`"))),
24652            ContentType::Unsupported(unknown_type) => return Err(Error::from(serde_json::Error::custom(format!("Received `{unknown_type}` content type response that cannot be converted to `serde_json::Value`")))),
24653        }
24654    } else {
24655        let content = resp.text().await?;
24656        let entity: Option<UpdateAuthMethodGcpError> = serde_json::from_str(&content).ok();
24657        Err(Error::ResponseError(ResponseContent { status, content, entity }))
24658    }
24659}
24660
24661pub async fn update_auth_method_k8_s(configuration: &configuration::Configuration, update_auth_method_k8_s: models::UpdateAuthMethodK8S) -> Result<models::UpdateAuthMethodK8SOutput, Error<UpdateAuthMethodK8SError>> {
24662    // add a prefix to parameters to efficiently prevent name collisions
24663    let p_body_update_auth_method_k8_s = update_auth_method_k8_s;
24664
24665    let uri_str = format!("{}/update-auth-method-k8s", configuration.base_path);
24666    let mut req_builder = configuration.client.request(reqwest::Method::POST, &uri_str);
24667
24668    if let Some(ref user_agent) = configuration.user_agent {
24669        req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone());
24670    }
24671    req_builder = req_builder.json(&p_body_update_auth_method_k8_s);
24672
24673    let req = req_builder.build()?;
24674    let resp = configuration.client.execute(req).await?;
24675
24676    let status = resp.status();
24677    let content_type = resp
24678        .headers()
24679        .get("content-type")
24680        .and_then(|v| v.to_str().ok())
24681        .unwrap_or("application/octet-stream");
24682    let content_type = super::ContentType::from(content_type);
24683
24684    if !status.is_client_error() && !status.is_server_error() {
24685        let content = resp.text().await?;
24686        match content_type {
24687            ContentType::Json => serde_json::from_str(&content).map_err(Error::from),
24688            ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `models::UpdateAuthMethodK8SOutput`"))),
24689            ContentType::Unsupported(unknown_type) => return Err(Error::from(serde_json::Error::custom(format!("Received `{unknown_type}` content type response that cannot be converted to `models::UpdateAuthMethodK8SOutput`")))),
24690        }
24691    } else {
24692        let content = resp.text().await?;
24693        let entity: Option<UpdateAuthMethodK8SError> = serde_json::from_str(&content).ok();
24694        Err(Error::ResponseError(ResponseContent { status, content, entity }))
24695    }
24696}
24697
24698pub async fn update_auth_method_ldap(configuration: &configuration::Configuration, update_auth_method_ldap: models::UpdateAuthMethodLdap) -> Result<models::UpdateAuthMethodLdapOutput, Error<UpdateAuthMethodLdapError>> {
24699    // add a prefix to parameters to efficiently prevent name collisions
24700    let p_body_update_auth_method_ldap = update_auth_method_ldap;
24701
24702    let uri_str = format!("{}/update-auth-method-ldap", configuration.base_path);
24703    let mut req_builder = configuration.client.request(reqwest::Method::POST, &uri_str);
24704
24705    if let Some(ref user_agent) = configuration.user_agent {
24706        req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone());
24707    }
24708    req_builder = req_builder.json(&p_body_update_auth_method_ldap);
24709
24710    let req = req_builder.build()?;
24711    let resp = configuration.client.execute(req).await?;
24712
24713    let status = resp.status();
24714    let content_type = resp
24715        .headers()
24716        .get("content-type")
24717        .and_then(|v| v.to_str().ok())
24718        .unwrap_or("application/octet-stream");
24719    let content_type = super::ContentType::from(content_type);
24720
24721    if !status.is_client_error() && !status.is_server_error() {
24722        let content = resp.text().await?;
24723        match content_type {
24724            ContentType::Json => serde_json::from_str(&content).map_err(Error::from),
24725            ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `models::UpdateAuthMethodLdapOutput`"))),
24726            ContentType::Unsupported(unknown_type) => return Err(Error::from(serde_json::Error::custom(format!("Received `{unknown_type}` content type response that cannot be converted to `models::UpdateAuthMethodLdapOutput`")))),
24727        }
24728    } else {
24729        let content = resp.text().await?;
24730        let entity: Option<UpdateAuthMethodLdapError> = serde_json::from_str(&content).ok();
24731        Err(Error::ResponseError(ResponseContent { status, content, entity }))
24732    }
24733}
24734
24735pub async fn update_auth_method_o_auth2(configuration: &configuration::Configuration, update_auth_method_o_auth2: models::UpdateAuthMethodOAuth2) -> Result<serde_json::Value, Error<UpdateAuthMethodOAuth2Error>> {
24736    // add a prefix to parameters to efficiently prevent name collisions
24737    let p_body_update_auth_method_o_auth2 = update_auth_method_o_auth2;
24738
24739    let uri_str = format!("{}/update-auth-method-oauth2", configuration.base_path);
24740    let mut req_builder = configuration.client.request(reqwest::Method::POST, &uri_str);
24741
24742    if let Some(ref user_agent) = configuration.user_agent {
24743        req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone());
24744    }
24745    req_builder = req_builder.json(&p_body_update_auth_method_o_auth2);
24746
24747    let req = req_builder.build()?;
24748    let resp = configuration.client.execute(req).await?;
24749
24750    let status = resp.status();
24751    let content_type = resp
24752        .headers()
24753        .get("content-type")
24754        .and_then(|v| v.to_str().ok())
24755        .unwrap_or("application/octet-stream");
24756    let content_type = super::ContentType::from(content_type);
24757
24758    if !status.is_client_error() && !status.is_server_error() {
24759        let content = resp.text().await?;
24760        match content_type {
24761            ContentType::Json => serde_json::from_str(&content).map_err(Error::from),
24762            ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `serde_json::Value`"))),
24763            ContentType::Unsupported(unknown_type) => return Err(Error::from(serde_json::Error::custom(format!("Received `{unknown_type}` content type response that cannot be converted to `serde_json::Value`")))),
24764        }
24765    } else {
24766        let content = resp.text().await?;
24767        let entity: Option<UpdateAuthMethodOAuth2Error> = serde_json::from_str(&content).ok();
24768        Err(Error::ResponseError(ResponseContent { status, content, entity }))
24769    }
24770}
24771
24772pub async fn update_auth_method_oci(configuration: &configuration::Configuration, update_auth_method_oci: models::UpdateAuthMethodOci) -> Result<models::UpdateAuthMethodOciOutput, Error<UpdateAuthMethodOciError>> {
24773    // add a prefix to parameters to efficiently prevent name collisions
24774    let p_body_update_auth_method_oci = update_auth_method_oci;
24775
24776    let uri_str = format!("{}/update-auth-method-oci", configuration.base_path);
24777    let mut req_builder = configuration.client.request(reqwest::Method::POST, &uri_str);
24778
24779    if let Some(ref user_agent) = configuration.user_agent {
24780        req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone());
24781    }
24782    req_builder = req_builder.json(&p_body_update_auth_method_oci);
24783
24784    let req = req_builder.build()?;
24785    let resp = configuration.client.execute(req).await?;
24786
24787    let status = resp.status();
24788    let content_type = resp
24789        .headers()
24790        .get("content-type")
24791        .and_then(|v| v.to_str().ok())
24792        .unwrap_or("application/octet-stream");
24793    let content_type = super::ContentType::from(content_type);
24794
24795    if !status.is_client_error() && !status.is_server_error() {
24796        let content = resp.text().await?;
24797        match content_type {
24798            ContentType::Json => serde_json::from_str(&content).map_err(Error::from),
24799            ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `models::UpdateAuthMethodOciOutput`"))),
24800            ContentType::Unsupported(unknown_type) => return Err(Error::from(serde_json::Error::custom(format!("Received `{unknown_type}` content type response that cannot be converted to `models::UpdateAuthMethodOciOutput`")))),
24801        }
24802    } else {
24803        let content = resp.text().await?;
24804        let entity: Option<UpdateAuthMethodOciError> = serde_json::from_str(&content).ok();
24805        Err(Error::ResponseError(ResponseContent { status, content, entity }))
24806    }
24807}
24808
24809pub async fn update_auth_method_oidc(configuration: &configuration::Configuration, update_auth_method_oidc: models::UpdateAuthMethodOidc) -> Result<serde_json::Value, Error<UpdateAuthMethodOidcError>> {
24810    // add a prefix to parameters to efficiently prevent name collisions
24811    let p_body_update_auth_method_oidc = update_auth_method_oidc;
24812
24813    let uri_str = format!("{}/update-auth-method-oidc", configuration.base_path);
24814    let mut req_builder = configuration.client.request(reqwest::Method::POST, &uri_str);
24815
24816    if let Some(ref user_agent) = configuration.user_agent {
24817        req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone());
24818    }
24819    req_builder = req_builder.json(&p_body_update_auth_method_oidc);
24820
24821    let req = req_builder.build()?;
24822    let resp = configuration.client.execute(req).await?;
24823
24824    let status = resp.status();
24825    let content_type = resp
24826        .headers()
24827        .get("content-type")
24828        .and_then(|v| v.to_str().ok())
24829        .unwrap_or("application/octet-stream");
24830    let content_type = super::ContentType::from(content_type);
24831
24832    if !status.is_client_error() && !status.is_server_error() {
24833        let content = resp.text().await?;
24834        match content_type {
24835            ContentType::Json => serde_json::from_str(&content).map_err(Error::from),
24836            ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `serde_json::Value`"))),
24837            ContentType::Unsupported(unknown_type) => return Err(Error::from(serde_json::Error::custom(format!("Received `{unknown_type}` content type response that cannot be converted to `serde_json::Value`")))),
24838        }
24839    } else {
24840        let content = resp.text().await?;
24841        let entity: Option<UpdateAuthMethodOidcError> = serde_json::from_str(&content).ok();
24842        Err(Error::ResponseError(ResponseContent { status, content, entity }))
24843    }
24844}
24845
24846pub async fn update_auth_method_saml(configuration: &configuration::Configuration, update_auth_method_saml: models::UpdateAuthMethodSaml) -> Result<serde_json::Value, Error<UpdateAuthMethodSamlError>> {
24847    // add a prefix to parameters to efficiently prevent name collisions
24848    let p_body_update_auth_method_saml = update_auth_method_saml;
24849
24850    let uri_str = format!("{}/update-auth-method-saml", configuration.base_path);
24851    let mut req_builder = configuration.client.request(reqwest::Method::POST, &uri_str);
24852
24853    if let Some(ref user_agent) = configuration.user_agent {
24854        req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone());
24855    }
24856    req_builder = req_builder.json(&p_body_update_auth_method_saml);
24857
24858    let req = req_builder.build()?;
24859    let resp = configuration.client.execute(req).await?;
24860
24861    let status = resp.status();
24862    let content_type = resp
24863        .headers()
24864        .get("content-type")
24865        .and_then(|v| v.to_str().ok())
24866        .unwrap_or("application/octet-stream");
24867    let content_type = super::ContentType::from(content_type);
24868
24869    if !status.is_client_error() && !status.is_server_error() {
24870        let content = resp.text().await?;
24871        match content_type {
24872            ContentType::Json => serde_json::from_str(&content).map_err(Error::from),
24873            ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `serde_json::Value`"))),
24874            ContentType::Unsupported(unknown_type) => return Err(Error::from(serde_json::Error::custom(format!("Received `{unknown_type}` content type response that cannot be converted to `serde_json::Value`")))),
24875        }
24876    } else {
24877        let content = resp.text().await?;
24878        let entity: Option<UpdateAuthMethodSamlError> = serde_json::from_str(&content).ok();
24879        Err(Error::ResponseError(ResponseContent { status, content, entity }))
24880    }
24881}
24882
24883pub async fn update_auth_method_universal_identity(configuration: &configuration::Configuration, update_auth_method_universal_identity: models::UpdateAuthMethodUniversalIdentity) -> Result<serde_json::Value, Error<UpdateAuthMethodUniversalIdentityError>> {
24884    // add a prefix to parameters to efficiently prevent name collisions
24885    let p_body_update_auth_method_universal_identity = update_auth_method_universal_identity;
24886
24887    let uri_str = format!("{}/update-auth-method-universal-identity", configuration.base_path);
24888    let mut req_builder = configuration.client.request(reqwest::Method::POST, &uri_str);
24889
24890    if let Some(ref user_agent) = configuration.user_agent {
24891        req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone());
24892    }
24893    req_builder = req_builder.json(&p_body_update_auth_method_universal_identity);
24894
24895    let req = req_builder.build()?;
24896    let resp = configuration.client.execute(req).await?;
24897
24898    let status = resp.status();
24899    let content_type = resp
24900        .headers()
24901        .get("content-type")
24902        .and_then(|v| v.to_str().ok())
24903        .unwrap_or("application/octet-stream");
24904    let content_type = super::ContentType::from(content_type);
24905
24906    if !status.is_client_error() && !status.is_server_error() {
24907        let content = resp.text().await?;
24908        match content_type {
24909            ContentType::Json => serde_json::from_str(&content).map_err(Error::from),
24910            ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `serde_json::Value`"))),
24911            ContentType::Unsupported(unknown_type) => return Err(Error::from(serde_json::Error::custom(format!("Received `{unknown_type}` content type response that cannot be converted to `serde_json::Value`")))),
24912        }
24913    } else {
24914        let content = resp.text().await?;
24915        let entity: Option<UpdateAuthMethodUniversalIdentityError> = serde_json::from_str(&content).ok();
24916        Err(Error::ResponseError(ResponseContent { status, content, entity }))
24917    }
24918}
24919
24920pub async fn update_aws_target(configuration: &configuration::Configuration, update_aws_target: models::UpdateAwsTarget) -> Result<serde_json::Value, Error<UpdateAwsTargetError>> {
24921    // add a prefix to parameters to efficiently prevent name collisions
24922    let p_body_update_aws_target = update_aws_target;
24923
24924    let uri_str = format!("{}/update-aws-target", configuration.base_path);
24925    let mut req_builder = configuration.client.request(reqwest::Method::POST, &uri_str);
24926
24927    if let Some(ref user_agent) = configuration.user_agent {
24928        req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone());
24929    }
24930    req_builder = req_builder.json(&p_body_update_aws_target);
24931
24932    let req = req_builder.build()?;
24933    let resp = configuration.client.execute(req).await?;
24934
24935    let status = resp.status();
24936    let content_type = resp
24937        .headers()
24938        .get("content-type")
24939        .and_then(|v| v.to_str().ok())
24940        .unwrap_or("application/octet-stream");
24941    let content_type = super::ContentType::from(content_type);
24942
24943    if !status.is_client_error() && !status.is_server_error() {
24944        let content = resp.text().await?;
24945        match content_type {
24946            ContentType::Json => serde_json::from_str(&content).map_err(Error::from),
24947            ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `serde_json::Value`"))),
24948            ContentType::Unsupported(unknown_type) => return Err(Error::from(serde_json::Error::custom(format!("Received `{unknown_type}` content type response that cannot be converted to `serde_json::Value`")))),
24949        }
24950    } else {
24951        let content = resp.text().await?;
24952        let entity: Option<UpdateAwsTargetError> = serde_json::from_str(&content).ok();
24953        Err(Error::ResponseError(ResponseContent { status, content, entity }))
24954    }
24955}
24956
24957pub async fn update_aws_target_details(configuration: &configuration::Configuration, update_aws_target_details: models::UpdateAwsTargetDetails) -> Result<models::UpdateTargetOutput, Error<UpdateAwsTargetDetailsError>> {
24958    // add a prefix to parameters to efficiently prevent name collisions
24959    let p_body_update_aws_target_details = update_aws_target_details;
24960
24961    let uri_str = format!("{}/update-aws-target-details", configuration.base_path);
24962    let mut req_builder = configuration.client.request(reqwest::Method::POST, &uri_str);
24963
24964    if let Some(ref user_agent) = configuration.user_agent {
24965        req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone());
24966    }
24967    req_builder = req_builder.json(&p_body_update_aws_target_details);
24968
24969    let req = req_builder.build()?;
24970    let resp = configuration.client.execute(req).await?;
24971
24972    let status = resp.status();
24973    let content_type = resp
24974        .headers()
24975        .get("content-type")
24976        .and_then(|v| v.to_str().ok())
24977        .unwrap_or("application/octet-stream");
24978    let content_type = super::ContentType::from(content_type);
24979
24980    if !status.is_client_error() && !status.is_server_error() {
24981        let content = resp.text().await?;
24982        match content_type {
24983            ContentType::Json => serde_json::from_str(&content).map_err(Error::from),
24984            ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `models::UpdateTargetOutput`"))),
24985            ContentType::Unsupported(unknown_type) => return Err(Error::from(serde_json::Error::custom(format!("Received `{unknown_type}` content type response that cannot be converted to `models::UpdateTargetOutput`")))),
24986        }
24987    } else {
24988        let content = resp.text().await?;
24989        let entity: Option<UpdateAwsTargetDetailsError> = serde_json::from_str(&content).ok();
24990        Err(Error::ResponseError(ResponseContent { status, content, entity }))
24991    }
24992}
24993
24994pub async fn update_azure_target(configuration: &configuration::Configuration, update_azure_target: models::UpdateAzureTarget) -> Result<models::UpdateAzureTargetOutput, Error<UpdateAzureTargetError>> {
24995    // add a prefix to parameters to efficiently prevent name collisions
24996    let p_body_update_azure_target = update_azure_target;
24997
24998    let uri_str = format!("{}/update-azure-target", configuration.base_path);
24999    let mut req_builder = configuration.client.request(reqwest::Method::POST, &uri_str);
25000
25001    if let Some(ref user_agent) = configuration.user_agent {
25002        req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone());
25003    }
25004    req_builder = req_builder.json(&p_body_update_azure_target);
25005
25006    let req = req_builder.build()?;
25007    let resp = configuration.client.execute(req).await?;
25008
25009    let status = resp.status();
25010    let content_type = resp
25011        .headers()
25012        .get("content-type")
25013        .and_then(|v| v.to_str().ok())
25014        .unwrap_or("application/octet-stream");
25015    let content_type = super::ContentType::from(content_type);
25016
25017    if !status.is_client_error() && !status.is_server_error() {
25018        let content = resp.text().await?;
25019        match content_type {
25020            ContentType::Json => serde_json::from_str(&content).map_err(Error::from),
25021            ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `models::UpdateAzureTargetOutput`"))),
25022            ContentType::Unsupported(unknown_type) => return Err(Error::from(serde_json::Error::custom(format!("Received `{unknown_type}` content type response that cannot be converted to `models::UpdateAzureTargetOutput`")))),
25023        }
25024    } else {
25025        let content = resp.text().await?;
25026        let entity: Option<UpdateAzureTargetError> = serde_json::from_str(&content).ok();
25027        Err(Error::ResponseError(ResponseContent { status, content, entity }))
25028    }
25029}
25030
25031pub async fn update_certificate_value(configuration: &configuration::Configuration, update_certificate_value: models::UpdateCertificateValue) -> Result<models::UpdateCertificateOutput, Error<UpdateCertificateValueError>> {
25032    // add a prefix to parameters to efficiently prevent name collisions
25033    let p_body_update_certificate_value = update_certificate_value;
25034
25035    let uri_str = format!("{}/update-certificate-value", configuration.base_path);
25036    let mut req_builder = configuration.client.request(reqwest::Method::POST, &uri_str);
25037
25038    if let Some(ref user_agent) = configuration.user_agent {
25039        req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone());
25040    }
25041    req_builder = req_builder.json(&p_body_update_certificate_value);
25042
25043    let req = req_builder.build()?;
25044    let resp = configuration.client.execute(req).await?;
25045
25046    let status = resp.status();
25047    let content_type = resp
25048        .headers()
25049        .get("content-type")
25050        .and_then(|v| v.to_str().ok())
25051        .unwrap_or("application/octet-stream");
25052    let content_type = super::ContentType::from(content_type);
25053
25054    if !status.is_client_error() && !status.is_server_error() {
25055        let content = resp.text().await?;
25056        match content_type {
25057            ContentType::Json => serde_json::from_str(&content).map_err(Error::from),
25058            ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `models::UpdateCertificateOutput`"))),
25059            ContentType::Unsupported(unknown_type) => return Err(Error::from(serde_json::Error::custom(format!("Received `{unknown_type}` content type response that cannot be converted to `models::UpdateCertificateOutput`")))),
25060        }
25061    } else {
25062        let content = resp.text().await?;
25063        let entity: Option<UpdateCertificateValueError> = serde_json::from_str(&content).ok();
25064        Err(Error::ResponseError(ResponseContent { status, content, entity }))
25065    }
25066}
25067
25068pub async fn update_classic_key_certificate(configuration: &configuration::Configuration, update_classic_key_certificate: models::UpdateClassicKeyCertificate) -> Result<serde_json::Value, Error<UpdateClassicKeyCertificateError>> {
25069    // add a prefix to parameters to efficiently prevent name collisions
25070    let p_body_update_classic_key_certificate = update_classic_key_certificate;
25071
25072    let uri_str = format!("{}/update-classic-key-certificate", configuration.base_path);
25073    let mut req_builder = configuration.client.request(reqwest::Method::POST, &uri_str);
25074
25075    if let Some(ref user_agent) = configuration.user_agent {
25076        req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone());
25077    }
25078    req_builder = req_builder.json(&p_body_update_classic_key_certificate);
25079
25080    let req = req_builder.build()?;
25081    let resp = configuration.client.execute(req).await?;
25082
25083    let status = resp.status();
25084    let content_type = resp
25085        .headers()
25086        .get("content-type")
25087        .and_then(|v| v.to_str().ok())
25088        .unwrap_or("application/octet-stream");
25089    let content_type = super::ContentType::from(content_type);
25090
25091    if !status.is_client_error() && !status.is_server_error() {
25092        let content = resp.text().await?;
25093        match content_type {
25094            ContentType::Json => serde_json::from_str(&content).map_err(Error::from),
25095            ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `serde_json::Value`"))),
25096            ContentType::Unsupported(unknown_type) => return Err(Error::from(serde_json::Error::custom(format!("Received `{unknown_type}` content type response that cannot be converted to `serde_json::Value`")))),
25097        }
25098    } else {
25099        let content = resp.text().await?;
25100        let entity: Option<UpdateClassicKeyCertificateError> = serde_json::from_str(&content).ok();
25101        Err(Error::ResponseError(ResponseContent { status, content, entity }))
25102    }
25103}
25104
25105pub async fn update_db_target(configuration: &configuration::Configuration, update_db_target: models::UpdateDbTarget) -> Result<models::UpdateDbTargetOutput, Error<UpdateDbTargetError>> {
25106    // add a prefix to parameters to efficiently prevent name collisions
25107    let p_body_update_db_target = update_db_target;
25108
25109    let uri_str = format!("{}/update-db-target", configuration.base_path);
25110    let mut req_builder = configuration.client.request(reqwest::Method::POST, &uri_str);
25111
25112    if let Some(ref user_agent) = configuration.user_agent {
25113        req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone());
25114    }
25115    req_builder = req_builder.json(&p_body_update_db_target);
25116
25117    let req = req_builder.build()?;
25118    let resp = configuration.client.execute(req).await?;
25119
25120    let status = resp.status();
25121    let content_type = resp
25122        .headers()
25123        .get("content-type")
25124        .and_then(|v| v.to_str().ok())
25125        .unwrap_or("application/octet-stream");
25126    let content_type = super::ContentType::from(content_type);
25127
25128    if !status.is_client_error() && !status.is_server_error() {
25129        let content = resp.text().await?;
25130        match content_type {
25131            ContentType::Json => serde_json::from_str(&content).map_err(Error::from),
25132            ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `models::UpdateDbTargetOutput`"))),
25133            ContentType::Unsupported(unknown_type) => return Err(Error::from(serde_json::Error::custom(format!("Received `{unknown_type}` content type response that cannot be converted to `models::UpdateDbTargetOutput`")))),
25134        }
25135    } else {
25136        let content = resp.text().await?;
25137        let entity: Option<UpdateDbTargetError> = serde_json::from_str(&content).ok();
25138        Err(Error::ResponseError(ResponseContent { status, content, entity }))
25139    }
25140}
25141
25142pub async fn update_db_target_details(configuration: &configuration::Configuration, update_db_target_details: models::UpdateDbTargetDetails) -> Result<models::UpdateTargetOutput, Error<UpdateDbTargetDetailsError>> {
25143    // add a prefix to parameters to efficiently prevent name collisions
25144    let p_body_update_db_target_details = update_db_target_details;
25145
25146    let uri_str = format!("{}/update-db-target-details", configuration.base_path);
25147    let mut req_builder = configuration.client.request(reqwest::Method::POST, &uri_str);
25148
25149    if let Some(ref user_agent) = configuration.user_agent {
25150        req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone());
25151    }
25152    req_builder = req_builder.json(&p_body_update_db_target_details);
25153
25154    let req = req_builder.build()?;
25155    let resp = configuration.client.execute(req).await?;
25156
25157    let status = resp.status();
25158    let content_type = resp
25159        .headers()
25160        .get("content-type")
25161        .and_then(|v| v.to_str().ok())
25162        .unwrap_or("application/octet-stream");
25163    let content_type = super::ContentType::from(content_type);
25164
25165    if !status.is_client_error() && !status.is_server_error() {
25166        let content = resp.text().await?;
25167        match content_type {
25168            ContentType::Json => serde_json::from_str(&content).map_err(Error::from),
25169            ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `models::UpdateTargetOutput`"))),
25170            ContentType::Unsupported(unknown_type) => return Err(Error::from(serde_json::Error::custom(format!("Received `{unknown_type}` content type response that cannot be converted to `models::UpdateTargetOutput`")))),
25171        }
25172    } else {
25173        let content = resp.text().await?;
25174        let entity: Option<UpdateDbTargetDetailsError> = serde_json::from_str(&content).ok();
25175        Err(Error::ResponseError(ResponseContent { status, content, entity }))
25176    }
25177}
25178
25179pub async fn update_dockerhub_target(configuration: &configuration::Configuration, update_dockerhub_target: models::UpdateDockerhubTarget) -> Result<models::UpdateDockerhubTargetOutput, Error<UpdateDockerhubTargetError>> {
25180    // add a prefix to parameters to efficiently prevent name collisions
25181    let p_body_update_dockerhub_target = update_dockerhub_target;
25182
25183    let uri_str = format!("{}/update-dockerhub-target", configuration.base_path);
25184    let mut req_builder = configuration.client.request(reqwest::Method::POST, &uri_str);
25185
25186    if let Some(ref user_agent) = configuration.user_agent {
25187        req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone());
25188    }
25189    req_builder = req_builder.json(&p_body_update_dockerhub_target);
25190
25191    let req = req_builder.build()?;
25192    let resp = configuration.client.execute(req).await?;
25193
25194    let status = resp.status();
25195    let content_type = resp
25196        .headers()
25197        .get("content-type")
25198        .and_then(|v| v.to_str().ok())
25199        .unwrap_or("application/octet-stream");
25200    let content_type = super::ContentType::from(content_type);
25201
25202    if !status.is_client_error() && !status.is_server_error() {
25203        let content = resp.text().await?;
25204        match content_type {
25205            ContentType::Json => serde_json::from_str(&content).map_err(Error::from),
25206            ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `models::UpdateDockerhubTargetOutput`"))),
25207            ContentType::Unsupported(unknown_type) => return Err(Error::from(serde_json::Error::custom(format!("Received `{unknown_type}` content type response that cannot be converted to `models::UpdateDockerhubTargetOutput`")))),
25208        }
25209    } else {
25210        let content = resp.text().await?;
25211        let entity: Option<UpdateDockerhubTargetError> = serde_json::from_str(&content).ok();
25212        Err(Error::ResponseError(ResponseContent { status, content, entity }))
25213    }
25214}
25215
25216pub async fn update_eks_target(configuration: &configuration::Configuration, update_eks_target: models::UpdateEksTarget) -> Result<models::UpdateEksTargetOutput, Error<UpdateEksTargetError>> {
25217    // add a prefix to parameters to efficiently prevent name collisions
25218    let p_body_update_eks_target = update_eks_target;
25219
25220    let uri_str = format!("{}/update-eks-target", configuration.base_path);
25221    let mut req_builder = configuration.client.request(reqwest::Method::POST, &uri_str);
25222
25223    if let Some(ref user_agent) = configuration.user_agent {
25224        req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone());
25225    }
25226    req_builder = req_builder.json(&p_body_update_eks_target);
25227
25228    let req = req_builder.build()?;
25229    let resp = configuration.client.execute(req).await?;
25230
25231    let status = resp.status();
25232    let content_type = resp
25233        .headers()
25234        .get("content-type")
25235        .and_then(|v| v.to_str().ok())
25236        .unwrap_or("application/octet-stream");
25237    let content_type = super::ContentType::from(content_type);
25238
25239    if !status.is_client_error() && !status.is_server_error() {
25240        let content = resp.text().await?;
25241        match content_type {
25242            ContentType::Json => serde_json::from_str(&content).map_err(Error::from),
25243            ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `models::UpdateEksTargetOutput`"))),
25244            ContentType::Unsupported(unknown_type) => return Err(Error::from(serde_json::Error::custom(format!("Received `{unknown_type}` content type response that cannot be converted to `models::UpdateEksTargetOutput`")))),
25245        }
25246    } else {
25247        let content = resp.text().await?;
25248        let entity: Option<UpdateEksTargetError> = serde_json::from_str(&content).ok();
25249        Err(Error::ResponseError(ResponseContent { status, content, entity }))
25250    }
25251}
25252
25253pub async fn update_event_forwarder(configuration: &configuration::Configuration, update_event_forwarder: models::UpdateEventForwarder) -> Result<serde_json::Value, Error<UpdateEventForwarderError>> {
25254    // add a prefix to parameters to efficiently prevent name collisions
25255    let p_body_update_event_forwarder = update_event_forwarder;
25256
25257    let uri_str = format!("{}/update-event-forwarder", configuration.base_path);
25258    let mut req_builder = configuration.client.request(reqwest::Method::POST, &uri_str);
25259
25260    if let Some(ref user_agent) = configuration.user_agent {
25261        req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone());
25262    }
25263    req_builder = req_builder.json(&p_body_update_event_forwarder);
25264
25265    let req = req_builder.build()?;
25266    let resp = configuration.client.execute(req).await?;
25267
25268    let status = resp.status();
25269    let content_type = resp
25270        .headers()
25271        .get("content-type")
25272        .and_then(|v| v.to_str().ok())
25273        .unwrap_or("application/octet-stream");
25274    let content_type = super::ContentType::from(content_type);
25275
25276    if !status.is_client_error() && !status.is_server_error() {
25277        let content = resp.text().await?;
25278        match content_type {
25279            ContentType::Json => serde_json::from_str(&content).map_err(Error::from),
25280            ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `serde_json::Value`"))),
25281            ContentType::Unsupported(unknown_type) => return Err(Error::from(serde_json::Error::custom(format!("Received `{unknown_type}` content type response that cannot be converted to `serde_json::Value`")))),
25282        }
25283    } else {
25284        let content = resp.text().await?;
25285        let entity: Option<UpdateEventForwarderError> = serde_json::from_str(&content).ok();
25286        Err(Error::ResponseError(ResponseContent { status, content, entity }))
25287    }
25288}
25289
25290pub async fn update_gcp_target(configuration: &configuration::Configuration, update_gcp_target: models::UpdateGcpTarget) -> Result<models::UpdateGcpTargetOutput, Error<UpdateGcpTargetError>> {
25291    // add a prefix to parameters to efficiently prevent name collisions
25292    let p_body_update_gcp_target = update_gcp_target;
25293
25294    let uri_str = format!("{}/update-gcp-target", configuration.base_path);
25295    let mut req_builder = configuration.client.request(reqwest::Method::POST, &uri_str);
25296
25297    if let Some(ref user_agent) = configuration.user_agent {
25298        req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone());
25299    }
25300    req_builder = req_builder.json(&p_body_update_gcp_target);
25301
25302    let req = req_builder.build()?;
25303    let resp = configuration.client.execute(req).await?;
25304
25305    let status = resp.status();
25306    let content_type = resp
25307        .headers()
25308        .get("content-type")
25309        .and_then(|v| v.to_str().ok())
25310        .unwrap_or("application/octet-stream");
25311    let content_type = super::ContentType::from(content_type);
25312
25313    if !status.is_client_error() && !status.is_server_error() {
25314        let content = resp.text().await?;
25315        match content_type {
25316            ContentType::Json => serde_json::from_str(&content).map_err(Error::from),
25317            ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `models::UpdateGcpTargetOutput`"))),
25318            ContentType::Unsupported(unknown_type) => return Err(Error::from(serde_json::Error::custom(format!("Received `{unknown_type}` content type response that cannot be converted to `models::UpdateGcpTargetOutput`")))),
25319        }
25320    } else {
25321        let content = resp.text().await?;
25322        let entity: Option<UpdateGcpTargetError> = serde_json::from_str(&content).ok();
25323        Err(Error::ResponseError(ResponseContent { status, content, entity }))
25324    }
25325}
25326
25327pub async fn update_github_target(configuration: &configuration::Configuration, update_github_target: models::UpdateGithubTarget) -> Result<models::UpdateGithubTargetOutput, Error<UpdateGithubTargetError>> {
25328    // add a prefix to parameters to efficiently prevent name collisions
25329    let p_body_update_github_target = update_github_target;
25330
25331    let uri_str = format!("{}/update-github-target", configuration.base_path);
25332    let mut req_builder = configuration.client.request(reqwest::Method::POST, &uri_str);
25333
25334    if let Some(ref user_agent) = configuration.user_agent {
25335        req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone());
25336    }
25337    req_builder = req_builder.json(&p_body_update_github_target);
25338
25339    let req = req_builder.build()?;
25340    let resp = configuration.client.execute(req).await?;
25341
25342    let status = resp.status();
25343    let content_type = resp
25344        .headers()
25345        .get("content-type")
25346        .and_then(|v| v.to_str().ok())
25347        .unwrap_or("application/octet-stream");
25348    let content_type = super::ContentType::from(content_type);
25349
25350    if !status.is_client_error() && !status.is_server_error() {
25351        let content = resp.text().await?;
25352        match content_type {
25353            ContentType::Json => serde_json::from_str(&content).map_err(Error::from),
25354            ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `models::UpdateGithubTargetOutput`"))),
25355            ContentType::Unsupported(unknown_type) => return Err(Error::from(serde_json::Error::custom(format!("Received `{unknown_type}` content type response that cannot be converted to `models::UpdateGithubTargetOutput`")))),
25356        }
25357    } else {
25358        let content = resp.text().await?;
25359        let entity: Option<UpdateGithubTargetError> = serde_json::from_str(&content).ok();
25360        Err(Error::ResponseError(ResponseContent { status, content, entity }))
25361    }
25362}
25363
25364pub async fn update_gitlab_target(configuration: &configuration::Configuration, update_gitlab_target: models::UpdateGitlabTarget) -> Result<models::UpdateGitlabTargetOutput, Error<UpdateGitlabTargetError>> {
25365    // add a prefix to parameters to efficiently prevent name collisions
25366    let p_body_update_gitlab_target = update_gitlab_target;
25367
25368    let uri_str = format!("{}/update-gitlab-target", configuration.base_path);
25369    let mut req_builder = configuration.client.request(reqwest::Method::POST, &uri_str);
25370
25371    if let Some(ref user_agent) = configuration.user_agent {
25372        req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone());
25373    }
25374    req_builder = req_builder.json(&p_body_update_gitlab_target);
25375
25376    let req = req_builder.build()?;
25377    let resp = configuration.client.execute(req).await?;
25378
25379    let status = resp.status();
25380    let content_type = resp
25381        .headers()
25382        .get("content-type")
25383        .and_then(|v| v.to_str().ok())
25384        .unwrap_or("application/octet-stream");
25385    let content_type = super::ContentType::from(content_type);
25386
25387    if !status.is_client_error() && !status.is_server_error() {
25388        let content = resp.text().await?;
25389        match content_type {
25390            ContentType::Json => serde_json::from_str(&content).map_err(Error::from),
25391            ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `models::UpdateGitlabTargetOutput`"))),
25392            ContentType::Unsupported(unknown_type) => return Err(Error::from(serde_json::Error::custom(format!("Received `{unknown_type}` content type response that cannot be converted to `models::UpdateGitlabTargetOutput`")))),
25393        }
25394    } else {
25395        let content = resp.text().await?;
25396        let entity: Option<UpdateGitlabTargetError> = serde_json::from_str(&content).ok();
25397        Err(Error::ResponseError(ResponseContent { status, content, entity }))
25398    }
25399}
25400
25401pub async fn update_gke_target(configuration: &configuration::Configuration, update_gke_target: models::UpdateGkeTarget) -> Result<models::UpdateGkeTargetOutput, Error<UpdateGkeTargetError>> {
25402    // add a prefix to parameters to efficiently prevent name collisions
25403    let p_body_update_gke_target = update_gke_target;
25404
25405    let uri_str = format!("{}/update-gke-target", configuration.base_path);
25406    let mut req_builder = configuration.client.request(reqwest::Method::POST, &uri_str);
25407
25408    if let Some(ref user_agent) = configuration.user_agent {
25409        req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone());
25410    }
25411    req_builder = req_builder.json(&p_body_update_gke_target);
25412
25413    let req = req_builder.build()?;
25414    let resp = configuration.client.execute(req).await?;
25415
25416    let status = resp.status();
25417    let content_type = resp
25418        .headers()
25419        .get("content-type")
25420        .and_then(|v| v.to_str().ok())
25421        .unwrap_or("application/octet-stream");
25422    let content_type = super::ContentType::from(content_type);
25423
25424    if !status.is_client_error() && !status.is_server_error() {
25425        let content = resp.text().await?;
25426        match content_type {
25427            ContentType::Json => serde_json::from_str(&content).map_err(Error::from),
25428            ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `models::UpdateGkeTargetOutput`"))),
25429            ContentType::Unsupported(unknown_type) => return Err(Error::from(serde_json::Error::custom(format!("Received `{unknown_type}` content type response that cannot be converted to `models::UpdateGkeTargetOutput`")))),
25430        }
25431    } else {
25432        let content = resp.text().await?;
25433        let entity: Option<UpdateGkeTargetError> = serde_json::from_str(&content).ok();
25434        Err(Error::ResponseError(ResponseContent { status, content, entity }))
25435    }
25436}
25437
25438pub async fn update_global_sign_atlas_target(configuration: &configuration::Configuration, update_global_sign_atlas_target: models::UpdateGlobalSignAtlasTarget) -> Result<models::UpdateGlobalSignAtlasTargetOutput, Error<UpdateGlobalSignAtlasTargetError>> {
25439    // add a prefix to parameters to efficiently prevent name collisions
25440    let p_body_update_global_sign_atlas_target = update_global_sign_atlas_target;
25441
25442    let uri_str = format!("{}/update-globalsign-atlas-target", configuration.base_path);
25443    let mut req_builder = configuration.client.request(reqwest::Method::POST, &uri_str);
25444
25445    if let Some(ref user_agent) = configuration.user_agent {
25446        req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone());
25447    }
25448    req_builder = req_builder.json(&p_body_update_global_sign_atlas_target);
25449
25450    let req = req_builder.build()?;
25451    let resp = configuration.client.execute(req).await?;
25452
25453    let status = resp.status();
25454    let content_type = resp
25455        .headers()
25456        .get("content-type")
25457        .and_then(|v| v.to_str().ok())
25458        .unwrap_or("application/octet-stream");
25459    let content_type = super::ContentType::from(content_type);
25460
25461    if !status.is_client_error() && !status.is_server_error() {
25462        let content = resp.text().await?;
25463        match content_type {
25464            ContentType::Json => serde_json::from_str(&content).map_err(Error::from),
25465            ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `models::UpdateGlobalSignAtlasTargetOutput`"))),
25466            ContentType::Unsupported(unknown_type) => return Err(Error::from(serde_json::Error::custom(format!("Received `{unknown_type}` content type response that cannot be converted to `models::UpdateGlobalSignAtlasTargetOutput`")))),
25467        }
25468    } else {
25469        let content = resp.text().await?;
25470        let entity: Option<UpdateGlobalSignAtlasTargetError> = serde_json::from_str(&content).ok();
25471        Err(Error::ResponseError(ResponseContent { status, content, entity }))
25472    }
25473}
25474
25475pub async fn update_global_sign_target(configuration: &configuration::Configuration, update_global_sign_target: models::UpdateGlobalSignTarget) -> Result<models::UpdateGlobalSignTargetOutput, Error<UpdateGlobalSignTargetError>> {
25476    // add a prefix to parameters to efficiently prevent name collisions
25477    let p_body_update_global_sign_target = update_global_sign_target;
25478
25479    let uri_str = format!("{}/update-globalsign-target", configuration.base_path);
25480    let mut req_builder = configuration.client.request(reqwest::Method::POST, &uri_str);
25481
25482    if let Some(ref user_agent) = configuration.user_agent {
25483        req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone());
25484    }
25485    req_builder = req_builder.json(&p_body_update_global_sign_target);
25486
25487    let req = req_builder.build()?;
25488    let resp = configuration.client.execute(req).await?;
25489
25490    let status = resp.status();
25491    let content_type = resp
25492        .headers()
25493        .get("content-type")
25494        .and_then(|v| v.to_str().ok())
25495        .unwrap_or("application/octet-stream");
25496    let content_type = super::ContentType::from(content_type);
25497
25498    if !status.is_client_error() && !status.is_server_error() {
25499        let content = resp.text().await?;
25500        match content_type {
25501            ContentType::Json => serde_json::from_str(&content).map_err(Error::from),
25502            ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `models::UpdateGlobalSignTargetOutput`"))),
25503            ContentType::Unsupported(unknown_type) => return Err(Error::from(serde_json::Error::custom(format!("Received `{unknown_type}` content type response that cannot be converted to `models::UpdateGlobalSignTargetOutput`")))),
25504        }
25505    } else {
25506        let content = resp.text().await?;
25507        let entity: Option<UpdateGlobalSignTargetError> = serde_json::from_str(&content).ok();
25508        Err(Error::ResponseError(ResponseContent { status, content, entity }))
25509    }
25510}
25511
25512pub async fn update_godaddy_target(configuration: &configuration::Configuration, update_godaddy_target: models::UpdateGodaddyTarget) -> Result<models::UpdateGodaddyTargetOutput, Error<UpdateGodaddyTargetError>> {
25513    // add a prefix to parameters to efficiently prevent name collisions
25514    let p_body_update_godaddy_target = update_godaddy_target;
25515
25516    let uri_str = format!("{}/update-godaddy-target", configuration.base_path);
25517    let mut req_builder = configuration.client.request(reqwest::Method::POST, &uri_str);
25518
25519    if let Some(ref user_agent) = configuration.user_agent {
25520        req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone());
25521    }
25522    req_builder = req_builder.json(&p_body_update_godaddy_target);
25523
25524    let req = req_builder.build()?;
25525    let resp = configuration.client.execute(req).await?;
25526
25527    let status = resp.status();
25528    let content_type = resp
25529        .headers()
25530        .get("content-type")
25531        .and_then(|v| v.to_str().ok())
25532        .unwrap_or("application/octet-stream");
25533    let content_type = super::ContentType::from(content_type);
25534
25535    if !status.is_client_error() && !status.is_server_error() {
25536        let content = resp.text().await?;
25537        match content_type {
25538            ContentType::Json => serde_json::from_str(&content).map_err(Error::from),
25539            ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `models::UpdateGodaddyTargetOutput`"))),
25540            ContentType::Unsupported(unknown_type) => return Err(Error::from(serde_json::Error::custom(format!("Received `{unknown_type}` content type response that cannot be converted to `models::UpdateGodaddyTargetOutput`")))),
25541        }
25542    } else {
25543        let content = resp.text().await?;
25544        let entity: Option<UpdateGodaddyTargetError> = serde_json::from_str(&content).ok();
25545        Err(Error::ResponseError(ResponseContent { status, content, entity }))
25546    }
25547}
25548
25549pub async fn update_group(configuration: &configuration::Configuration, update_group: models::UpdateGroup) -> Result<models::UpdateGroupOutput, Error<UpdateGroupError>> {
25550    // add a prefix to parameters to efficiently prevent name collisions
25551    let p_body_update_group = update_group;
25552
25553    let uri_str = format!("{}/update-group", configuration.base_path);
25554    let mut req_builder = configuration.client.request(reqwest::Method::POST, &uri_str);
25555
25556    if let Some(ref user_agent) = configuration.user_agent {
25557        req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone());
25558    }
25559    req_builder = req_builder.json(&p_body_update_group);
25560
25561    let req = req_builder.build()?;
25562    let resp = configuration.client.execute(req).await?;
25563
25564    let status = resp.status();
25565    let content_type = resp
25566        .headers()
25567        .get("content-type")
25568        .and_then(|v| v.to_str().ok())
25569        .unwrap_or("application/octet-stream");
25570    let content_type = super::ContentType::from(content_type);
25571
25572    if !status.is_client_error() && !status.is_server_error() {
25573        let content = resp.text().await?;
25574        match content_type {
25575            ContentType::Json => serde_json::from_str(&content).map_err(Error::from),
25576            ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `models::UpdateGroupOutput`"))),
25577            ContentType::Unsupported(unknown_type) => return Err(Error::from(serde_json::Error::custom(format!("Received `{unknown_type}` content type response that cannot be converted to `models::UpdateGroupOutput`")))),
25578        }
25579    } else {
25580        let content = resp.text().await?;
25581        let entity: Option<UpdateGroupError> = serde_json::from_str(&content).ok();
25582        Err(Error::ResponseError(ResponseContent { status, content, entity }))
25583    }
25584}
25585
25586pub async fn update_hashi_vault_target(configuration: &configuration::Configuration, update_hashi_vault_target: models::UpdateHashiVaultTarget) -> Result<models::UpdateHashiVaultTargetOutput, Error<UpdateHashiVaultTargetError>> {
25587    // add a prefix to parameters to efficiently prevent name collisions
25588    let p_body_update_hashi_vault_target = update_hashi_vault_target;
25589
25590    let uri_str = format!("{}/update-hashi-vault-target", configuration.base_path);
25591    let mut req_builder = configuration.client.request(reqwest::Method::POST, &uri_str);
25592
25593    if let Some(ref user_agent) = configuration.user_agent {
25594        req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone());
25595    }
25596    req_builder = req_builder.json(&p_body_update_hashi_vault_target);
25597
25598    let req = req_builder.build()?;
25599    let resp = configuration.client.execute(req).await?;
25600
25601    let status = resp.status();
25602    let content_type = resp
25603        .headers()
25604        .get("content-type")
25605        .and_then(|v| v.to_str().ok())
25606        .unwrap_or("application/octet-stream");
25607    let content_type = super::ContentType::from(content_type);
25608
25609    if !status.is_client_error() && !status.is_server_error() {
25610        let content = resp.text().await?;
25611        match content_type {
25612            ContentType::Json => serde_json::from_str(&content).map_err(Error::from),
25613            ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `models::UpdateHashiVaultTargetOutput`"))),
25614            ContentType::Unsupported(unknown_type) => return Err(Error::from(serde_json::Error::custom(format!("Received `{unknown_type}` content type response that cannot be converted to `models::UpdateHashiVaultTargetOutput`")))),
25615        }
25616    } else {
25617        let content = resp.text().await?;
25618        let entity: Option<UpdateHashiVaultTargetError> = serde_json::from_str(&content).ok();
25619        Err(Error::ResponseError(ResponseContent { status, content, entity }))
25620    }
25621}
25622
25623pub async fn update_item(configuration: &configuration::Configuration, update_item: models::UpdateItem) -> Result<models::UpdateItemOutput, Error<UpdateItemError>> {
25624    // add a prefix to parameters to efficiently prevent name collisions
25625    let p_body_update_item = update_item;
25626
25627    let uri_str = format!("{}/update-item", configuration.base_path);
25628    let mut req_builder = configuration.client.request(reqwest::Method::POST, &uri_str);
25629
25630    if let Some(ref user_agent) = configuration.user_agent {
25631        req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone());
25632    }
25633    req_builder = req_builder.json(&p_body_update_item);
25634
25635    let req = req_builder.build()?;
25636    let resp = configuration.client.execute(req).await?;
25637
25638    let status = resp.status();
25639    let content_type = resp
25640        .headers()
25641        .get("content-type")
25642        .and_then(|v| v.to_str().ok())
25643        .unwrap_or("application/octet-stream");
25644    let content_type = super::ContentType::from(content_type);
25645
25646    if !status.is_client_error() && !status.is_server_error() {
25647        let content = resp.text().await?;
25648        match content_type {
25649            ContentType::Json => serde_json::from_str(&content).map_err(Error::from),
25650            ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `models::UpdateItemOutput`"))),
25651            ContentType::Unsupported(unknown_type) => return Err(Error::from(serde_json::Error::custom(format!("Received `{unknown_type}` content type response that cannot be converted to `models::UpdateItemOutput`")))),
25652        }
25653    } else {
25654        let content = resp.text().await?;
25655        let entity: Option<UpdateItemError> = serde_json::from_str(&content).ok();
25656        Err(Error::ResponseError(ResponseContent { status, content, entity }))
25657    }
25658}
25659
25660pub async fn update_ldap_target(configuration: &configuration::Configuration, update_ldap_target: models::UpdateLdapTarget) -> Result<models::UpdateLdapTargetOutput, Error<UpdateLdapTargetError>> {
25661    // add a prefix to parameters to efficiently prevent name collisions
25662    let p_body_update_ldap_target = update_ldap_target;
25663
25664    let uri_str = format!("{}/update-ldap-target", configuration.base_path);
25665    let mut req_builder = configuration.client.request(reqwest::Method::POST, &uri_str);
25666
25667    if let Some(ref user_agent) = configuration.user_agent {
25668        req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone());
25669    }
25670    req_builder = req_builder.json(&p_body_update_ldap_target);
25671
25672    let req = req_builder.build()?;
25673    let resp = configuration.client.execute(req).await?;
25674
25675    let status = resp.status();
25676    let content_type = resp
25677        .headers()
25678        .get("content-type")
25679        .and_then(|v| v.to_str().ok())
25680        .unwrap_or("application/octet-stream");
25681    let content_type = super::ContentType::from(content_type);
25682
25683    if !status.is_client_error() && !status.is_server_error() {
25684        let content = resp.text().await?;
25685        match content_type {
25686            ContentType::Json => serde_json::from_str(&content).map_err(Error::from),
25687            ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `models::UpdateLdapTargetOutput`"))),
25688            ContentType::Unsupported(unknown_type) => return Err(Error::from(serde_json::Error::custom(format!("Received `{unknown_type}` content type response that cannot be converted to `models::UpdateLdapTargetOutput`")))),
25689        }
25690    } else {
25691        let content = resp.text().await?;
25692        let entity: Option<UpdateLdapTargetError> = serde_json::from_str(&content).ok();
25693        Err(Error::ResponseError(ResponseContent { status, content, entity }))
25694    }
25695}
25696
25697pub async fn update_ldap_target_details(configuration: &configuration::Configuration, update_ldap_target_details: models::UpdateLdapTargetDetails) -> Result<models::UpdateTargetOutput, Error<UpdateLdapTargetDetailsError>> {
25698    // add a prefix to parameters to efficiently prevent name collisions
25699    let p_body_update_ldap_target_details = update_ldap_target_details;
25700
25701    let uri_str = format!("{}/update-ldap-target-details", configuration.base_path);
25702    let mut req_builder = configuration.client.request(reqwest::Method::POST, &uri_str);
25703
25704    if let Some(ref user_agent) = configuration.user_agent {
25705        req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone());
25706    }
25707    req_builder = req_builder.json(&p_body_update_ldap_target_details);
25708
25709    let req = req_builder.build()?;
25710    let resp = configuration.client.execute(req).await?;
25711
25712    let status = resp.status();
25713    let content_type = resp
25714        .headers()
25715        .get("content-type")
25716        .and_then(|v| v.to_str().ok())
25717        .unwrap_or("application/octet-stream");
25718    let content_type = super::ContentType::from(content_type);
25719
25720    if !status.is_client_error() && !status.is_server_error() {
25721        let content = resp.text().await?;
25722        match content_type {
25723            ContentType::Json => serde_json::from_str(&content).map_err(Error::from),
25724            ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `models::UpdateTargetOutput`"))),
25725            ContentType::Unsupported(unknown_type) => return Err(Error::from(serde_json::Error::custom(format!("Received `{unknown_type}` content type response that cannot be converted to `models::UpdateTargetOutput`")))),
25726        }
25727    } else {
25728        let content = resp.text().await?;
25729        let entity: Option<UpdateLdapTargetDetailsError> = serde_json::from_str(&content).ok();
25730        Err(Error::ResponseError(ResponseContent { status, content, entity }))
25731    }
25732}
25733
25734pub async fn update_linked_target(configuration: &configuration::Configuration, update_linked_target: models::UpdateLinkedTarget) -> Result<serde_json::Value, Error<UpdateLinkedTargetError>> {
25735    // add a prefix to parameters to efficiently prevent name collisions
25736    let p_body_update_linked_target = update_linked_target;
25737
25738    let uri_str = format!("{}/update-linked-target", configuration.base_path);
25739    let mut req_builder = configuration.client.request(reqwest::Method::POST, &uri_str);
25740
25741    if let Some(ref user_agent) = configuration.user_agent {
25742        req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone());
25743    }
25744    req_builder = req_builder.json(&p_body_update_linked_target);
25745
25746    let req = req_builder.build()?;
25747    let resp = configuration.client.execute(req).await?;
25748
25749    let status = resp.status();
25750    let content_type = resp
25751        .headers()
25752        .get("content-type")
25753        .and_then(|v| v.to_str().ok())
25754        .unwrap_or("application/octet-stream");
25755    let content_type = super::ContentType::from(content_type);
25756
25757    if !status.is_client_error() && !status.is_server_error() {
25758        let content = resp.text().await?;
25759        match content_type {
25760            ContentType::Json => serde_json::from_str(&content).map_err(Error::from),
25761            ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `serde_json::Value`"))),
25762            ContentType::Unsupported(unknown_type) => return Err(Error::from(serde_json::Error::custom(format!("Received `{unknown_type}` content type response that cannot be converted to `serde_json::Value`")))),
25763        }
25764    } else {
25765        let content = resp.text().await?;
25766        let entity: Option<UpdateLinkedTargetError> = serde_json::from_str(&content).ok();
25767        Err(Error::ResponseError(ResponseContent { status, content, entity }))
25768    }
25769}
25770
25771pub async fn update_native_k8_s_target(configuration: &configuration::Configuration, update_native_k8_s_target: models::UpdateNativeK8STarget) -> Result<models::UpdateNativeK8STargetOutput, Error<UpdateNativeK8STargetError>> {
25772    // add a prefix to parameters to efficiently prevent name collisions
25773    let p_body_update_native_k8_s_target = update_native_k8_s_target;
25774
25775    let uri_str = format!("{}/update-k8s-target", configuration.base_path);
25776    let mut req_builder = configuration.client.request(reqwest::Method::POST, &uri_str);
25777
25778    if let Some(ref user_agent) = configuration.user_agent {
25779        req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone());
25780    }
25781    req_builder = req_builder.json(&p_body_update_native_k8_s_target);
25782
25783    let req = req_builder.build()?;
25784    let resp = configuration.client.execute(req).await?;
25785
25786    let status = resp.status();
25787    let content_type = resp
25788        .headers()
25789        .get("content-type")
25790        .and_then(|v| v.to_str().ok())
25791        .unwrap_or("application/octet-stream");
25792    let content_type = super::ContentType::from(content_type);
25793
25794    if !status.is_client_error() && !status.is_server_error() {
25795        let content = resp.text().await?;
25796        match content_type {
25797            ContentType::Json => serde_json::from_str(&content).map_err(Error::from),
25798            ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `models::UpdateNativeK8STargetOutput`"))),
25799            ContentType::Unsupported(unknown_type) => return Err(Error::from(serde_json::Error::custom(format!("Received `{unknown_type}` content type response that cannot be converted to `models::UpdateNativeK8STargetOutput`")))),
25800        }
25801    } else {
25802        let content = resp.text().await?;
25803        let entity: Option<UpdateNativeK8STargetError> = serde_json::from_str(&content).ok();
25804        Err(Error::ResponseError(ResponseContent { status, content, entity }))
25805    }
25806}
25807
25808pub async fn update_oidc_app(configuration: &configuration::Configuration, update_oidc_app: models::UpdateOidcApp) -> Result<serde_json::Value, Error<UpdateOidcAppError>> {
25809    // add a prefix to parameters to efficiently prevent name collisions
25810    let p_body_update_oidc_app = update_oidc_app;
25811
25812    let uri_str = format!("{}/update-oidc-app", configuration.base_path);
25813    let mut req_builder = configuration.client.request(reqwest::Method::POST, &uri_str);
25814
25815    if let Some(ref user_agent) = configuration.user_agent {
25816        req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone());
25817    }
25818    req_builder = req_builder.json(&p_body_update_oidc_app);
25819
25820    let req = req_builder.build()?;
25821    let resp = configuration.client.execute(req).await?;
25822
25823    let status = resp.status();
25824    let content_type = resp
25825        .headers()
25826        .get("content-type")
25827        .and_then(|v| v.to_str().ok())
25828        .unwrap_or("application/octet-stream");
25829    let content_type = super::ContentType::from(content_type);
25830
25831    if !status.is_client_error() && !status.is_server_error() {
25832        let content = resp.text().await?;
25833        match content_type {
25834            ContentType::Json => serde_json::from_str(&content).map_err(Error::from),
25835            ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `serde_json::Value`"))),
25836            ContentType::Unsupported(unknown_type) => return Err(Error::from(serde_json::Error::custom(format!("Received `{unknown_type}` content type response that cannot be converted to `serde_json::Value`")))),
25837        }
25838    } else {
25839        let content = resp.text().await?;
25840        let entity: Option<UpdateOidcAppError> = serde_json::from_str(&content).ok();
25841        Err(Error::ResponseError(ResponseContent { status, content, entity }))
25842    }
25843}
25844
25845pub async fn update_ping_target(configuration: &configuration::Configuration, update_ping_target: models::UpdatePingTarget) -> Result<serde_json::Value, Error<UpdatePingTargetError>> {
25846    // add a prefix to parameters to efficiently prevent name collisions
25847    let p_body_update_ping_target = update_ping_target;
25848
25849    let uri_str = format!("{}/update-ping-target", configuration.base_path);
25850    let mut req_builder = configuration.client.request(reqwest::Method::POST, &uri_str);
25851
25852    if let Some(ref user_agent) = configuration.user_agent {
25853        req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone());
25854    }
25855    req_builder = req_builder.json(&p_body_update_ping_target);
25856
25857    let req = req_builder.build()?;
25858    let resp = configuration.client.execute(req).await?;
25859
25860    let status = resp.status();
25861    let content_type = resp
25862        .headers()
25863        .get("content-type")
25864        .and_then(|v| v.to_str().ok())
25865        .unwrap_or("application/octet-stream");
25866    let content_type = super::ContentType::from(content_type);
25867
25868    if !status.is_client_error() && !status.is_server_error() {
25869        let content = resp.text().await?;
25870        match content_type {
25871            ContentType::Json => serde_json::from_str(&content).map_err(Error::from),
25872            ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `serde_json::Value`"))),
25873            ContentType::Unsupported(unknown_type) => return Err(Error::from(serde_json::Error::custom(format!("Received `{unknown_type}` content type response that cannot be converted to `serde_json::Value`")))),
25874        }
25875    } else {
25876        let content = resp.text().await?;
25877        let entity: Option<UpdatePingTargetError> = serde_json::from_str(&content).ok();
25878        Err(Error::ResponseError(ResponseContent { status, content, entity }))
25879    }
25880}
25881
25882pub async fn update_pki_cert_issuer(configuration: &configuration::Configuration, update_pki_cert_issuer: models::UpdatePkiCertIssuer) -> Result<models::UpdatePkiCertIssuerOutput, Error<UpdatePkiCertIssuerError>> {
25883    // add a prefix to parameters to efficiently prevent name collisions
25884    let p_body_update_pki_cert_issuer = update_pki_cert_issuer;
25885
25886    let uri_str = format!("{}/update-pki-cert-issuer", configuration.base_path);
25887    let mut req_builder = configuration.client.request(reqwest::Method::POST, &uri_str);
25888
25889    if let Some(ref user_agent) = configuration.user_agent {
25890        req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone());
25891    }
25892    req_builder = req_builder.json(&p_body_update_pki_cert_issuer);
25893
25894    let req = req_builder.build()?;
25895    let resp = configuration.client.execute(req).await?;
25896
25897    let status = resp.status();
25898    let content_type = resp
25899        .headers()
25900        .get("content-type")
25901        .and_then(|v| v.to_str().ok())
25902        .unwrap_or("application/octet-stream");
25903    let content_type = super::ContentType::from(content_type);
25904
25905    if !status.is_client_error() && !status.is_server_error() {
25906        let content = resp.text().await?;
25907        match content_type {
25908            ContentType::Json => serde_json::from_str(&content).map_err(Error::from),
25909            ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `models::UpdatePkiCertIssuerOutput`"))),
25910            ContentType::Unsupported(unknown_type) => return Err(Error::from(serde_json::Error::custom(format!("Received `{unknown_type}` content type response that cannot be converted to `models::UpdatePkiCertIssuerOutput`")))),
25911        }
25912    } else {
25913        let content = resp.text().await?;
25914        let entity: Option<UpdatePkiCertIssuerError> = serde_json::from_str(&content).ok();
25915        Err(Error::ResponseError(ResponseContent { status, content, entity }))
25916    }
25917}
25918
25919pub async fn update_rabbit_mq_target(configuration: &configuration::Configuration, update_rabbit_mq_target: models::UpdateRabbitMqTarget) -> Result<models::UpdateRabbitMqTargetOutput, Error<UpdateRabbitMqTargetError>> {
25920    // add a prefix to parameters to efficiently prevent name collisions
25921    let p_body_update_rabbit_mq_target = update_rabbit_mq_target;
25922
25923    let uri_str = format!("{}/update-rabbitmq-target", configuration.base_path);
25924    let mut req_builder = configuration.client.request(reqwest::Method::POST, &uri_str);
25925
25926    if let Some(ref user_agent) = configuration.user_agent {
25927        req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone());
25928    }
25929    req_builder = req_builder.json(&p_body_update_rabbit_mq_target);
25930
25931    let req = req_builder.build()?;
25932    let resp = configuration.client.execute(req).await?;
25933
25934    let status = resp.status();
25935    let content_type = resp
25936        .headers()
25937        .get("content-type")
25938        .and_then(|v| v.to_str().ok())
25939        .unwrap_or("application/octet-stream");
25940    let content_type = super::ContentType::from(content_type);
25941
25942    if !status.is_client_error() && !status.is_server_error() {
25943        let content = resp.text().await?;
25944        match content_type {
25945            ContentType::Json => serde_json::from_str(&content).map_err(Error::from),
25946            ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `models::UpdateRabbitMqTargetOutput`"))),
25947            ContentType::Unsupported(unknown_type) => return Err(Error::from(serde_json::Error::custom(format!("Received `{unknown_type}` content type response that cannot be converted to `models::UpdateRabbitMqTargetOutput`")))),
25948        }
25949    } else {
25950        let content = resp.text().await?;
25951        let entity: Option<UpdateRabbitMqTargetError> = serde_json::from_str(&content).ok();
25952        Err(Error::ResponseError(ResponseContent { status, content, entity }))
25953    }
25954}
25955
25956pub async fn update_rabbit_mq_target_details(configuration: &configuration::Configuration, update_rabbit_mq_target_details: models::UpdateRabbitMqTargetDetails) -> Result<models::UpdateTargetOutput, Error<UpdateRabbitMqTargetDetailsError>> {
25957    // add a prefix to parameters to efficiently prevent name collisions
25958    let p_body_update_rabbit_mq_target_details = update_rabbit_mq_target_details;
25959
25960    let uri_str = format!("{}/update-rabbitmq-target-details", configuration.base_path);
25961    let mut req_builder = configuration.client.request(reqwest::Method::POST, &uri_str);
25962
25963    if let Some(ref user_agent) = configuration.user_agent {
25964        req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone());
25965    }
25966    req_builder = req_builder.json(&p_body_update_rabbit_mq_target_details);
25967
25968    let req = req_builder.build()?;
25969    let resp = configuration.client.execute(req).await?;
25970
25971    let status = resp.status();
25972    let content_type = resp
25973        .headers()
25974        .get("content-type")
25975        .and_then(|v| v.to_str().ok())
25976        .unwrap_or("application/octet-stream");
25977    let content_type = super::ContentType::from(content_type);
25978
25979    if !status.is_client_error() && !status.is_server_error() {
25980        let content = resp.text().await?;
25981        match content_type {
25982            ContentType::Json => serde_json::from_str(&content).map_err(Error::from),
25983            ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `models::UpdateTargetOutput`"))),
25984            ContentType::Unsupported(unknown_type) => return Err(Error::from(serde_json::Error::custom(format!("Received `{unknown_type}` content type response that cannot be converted to `models::UpdateTargetOutput`")))),
25985        }
25986    } else {
25987        let content = resp.text().await?;
25988        let entity: Option<UpdateRabbitMqTargetDetailsError> = serde_json::from_str(&content).ok();
25989        Err(Error::ResponseError(ResponseContent { status, content, entity }))
25990    }
25991}
25992
25993pub async fn update_rdp_target_details(configuration: &configuration::Configuration, update_rdp_target_details: models::UpdateRdpTargetDetails) -> Result<models::UpdateTargetOutput, Error<UpdateRdpTargetDetailsError>> {
25994    // add a prefix to parameters to efficiently prevent name collisions
25995    let p_body_update_rdp_target_details = update_rdp_target_details;
25996
25997    let uri_str = format!("{}/update-rdp-target-details", configuration.base_path);
25998    let mut req_builder = configuration.client.request(reqwest::Method::POST, &uri_str);
25999
26000    if let Some(ref user_agent) = configuration.user_agent {
26001        req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone());
26002    }
26003    req_builder = req_builder.json(&p_body_update_rdp_target_details);
26004
26005    let req = req_builder.build()?;
26006    let resp = configuration.client.execute(req).await?;
26007
26008    let status = resp.status();
26009    let content_type = resp
26010        .headers()
26011        .get("content-type")
26012        .and_then(|v| v.to_str().ok())
26013        .unwrap_or("application/octet-stream");
26014    let content_type = super::ContentType::from(content_type);
26015
26016    if !status.is_client_error() && !status.is_server_error() {
26017        let content = resp.text().await?;
26018        match content_type {
26019            ContentType::Json => serde_json::from_str(&content).map_err(Error::from),
26020            ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `models::UpdateTargetOutput`"))),
26021            ContentType::Unsupported(unknown_type) => return Err(Error::from(serde_json::Error::custom(format!("Received `{unknown_type}` content type response that cannot be converted to `models::UpdateTargetOutput`")))),
26022        }
26023    } else {
26024        let content = resp.text().await?;
26025        let entity: Option<UpdateRdpTargetDetailsError> = serde_json::from_str(&content).ok();
26026        Err(Error::ResponseError(ResponseContent { status, content, entity }))
26027    }
26028}
26029
26030pub async fn update_role(configuration: &configuration::Configuration, update_role: models::UpdateRole) -> Result<models::UpdateRoleOutput, Error<UpdateRoleError>> {
26031    // add a prefix to parameters to efficiently prevent name collisions
26032    let p_body_update_role = update_role;
26033
26034    let uri_str = format!("{}/update-role", configuration.base_path);
26035    let mut req_builder = configuration.client.request(reqwest::Method::POST, &uri_str);
26036
26037    if let Some(ref user_agent) = configuration.user_agent {
26038        req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone());
26039    }
26040    req_builder = req_builder.json(&p_body_update_role);
26041
26042    let req = req_builder.build()?;
26043    let resp = configuration.client.execute(req).await?;
26044
26045    let status = resp.status();
26046    let content_type = resp
26047        .headers()
26048        .get("content-type")
26049        .and_then(|v| v.to_str().ok())
26050        .unwrap_or("application/octet-stream");
26051    let content_type = super::ContentType::from(content_type);
26052
26053    if !status.is_client_error() && !status.is_server_error() {
26054        let content = resp.text().await?;
26055        match content_type {
26056            ContentType::Json => serde_json::from_str(&content).map_err(Error::from),
26057            ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `models::UpdateRoleOutput`"))),
26058            ContentType::Unsupported(unknown_type) => return Err(Error::from(serde_json::Error::custom(format!("Received `{unknown_type}` content type response that cannot be converted to `models::UpdateRoleOutput`")))),
26059        }
26060    } else {
26061        let content = resp.text().await?;
26062        let entity: Option<UpdateRoleError> = serde_json::from_str(&content).ok();
26063        Err(Error::ResponseError(ResponseContent { status, content, entity }))
26064    }
26065}
26066
26067pub async fn update_rotated_secret(configuration: &configuration::Configuration, update_rotated_secret: models::UpdateRotatedSecret) -> Result<models::UpdateRotatedSecretOutput, Error<UpdateRotatedSecretError>> {
26068    // add a prefix to parameters to efficiently prevent name collisions
26069    let p_body_update_rotated_secret = update_rotated_secret;
26070
26071    let uri_str = format!("{}/update-rotated-secret", configuration.base_path);
26072    let mut req_builder = configuration.client.request(reqwest::Method::POST, &uri_str);
26073
26074    if let Some(ref user_agent) = configuration.user_agent {
26075        req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone());
26076    }
26077    req_builder = req_builder.json(&p_body_update_rotated_secret);
26078
26079    let req = req_builder.build()?;
26080    let resp = configuration.client.execute(req).await?;
26081
26082    let status = resp.status();
26083    let content_type = resp
26084        .headers()
26085        .get("content-type")
26086        .and_then(|v| v.to_str().ok())
26087        .unwrap_or("application/octet-stream");
26088    let content_type = super::ContentType::from(content_type);
26089
26090    if !status.is_client_error() && !status.is_server_error() {
26091        let content = resp.text().await?;
26092        match content_type {
26093            ContentType::Json => serde_json::from_str(&content).map_err(Error::from),
26094            ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `models::UpdateRotatedSecretOutput`"))),
26095            ContentType::Unsupported(unknown_type) => return Err(Error::from(serde_json::Error::custom(format!("Received `{unknown_type}` content type response that cannot be converted to `models::UpdateRotatedSecretOutput`")))),
26096        }
26097    } else {
26098        let content = resp.text().await?;
26099        let entity: Option<UpdateRotatedSecretError> = serde_json::from_str(&content).ok();
26100        Err(Error::ResponseError(ResponseContent { status, content, entity }))
26101    }
26102}
26103
26104pub async fn update_rotation_settings(configuration: &configuration::Configuration, update_rotation_settings: models::UpdateRotationSettings) -> Result<models::RotateKeyOutput, Error<UpdateRotationSettingsError>> {
26105    // add a prefix to parameters to efficiently prevent name collisions
26106    let p_body_update_rotation_settings = update_rotation_settings;
26107
26108    let uri_str = format!("{}/update-rotation-settings", configuration.base_path);
26109    let mut req_builder = configuration.client.request(reqwest::Method::POST, &uri_str);
26110
26111    if let Some(ref user_agent) = configuration.user_agent {
26112        req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone());
26113    }
26114    req_builder = req_builder.json(&p_body_update_rotation_settings);
26115
26116    let req = req_builder.build()?;
26117    let resp = configuration.client.execute(req).await?;
26118
26119    let status = resp.status();
26120    let content_type = resp
26121        .headers()
26122        .get("content-type")
26123        .and_then(|v| v.to_str().ok())
26124        .unwrap_or("application/octet-stream");
26125    let content_type = super::ContentType::from(content_type);
26126
26127    if !status.is_client_error() && !status.is_server_error() {
26128        let content = resp.text().await?;
26129        match content_type {
26130            ContentType::Json => serde_json::from_str(&content).map_err(Error::from),
26131            ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `models::RotateKeyOutput`"))),
26132            ContentType::Unsupported(unknown_type) => return Err(Error::from(serde_json::Error::custom(format!("Received `{unknown_type}` content type response that cannot be converted to `models::RotateKeyOutput`")))),
26133        }
26134    } else {
26135        let content = resp.text().await?;
26136        let entity: Option<UpdateRotationSettingsError> = serde_json::from_str(&content).ok();
26137        Err(Error::ResponseError(ResponseContent { status, content, entity }))
26138    }
26139}
26140
26141pub async fn update_salesforce_target(configuration: &configuration::Configuration, update_salesforce_target: models::UpdateSalesforceTarget) -> Result<models::UpdateSalesforceTargetOutput, Error<UpdateSalesforceTargetError>> {
26142    // add a prefix to parameters to efficiently prevent name collisions
26143    let p_body_update_salesforce_target = update_salesforce_target;
26144
26145    let uri_str = format!("{}/update-salesforce-target", configuration.base_path);
26146    let mut req_builder = configuration.client.request(reqwest::Method::POST, &uri_str);
26147
26148    if let Some(ref user_agent) = configuration.user_agent {
26149        req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone());
26150    }
26151    req_builder = req_builder.json(&p_body_update_salesforce_target);
26152
26153    let req = req_builder.build()?;
26154    let resp = configuration.client.execute(req).await?;
26155
26156    let status = resp.status();
26157    let content_type = resp
26158        .headers()
26159        .get("content-type")
26160        .and_then(|v| v.to_str().ok())
26161        .unwrap_or("application/octet-stream");
26162    let content_type = super::ContentType::from(content_type);
26163
26164    if !status.is_client_error() && !status.is_server_error() {
26165        let content = resp.text().await?;
26166        match content_type {
26167            ContentType::Json => serde_json::from_str(&content).map_err(Error::from),
26168            ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `models::UpdateSalesforceTargetOutput`"))),
26169            ContentType::Unsupported(unknown_type) => return Err(Error::from(serde_json::Error::custom(format!("Received `{unknown_type}` content type response that cannot be converted to `models::UpdateSalesforceTargetOutput`")))),
26170        }
26171    } else {
26172        let content = resp.text().await?;
26173        let entity: Option<UpdateSalesforceTargetError> = serde_json::from_str(&content).ok();
26174        Err(Error::ResponseError(ResponseContent { status, content, entity }))
26175    }
26176}
26177
26178pub async fn update_secret_val(configuration: &configuration::Configuration, update_secret_val: models::UpdateSecretVal) -> Result<models::UpdateSecretValOutput, Error<UpdateSecretValError>> {
26179    // add a prefix to parameters to efficiently prevent name collisions
26180    let p_body_update_secret_val = update_secret_val;
26181
26182    let uri_str = format!("{}/update-secret-val", configuration.base_path);
26183    let mut req_builder = configuration.client.request(reqwest::Method::POST, &uri_str);
26184
26185    if let Some(ref user_agent) = configuration.user_agent {
26186        req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone());
26187    }
26188    req_builder = req_builder.json(&p_body_update_secret_val);
26189
26190    let req = req_builder.build()?;
26191    let resp = configuration.client.execute(req).await?;
26192
26193    let status = resp.status();
26194    let content_type = resp
26195        .headers()
26196        .get("content-type")
26197        .and_then(|v| v.to_str().ok())
26198        .unwrap_or("application/octet-stream");
26199    let content_type = super::ContentType::from(content_type);
26200
26201    if !status.is_client_error() && !status.is_server_error() {
26202        let content = resp.text().await?;
26203        match content_type {
26204            ContentType::Json => serde_json::from_str(&content).map_err(Error::from),
26205            ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `models::UpdateSecretValOutput`"))),
26206            ContentType::Unsupported(unknown_type) => return Err(Error::from(serde_json::Error::custom(format!("Received `{unknown_type}` content type response that cannot be converted to `models::UpdateSecretValOutput`")))),
26207        }
26208    } else {
26209        let content = resp.text().await?;
26210        let entity: Option<UpdateSecretValError> = serde_json::from_str(&content).ok();
26211        Err(Error::ResponseError(ResponseContent { status, content, entity }))
26212    }
26213}
26214
26215pub async fn update_ssh_cert_issuer(configuration: &configuration::Configuration, update_ssh_cert_issuer: models::UpdateSshCertIssuer) -> Result<models::UpdateSshCertIssuerOutput, Error<UpdateSshCertIssuerError>> {
26216    // add a prefix to parameters to efficiently prevent name collisions
26217    let p_body_update_ssh_cert_issuer = update_ssh_cert_issuer;
26218
26219    let uri_str = format!("{}/update-ssh-cert-issuer", configuration.base_path);
26220    let mut req_builder = configuration.client.request(reqwest::Method::POST, &uri_str);
26221
26222    if let Some(ref user_agent) = configuration.user_agent {
26223        req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone());
26224    }
26225    req_builder = req_builder.json(&p_body_update_ssh_cert_issuer);
26226
26227    let req = req_builder.build()?;
26228    let resp = configuration.client.execute(req).await?;
26229
26230    let status = resp.status();
26231    let content_type = resp
26232        .headers()
26233        .get("content-type")
26234        .and_then(|v| v.to_str().ok())
26235        .unwrap_or("application/octet-stream");
26236    let content_type = super::ContentType::from(content_type);
26237
26238    if !status.is_client_error() && !status.is_server_error() {
26239        let content = resp.text().await?;
26240        match content_type {
26241            ContentType::Json => serde_json::from_str(&content).map_err(Error::from),
26242            ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `models::UpdateSshCertIssuerOutput`"))),
26243            ContentType::Unsupported(unknown_type) => return Err(Error::from(serde_json::Error::custom(format!("Received `{unknown_type}` content type response that cannot be converted to `models::UpdateSshCertIssuerOutput`")))),
26244        }
26245    } else {
26246        let content = resp.text().await?;
26247        let entity: Option<UpdateSshCertIssuerError> = serde_json::from_str(&content).ok();
26248        Err(Error::ResponseError(ResponseContent { status, content, entity }))
26249    }
26250}
26251
26252pub async fn update_ssh_target(configuration: &configuration::Configuration, update_ssh_target: models::UpdateSshTarget) -> Result<models::UpdateSshTargetOutput, Error<UpdateSshTargetError>> {
26253    // add a prefix to parameters to efficiently prevent name collisions
26254    let p_body_update_ssh_target = update_ssh_target;
26255
26256    let uri_str = format!("{}/update-ssh-target", configuration.base_path);
26257    let mut req_builder = configuration.client.request(reqwest::Method::POST, &uri_str);
26258
26259    if let Some(ref user_agent) = configuration.user_agent {
26260        req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone());
26261    }
26262    req_builder = req_builder.json(&p_body_update_ssh_target);
26263
26264    let req = req_builder.build()?;
26265    let resp = configuration.client.execute(req).await?;
26266
26267    let status = resp.status();
26268    let content_type = resp
26269        .headers()
26270        .get("content-type")
26271        .and_then(|v| v.to_str().ok())
26272        .unwrap_or("application/octet-stream");
26273    let content_type = super::ContentType::from(content_type);
26274
26275    if !status.is_client_error() && !status.is_server_error() {
26276        let content = resp.text().await?;
26277        match content_type {
26278            ContentType::Json => serde_json::from_str(&content).map_err(Error::from),
26279            ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `models::UpdateSshTargetOutput`"))),
26280            ContentType::Unsupported(unknown_type) => return Err(Error::from(serde_json::Error::custom(format!("Received `{unknown_type}` content type response that cannot be converted to `models::UpdateSshTargetOutput`")))),
26281        }
26282    } else {
26283        let content = resp.text().await?;
26284        let entity: Option<UpdateSshTargetError> = serde_json::from_str(&content).ok();
26285        Err(Error::ResponseError(ResponseContent { status, content, entity }))
26286    }
26287}
26288
26289pub async fn update_ssh_target_details(configuration: &configuration::Configuration, update_ssh_target_details: models::UpdateSshTargetDetails) -> Result<models::UpdateTargetOutput, Error<UpdateSshTargetDetailsError>> {
26290    // add a prefix to parameters to efficiently prevent name collisions
26291    let p_body_update_ssh_target_details = update_ssh_target_details;
26292
26293    let uri_str = format!("{}/update-ssh-target-details", configuration.base_path);
26294    let mut req_builder = configuration.client.request(reqwest::Method::POST, &uri_str);
26295
26296    if let Some(ref user_agent) = configuration.user_agent {
26297        req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone());
26298    }
26299    req_builder = req_builder.json(&p_body_update_ssh_target_details);
26300
26301    let req = req_builder.build()?;
26302    let resp = configuration.client.execute(req).await?;
26303
26304    let status = resp.status();
26305    let content_type = resp
26306        .headers()
26307        .get("content-type")
26308        .and_then(|v| v.to_str().ok())
26309        .unwrap_or("application/octet-stream");
26310    let content_type = super::ContentType::from(content_type);
26311
26312    if !status.is_client_error() && !status.is_server_error() {
26313        let content = resp.text().await?;
26314        match content_type {
26315            ContentType::Json => serde_json::from_str(&content).map_err(Error::from),
26316            ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `models::UpdateTargetOutput`"))),
26317            ContentType::Unsupported(unknown_type) => return Err(Error::from(serde_json::Error::custom(format!("Received `{unknown_type}` content type response that cannot be converted to `models::UpdateTargetOutput`")))),
26318        }
26319    } else {
26320        let content = resp.text().await?;
26321        let entity: Option<UpdateSshTargetDetailsError> = serde_json::from_str(&content).ok();
26322        Err(Error::ResponseError(ResponseContent { status, content, entity }))
26323    }
26324}
26325
26326pub async fn update_target(configuration: &configuration::Configuration, update_target: models::UpdateTarget) -> Result<models::UpdateTargetOutput, Error<UpdateTargetError>> {
26327    // add a prefix to parameters to efficiently prevent name collisions
26328    let p_body_update_target = update_target;
26329
26330    let uri_str = format!("{}/update-target", configuration.base_path);
26331    let mut req_builder = configuration.client.request(reqwest::Method::POST, &uri_str);
26332
26333    if let Some(ref user_agent) = configuration.user_agent {
26334        req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone());
26335    }
26336    req_builder = req_builder.json(&p_body_update_target);
26337
26338    let req = req_builder.build()?;
26339    let resp = configuration.client.execute(req).await?;
26340
26341    let status = resp.status();
26342    let content_type = resp
26343        .headers()
26344        .get("content-type")
26345        .and_then(|v| v.to_str().ok())
26346        .unwrap_or("application/octet-stream");
26347    let content_type = super::ContentType::from(content_type);
26348
26349    if !status.is_client_error() && !status.is_server_error() {
26350        let content = resp.text().await?;
26351        match content_type {
26352            ContentType::Json => serde_json::from_str(&content).map_err(Error::from),
26353            ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `models::UpdateTargetOutput`"))),
26354            ContentType::Unsupported(unknown_type) => return Err(Error::from(serde_json::Error::custom(format!("Received `{unknown_type}` content type response that cannot be converted to `models::UpdateTargetOutput`")))),
26355        }
26356    } else {
26357        let content = resp.text().await?;
26358        let entity: Option<UpdateTargetError> = serde_json::from_str(&content).ok();
26359        Err(Error::ResponseError(ResponseContent { status, content, entity }))
26360    }
26361}
26362
26363pub async fn update_target_details(configuration: &configuration::Configuration, update_target_details: models::UpdateTargetDetails) -> Result<models::UpdateTargetOutput, Error<UpdateTargetDetailsError>> {
26364    // add a prefix to parameters to efficiently prevent name collisions
26365    let p_body_update_target_details = update_target_details;
26366
26367    let uri_str = format!("{}/update-target-details", configuration.base_path);
26368    let mut req_builder = configuration.client.request(reqwest::Method::POST, &uri_str);
26369
26370    if let Some(ref user_agent) = configuration.user_agent {
26371        req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone());
26372    }
26373    req_builder = req_builder.json(&p_body_update_target_details);
26374
26375    let req = req_builder.build()?;
26376    let resp = configuration.client.execute(req).await?;
26377
26378    let status = resp.status();
26379    let content_type = resp
26380        .headers()
26381        .get("content-type")
26382        .and_then(|v| v.to_str().ok())
26383        .unwrap_or("application/octet-stream");
26384    let content_type = super::ContentType::from(content_type);
26385
26386    if !status.is_client_error() && !status.is_server_error() {
26387        let content = resp.text().await?;
26388        match content_type {
26389            ContentType::Json => serde_json::from_str(&content).map_err(Error::from),
26390            ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `models::UpdateTargetOutput`"))),
26391            ContentType::Unsupported(unknown_type) => return Err(Error::from(serde_json::Error::custom(format!("Received `{unknown_type}` content type response that cannot be converted to `models::UpdateTargetOutput`")))),
26392        }
26393    } else {
26394        let content = resp.text().await?;
26395        let entity: Option<UpdateTargetDetailsError> = serde_json::from_str(&content).ok();
26396        Err(Error::ResponseError(ResponseContent { status, content, entity }))
26397    }
26398}
26399
26400pub async fn update_web_target(configuration: &configuration::Configuration, update_web_target: models::UpdateWebTarget) -> Result<models::UpdateWebTargetOutput, Error<UpdateWebTargetError>> {
26401    // add a prefix to parameters to efficiently prevent name collisions
26402    let p_body_update_web_target = update_web_target;
26403
26404    let uri_str = format!("{}/update-web-target", configuration.base_path);
26405    let mut req_builder = configuration.client.request(reqwest::Method::POST, &uri_str);
26406
26407    if let Some(ref user_agent) = configuration.user_agent {
26408        req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone());
26409    }
26410    req_builder = req_builder.json(&p_body_update_web_target);
26411
26412    let req = req_builder.build()?;
26413    let resp = configuration.client.execute(req).await?;
26414
26415    let status = resp.status();
26416    let content_type = resp
26417        .headers()
26418        .get("content-type")
26419        .and_then(|v| v.to_str().ok())
26420        .unwrap_or("application/octet-stream");
26421    let content_type = super::ContentType::from(content_type);
26422
26423    if !status.is_client_error() && !status.is_server_error() {
26424        let content = resp.text().await?;
26425        match content_type {
26426            ContentType::Json => serde_json::from_str(&content).map_err(Error::from),
26427            ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `models::UpdateWebTargetOutput`"))),
26428            ContentType::Unsupported(unknown_type) => return Err(Error::from(serde_json::Error::custom(format!("Received `{unknown_type}` content type response that cannot be converted to `models::UpdateWebTargetOutput`")))),
26429        }
26430    } else {
26431        let content = resp.text().await?;
26432        let entity: Option<UpdateWebTargetError> = serde_json::from_str(&content).ok();
26433        Err(Error::ResponseError(ResponseContent { status, content, entity }))
26434    }
26435}
26436
26437pub async fn update_web_target_details(configuration: &configuration::Configuration, update_web_target_details: models::UpdateWebTargetDetails) -> Result<models::UpdateTargetOutput, Error<UpdateWebTargetDetailsError>> {
26438    // add a prefix to parameters to efficiently prevent name collisions
26439    let p_body_update_web_target_details = update_web_target_details;
26440
26441    let uri_str = format!("{}/update-web-target-details", configuration.base_path);
26442    let mut req_builder = configuration.client.request(reqwest::Method::POST, &uri_str);
26443
26444    if let Some(ref user_agent) = configuration.user_agent {
26445        req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone());
26446    }
26447    req_builder = req_builder.json(&p_body_update_web_target_details);
26448
26449    let req = req_builder.build()?;
26450    let resp = configuration.client.execute(req).await?;
26451
26452    let status = resp.status();
26453    let content_type = resp
26454        .headers()
26455        .get("content-type")
26456        .and_then(|v| v.to_str().ok())
26457        .unwrap_or("application/octet-stream");
26458    let content_type = super::ContentType::from(content_type);
26459
26460    if !status.is_client_error() && !status.is_server_error() {
26461        let content = resp.text().await?;
26462        match content_type {
26463            ContentType::Json => serde_json::from_str(&content).map_err(Error::from),
26464            ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `models::UpdateTargetOutput`"))),
26465            ContentType::Unsupported(unknown_type) => return Err(Error::from(serde_json::Error::custom(format!("Received `{unknown_type}` content type response that cannot be converted to `models::UpdateTargetOutput`")))),
26466        }
26467    } else {
26468        let content = resp.text().await?;
26469        let entity: Option<UpdateWebTargetDetailsError> = serde_json::from_str(&content).ok();
26470        Err(Error::ResponseError(ResponseContent { status, content, entity }))
26471    }
26472}
26473
26474pub async fn update_windows_target(configuration: &configuration::Configuration, update_windows_target: models::UpdateWindowsTarget) -> Result<serde_json::Value, Error<UpdateWindowsTargetError>> {
26475    // add a prefix to parameters to efficiently prevent name collisions
26476    let p_body_update_windows_target = update_windows_target;
26477
26478    let uri_str = format!("{}/update-windows-target", configuration.base_path);
26479    let mut req_builder = configuration.client.request(reqwest::Method::POST, &uri_str);
26480
26481    if let Some(ref user_agent) = configuration.user_agent {
26482        req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone());
26483    }
26484    req_builder = req_builder.json(&p_body_update_windows_target);
26485
26486    let req = req_builder.build()?;
26487    let resp = configuration.client.execute(req).await?;
26488
26489    let status = resp.status();
26490    let content_type = resp
26491        .headers()
26492        .get("content-type")
26493        .and_then(|v| v.to_str().ok())
26494        .unwrap_or("application/octet-stream");
26495    let content_type = super::ContentType::from(content_type);
26496
26497    if !status.is_client_error() && !status.is_server_error() {
26498        let content = resp.text().await?;
26499        match content_type {
26500            ContentType::Json => serde_json::from_str(&content).map_err(Error::from),
26501            ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `serde_json::Value`"))),
26502            ContentType::Unsupported(unknown_type) => return Err(Error::from(serde_json::Error::custom(format!("Received `{unknown_type}` content type response that cannot be converted to `serde_json::Value`")))),
26503        }
26504    } else {
26505        let content = resp.text().await?;
26506        let entity: Option<UpdateWindowsTargetError> = serde_json::from_str(&content).ok();
26507        Err(Error::ResponseError(ResponseContent { status, content, entity }))
26508    }
26509}
26510
26511pub async fn update_zero_ssl_target(configuration: &configuration::Configuration, update_zero_ssl_target: models::UpdateZeroSslTarget) -> Result<models::UpdateZeroSslTargetOutput, Error<UpdateZeroSslTargetError>> {
26512    // add a prefix to parameters to efficiently prevent name collisions
26513    let p_body_update_zero_ssl_target = update_zero_ssl_target;
26514
26515    let uri_str = format!("{}/update-zerossl-target", configuration.base_path);
26516    let mut req_builder = configuration.client.request(reqwest::Method::POST, &uri_str);
26517
26518    if let Some(ref user_agent) = configuration.user_agent {
26519        req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone());
26520    }
26521    req_builder = req_builder.json(&p_body_update_zero_ssl_target);
26522
26523    let req = req_builder.build()?;
26524    let resp = configuration.client.execute(req).await?;
26525
26526    let status = resp.status();
26527    let content_type = resp
26528        .headers()
26529        .get("content-type")
26530        .and_then(|v| v.to_str().ok())
26531        .unwrap_or("application/octet-stream");
26532    let content_type = super::ContentType::from(content_type);
26533
26534    if !status.is_client_error() && !status.is_server_error() {
26535        let content = resp.text().await?;
26536        match content_type {
26537            ContentType::Json => serde_json::from_str(&content).map_err(Error::from),
26538            ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `models::UpdateZeroSslTargetOutput`"))),
26539            ContentType::Unsupported(unknown_type) => return Err(Error::from(serde_json::Error::custom(format!("Received `{unknown_type}` content type response that cannot be converted to `models::UpdateZeroSslTargetOutput`")))),
26540        }
26541    } else {
26542        let content = resp.text().await?;
26543        let entity: Option<UpdateZeroSslTargetError> = serde_json::from_str(&content).ok();
26544        Err(Error::ResponseError(ResponseContent { status, content, entity }))
26545    }
26546}
26547
26548pub async fn upload_rsa(configuration: &configuration::Configuration, upload_rsa: models::UploadRsa) -> Result<serde_json::Value, Error<UploadRsaError>> {
26549    // add a prefix to parameters to efficiently prevent name collisions
26550    let p_body_upload_rsa = upload_rsa;
26551
26552    let uri_str = format!("{}/upload-rsa", configuration.base_path);
26553    let mut req_builder = configuration.client.request(reqwest::Method::POST, &uri_str);
26554
26555    if let Some(ref user_agent) = configuration.user_agent {
26556        req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone());
26557    }
26558    req_builder = req_builder.json(&p_body_upload_rsa);
26559
26560    let req = req_builder.build()?;
26561    let resp = configuration.client.execute(req).await?;
26562
26563    let status = resp.status();
26564    let content_type = resp
26565        .headers()
26566        .get("content-type")
26567        .and_then(|v| v.to_str().ok())
26568        .unwrap_or("application/octet-stream");
26569    let content_type = super::ContentType::from(content_type);
26570
26571    if !status.is_client_error() && !status.is_server_error() {
26572        let content = resp.text().await?;
26573        match content_type {
26574            ContentType::Json => serde_json::from_str(&content).map_err(Error::from),
26575            ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `serde_json::Value`"))),
26576            ContentType::Unsupported(unknown_type) => return Err(Error::from(serde_json::Error::custom(format!("Received `{unknown_type}` content type response that cannot be converted to `serde_json::Value`")))),
26577        }
26578    } else {
26579        let content = resp.text().await?;
26580        let entity: Option<UploadRsaError> = serde_json::from_str(&content).ok();
26581        Err(Error::ResponseError(ResponseContent { status, content, entity }))
26582    }
26583}
26584
26585pub async fn usc_create(configuration: &configuration::Configuration, usc_create: models::UscCreate) -> Result<models::UscCreateSecretOutput, Error<UscCreateError>> {
26586    // add a prefix to parameters to efficiently prevent name collisions
26587    let p_body_usc_create = usc_create;
26588
26589    let uri_str = format!("{}/usc-create", configuration.base_path);
26590    let mut req_builder = configuration.client.request(reqwest::Method::POST, &uri_str);
26591
26592    if let Some(ref user_agent) = configuration.user_agent {
26593        req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone());
26594    }
26595    req_builder = req_builder.json(&p_body_usc_create);
26596
26597    let req = req_builder.build()?;
26598    let resp = configuration.client.execute(req).await?;
26599
26600    let status = resp.status();
26601    let content_type = resp
26602        .headers()
26603        .get("content-type")
26604        .and_then(|v| v.to_str().ok())
26605        .unwrap_or("application/octet-stream");
26606    let content_type = super::ContentType::from(content_type);
26607
26608    if !status.is_client_error() && !status.is_server_error() {
26609        let content = resp.text().await?;
26610        match content_type {
26611            ContentType::Json => serde_json::from_str(&content).map_err(Error::from),
26612            ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `models::UscCreateSecretOutput`"))),
26613            ContentType::Unsupported(unknown_type) => return Err(Error::from(serde_json::Error::custom(format!("Received `{unknown_type}` content type response that cannot be converted to `models::UscCreateSecretOutput`")))),
26614        }
26615    } else {
26616        let content = resp.text().await?;
26617        let entity: Option<UscCreateError> = serde_json::from_str(&content).ok();
26618        Err(Error::ResponseError(ResponseContent { status, content, entity }))
26619    }
26620}
26621
26622pub async fn usc_delete(configuration: &configuration::Configuration, usc_delete: models::UscDelete) -> Result<models::UscDeleteSecretOutput, Error<UscDeleteError>> {
26623    // add a prefix to parameters to efficiently prevent name collisions
26624    let p_body_usc_delete = usc_delete;
26625
26626    let uri_str = format!("{}/usc-delete", configuration.base_path);
26627    let mut req_builder = configuration.client.request(reqwest::Method::POST, &uri_str);
26628
26629    if let Some(ref user_agent) = configuration.user_agent {
26630        req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone());
26631    }
26632    req_builder = req_builder.json(&p_body_usc_delete);
26633
26634    let req = req_builder.build()?;
26635    let resp = configuration.client.execute(req).await?;
26636
26637    let status = resp.status();
26638    let content_type = resp
26639        .headers()
26640        .get("content-type")
26641        .and_then(|v| v.to_str().ok())
26642        .unwrap_or("application/octet-stream");
26643    let content_type = super::ContentType::from(content_type);
26644
26645    if !status.is_client_error() && !status.is_server_error() {
26646        let content = resp.text().await?;
26647        match content_type {
26648            ContentType::Json => serde_json::from_str(&content).map_err(Error::from),
26649            ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `models::UscDeleteSecretOutput`"))),
26650            ContentType::Unsupported(unknown_type) => return Err(Error::from(serde_json::Error::custom(format!("Received `{unknown_type}` content type response that cannot be converted to `models::UscDeleteSecretOutput`")))),
26651        }
26652    } else {
26653        let content = resp.text().await?;
26654        let entity: Option<UscDeleteError> = serde_json::from_str(&content).ok();
26655        Err(Error::ResponseError(ResponseContent { status, content, entity }))
26656    }
26657}
26658
26659pub async fn usc_get(configuration: &configuration::Configuration, usc_get: models::UscGet) -> Result<models::UscGetSecretOutput, Error<UscGetError>> {
26660    // add a prefix to parameters to efficiently prevent name collisions
26661    let p_body_usc_get = usc_get;
26662
26663    let uri_str = format!("{}/usc-get", configuration.base_path);
26664    let mut req_builder = configuration.client.request(reqwest::Method::POST, &uri_str);
26665
26666    if let Some(ref user_agent) = configuration.user_agent {
26667        req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone());
26668    }
26669    req_builder = req_builder.json(&p_body_usc_get);
26670
26671    let req = req_builder.build()?;
26672    let resp = configuration.client.execute(req).await?;
26673
26674    let status = resp.status();
26675    let content_type = resp
26676        .headers()
26677        .get("content-type")
26678        .and_then(|v| v.to_str().ok())
26679        .unwrap_or("application/octet-stream");
26680    let content_type = super::ContentType::from(content_type);
26681
26682    if !status.is_client_error() && !status.is_server_error() {
26683        let content = resp.text().await?;
26684        match content_type {
26685            ContentType::Json => serde_json::from_str(&content).map_err(Error::from),
26686            ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `models::UscGetSecretOutput`"))),
26687            ContentType::Unsupported(unknown_type) => return Err(Error::from(serde_json::Error::custom(format!("Received `{unknown_type}` content type response that cannot be converted to `models::UscGetSecretOutput`")))),
26688        }
26689    } else {
26690        let content = resp.text().await?;
26691        let entity: Option<UscGetError> = serde_json::from_str(&content).ok();
26692        Err(Error::ResponseError(ResponseContent { status, content, entity }))
26693    }
26694}
26695
26696pub async fn usc_list(configuration: &configuration::Configuration, usc_list: models::UscList) -> Result<models::UscListSecretsOutput, Error<UscListError>> {
26697    // add a prefix to parameters to efficiently prevent name collisions
26698    let p_body_usc_list = usc_list;
26699
26700    let uri_str = format!("{}/usc-list", configuration.base_path);
26701    let mut req_builder = configuration.client.request(reqwest::Method::POST, &uri_str);
26702
26703    if let Some(ref user_agent) = configuration.user_agent {
26704        req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone());
26705    }
26706    req_builder = req_builder.json(&p_body_usc_list);
26707
26708    let req = req_builder.build()?;
26709    let resp = configuration.client.execute(req).await?;
26710
26711    let status = resp.status();
26712    let content_type = resp
26713        .headers()
26714        .get("content-type")
26715        .and_then(|v| v.to_str().ok())
26716        .unwrap_or("application/octet-stream");
26717    let content_type = super::ContentType::from(content_type);
26718
26719    if !status.is_client_error() && !status.is_server_error() {
26720        let content = resp.text().await?;
26721        match content_type {
26722            ContentType::Json => serde_json::from_str(&content).map_err(Error::from),
26723            ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `models::UscListSecretsOutput`"))),
26724            ContentType::Unsupported(unknown_type) => return Err(Error::from(serde_json::Error::custom(format!("Received `{unknown_type}` content type response that cannot be converted to `models::UscListSecretsOutput`")))),
26725        }
26726    } else {
26727        let content = resp.text().await?;
26728        let entity: Option<UscListError> = serde_json::from_str(&content).ok();
26729        Err(Error::ResponseError(ResponseContent { status, content, entity }))
26730    }
26731}
26732
26733pub async fn usc_update(configuration: &configuration::Configuration, usc_update: models::UscUpdate) -> Result<models::UscUpdateSecretOutput, Error<UscUpdateError>> {
26734    // add a prefix to parameters to efficiently prevent name collisions
26735    let p_body_usc_update = usc_update;
26736
26737    let uri_str = format!("{}/usc-update", configuration.base_path);
26738    let mut req_builder = configuration.client.request(reqwest::Method::POST, &uri_str);
26739
26740    if let Some(ref user_agent) = configuration.user_agent {
26741        req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone());
26742    }
26743    req_builder = req_builder.json(&p_body_usc_update);
26744
26745    let req = req_builder.build()?;
26746    let resp = configuration.client.execute(req).await?;
26747
26748    let status = resp.status();
26749    let content_type = resp
26750        .headers()
26751        .get("content-type")
26752        .and_then(|v| v.to_str().ok())
26753        .unwrap_or("application/octet-stream");
26754    let content_type = super::ContentType::from(content_type);
26755
26756    if !status.is_client_error() && !status.is_server_error() {
26757        let content = resp.text().await?;
26758        match content_type {
26759            ContentType::Json => serde_json::from_str(&content).map_err(Error::from),
26760            ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `models::UscUpdateSecretOutput`"))),
26761            ContentType::Unsupported(unknown_type) => return Err(Error::from(serde_json::Error::custom(format!("Received `{unknown_type}` content type response that cannot be converted to `models::UscUpdateSecretOutput`")))),
26762        }
26763    } else {
26764        let content = resp.text().await?;
26765        let entity: Option<UscUpdateError> = serde_json::from_str(&content).ok();
26766        Err(Error::ResponseError(ResponseContent { status, content, entity }))
26767    }
26768}
26769
26770pub async fn validate_certificate_challenge(configuration: &configuration::Configuration, validate_certificate_challenge: models::ValidateCertificateChallenge) -> Result<models::ValidateCertificateChallengeOutput, Error<ValidateCertificateChallengeError>> {
26771    // add a prefix to parameters to efficiently prevent name collisions
26772    let p_body_validate_certificate_challenge = validate_certificate_challenge;
26773
26774    let uri_str = format!("{}/validate-certificate-challenge", configuration.base_path);
26775    let mut req_builder = configuration.client.request(reqwest::Method::POST, &uri_str);
26776
26777    if let Some(ref user_agent) = configuration.user_agent {
26778        req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone());
26779    }
26780    req_builder = req_builder.json(&p_body_validate_certificate_challenge);
26781
26782    let req = req_builder.build()?;
26783    let resp = configuration.client.execute(req).await?;
26784
26785    let status = resp.status();
26786    let content_type = resp
26787        .headers()
26788        .get("content-type")
26789        .and_then(|v| v.to_str().ok())
26790        .unwrap_or("application/octet-stream");
26791    let content_type = super::ContentType::from(content_type);
26792
26793    if !status.is_client_error() && !status.is_server_error() {
26794        let content = resp.text().await?;
26795        match content_type {
26796            ContentType::Json => serde_json::from_str(&content).map_err(Error::from),
26797            ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `models::ValidateCertificateChallengeOutput`"))),
26798            ContentType::Unsupported(unknown_type) => return Err(Error::from(serde_json::Error::custom(format!("Received `{unknown_type}` content type response that cannot be converted to `models::ValidateCertificateChallengeOutput`")))),
26799        }
26800    } else {
26801        let content = resp.text().await?;
26802        let entity: Option<ValidateCertificateChallengeError> = serde_json::from_str(&content).ok();
26803        Err(Error::ResponseError(ResponseContent { status, content, entity }))
26804    }
26805}
26806
26807pub async fn validate_token(configuration: &configuration::Configuration, validate_token: models::ValidateToken) -> Result<models::ValidateTokenOutput, Error<ValidateTokenError>> {
26808    // add a prefix to parameters to efficiently prevent name collisions
26809    let p_body_validate_token = validate_token;
26810
26811    let uri_str = format!("{}/validate-token", configuration.base_path);
26812    let mut req_builder = configuration.client.request(reqwest::Method::POST, &uri_str);
26813
26814    if let Some(ref user_agent) = configuration.user_agent {
26815        req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone());
26816    }
26817    req_builder = req_builder.json(&p_body_validate_token);
26818
26819    let req = req_builder.build()?;
26820    let resp = configuration.client.execute(req).await?;
26821
26822    let status = resp.status();
26823    let content_type = resp
26824        .headers()
26825        .get("content-type")
26826        .and_then(|v| v.to_str().ok())
26827        .unwrap_or("application/octet-stream");
26828    let content_type = super::ContentType::from(content_type);
26829
26830    if !status.is_client_error() && !status.is_server_error() {
26831        let content = resp.text().await?;
26832        match content_type {
26833            ContentType::Json => serde_json::from_str(&content).map_err(Error::from),
26834            ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `models::ValidateTokenOutput`"))),
26835            ContentType::Unsupported(unknown_type) => return Err(Error::from(serde_json::Error::custom(format!("Received `{unknown_type}` content type response that cannot be converted to `models::ValidateTokenOutput`")))),
26836        }
26837    } else {
26838        let content = resp.text().await?;
26839        let entity: Option<ValidateTokenError> = serde_json::from_str(&content).ok();
26840        Err(Error::ResponseError(ResponseContent { status, content, entity }))
26841    }
26842}
26843
26844pub async fn vault_address(configuration: &configuration::Configuration, vault_address: models::VaultAddress) -> Result<models::VaultAddressOutput, Error<VaultAddressError>> {
26845    // add a prefix to parameters to efficiently prevent name collisions
26846    let p_body_vault_address = vault_address;
26847
26848    let uri_str = format!("{}/vault-address", configuration.base_path);
26849    let mut req_builder = configuration.client.request(reqwest::Method::POST, &uri_str);
26850
26851    if let Some(ref user_agent) = configuration.user_agent {
26852        req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone());
26853    }
26854    req_builder = req_builder.json(&p_body_vault_address);
26855
26856    let req = req_builder.build()?;
26857    let resp = configuration.client.execute(req).await?;
26858
26859    let status = resp.status();
26860    let content_type = resp
26861        .headers()
26862        .get("content-type")
26863        .and_then(|v| v.to_str().ok())
26864        .unwrap_or("application/octet-stream");
26865    let content_type = super::ContentType::from(content_type);
26866
26867    if !status.is_client_error() && !status.is_server_error() {
26868        let content = resp.text().await?;
26869        match content_type {
26870            ContentType::Json => serde_json::from_str(&content).map_err(Error::from),
26871            ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `models::VaultAddressOutput`"))),
26872            ContentType::Unsupported(unknown_type) => return Err(Error::from(serde_json::Error::custom(format!("Received `{unknown_type}` content type response that cannot be converted to `models::VaultAddressOutput`")))),
26873        }
26874    } else {
26875        let content = resp.text().await?;
26876        let entity: Option<VaultAddressError> = serde_json::from_str(&content).ok();
26877        Err(Error::ResponseError(ResponseContent { status, content, entity }))
26878    }
26879}
26880
26881pub async fn verify_data_with_classic_key(configuration: &configuration::Configuration, verify_data_with_classic_key: models::VerifyDataWithClassicKey) -> Result<models::VerifyPkiCertOutput, Error<VerifyDataWithClassicKeyError>> {
26882    // add a prefix to parameters to efficiently prevent name collisions
26883    let p_body_verify_data_with_classic_key = verify_data_with_classic_key;
26884
26885    let uri_str = format!("{}/verify-data-with-classic-key", configuration.base_path);
26886    let mut req_builder = configuration.client.request(reqwest::Method::POST, &uri_str);
26887
26888    if let Some(ref user_agent) = configuration.user_agent {
26889        req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone());
26890    }
26891    req_builder = req_builder.json(&p_body_verify_data_with_classic_key);
26892
26893    let req = req_builder.build()?;
26894    let resp = configuration.client.execute(req).await?;
26895
26896    let status = resp.status();
26897    let content_type = resp
26898        .headers()
26899        .get("content-type")
26900        .and_then(|v| v.to_str().ok())
26901        .unwrap_or("application/octet-stream");
26902    let content_type = super::ContentType::from(content_type);
26903
26904    if !status.is_client_error() && !status.is_server_error() {
26905        let content = resp.text().await?;
26906        match content_type {
26907            ContentType::Json => serde_json::from_str(&content).map_err(Error::from),
26908            ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `models::VerifyPkiCertOutput`"))),
26909            ContentType::Unsupported(unknown_type) => return Err(Error::from(serde_json::Error::custom(format!("Received `{unknown_type}` content type response that cannot be converted to `models::VerifyPkiCertOutput`")))),
26910        }
26911    } else {
26912        let content = resp.text().await?;
26913        let entity: Option<VerifyDataWithClassicKeyError> = serde_json::from_str(&content).ok();
26914        Err(Error::ResponseError(ResponseContent { status, content, entity }))
26915    }
26916}
26917
26918pub async fn verify_ec_dsa(configuration: &configuration::Configuration, verify_ec_dsa: models::VerifyEcDsa) -> Result<serde_json::Value, Error<VerifyEcDsaError>> {
26919    // add a prefix to parameters to efficiently prevent name collisions
26920    let p_body_verify_ec_dsa = verify_ec_dsa;
26921
26922    let uri_str = format!("{}/verify-ecdsa", configuration.base_path);
26923    let mut req_builder = configuration.client.request(reqwest::Method::POST, &uri_str);
26924
26925    if let Some(ref user_agent) = configuration.user_agent {
26926        req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone());
26927    }
26928    req_builder = req_builder.json(&p_body_verify_ec_dsa);
26929
26930    let req = req_builder.build()?;
26931    let resp = configuration.client.execute(req).await?;
26932
26933    let status = resp.status();
26934    let content_type = resp
26935        .headers()
26936        .get("content-type")
26937        .and_then(|v| v.to_str().ok())
26938        .unwrap_or("application/octet-stream");
26939    let content_type = super::ContentType::from(content_type);
26940
26941    if !status.is_client_error() && !status.is_server_error() {
26942        let content = resp.text().await?;
26943        match content_type {
26944            ContentType::Json => serde_json::from_str(&content).map_err(Error::from),
26945            ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `serde_json::Value`"))),
26946            ContentType::Unsupported(unknown_type) => return Err(Error::from(serde_json::Error::custom(format!("Received `{unknown_type}` content type response that cannot be converted to `serde_json::Value`")))),
26947        }
26948    } else {
26949        let content = resp.text().await?;
26950        let entity: Option<VerifyEcDsaError> = serde_json::from_str(&content).ok();
26951        Err(Error::ResponseError(ResponseContent { status, content, entity }))
26952    }
26953}
26954
26955pub async fn verify_gpg(configuration: &configuration::Configuration, verify_gpg: models::VerifyGpg) -> Result<serde_json::Value, Error<VerifyGpgError>> {
26956    // add a prefix to parameters to efficiently prevent name collisions
26957    let p_body_verify_gpg = verify_gpg;
26958
26959    let uri_str = format!("{}/verify-gpg", configuration.base_path);
26960    let mut req_builder = configuration.client.request(reqwest::Method::POST, &uri_str);
26961
26962    if let Some(ref user_agent) = configuration.user_agent {
26963        req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone());
26964    }
26965    req_builder = req_builder.json(&p_body_verify_gpg);
26966
26967    let req = req_builder.build()?;
26968    let resp = configuration.client.execute(req).await?;
26969
26970    let status = resp.status();
26971    let content_type = resp
26972        .headers()
26973        .get("content-type")
26974        .and_then(|v| v.to_str().ok())
26975        .unwrap_or("application/octet-stream");
26976    let content_type = super::ContentType::from(content_type);
26977
26978    if !status.is_client_error() && !status.is_server_error() {
26979        let content = resp.text().await?;
26980        match content_type {
26981            ContentType::Json => serde_json::from_str(&content).map_err(Error::from),
26982            ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `serde_json::Value`"))),
26983            ContentType::Unsupported(unknown_type) => return Err(Error::from(serde_json::Error::custom(format!("Received `{unknown_type}` content type response that cannot be converted to `serde_json::Value`")))),
26984        }
26985    } else {
26986        let content = resp.text().await?;
26987        let entity: Option<VerifyGpgError> = serde_json::from_str(&content).ok();
26988        Err(Error::ResponseError(ResponseContent { status, content, entity }))
26989    }
26990}
26991
26992pub async fn verify_jwt_with_classic_key(configuration: &configuration::Configuration, verify_jwt_with_classic_key: models::VerifyJwtWithClassicKey) -> Result<models::VerifyJwtOutput, Error<VerifyJwtWithClassicKeyError>> {
26993    // add a prefix to parameters to efficiently prevent name collisions
26994    let p_body_verify_jwt_with_classic_key = verify_jwt_with_classic_key;
26995
26996    let uri_str = format!("{}/verify-jwt-with-classic-key", configuration.base_path);
26997    let mut req_builder = configuration.client.request(reqwest::Method::POST, &uri_str);
26998
26999    if let Some(ref user_agent) = configuration.user_agent {
27000        req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone());
27001    }
27002    req_builder = req_builder.json(&p_body_verify_jwt_with_classic_key);
27003
27004    let req = req_builder.build()?;
27005    let resp = configuration.client.execute(req).await?;
27006
27007    let status = resp.status();
27008    let content_type = resp
27009        .headers()
27010        .get("content-type")
27011        .and_then(|v| v.to_str().ok())
27012        .unwrap_or("application/octet-stream");
27013    let content_type = super::ContentType::from(content_type);
27014
27015    if !status.is_client_error() && !status.is_server_error() {
27016        let content = resp.text().await?;
27017        match content_type {
27018            ContentType::Json => serde_json::from_str(&content).map_err(Error::from),
27019            ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `models::VerifyJwtOutput`"))),
27020            ContentType::Unsupported(unknown_type) => return Err(Error::from(serde_json::Error::custom(format!("Received `{unknown_type}` content type response that cannot be converted to `models::VerifyJwtOutput`")))),
27021        }
27022    } else {
27023        let content = resp.text().await?;
27024        let entity: Option<VerifyJwtWithClassicKeyError> = serde_json::from_str(&content).ok();
27025        Err(Error::ResponseError(ResponseContent { status, content, entity }))
27026    }
27027}
27028
27029pub async fn verify_pkcs1(configuration: &configuration::Configuration, verify_pkcs1: models::VerifyPkcs1) -> Result<serde_json::Value, Error<VerifyPkcs1Error>> {
27030    // add a prefix to parameters to efficiently prevent name collisions
27031    let p_body_verify_pkcs1 = verify_pkcs1;
27032
27033    let uri_str = format!("{}/verify-pkcs1", configuration.base_path);
27034    let mut req_builder = configuration.client.request(reqwest::Method::POST, &uri_str);
27035
27036    if let Some(ref user_agent) = configuration.user_agent {
27037        req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone());
27038    }
27039    req_builder = req_builder.json(&p_body_verify_pkcs1);
27040
27041    let req = req_builder.build()?;
27042    let resp = configuration.client.execute(req).await?;
27043
27044    let status = resp.status();
27045    let content_type = resp
27046        .headers()
27047        .get("content-type")
27048        .and_then(|v| v.to_str().ok())
27049        .unwrap_or("application/octet-stream");
27050    let content_type = super::ContentType::from(content_type);
27051
27052    if !status.is_client_error() && !status.is_server_error() {
27053        let content = resp.text().await?;
27054        match content_type {
27055            ContentType::Json => serde_json::from_str(&content).map_err(Error::from),
27056            ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `serde_json::Value`"))),
27057            ContentType::Unsupported(unknown_type) => return Err(Error::from(serde_json::Error::custom(format!("Received `{unknown_type}` content type response that cannot be converted to `serde_json::Value`")))),
27058        }
27059    } else {
27060        let content = resp.text().await?;
27061        let entity: Option<VerifyPkcs1Error> = serde_json::from_str(&content).ok();
27062        Err(Error::ResponseError(ResponseContent { status, content, entity }))
27063    }
27064}
27065
27066pub async fn verify_pki_cert_with_classic_key(configuration: &configuration::Configuration, verify_pki_cert_with_classic_key: models::VerifyPkiCertWithClassicKey) -> Result<models::VerifyPkiCertOutput, Error<VerifyPkiCertWithClassicKeyError>> {
27067    // add a prefix to parameters to efficiently prevent name collisions
27068    let p_body_verify_pki_cert_with_classic_key = verify_pki_cert_with_classic_key;
27069
27070    let uri_str = format!("{}/verify-pki-cert-with-classic-key", configuration.base_path);
27071    let mut req_builder = configuration.client.request(reqwest::Method::POST, &uri_str);
27072
27073    if let Some(ref user_agent) = configuration.user_agent {
27074        req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone());
27075    }
27076    req_builder = req_builder.json(&p_body_verify_pki_cert_with_classic_key);
27077
27078    let req = req_builder.build()?;
27079    let resp = configuration.client.execute(req).await?;
27080
27081    let status = resp.status();
27082    let content_type = resp
27083        .headers()
27084        .get("content-type")
27085        .and_then(|v| v.to_str().ok())
27086        .unwrap_or("application/octet-stream");
27087    let content_type = super::ContentType::from(content_type);
27088
27089    if !status.is_client_error() && !status.is_server_error() {
27090        let content = resp.text().await?;
27091        match content_type {
27092            ContentType::Json => serde_json::from_str(&content).map_err(Error::from),
27093            ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `models::VerifyPkiCertOutput`"))),
27094            ContentType::Unsupported(unknown_type) => return Err(Error::from(serde_json::Error::custom(format!("Received `{unknown_type}` content type response that cannot be converted to `models::VerifyPkiCertOutput`")))),
27095        }
27096    } else {
27097        let content = resp.text().await?;
27098        let entity: Option<VerifyPkiCertWithClassicKeyError> = serde_json::from_str(&content).ok();
27099        Err(Error::ResponseError(ResponseContent { status, content, entity }))
27100    }
27101}
27102
27103pub async fn verify_rsa_ssa_pss(configuration: &configuration::Configuration, verify_rsa_ssa_pss: models::VerifyRsaSsaPss) -> Result<serde_json::Value, Error<VerifyRsaSsaPssError>> {
27104    // add a prefix to parameters to efficiently prevent name collisions
27105    let p_body_verify_rsa_ssa_pss = verify_rsa_ssa_pss;
27106
27107    let uri_str = format!("{}/verify-rsassa-pss", configuration.base_path);
27108    let mut req_builder = configuration.client.request(reqwest::Method::POST, &uri_str);
27109
27110    if let Some(ref user_agent) = configuration.user_agent {
27111        req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone());
27112    }
27113    req_builder = req_builder.json(&p_body_verify_rsa_ssa_pss);
27114
27115    let req = req_builder.build()?;
27116    let resp = configuration.client.execute(req).await?;
27117
27118    let status = resp.status();
27119    let content_type = resp
27120        .headers()
27121        .get("content-type")
27122        .and_then(|v| v.to_str().ok())
27123        .unwrap_or("application/octet-stream");
27124    let content_type = super::ContentType::from(content_type);
27125
27126    if !status.is_client_error() && !status.is_server_error() {
27127        let content = resp.text().await?;
27128        match content_type {
27129            ContentType::Json => serde_json::from_str(&content).map_err(Error::from),
27130            ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `serde_json::Value`"))),
27131            ContentType::Unsupported(unknown_type) => return Err(Error::from(serde_json::Error::custom(format!("Received `{unknown_type}` content type response that cannot be converted to `serde_json::Value`")))),
27132        }
27133    } else {
27134        let content = resp.text().await?;
27135        let entity: Option<VerifyRsaSsaPssError> = serde_json::from_str(&content).ok();
27136        Err(Error::ResponseError(ResponseContent { status, content, entity }))
27137    }
27138}
27139