diff --git a/src/apis/cloud_connect_aws_api.rs b/src/apis/cloud_connect_aws_api.rs index b46be219..d2def0de 100644 --- a/src/apis/cloud_connect_aws_api.rs +++ b/src/apis/cloud_connect_aws_api.rs @@ -164,7 +164,10 @@ pub async fn delete_aws_accounts(configuration: &configuration::Configuration, i let local_var_uri_str = format!("{}/cloud-connect-aws/entities/accounts/v1", local_var_configuration.base_path); let mut local_var_req_builder = local_var_client.request(reqwest::Method::DELETE, local_var_uri_str.as_str()); - local_var_req_builder = local_var_req_builder.query(&[("ids", &ids.into_iter().map(|p| p.to_string()).collect::>().join(",").to_string())]); + local_var_req_builder = match "multi" { + "multi" => local_var_req_builder.query(&ids.into_iter().map(|p| ("ids".to_owned(), p)).collect::>()), + _ => local_var_req_builder.query(&[("ids", &ids.into_iter().map(|p| p.to_string()).collect::>().join(",").to_string())]), + }; if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); } @@ -199,7 +202,10 @@ pub async fn get_aws_accounts(configuration: &configuration::Configuration, ids: let local_var_uri_str = format!("{}/cloud-connect-aws/entities/accounts/v1", local_var_configuration.base_path); let mut local_var_req_builder = local_var_client.request(reqwest::Method::GET, local_var_uri_str.as_str()); - local_var_req_builder = local_var_req_builder.query(&[("ids", &ids.into_iter().map(|p| p.to_string()).collect::>().join(",").to_string())]); + local_var_req_builder = match "multi" { + "multi" => local_var_req_builder.query(&ids.into_iter().map(|p| ("ids".to_owned(), p)).collect::>()), + _ => local_var_req_builder.query(&[("ids", &ids.into_iter().map(|p| p.to_string()).collect::>().join(",").to_string())]), + }; if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); } @@ -433,7 +439,10 @@ pub async fn verify_aws_account_access(configuration: &configuration::Configurat let local_var_uri_str = format!("{}/cloud-connect-aws/entities/verify-account-access/v1", local_var_configuration.base_path); let mut local_var_req_builder = local_var_client.request(reqwest::Method::POST, local_var_uri_str.as_str()); - local_var_req_builder = local_var_req_builder.query(&[("ids", &ids.into_iter().map(|p| p.to_string()).collect::>().join(",").to_string())]); + local_var_req_builder = match "multi" { + "multi" => local_var_req_builder.query(&ids.into_iter().map(|p| ("ids".to_owned(), p)).collect::>()), + _ => local_var_req_builder.query(&[("ids", &ids.into_iter().map(|p| p.to_string()).collect::>().join(",").to_string())]), + }; if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); } diff --git a/src/apis/cspm_registration_api.rs b/src/apis/cspm_registration_api.rs index fb16bb8c..aa44ba56 100644 --- a/src/apis/cspm_registration_api.rs +++ b/src/apis/cspm_registration_api.rs @@ -339,10 +339,16 @@ pub async fn delete_cspm_aws_account(configuration: &configuration::Configuratio let mut local_var_req_builder = local_var_client.request(reqwest::Method::DELETE, local_var_uri_str.as_str()); if let Some(ref local_var_str) = ids { - local_var_req_builder = local_var_req_builder.query(&[("ids", &local_var_str.into_iter().map(|p| p.to_string()).collect::>().join(",").to_string())]); + local_var_req_builder = match "multi" { + "multi" => local_var_req_builder.query(&local_var_str.into_iter().map(|p| ("ids".to_owned(), p.to_string())).collect::>()), + _ => local_var_req_builder.query(&[("ids", &local_var_str.into_iter().map(|p| p.to_string()).collect::>().join(",").to_string())]), + }; } if let Some(ref local_var_str) = organization_ids { - local_var_req_builder = local_var_req_builder.query(&[("organization-ids", &local_var_str.into_iter().map(|p| p.to_string()).collect::>().join(",").to_string())]); + local_var_req_builder = match "multi" { + "multi" => local_var_req_builder.query(&local_var_str.into_iter().map(|p| ("organization-ids".to_owned(), p.to_string())).collect::>()), + _ => local_var_req_builder.query(&[("organization-ids", &local_var_str.into_iter().map(|p| p.to_string()).collect::>().join(",").to_string())]), + }; } if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); @@ -378,7 +384,10 @@ pub async fn delete_cspm_azure_account(configuration: &configuration::Configurat let local_var_uri_str = format!("{}/cloud-connect-cspm-azure/entities/account/v1", local_var_configuration.base_path); let mut local_var_req_builder = local_var_client.request(reqwest::Method::DELETE, local_var_uri_str.as_str()); - local_var_req_builder = local_var_req_builder.query(&[("ids", &ids.into_iter().map(|p| p.to_string()).collect::>().join(",").to_string())]); + local_var_req_builder = match "multi" { + "multi" => local_var_req_builder.query(&ids.into_iter().map(|p| ("ids".to_owned(), p)).collect::>()), + _ => local_var_req_builder.query(&[("ids", &ids.into_iter().map(|p| p.to_string()).collect::>().join(",").to_string())]), + }; if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); } @@ -580,10 +589,16 @@ pub async fn get_cspm_aws_account( local_var_req_builder = local_var_req_builder.query(&[("scan-type", &local_var_str.to_string())]); } if let Some(ref local_var_str) = ids { - local_var_req_builder = local_var_req_builder.query(&[("ids", &local_var_str.into_iter().map(|p| p.to_string()).collect::>().join(",").to_string())]); + local_var_req_builder = match "multi" { + "multi" => local_var_req_builder.query(&local_var_str.into_iter().map(|p| ("ids".to_owned(), p.to_string())).collect::>()), + _ => local_var_req_builder.query(&[("ids", &local_var_str.into_iter().map(|p| p.to_string()).collect::>().join(",").to_string())]), + }; } if let Some(ref local_var_str) = organization_ids { - local_var_req_builder = local_var_req_builder.query(&[("organization-ids", &local_var_str.into_iter().map(|p| p.to_string()).collect::>().join(",").to_string())]); + local_var_req_builder = match "multi" { + "multi" => local_var_req_builder.query(&local_var_str.into_iter().map(|p| ("organization-ids".to_owned(), p.to_string())).collect::>()), + _ => local_var_req_builder.query(&[("organization-ids", &local_var_str.into_iter().map(|p| p.to_string()).collect::>().join(",").to_string())]), + }; } if let Some(ref local_var_str) = status { local_var_req_builder = local_var_req_builder.query(&[("status", &local_var_str.to_string())]); @@ -700,7 +715,10 @@ pub async fn get_cspm_azure_account(configuration: &configuration::Configuration let mut local_var_req_builder = local_var_client.request(reqwest::Method::GET, local_var_uri_str.as_str()); if let Some(ref local_var_str) = ids { - local_var_req_builder = local_var_req_builder.query(&[("ids", &local_var_str.into_iter().map(|p| p.to_string()).collect::>().join(",").to_string())]); + local_var_req_builder = match "multi" { + "multi" => local_var_req_builder.query(&local_var_str.into_iter().map(|p| ("ids".to_owned(), p.to_string())).collect::>()), + _ => local_var_req_builder.query(&[("ids", &local_var_str.into_iter().map(|p| p.to_string()).collect::>().join(",").to_string())]), + }; } if let Some(ref local_var_str) = scan_type { local_var_req_builder = local_var_req_builder.query(&[("scan-type", &local_var_str.to_string())]); @@ -864,7 +882,10 @@ pub async fn get_cspm_scan_schedule(configuration: &configuration::Configuration let mut local_var_req_builder = local_var_client.request(reqwest::Method::GET, local_var_uri_str.as_str()); if let Some(ref local_var_str) = cloud_platform { - local_var_req_builder = local_var_req_builder.query(&[("cloud-platform", &local_var_str.into_iter().map(|p| p.to_string()).collect::>().join(",").to_string())]); + local_var_req_builder = match "multi" { + "multi" => local_var_req_builder.query(&local_var_str.into_iter().map(|p| ("cloud-platform".to_owned(), p.to_string())).collect::>()), + _ => local_var_req_builder.query(&[("cloud-platform", &local_var_str.into_iter().map(|p| p.to_string()).collect::>().join(",").to_string())]), + }; } if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); @@ -927,7 +948,10 @@ pub async fn get_ioa_events( local_var_req_builder = local_var_req_builder.query(&[("azure_tenant_id", &local_var_str.to_string())]); } if let Some(ref local_var_str) = user_ids { - local_var_req_builder = local_var_req_builder.query(&[("user_ids", &local_var_str.into_iter().map(|p| p.to_string()).collect::>().join(",").to_string())]); + local_var_req_builder = match "multi" { + "multi" => local_var_req_builder.query(&local_var_str.into_iter().map(|p| ("user_ids".to_owned(), p.to_string())).collect::>()), + _ => local_var_req_builder.query(&[("user_ids", &local_var_str.into_iter().map(|p| p.to_string()).collect::>().join(",").to_string())]), + }; } if let Some(ref local_var_str) = state { local_var_req_builder = local_var_req_builder.query(&[("state", &local_var_str.to_string())]); diff --git a/src/apis/custom_ioa_api.rs b/src/apis/custom_ioa_api.rs index 647490c4..20a3d96a 100644 --- a/src/apis/custom_ioa_api.rs +++ b/src/apis/custom_ioa_api.rs @@ -296,7 +296,10 @@ pub async fn delete_rule_groups_mixin0(configuration: &configuration::Configurat if let Some(ref local_var_str) = comment { local_var_req_builder = local_var_req_builder.query(&[("comment", &local_var_str.to_string())]); } - local_var_req_builder = local_var_req_builder.query(&[("ids", &ids.into_iter().map(|p| p.to_string()).collect::>().join(",").to_string())]); + local_var_req_builder = match "multi" { + "multi" => local_var_req_builder.query(&ids.into_iter().map(|p| ("ids".to_owned(), p)).collect::>()), + _ => local_var_req_builder.query(&[("ids", &ids.into_iter().map(|p| p.to_string()).collect::>().join(",").to_string())]), + }; if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); } @@ -335,7 +338,10 @@ pub async fn delete_rules(configuration: &configuration::Configuration, rule_gro if let Some(ref local_var_str) = comment { local_var_req_builder = local_var_req_builder.query(&[("comment", &local_var_str.to_string())]); } - local_var_req_builder = local_var_req_builder.query(&[("ids", &ids.into_iter().map(|p| p.to_string()).collect::>().join(",").to_string())]); + local_var_req_builder = match "multi" { + "multi" => local_var_req_builder.query(&ids.into_iter().map(|p| ("ids".to_owned(), p)).collect::>()), + _ => local_var_req_builder.query(&[("ids", &ids.into_iter().map(|p| p.to_string()).collect::>().join(",").to_string())]), + }; if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); } @@ -370,7 +376,10 @@ pub async fn get_patterns(configuration: &configuration::Configuration, ids: Vec let local_var_uri_str = format!("{}/ioarules/entities/pattern-severities/v1", local_var_configuration.base_path); let mut local_var_req_builder = local_var_client.request(reqwest::Method::GET, local_var_uri_str.as_str()); - local_var_req_builder = local_var_req_builder.query(&[("ids", &ids.into_iter().map(|p| p.to_string()).collect::>().join(",").to_string())]); + local_var_req_builder = match "multi" { + "multi" => local_var_req_builder.query(&ids.into_iter().map(|p| ("ids".to_owned(), p)).collect::>()), + _ => local_var_req_builder.query(&[("ids", &ids.into_iter().map(|p| p.to_string()).collect::>().join(",").to_string())]), + }; if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); } @@ -405,7 +414,10 @@ pub async fn get_platforms_mixin0(configuration: &configuration::Configuration, let local_var_uri_str = format!("{}/ioarules/entities/platforms/v1", local_var_configuration.base_path); let mut local_var_req_builder = local_var_client.request(reqwest::Method::GET, local_var_uri_str.as_str()); - local_var_req_builder = local_var_req_builder.query(&[("ids", &ids.into_iter().map(|p| p.to_string()).collect::>().join(",").to_string())]); + local_var_req_builder = match "multi" { + "multi" => local_var_req_builder.query(&ids.into_iter().map(|p| ("ids".to_owned(), p)).collect::>()), + _ => local_var_req_builder.query(&[("ids", &ids.into_iter().map(|p| p.to_string()).collect::>().join(",").to_string())]), + }; if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); } @@ -440,7 +452,10 @@ pub async fn get_rule_groups_mixin0(configuration: &configuration::Configuration let local_var_uri_str = format!("{}/ioarules/entities/rule-groups/v1", local_var_configuration.base_path); let mut local_var_req_builder = local_var_client.request(reqwest::Method::GET, local_var_uri_str.as_str()); - local_var_req_builder = local_var_req_builder.query(&[("ids", &ids.into_iter().map(|p| p.to_string()).collect::>().join(",").to_string())]); + local_var_req_builder = match "multi" { + "multi" => local_var_req_builder.query(&ids.into_iter().map(|p| ("ids".to_owned(), p)).collect::>()), + _ => local_var_req_builder.query(&[("ids", &ids.into_iter().map(|p| p.to_string()).collect::>().join(",").to_string())]), + }; if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); } @@ -475,7 +490,10 @@ pub async fn get_rule_types(configuration: &configuration::Configuration, ids: V let local_var_uri_str = format!("{}/ioarules/entities/rule-types/v1", local_var_configuration.base_path); let mut local_var_req_builder = local_var_client.request(reqwest::Method::GET, local_var_uri_str.as_str()); - local_var_req_builder = local_var_req_builder.query(&[("ids", &ids.into_iter().map(|p| p.to_string()).collect::>().join(",").to_string())]); + local_var_req_builder = match "multi" { + "multi" => local_var_req_builder.query(&ids.into_iter().map(|p| ("ids".to_owned(), p)).collect::>()), + _ => local_var_req_builder.query(&[("ids", &ids.into_iter().map(|p| p.to_string()).collect::>().join(",").to_string())]), + }; if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); } @@ -545,7 +563,10 @@ pub async fn get_rules_mixin0(configuration: &configuration::Configuration, ids: let local_var_uri_str = format!("{}/ioarules/entities/rules/v1", local_var_configuration.base_path); let mut local_var_req_builder = local_var_client.request(reqwest::Method::GET, local_var_uri_str.as_str()); - local_var_req_builder = local_var_req_builder.query(&[("ids", &ids.into_iter().map(|p| p.to_string()).collect::>().join(",").to_string())]); + local_var_req_builder = match "multi" { + "multi" => local_var_req_builder.query(&ids.into_iter().map(|p| ("ids".to_owned(), p)).collect::>()), + _ => local_var_req_builder.query(&[("ids", &ids.into_iter().map(|p| p.to_string()).collect::>().join(",").to_string())]), + }; if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); } diff --git a/src/apis/d4c_registration_api.rs b/src/apis/d4c_registration_api.rs index fc70d582..9ddbb047 100644 --- a/src/apis/d4c_registration_api.rs +++ b/src/apis/d4c_registration_api.rs @@ -197,7 +197,10 @@ pub async fn get_cspm_azure_account(configuration: &configuration::Configuration let mut local_var_req_builder = local_var_client.request(reqwest::Method::GET, local_var_uri_str.as_str()); if let Some(ref local_var_str) = ids { - local_var_req_builder = local_var_req_builder.query(&[("ids", &local_var_str.into_iter().map(|p| p.to_string()).collect::>().join(",").to_string())]); + local_var_req_builder = match "multi" { + "multi" => local_var_req_builder.query(&local_var_str.into_iter().map(|p| ("ids".to_owned(), p.to_string())).collect::>()), + _ => local_var_req_builder.query(&[("ids", &local_var_str.into_iter().map(|p| p.to_string()).collect::>().join(",").to_string())]), + }; } if let Some(ref local_var_str) = scan_type { local_var_req_builder = local_var_req_builder.query(&[("scan-type", &local_var_str.to_string())]); @@ -308,7 +311,10 @@ pub async fn get_cspmcgp_account(configuration: &configuration::Configuration, s local_var_req_builder = local_var_req_builder.query(&[("scan-type", &local_var_str.to_string())]); } if let Some(ref local_var_str) = ids { - local_var_req_builder = local_var_req_builder.query(&[("ids", &local_var_str.into_iter().map(|p| p.to_string()).collect::>().join(",").to_string())]); + local_var_req_builder = match "multi" { + "multi" => local_var_req_builder.query(&local_var_str.into_iter().map(|p| ("ids".to_owned(), p.to_string())).collect::>()), + _ => local_var_req_builder.query(&[("ids", &local_var_str.into_iter().map(|p| p.to_string()).collect::>().join(",").to_string())]), + }; } if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); diff --git a/src/apis/device_control_policies_api.rs b/src/apis/device_control_policies_api.rs index 6fb9c4c7..cf07bb1c 100644 --- a/src/apis/device_control_policies_api.rs +++ b/src/apis/device_control_policies_api.rs @@ -180,7 +180,10 @@ pub async fn delete_device_control_policies(configuration: &configuration::Confi let local_var_uri_str = format!("{}/policy/entities/device-control/v1", local_var_configuration.base_path); let mut local_var_req_builder = local_var_client.request(reqwest::Method::DELETE, local_var_uri_str.as_str()); - local_var_req_builder = local_var_req_builder.query(&[("ids", &ids.into_iter().map(|p| p.to_string()).collect::>().join(",").to_string())]); + local_var_req_builder = match "multi" { + "multi" => local_var_req_builder.query(&ids.into_iter().map(|p| ("ids".to_owned(), p)).collect::>()), + _ => local_var_req_builder.query(&[("ids", &ids.into_iter().map(|p| p.to_string()).collect::>().join(",").to_string())]), + }; if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); } @@ -215,7 +218,10 @@ pub async fn get_device_control_policies(configuration: &configuration::Configur let local_var_uri_str = format!("{}/policy/entities/device-control/v1", local_var_configuration.base_path); let mut local_var_req_builder = local_var_client.request(reqwest::Method::GET, local_var_uri_str.as_str()); - local_var_req_builder = local_var_req_builder.query(&[("ids", &ids.into_iter().map(|p| p.to_string()).collect::>().join(",").to_string())]); + local_var_req_builder = match "multi" { + "multi" => local_var_req_builder.query(&ids.into_iter().map(|p| ("ids".to_owned(), p)).collect::>()), + _ => local_var_req_builder.query(&[("ids", &ids.into_iter().map(|p| p.to_string()).collect::>().join(",").to_string())]), + }; if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); } diff --git a/src/apis/discover_api.rs b/src/apis/discover_api.rs index 396efa2d..4cf3c2ea 100644 --- a/src/apis/discover_api.rs +++ b/src/apis/discover_api.rs @@ -45,7 +45,10 @@ pub async fn get_hosts(configuration: &configuration::Configuration, ids: Vec>().join(",").to_string())]); + local_var_req_builder = match "multi" { + "multi" => local_var_req_builder.query(&ids.into_iter().map(|p| ("ids".to_owned(), p)).collect::>()), + _ => local_var_req_builder.query(&[("ids", &ids.into_iter().map(|p| p.to_string()).collect::>().join(",").to_string())]), + }; if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); } diff --git a/src/apis/falconx_sandbox_api.rs b/src/apis/falconx_sandbox_api.rs index aafeb974..be45031f 100644 --- a/src/apis/falconx_sandbox_api.rs +++ b/src/apis/falconx_sandbox_api.rs @@ -278,7 +278,10 @@ pub async fn get_reports(configuration: &configuration::Configuration, ids: Vec< let local_var_uri_str = format!("{}/falconx/entities/reports/v1", local_var_configuration.base_path); let mut local_var_req_builder = local_var_client.request(reqwest::Method::GET, local_var_uri_str.as_str()); - local_var_req_builder = local_var_req_builder.query(&[("ids", &ids.into_iter().map(|p| p.to_string()).collect::>().join(",").to_string())]); + local_var_req_builder = match "csv" { + "multi" => local_var_req_builder.query(&ids.into_iter().map(|p| ("ids".to_owned(), p)).collect::>()), + _ => local_var_req_builder.query(&[("ids", &ids.into_iter().map(|p| p.to_string()).collect::>().join(",").to_string())]), + }; if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); } @@ -351,7 +354,10 @@ pub async fn get_submissions(configuration: &configuration::Configuration, ids: let local_var_uri_str = format!("{}/falconx/entities/submissions/v1", local_var_configuration.base_path); let mut local_var_req_builder = local_var_client.request(reqwest::Method::GET, local_var_uri_str.as_str()); - local_var_req_builder = local_var_req_builder.query(&[("ids", &ids.into_iter().map(|p| p.to_string()).collect::>().join(",").to_string())]); + local_var_req_builder = match "csv" { + "multi" => local_var_req_builder.query(&ids.into_iter().map(|p| ("ids".to_owned(), p)).collect::>()), + _ => local_var_req_builder.query(&[("ids", &ids.into_iter().map(|p| p.to_string()).collect::>().join(",").to_string())]), + }; if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); } @@ -386,7 +392,10 @@ pub async fn get_summary_reports(configuration: &configuration::Configuration, i let local_var_uri_str = format!("{}/falconx/entities/report-summaries/v1", local_var_configuration.base_path); let mut local_var_req_builder = local_var_client.request(reqwest::Method::GET, local_var_uri_str.as_str()); - local_var_req_builder = local_var_req_builder.query(&[("ids", &ids.into_iter().map(|p| p.to_string()).collect::>().join(",").to_string())]); + local_var_req_builder = match "csv" { + "multi" => local_var_req_builder.query(&ids.into_iter().map(|p| ("ids".to_owned(), p)).collect::>()), + _ => local_var_req_builder.query(&[("ids", &ids.into_iter().map(|p| p.to_string()).collect::>().join(",").to_string())]), + }; if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); } diff --git a/src/apis/filevantage_api.rs b/src/apis/filevantage_api.rs index 12099b3f..1533d7a9 100644 --- a/src/apis/filevantage_api.rs +++ b/src/apis/filevantage_api.rs @@ -46,7 +46,10 @@ pub async fn get_changes(configuration: &configuration::Configuration, ids: Vec< let local_var_uri_str = format!("{}/filevantage/entities/changes/v2", local_var_configuration.base_path); let mut local_var_req_builder = local_var_client.request(reqwest::Method::GET, local_var_uri_str.as_str()); - local_var_req_builder = local_var_req_builder.query(&[("ids", &ids.into_iter().map(|p| p.to_string()).collect::>().join(",").to_string())]); + local_var_req_builder = match "multi" { + "multi" => local_var_req_builder.query(&ids.into_iter().map(|p| ("ids".to_owned(), p)).collect::>()), + _ => local_var_req_builder.query(&[("ids", &ids.into_iter().map(|p| p.to_string()).collect::>().join(",").to_string())]), + }; if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); } diff --git a/src/apis/firewall_management_api.rs b/src/apis/firewall_management_api.rs index 177071b9..d28a4b84 100644 --- a/src/apis/firewall_management_api.rs +++ b/src/apis/firewall_management_api.rs @@ -421,7 +421,10 @@ pub async fn delete_rule_groups(configuration: &configuration::Configuration, id let local_var_uri_str = format!("{}/fwmgr/entities/rule-groups/v1", local_var_configuration.base_path); let mut local_var_req_builder = local_var_client.request(reqwest::Method::DELETE, local_var_uri_str.as_str()); - local_var_req_builder = local_var_req_builder.query(&[("ids", &ids.into_iter().map(|p| p.to_string()).collect::>().join(",").to_string())]); + local_var_req_builder = match "multi" { + "multi" => local_var_req_builder.query(&ids.into_iter().map(|p| ("ids".to_owned(), p)).collect::>()), + _ => local_var_req_builder.query(&[("ids", &ids.into_iter().map(|p| p.to_string()).collect::>().join(",").to_string())]), + }; if let Some(ref local_var_str) = comment { local_var_req_builder = local_var_req_builder.query(&[("comment", &local_var_str.to_string())]); } @@ -459,7 +462,10 @@ pub async fn get_events(configuration: &configuration::Configuration, ids: Vec>().join(",").to_string())]); + local_var_req_builder = match "multi" { + "multi" => local_var_req_builder.query(&ids.into_iter().map(|p| ("ids".to_owned(), p)).collect::>()), + _ => local_var_req_builder.query(&[("ids", &ids.into_iter().map(|p| p.to_string()).collect::>().join(",").to_string())]), + }; if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); } @@ -494,7 +500,10 @@ pub async fn get_firewall_fields(configuration: &configuration::Configuration, i let local_var_uri_str = format!("{}/fwmgr/entities/firewall-fields/v1", local_var_configuration.base_path); let mut local_var_req_builder = local_var_client.request(reqwest::Method::GET, local_var_uri_str.as_str()); - local_var_req_builder = local_var_req_builder.query(&[("ids", &ids.into_iter().map(|p| p.to_string()).collect::>().join(",").to_string())]); + local_var_req_builder = match "multi" { + "multi" => local_var_req_builder.query(&ids.into_iter().map(|p| ("ids".to_owned(), p)).collect::>()), + _ => local_var_req_builder.query(&[("ids", &ids.into_iter().map(|p| p.to_string()).collect::>().join(",").to_string())]), + }; if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); } @@ -529,7 +538,10 @@ pub async fn get_platforms(configuration: &configuration::Configuration, ids: Ve let local_var_uri_str = format!("{}/fwmgr/entities/platforms/v1", local_var_configuration.base_path); let mut local_var_req_builder = local_var_client.request(reqwest::Method::GET, local_var_uri_str.as_str()); - local_var_req_builder = local_var_req_builder.query(&[("ids", &ids.into_iter().map(|p| p.to_string()).collect::>().join(",").to_string())]); + local_var_req_builder = match "multi" { + "multi" => local_var_req_builder.query(&ids.into_iter().map(|p| ("ids".to_owned(), p)).collect::>()), + _ => local_var_req_builder.query(&[("ids", &ids.into_iter().map(|p| p.to_string()).collect::>().join(",").to_string())]), + }; if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); } @@ -564,7 +576,10 @@ pub async fn get_policy_containers(configuration: &configuration::Configuration, let local_var_uri_str = format!("{}/fwmgr/entities/policies/v1", local_var_configuration.base_path); let mut local_var_req_builder = local_var_client.request(reqwest::Method::GET, local_var_uri_str.as_str()); - local_var_req_builder = local_var_req_builder.query(&[("ids", &ids.into_iter().map(|p| p.to_string()).collect::>().join(",").to_string())]); + local_var_req_builder = match "multi" { + "multi" => local_var_req_builder.query(&ids.into_iter().map(|p| ("ids".to_owned(), p)).collect::>()), + _ => local_var_req_builder.query(&[("ids", &ids.into_iter().map(|p| p.to_string()).collect::>().join(",").to_string())]), + }; if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); } @@ -599,7 +614,10 @@ pub async fn get_rule_groups(configuration: &configuration::Configuration, ids: let local_var_uri_str = format!("{}/fwmgr/entities/rule-groups/v1", local_var_configuration.base_path); let mut local_var_req_builder = local_var_client.request(reqwest::Method::GET, local_var_uri_str.as_str()); - local_var_req_builder = local_var_req_builder.query(&[("ids", &ids.into_iter().map(|p| p.to_string()).collect::>().join(",").to_string())]); + local_var_req_builder = match "multi" { + "multi" => local_var_req_builder.query(&ids.into_iter().map(|p| ("ids".to_owned(), p)).collect::>()), + _ => local_var_req_builder.query(&[("ids", &ids.into_iter().map(|p| p.to_string()).collect::>().join(",").to_string())]), + }; if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); } @@ -634,7 +652,10 @@ pub async fn get_rules(configuration: &configuration::Configuration, ids: Vec>().join(",").to_string())]); + local_var_req_builder = match "multi" { + "multi" => local_var_req_builder.query(&ids.into_iter().map(|p| ("ids".to_owned(), p)).collect::>()), + _ => local_var_req_builder.query(&[("ids", &ids.into_iter().map(|p| p.to_string()).collect::>().join(",").to_string())]), + }; if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); } diff --git a/src/apis/firewall_policies_api.rs b/src/apis/firewall_policies_api.rs index a7f47bf5..0e24bd36 100644 --- a/src/apis/firewall_policies_api.rs +++ b/src/apis/firewall_policies_api.rs @@ -183,7 +183,10 @@ pub async fn delete_firewall_policies(configuration: &configuration::Configurati let local_var_uri_str = format!("{}/policy/entities/firewall/v1", local_var_configuration.base_path); let mut local_var_req_builder = local_var_client.request(reqwest::Method::DELETE, local_var_uri_str.as_str()); - local_var_req_builder = local_var_req_builder.query(&[("ids", &ids.into_iter().map(|p| p.to_string()).collect::>().join(",").to_string())]); + local_var_req_builder = match "multi" { + "multi" => local_var_req_builder.query(&ids.into_iter().map(|p| ("ids".to_owned(), p)).collect::>()), + _ => local_var_req_builder.query(&[("ids", &ids.into_iter().map(|p| p.to_string()).collect::>().join(",").to_string())]), + }; if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); } @@ -218,7 +221,10 @@ pub async fn get_firewall_policies(configuration: &configuration::Configuration, let local_var_uri_str = format!("{}/policy/entities/firewall/v1", local_var_configuration.base_path); let mut local_var_req_builder = local_var_client.request(reqwest::Method::GET, local_var_uri_str.as_str()); - local_var_req_builder = local_var_req_builder.query(&[("ids", &ids.into_iter().map(|p| p.to_string()).collect::>().join(",").to_string())]); + local_var_req_builder = match "multi" { + "multi" => local_var_req_builder.query(&ids.into_iter().map(|p| ("ids".to_owned(), p)).collect::>()), + _ => local_var_req_builder.query(&[("ids", &ids.into_iter().map(|p| p.to_string()).collect::>().join(",").to_string())]), + }; if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); } diff --git a/src/apis/host_group_api.rs b/src/apis/host_group_api.rs index 9e760c78..afdf9bf2 100644 --- a/src/apis/host_group_api.rs +++ b/src/apis/host_group_api.rs @@ -168,7 +168,10 @@ pub async fn delete_host_groups(configuration: &configuration::Configuration, id let local_var_uri_str = format!("{}/devices/entities/host-groups/v1", local_var_configuration.base_path); let mut local_var_req_builder = local_var_client.request(reqwest::Method::DELETE, local_var_uri_str.as_str()); - local_var_req_builder = local_var_req_builder.query(&[("ids", &ids.into_iter().map(|p| p.to_string()).collect::>().join(",").to_string())]); + local_var_req_builder = match "multi" { + "multi" => local_var_req_builder.query(&ids.into_iter().map(|p| ("ids".to_owned(), p)).collect::>()), + _ => local_var_req_builder.query(&[("ids", &ids.into_iter().map(|p| p.to_string()).collect::>().join(",").to_string())]), + }; if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); } @@ -203,7 +206,10 @@ pub async fn get_host_groups(configuration: &configuration::Configuration, ids: let local_var_uri_str = format!("{}/devices/entities/host-groups/v1", local_var_configuration.base_path); let mut local_var_req_builder = local_var_client.request(reqwest::Method::GET, local_var_uri_str.as_str()); - local_var_req_builder = local_var_req_builder.query(&[("ids", &ids.into_iter().map(|p| p.to_string()).collect::>().join(",").to_string())]); + local_var_req_builder = match "multi" { + "multi" => local_var_req_builder.query(&ids.into_iter().map(|p| ("ids".to_owned(), p)).collect::>()), + _ => local_var_req_builder.query(&[("ids", &ids.into_iter().map(|p| p.to_string()).collect::>().join(",").to_string())]), + }; if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); } diff --git a/src/apis/hosts_api.rs b/src/apis/hosts_api.rs index aa9f2269..74aedd6a 100644 --- a/src/apis/hosts_api.rs +++ b/src/apis/hosts_api.rs @@ -114,7 +114,10 @@ pub async fn entities_perform_action(configuration: &configuration::Configuratio let local_var_uri_str = format!("{}/devices/entities/group-actions/v1", local_var_configuration.base_path); let mut local_var_req_builder = local_var_client.request(reqwest::Method::POST, local_var_uri_str.as_str()); - local_var_req_builder = local_var_req_builder.query(&[("ids", &ids.into_iter().map(|p| p.to_string()).collect::>().join(",").to_string())]); + local_var_req_builder = match "multi" { + "multi" => local_var_req_builder.query(&ids.into_iter().map(|p| ("ids".to_owned(), p)).collect::>()), + _ => local_var_req_builder.query(&[("ids", &ids.into_iter().map(|p| p.to_string()).collect::>().join(",").to_string())]), + }; local_var_req_builder = local_var_req_builder.query(&[("action_name", &action_name.to_string())]); if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); @@ -151,7 +154,10 @@ pub async fn get_device_details(configuration: &configuration::Configuration, id let local_var_uri_str = format!("{}/devices/entities/devices/v1", local_var_configuration.base_path); let mut local_var_req_builder = local_var_client.request(reqwest::Method::GET, local_var_uri_str.as_str()); - local_var_req_builder = local_var_req_builder.query(&[("ids", &ids.into_iter().map(|p| p.to_string()).collect::>().join(",").to_string())]); + local_var_req_builder = match "multi" { + "multi" => local_var_req_builder.query(&ids.into_iter().map(|p| ("ids".to_owned(), p)).collect::>()), + _ => local_var_req_builder.query(&[("ids", &ids.into_iter().map(|p| p.to_string()).collect::>().join(",").to_string())]), + }; if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); } diff --git a/src/apis/installation_tokens_api.rs b/src/apis/installation_tokens_api.rs index 5251e6d8..3b7f1eca 100644 --- a/src/apis/installation_tokens_api.rs +++ b/src/apis/installation_tokens_api.rs @@ -165,7 +165,10 @@ pub async fn audit_events_read(configuration: &configuration::Configuration, ids let mut local_var_req_builder = local_var_client.request(reqwest::Method::GET, local_var_uri_str.as_str()); if let Some(ref local_var_str) = ids { - local_var_req_builder = local_var_req_builder.query(&[("ids", &local_var_str.into_iter().map(|p| p.to_string()).collect::>().join(",").to_string())]); + local_var_req_builder = match "multi" { + "multi" => local_var_req_builder.query(&local_var_str.into_iter().map(|p| ("ids".to_owned(), p.to_string())).collect::>()), + _ => local_var_req_builder.query(&[("ids", &local_var_str.into_iter().map(|p| p.to_string()).collect::>().join(",").to_string())]), + }; } if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); @@ -270,7 +273,10 @@ pub async fn tokens_delete(configuration: &configuration::Configuration, ids: Ve let local_var_uri_str = format!("{}/installation-tokens/entities/tokens/v1", local_var_configuration.base_path); let mut local_var_req_builder = local_var_client.request(reqwest::Method::DELETE, local_var_uri_str.as_str()); - local_var_req_builder = local_var_req_builder.query(&[("ids", &ids.into_iter().map(|p| p.to_string()).collect::>().join(",").to_string())]); + local_var_req_builder = match "csv" { + "multi" => local_var_req_builder.query(&ids.into_iter().map(|p| ("ids".to_owned(), p)).collect::>()), + _ => local_var_req_builder.query(&[("ids", &ids.into_iter().map(|p| p.to_string()).collect::>().join(",").to_string())]), + }; if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); } @@ -352,7 +358,10 @@ pub async fn tokens_read(configuration: &configuration::Configuration, ids: Opti let mut local_var_req_builder = local_var_client.request(reqwest::Method::GET, local_var_uri_str.as_str()); if let Some(ref local_var_str) = ids { - local_var_req_builder = local_var_req_builder.query(&[("ids", &local_var_str.into_iter().map(|p| p.to_string()).collect::>().join(",").to_string())]); + local_var_req_builder = match "multi" { + "multi" => local_var_req_builder.query(&local_var_str.into_iter().map(|p| ("ids".to_owned(), p.to_string())).collect::>()), + _ => local_var_req_builder.query(&[("ids", &local_var_str.into_iter().map(|p| p.to_string()).collect::>().join(",").to_string())]), + }; } if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); @@ -388,7 +397,10 @@ pub async fn tokens_update(configuration: &configuration::Configuration, ids: Ve let local_var_uri_str = format!("{}/installation-tokens/entities/tokens/v1", local_var_configuration.base_path); let mut local_var_req_builder = local_var_client.request(reqwest::Method::PATCH, local_var_uri_str.as_str()); - local_var_req_builder = local_var_req_builder.query(&[("ids", &ids.into_iter().map(|p| p.to_string()).collect::>().join(",").to_string())]); + local_var_req_builder = match "csv" { + "multi" => local_var_req_builder.query(&ids.into_iter().map(|p| ("ids".to_owned(), p)).collect::>()), + _ => local_var_req_builder.query(&[("ids", &ids.into_iter().map(|p| p.to_string()).collect::>().join(",").to_string())]), + }; if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); } diff --git a/src/apis/intel_api.rs b/src/apis/intel_api.rs index bbe30b41..667e4d2e 100644 --- a/src/apis/intel_api.rs +++ b/src/apis/intel_api.rs @@ -187,9 +187,15 @@ pub async fn get_intel_actor_entities(configuration: &configuration::Configurati let local_var_uri_str = format!("{}/intel/entities/actors/v1", local_var_configuration.base_path); let mut local_var_req_builder = local_var_client.request(reqwest::Method::GET, local_var_uri_str.as_str()); - local_var_req_builder = local_var_req_builder.query(&[("ids", &ids.into_iter().map(|p| p.to_string()).collect::>().join(",").to_string())]); + local_var_req_builder = match "multi" { + "multi" => local_var_req_builder.query(&ids.into_iter().map(|p| ("ids".to_owned(), p)).collect::>()), + _ => local_var_req_builder.query(&[("ids", &ids.into_iter().map(|p| p.to_string()).collect::>().join(",").to_string())]), + }; if let Some(ref local_var_str) = fields { - local_var_req_builder = local_var_req_builder.query(&[("fields", &local_var_str.into_iter().map(|p| p.to_string()).collect::>().join(",").to_string())]); + local_var_req_builder = match "multi" { + "multi" => local_var_req_builder.query(&local_var_str.into_iter().map(|p| ("fields".to_owned(), p.to_string())).collect::>()), + _ => local_var_req_builder.query(&[("fields", &local_var_str.into_iter().map(|p| p.to_string()).collect::>().join(",").to_string())]), + }; } if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); @@ -260,9 +266,15 @@ pub async fn get_intel_report_entities(configuration: &configuration::Configurat let local_var_uri_str = format!("{}/intel/entities/reports/v1", local_var_configuration.base_path); let mut local_var_req_builder = local_var_client.request(reqwest::Method::GET, local_var_uri_str.as_str()); - local_var_req_builder = local_var_req_builder.query(&[("ids", &ids.into_iter().map(|p| p.to_string()).collect::>().join(",").to_string())]); + local_var_req_builder = match "multi" { + "multi" => local_var_req_builder.query(&ids.into_iter().map(|p| ("ids".to_owned(), p)).collect::>()), + _ => local_var_req_builder.query(&[("ids", &ids.into_iter().map(|p| p.to_string()).collect::>().join(",").to_string())]), + }; if let Some(ref local_var_str) = fields { - local_var_req_builder = local_var_req_builder.query(&[("fields", &local_var_str.into_iter().map(|p| p.to_string()).collect::>().join(",").to_string())]); + local_var_req_builder = match "multi" { + "multi" => local_var_req_builder.query(&local_var_str.into_iter().map(|p| ("fields".to_owned(), p.to_string())).collect::>()), + _ => local_var_req_builder.query(&[("fields", &local_var_str.into_iter().map(|p| p.to_string()).collect::>().join(",").to_string())]), + }; } if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); @@ -333,7 +345,10 @@ pub async fn get_intel_rule_entities(configuration: &configuration::Configuratio let local_var_uri_str = format!("{}/intel/entities/rules/v1", local_var_configuration.base_path); let mut local_var_req_builder = local_var_client.request(reqwest::Method::GET, local_var_uri_str.as_str()); - local_var_req_builder = local_var_req_builder.query(&[("ids", &ids.into_iter().map(|p| p.to_string()).collect::>().join(",").to_string())]); + local_var_req_builder = match "multi" { + "multi" => local_var_req_builder.query(&ids.into_iter().map(|p| ("ids".to_owned(), p)).collect::>()), + _ => local_var_req_builder.query(&[("ids", &ids.into_iter().map(|p| p.to_string()).collect::>().join(",").to_string())]), + }; if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); } @@ -469,7 +484,10 @@ pub async fn query_intel_actor_entities(configuration: &configuration::Configura local_var_req_builder = local_var_req_builder.query(&[("q", &local_var_str.to_string())]); } if let Some(ref local_var_str) = fields { - local_var_req_builder = local_var_req_builder.query(&[("fields", &local_var_str.into_iter().map(|p| p.to_string()).collect::>().join(",").to_string())]); + local_var_req_builder = match "multi" { + "multi" => local_var_req_builder.query(&local_var_str.into_iter().map(|p| ("fields".to_owned(), p.to_string())).collect::>()), + _ => local_var_req_builder.query(&[("fields", &local_var_str.into_iter().map(|p| p.to_string()).collect::>().join(",").to_string())]), + }; } if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); @@ -698,7 +716,10 @@ pub async fn query_intel_report_entities(configuration: &configuration::Configur local_var_req_builder = local_var_req_builder.query(&[("q", &local_var_str.to_string())]); } if let Some(ref local_var_str) = fields { - local_var_req_builder = local_var_req_builder.query(&[("fields", &local_var_str.into_iter().map(|p| p.to_string()).collect::>().join(",").to_string())]); + local_var_req_builder = match "multi" { + "multi" => local_var_req_builder.query(&local_var_str.into_iter().map(|p| ("fields".to_owned(), p.to_string())).collect::>()), + _ => local_var_req_builder.query(&[("fields", &local_var_str.into_iter().map(|p| p.to_string()).collect::>().join(",").to_string())]), + }; } if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); @@ -805,14 +826,23 @@ pub async fn query_intel_rule_ids( local_var_req_builder = local_var_req_builder.query(&[("sort", &local_var_str.to_string())]); } if let Some(ref local_var_str) = name { - local_var_req_builder = local_var_req_builder.query(&[("name", &local_var_str.into_iter().map(|p| p.to_string()).collect::>().join(",").to_string())]); + local_var_req_builder = match "csv" { + "multi" => local_var_req_builder.query(&local_var_str.into_iter().map(|p| ("name".to_owned(), p.to_string())).collect::>()), + _ => local_var_req_builder.query(&[("name", &local_var_str.into_iter().map(|p| p.to_string()).collect::>().join(",").to_string())]), + }; } local_var_req_builder = local_var_req_builder.query(&[("type", &_type.to_string())]); if let Some(ref local_var_str) = description { - local_var_req_builder = local_var_req_builder.query(&[("description", &local_var_str.into_iter().map(|p| p.to_string()).collect::>().join(",").to_string())]); + local_var_req_builder = match "csv" { + "multi" => local_var_req_builder.query(&local_var_str.into_iter().map(|p| ("description".to_owned(), p.to_string())).collect::>()), + _ => local_var_req_builder.query(&[("description", &local_var_str.into_iter().map(|p| p.to_string()).collect::>().join(",").to_string())]), + }; } if let Some(ref local_var_str) = tags { - local_var_req_builder = local_var_req_builder.query(&[("tags", &local_var_str.into_iter().map(|p| p.to_string()).collect::>().join(",").to_string())]); + local_var_req_builder = match "csv" { + "multi" => local_var_req_builder.query(&local_var_str.into_iter().map(|p| ("tags".to_owned(), p.to_string())).collect::>()), + _ => local_var_req_builder.query(&[("tags", &local_var_str.into_iter().map(|p| p.to_string()).collect::>().join(",").to_string())]), + }; } if let Some(ref local_var_str) = min_created_date { local_var_req_builder = local_var_req_builder.query(&[("min_created_date", &local_var_str.to_string())]); diff --git a/src/apis/ioa_exclusions_api.rs b/src/apis/ioa_exclusions_api.rs index 5b120dcf..0bdf348d 100644 --- a/src/apis/ioa_exclusions_api.rs +++ b/src/apis/ioa_exclusions_api.rs @@ -116,7 +116,10 @@ pub async fn delete_ioa_exclusions_v1(configuration: &configuration::Configurati let local_var_uri_str = format!("{}/policy/entities/ioa-exclusions/v1", local_var_configuration.base_path); let mut local_var_req_builder = local_var_client.request(reqwest::Method::DELETE, local_var_uri_str.as_str()); - local_var_req_builder = local_var_req_builder.query(&[("ids", &ids.into_iter().map(|p| p.to_string()).collect::>().join(",").to_string())]); + local_var_req_builder = match "csv" { + "multi" => local_var_req_builder.query(&ids.into_iter().map(|p| ("ids".to_owned(), p)).collect::>()), + _ => local_var_req_builder.query(&[("ids", &ids.into_iter().map(|p| p.to_string()).collect::>().join(",").to_string())]), + }; if let Some(ref local_var_str) = comment { local_var_req_builder = local_var_req_builder.query(&[("comment", &local_var_str.to_string())]); } @@ -154,7 +157,10 @@ pub async fn get_ioa_exclusions_v1(configuration: &configuration::Configuration, let local_var_uri_str = format!("{}/policy/entities/ioa-exclusions/v1", local_var_configuration.base_path); let mut local_var_req_builder = local_var_client.request(reqwest::Method::GET, local_var_uri_str.as_str()); - local_var_req_builder = local_var_req_builder.query(&[("ids", &ids.into_iter().map(|p| p.to_string()).collect::>().join(",").to_string())]); + local_var_req_builder = match "csv" { + "multi" => local_var_req_builder.query(&ids.into_iter().map(|p| ("ids".to_owned(), p)).collect::>()), + _ => local_var_req_builder.query(&[("ids", &ids.into_iter().map(|p| p.to_string()).collect::>().join(",").to_string())]), + }; if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); } diff --git a/src/apis/ioc_api.rs b/src/apis/ioc_api.rs index 22f33bc9..1964f0e8 100644 --- a/src/apis/ioc_api.rs +++ b/src/apis/ioc_api.rs @@ -186,7 +186,10 @@ pub async fn indicator_delete_v1(configuration: &configuration::Configuration, f local_var_req_builder = local_var_req_builder.query(&[("filter", &local_var_str.to_string())]); } if let Some(ref local_var_str) = ids { - local_var_req_builder = local_var_req_builder.query(&[("ids", &local_var_str.into_iter().map(|p| p.to_string()).collect::>().join(",").to_string())]); + local_var_req_builder = match "csv" { + "multi" => local_var_req_builder.query(&local_var_str.into_iter().map(|p| ("ids".to_owned(), p.to_string())).collect::>()), + _ => local_var_req_builder.query(&[("ids", &local_var_str.into_iter().map(|p| p.to_string()).collect::>().join(",").to_string())]), + }; } if let Some(ref local_var_str) = comment { local_var_req_builder = local_var_req_builder.query(&[("comment", &local_var_str.to_string())]); @@ -225,7 +228,10 @@ pub async fn indicator_get_v1(configuration: &configuration::Configuration, ids: let local_var_uri_str = format!("{}/iocs/entities/indicators/v1", local_var_configuration.base_path); let mut local_var_req_builder = local_var_client.request(reqwest::Method::GET, local_var_uri_str.as_str()); - local_var_req_builder = local_var_req_builder.query(&[("ids", &ids.into_iter().map(|p| p.to_string()).collect::>().join(",").to_string())]); + local_var_req_builder = match "csv" { + "multi" => local_var_req_builder.query(&ids.into_iter().map(|p| ("ids".to_owned(), p)).collect::>()), + _ => local_var_req_builder.query(&[("ids", &ids.into_iter().map(|p| p.to_string()).collect::>().join(",").to_string())]), + }; if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); } diff --git a/src/apis/iocs_api.rs b/src/apis/iocs_api.rs index 971e0f1e..59261ff9 100644 --- a/src/apis/iocs_api.rs +++ b/src/apis/iocs_api.rs @@ -139,7 +139,10 @@ pub async fn entities_processes(configuration: &configuration::Configuration, id let local_var_uri_str = format!("{}/processes/entities/processes/v1", local_var_configuration.base_path); let mut local_var_req_builder = local_var_client.request(reqwest::Method::GET, local_var_uri_str.as_str()); - local_var_req_builder = local_var_req_builder.query(&[("ids", &ids.into_iter().map(|p| p.to_string()).collect::>().join(",").to_string())]); + local_var_req_builder = match "multi" { + "multi" => local_var_req_builder.query(&ids.into_iter().map(|p| ("ids".to_owned(), p)).collect::>()), + _ => local_var_req_builder.query(&[("ids", &ids.into_iter().map(|p| p.to_string()).collect::>().join(",").to_string())]), + }; if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); } diff --git a/src/apis/kubernetes_protection_api.rs b/src/apis/kubernetes_protection_api.rs index 1f5a2fdc..61dcd7e4 100644 --- a/src/apis/kubernetes_protection_api.rs +++ b/src/apis/kubernetes_protection_api.rs @@ -162,7 +162,10 @@ pub async fn delete_aws_accounts_mixin0(configuration: &configuration::Configura let local_var_uri_str = format!("{}/kubernetes-protection/entities/accounts/aws/v1", local_var_configuration.base_path); let mut local_var_req_builder = local_var_client.request(reqwest::Method::DELETE, local_var_uri_str.as_str()); - local_var_req_builder = local_var_req_builder.query(&[("ids", &ids.into_iter().map(|p| p.to_string()).collect::>().join(",").to_string())]); + local_var_req_builder = match "csv" { + "multi" => local_var_req_builder.query(&ids.into_iter().map(|p| ("ids".to_owned(), p)).collect::>()), + _ => local_var_req_builder.query(&[("ids", &ids.into_iter().map(|p| p.to_string()).collect::>().join(",").to_string())]), + }; if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); } @@ -198,7 +201,10 @@ pub async fn get_aws_accounts_mixin0(configuration: &configuration::Configuratio let mut local_var_req_builder = local_var_client.request(reqwest::Method::GET, local_var_uri_str.as_str()); if let Some(ref local_var_str) = ids { - local_var_req_builder = local_var_req_builder.query(&[("ids", &local_var_str.into_iter().map(|p| p.to_string()).collect::>().join(",").to_string())]); + local_var_req_builder = match "csv" { + "multi" => local_var_req_builder.query(&local_var_str.into_iter().map(|p| ("ids".to_owned(), p.to_string())).collect::>()), + _ => local_var_req_builder.query(&[("ids", &local_var_str.into_iter().map(|p| p.to_string()).collect::>().join(",").to_string())]), + }; } if let Some(ref local_var_str) = status { local_var_req_builder = local_var_req_builder.query(&[("status", &local_var_str.to_string())]); @@ -252,13 +258,22 @@ pub async fn get_clusters( let mut local_var_req_builder = local_var_client.request(reqwest::Method::GET, local_var_uri_str.as_str()); if let Some(ref local_var_str) = cluster_names { - local_var_req_builder = local_var_req_builder.query(&[("cluster_names", &local_var_str.into_iter().map(|p| p.to_string()).collect::>().join(",").to_string())]); + local_var_req_builder = match "csv" { + "multi" => local_var_req_builder.query(&local_var_str.into_iter().map(|p| ("cluster_names".to_owned(), p.to_string())).collect::>()), + _ => local_var_req_builder.query(&[("cluster_names", &local_var_str.into_iter().map(|p| p.to_string()).collect::>().join(",").to_string())]), + }; } if let Some(ref local_var_str) = account_ids { - local_var_req_builder = local_var_req_builder.query(&[("account_ids", &local_var_str.into_iter().map(|p| p.to_string()).collect::>().join(",").to_string())]); + local_var_req_builder = match "csv" { + "multi" => local_var_req_builder.query(&local_var_str.into_iter().map(|p| ("account_ids".to_owned(), p.to_string())).collect::>()), + _ => local_var_req_builder.query(&[("account_ids", &local_var_str.into_iter().map(|p| p.to_string()).collect::>().join(",").to_string())]), + }; } if let Some(ref local_var_str) = locations { - local_var_req_builder = local_var_req_builder.query(&[("locations", &local_var_str.into_iter().map(|p| p.to_string()).collect::>().join(",").to_string())]); + local_var_req_builder = match "csv" { + "multi" => local_var_req_builder.query(&local_var_str.into_iter().map(|p| ("locations".to_owned(), p.to_string())).collect::>()), + _ => local_var_req_builder.query(&[("locations", &local_var_str.into_iter().map(|p| p.to_string()).collect::>().join(",").to_string())]), + }; } if let Some(ref local_var_str) = cluster_service { local_var_req_builder = local_var_req_builder.query(&[("cluster_service", &local_var_str.to_string())]); @@ -339,7 +354,10 @@ pub async fn get_locations(configuration: &configuration::Configuration, clouds: let mut local_var_req_builder = local_var_client.request(reqwest::Method::GET, local_var_uri_str.as_str()); if let Some(ref local_var_str) = clouds { - local_var_req_builder = local_var_req_builder.query(&[("clouds", &local_var_str.into_iter().map(|p| p.to_string()).collect::>().join(",").to_string())]); + local_var_req_builder = match "csv" { + "multi" => local_var_req_builder.query(&local_var_str.into_iter().map(|p| ("clouds".to_owned(), p.to_string())).collect::>()), + _ => local_var_req_builder.query(&[("clouds", &local_var_str.into_iter().map(|p| p.to_string()).collect::>().join(",").to_string())]), + }; } if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); @@ -444,7 +462,10 @@ pub async fn update_aws_account(configuration: &configuration::Configuration, id let local_var_uri_str = format!("{}/kubernetes-protection/entities/accounts/aws/v1", local_var_configuration.base_path); let mut local_var_req_builder = local_var_client.request(reqwest::Method::PATCH, local_var_uri_str.as_str()); - local_var_req_builder = local_var_req_builder.query(&[("ids", &ids.into_iter().map(|p| p.to_string()).collect::>().join(",").to_string())]); + local_var_req_builder = match "csv" { + "multi" => local_var_req_builder.query(&ids.into_iter().map(|p| ("ids".to_owned(), p)).collect::>()), + _ => local_var_req_builder.query(&[("ids", &ids.into_iter().map(|p| p.to_string()).collect::>().join(",").to_string())]), + }; if let Some(ref local_var_str) = region { local_var_req_builder = local_var_req_builder.query(&[("region", &local_var_str.to_string())]); } diff --git a/src/apis/malquery_api.rs b/src/apis/malquery_api.rs index a549afd2..3d6891e0 100644 --- a/src/apis/malquery_api.rs +++ b/src/apis/malquery_api.rs @@ -140,7 +140,10 @@ pub async fn get_mal_query_download_v1(configuration: &configuration::Configurat let local_var_uri_str = format!("{}/malquery/entities/download-files/v1", local_var_configuration.base_path); let mut local_var_req_builder = local_var_client.request(reqwest::Method::GET, local_var_uri_str.as_str()); - local_var_req_builder = local_var_req_builder.query(&[("ids", &ids.into_iter().map(|p| p.to_string()).collect::>().join(",").to_string())]); + local_var_req_builder = match "csv" { + "multi" => local_var_req_builder.query(&ids.into_iter().map(|p| ("ids".to_owned(), p)).collect::>()), + _ => local_var_req_builder.query(&[("ids", &ids.into_iter().map(|p| p.to_string()).collect::>().join(",").to_string())]), + }; if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); } @@ -210,7 +213,10 @@ pub async fn get_mal_query_metadata_v1(configuration: &configuration::Configurat let local_var_uri_str = format!("{}/malquery/entities/metadata/v1", local_var_configuration.base_path); let mut local_var_req_builder = local_var_client.request(reqwest::Method::GET, local_var_uri_str.as_str()); - local_var_req_builder = local_var_req_builder.query(&[("ids", &ids.into_iter().map(|p| p.to_string()).collect::>().join(",").to_string())]); + local_var_req_builder = match "csv" { + "multi" => local_var_req_builder.query(&ids.into_iter().map(|p| ("ids".to_owned(), p)).collect::>()), + _ => local_var_req_builder.query(&[("ids", &ids.into_iter().map(|p| p.to_string()).collect::>().join(",").to_string())]), + }; if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); } @@ -279,7 +285,10 @@ pub async fn get_mal_query_request_v1(configuration: &configuration::Configurati let local_var_uri_str = format!("{}/malquery/entities/requests/v1", local_var_configuration.base_path); let mut local_var_req_builder = local_var_client.request(reqwest::Method::GET, local_var_uri_str.as_str()); - local_var_req_builder = local_var_req_builder.query(&[("ids", &ids.into_iter().map(|p| p.to_string()).collect::>().join(",").to_string())]); + local_var_req_builder = match "csv" { + "multi" => local_var_req_builder.query(&ids.into_iter().map(|p| ("ids".to_owned(), p)).collect::>()), + _ => local_var_req_builder.query(&[("ids", &ids.into_iter().map(|p| p.to_string()).collect::>().join(",").to_string())]), + }; if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); } diff --git a/src/apis/ml_exclusions_api.rs b/src/apis/ml_exclusions_api.rs index 433a4326..5b4d24b6 100644 --- a/src/apis/ml_exclusions_api.rs +++ b/src/apis/ml_exclusions_api.rs @@ -116,7 +116,10 @@ pub async fn delete_ml_exclusions_v1(configuration: &configuration::Configuratio let local_var_uri_str = format!("{}/policy/entities/ml-exclusions/v1", local_var_configuration.base_path); let mut local_var_req_builder = local_var_client.request(reqwest::Method::DELETE, local_var_uri_str.as_str()); - local_var_req_builder = local_var_req_builder.query(&[("ids", &ids.into_iter().map(|p| p.to_string()).collect::>().join(",").to_string())]); + local_var_req_builder = match "csv" { + "multi" => local_var_req_builder.query(&ids.into_iter().map(|p| ("ids".to_owned(), p)).collect::>()), + _ => local_var_req_builder.query(&[("ids", &ids.into_iter().map(|p| p.to_string()).collect::>().join(",").to_string())]), + }; if let Some(ref local_var_str) = comment { local_var_req_builder = local_var_req_builder.query(&[("comment", &local_var_str.to_string())]); } @@ -154,7 +157,10 @@ pub async fn get_ml_exclusions_v1(configuration: &configuration::Configuration, let local_var_uri_str = format!("{}/policy/entities/ml-exclusions/v1", local_var_configuration.base_path); let mut local_var_req_builder = local_var_client.request(reqwest::Method::GET, local_var_uri_str.as_str()); - local_var_req_builder = local_var_req_builder.query(&[("ids", &ids.into_iter().map(|p| p.to_string()).collect::>().join(",").to_string())]); + local_var_req_builder = match "csv" { + "multi" => local_var_req_builder.query(&ids.into_iter().map(|p| ("ids".to_owned(), p)).collect::>()), + _ => local_var_req_builder.query(&[("ids", &ids.into_iter().map(|p| p.to_string()).collect::>().join(",").to_string())]), + }; if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); } diff --git a/src/apis/mssp_api.rs b/src/apis/mssp_api.rs index 437b5c83..41aeee85 100644 --- a/src/apis/mssp_api.rs +++ b/src/apis/mssp_api.rs @@ -491,7 +491,10 @@ pub async fn delete_cid_groups(configuration: &configuration::Configuration, cid let local_var_uri_str = format!("{}/mssp/entities/cid-groups/v1", local_var_configuration.base_path); let mut local_var_req_builder = local_var_client.request(reqwest::Method::DELETE, local_var_uri_str.as_str()); - local_var_req_builder = local_var_req_builder.query(&[("cid_group_ids", &cid_group_ids.into_iter().map(|p| p.to_string()).collect::>().join(",").to_string())]); + local_var_req_builder = match "multi" { + "multi" => local_var_req_builder.query(&cid_group_ids.into_iter().map(|p| ("cid_group_ids".to_owned(), p)).collect::>()), + _ => local_var_req_builder.query(&[("cid_group_ids", &cid_group_ids.into_iter().map(|p| p.to_string()).collect::>().join(",").to_string())]), + }; if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); } @@ -561,7 +564,10 @@ pub async fn delete_user_groups(configuration: &configuration::Configuration, us let local_var_uri_str = format!("{}/mssp/entities/user-groups/v1", local_var_configuration.base_path); let mut local_var_req_builder = local_var_client.request(reqwest::Method::DELETE, local_var_uri_str.as_str()); - local_var_req_builder = local_var_req_builder.query(&[("user_group_ids", &user_group_ids.into_iter().map(|p| p.to_string()).collect::>().join(",").to_string())]); + local_var_req_builder = match "multi" { + "multi" => local_var_req_builder.query(&user_group_ids.into_iter().map(|p| ("user_group_ids".to_owned(), p)).collect::>()), + _ => local_var_req_builder.query(&[("user_group_ids", &user_group_ids.into_iter().map(|p| p.to_string()).collect::>().join(",").to_string())]), + }; if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); } @@ -631,7 +637,10 @@ pub async fn get_children(configuration: &configuration::Configuration, ids: Vec let local_var_uri_str = format!("{}/mssp/entities/children/v1", local_var_configuration.base_path); let mut local_var_req_builder = local_var_client.request(reqwest::Method::GET, local_var_uri_str.as_str()); - local_var_req_builder = local_var_req_builder.query(&[("ids", &ids.into_iter().map(|p| p.to_string()).collect::>().join(",").to_string())]); + local_var_req_builder = match "multi" { + "multi" => local_var_req_builder.query(&ids.into_iter().map(|p| ("ids".to_owned(), p)).collect::>()), + _ => local_var_req_builder.query(&[("ids", &ids.into_iter().map(|p| p.to_string()).collect::>().join(",").to_string())]), + }; if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); } @@ -666,7 +675,10 @@ pub async fn get_cid_group_by_id(configuration: &configuration::Configuration, c let local_var_uri_str = format!("{}/mssp/entities/cid-groups/v1", local_var_configuration.base_path); let mut local_var_req_builder = local_var_client.request(reqwest::Method::GET, local_var_uri_str.as_str()); - local_var_req_builder = local_var_req_builder.query(&[("cid_group_ids", &cid_group_ids.into_iter().map(|p| p.to_string()).collect::>().join(",").to_string())]); + local_var_req_builder = match "multi" { + "multi" => local_var_req_builder.query(&cid_group_ids.into_iter().map(|p| ("cid_group_ids".to_owned(), p)).collect::>()), + _ => local_var_req_builder.query(&[("cid_group_ids", &cid_group_ids.into_iter().map(|p| p.to_string()).collect::>().join(",").to_string())]), + }; if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); } @@ -701,7 +713,10 @@ pub async fn get_cid_group_members_by(configuration: &configuration::Configurati let local_var_uri_str = format!("{}/mssp/entities/cid-group-members/v1", local_var_configuration.base_path); let mut local_var_req_builder = local_var_client.request(reqwest::Method::GET, local_var_uri_str.as_str()); - local_var_req_builder = local_var_req_builder.query(&[("cid_group_ids", &cid_group_ids.into_iter().map(|p| p.to_string()).collect::>().join(",").to_string())]); + local_var_req_builder = match "multi" { + "multi" => local_var_req_builder.query(&cid_group_ids.into_iter().map(|p| ("cid_group_ids".to_owned(), p)).collect::>()), + _ => local_var_req_builder.query(&[("cid_group_ids", &cid_group_ids.into_iter().map(|p| p.to_string()).collect::>().join(",").to_string())]), + }; if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); } @@ -736,7 +751,10 @@ pub async fn get_roles_by_id(configuration: &configuration::Configuration, ids: let local_var_uri_str = format!("{}/mssp/entities/mssp-roles/v1", local_var_configuration.base_path); let mut local_var_req_builder = local_var_client.request(reqwest::Method::GET, local_var_uri_str.as_str()); - local_var_req_builder = local_var_req_builder.query(&[("ids", &ids.into_iter().map(|p| p.to_string()).collect::>().join(",").to_string())]); + local_var_req_builder = match "csv" { + "multi" => local_var_req_builder.query(&ids.into_iter().map(|p| ("ids".to_owned(), p)).collect::>()), + _ => local_var_req_builder.query(&[("ids", &ids.into_iter().map(|p| p.to_string()).collect::>().join(",").to_string())]), + }; if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); } @@ -771,7 +789,10 @@ pub async fn get_user_group_members_by_id(configuration: &configuration::Configu let local_var_uri_str = format!("{}/mssp/entities/user-group-members/v1", local_var_configuration.base_path); let mut local_var_req_builder = local_var_client.request(reqwest::Method::GET, local_var_uri_str.as_str()); - local_var_req_builder = local_var_req_builder.query(&[("user_group_ids", &user_group_ids.into_iter().map(|p| p.to_string()).collect::>().join(",").to_string())]); + local_var_req_builder = match "multi" { + "multi" => local_var_req_builder.query(&user_group_ids.into_iter().map(|p| ("user_group_ids".to_owned(), p)).collect::>()), + _ => local_var_req_builder.query(&[("user_group_ids", &user_group_ids.into_iter().map(|p| p.to_string()).collect::>().join(",").to_string())]), + }; if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); } @@ -806,7 +827,10 @@ pub async fn get_user_groups_by_id(configuration: &configuration::Configuration, let local_var_uri_str = format!("{}/mssp/entities/user-groups/v1", local_var_configuration.base_path); let mut local_var_req_builder = local_var_client.request(reqwest::Method::GET, local_var_uri_str.as_str()); - local_var_req_builder = local_var_req_builder.query(&[("user_group_ids", &user_group_ids.into_iter().map(|p| p.to_string()).collect::>().join(",").to_string())]); + local_var_req_builder = match "multi" { + "multi" => local_var_req_builder.query(&user_group_ids.into_iter().map(|p| ("user_group_ids".to_owned(), p)).collect::>()), + _ => local_var_req_builder.query(&[("user_group_ids", &user_group_ids.into_iter().map(|p| p.to_string()).collect::>().join(",").to_string())]), + }; if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); } diff --git a/src/apis/prevention_policies_api.rs b/src/apis/prevention_policies_api.rs index 64a9c742..afca1bf1 100644 --- a/src/apis/prevention_policies_api.rs +++ b/src/apis/prevention_policies_api.rs @@ -180,7 +180,10 @@ pub async fn delete_prevention_policies(configuration: &configuration::Configura let local_var_uri_str = format!("{}/policy/entities/prevention/v1", local_var_configuration.base_path); let mut local_var_req_builder = local_var_client.request(reqwest::Method::DELETE, local_var_uri_str.as_str()); - local_var_req_builder = local_var_req_builder.query(&[("ids", &ids.into_iter().map(|p| p.to_string()).collect::>().join(",").to_string())]); + local_var_req_builder = match "multi" { + "multi" => local_var_req_builder.query(&ids.into_iter().map(|p| ("ids".to_owned(), p)).collect::>()), + _ => local_var_req_builder.query(&[("ids", &ids.into_iter().map(|p| p.to_string()).collect::>().join(",").to_string())]), + }; if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); } @@ -215,7 +218,10 @@ pub async fn get_prevention_policies(configuration: &configuration::Configuratio let local_var_uri_str = format!("{}/policy/entities/prevention/v1", local_var_configuration.base_path); let mut local_var_req_builder = local_var_client.request(reqwest::Method::GET, local_var_uri_str.as_str()); - local_var_req_builder = local_var_req_builder.query(&[("ids", &ids.into_iter().map(|p| p.to_string()).collect::>().join(",").to_string())]); + local_var_req_builder = match "multi" { + "multi" => local_var_req_builder.query(&ids.into_iter().map(|p| ("ids".to_owned(), p)).collect::>()), + _ => local_var_req_builder.query(&[("ids", &ids.into_iter().map(|p| p.to_string()).collect::>().join(",").to_string())]), + }; if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); } diff --git a/src/apis/quick_scan_api.rs b/src/apis/quick_scan_api.rs index fc37546c..cff8a7a5 100644 --- a/src/apis/quick_scan_api.rs +++ b/src/apis/quick_scan_api.rs @@ -67,7 +67,10 @@ pub async fn get_scans(configuration: &configuration::Configuration, ids: Vec>().join(",").to_string())]); + local_var_req_builder = match "csv" { + "multi" => local_var_req_builder.query(&ids.into_iter().map(|p| ("ids".to_owned(), p)).collect::>()), + _ => local_var_req_builder.query(&[("ids", &ids.into_iter().map(|p| p.to_string()).collect::>().join(",").to_string())]), + }; if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); } diff --git a/src/apis/real_time_response_admin_api.rs b/src/apis/real_time_response_admin_api.rs index acb52e29..d0e8522f 100644 --- a/src/apis/real_time_response_admin_api.rs +++ b/src/apis/real_time_response_admin_api.rs @@ -444,7 +444,10 @@ pub async fn r_tr_get_put_files(configuration: &configuration::Configuration, id let local_var_uri_str = format!("{}/real-time-response/entities/put-files/v1", local_var_configuration.base_path); let mut local_var_req_builder = local_var_client.request(reqwest::Method::GET, local_var_uri_str.as_str()); - local_var_req_builder = local_var_req_builder.query(&[("ids", &ids.into_iter().map(|p| p.to_string()).collect::>().join(",").to_string())]); + local_var_req_builder = match "multi" { + "multi" => local_var_req_builder.query(&ids.into_iter().map(|p| ("ids".to_owned(), p)).collect::>()), + _ => local_var_req_builder.query(&[("ids", &ids.into_iter().map(|p| p.to_string()).collect::>().join(",").to_string())]), + }; if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); } @@ -479,7 +482,10 @@ pub async fn r_tr_get_scripts(configuration: &configuration::Configuration, ids: let local_var_uri_str = format!("{}/real-time-response/entities/scripts/v1", local_var_configuration.base_path); let mut local_var_req_builder = local_var_client.request(reqwest::Method::GET, local_var_uri_str.as_str()); - local_var_req_builder = local_var_req_builder.query(&[("ids", &ids.into_iter().map(|p| p.to_string()).collect::>().join(",").to_string())]); + local_var_req_builder = match "multi" { + "multi" => local_var_req_builder.query(&ids.into_iter().map(|p| ("ids".to_owned(), p)).collect::>()), + _ => local_var_req_builder.query(&[("ids", &ids.into_iter().map(|p| p.to_string()).collect::>().join(",").to_string())]), + }; if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); } diff --git a/src/apis/recon_api.rs b/src/apis/recon_api.rs index bc8b6329..44080a80 100644 --- a/src/apis/recon_api.rs +++ b/src/apis/recon_api.rs @@ -412,7 +412,10 @@ pub async fn delete_notifications_v1(configuration: &configuration::Configuratio let local_var_uri_str = format!("{}/recon/entities/notifications/v1", local_var_configuration.base_path); let mut local_var_req_builder = local_var_client.request(reqwest::Method::DELETE, local_var_uri_str.as_str()); - local_var_req_builder = local_var_req_builder.query(&[("ids", &ids.into_iter().map(|p| p.to_string()).collect::>().join(",").to_string())]); + local_var_req_builder = match "multi" { + "multi" => local_var_req_builder.query(&ids.into_iter().map(|p| ("ids".to_owned(), p)).collect::>()), + _ => local_var_req_builder.query(&[("ids", &ids.into_iter().map(|p| p.to_string()).collect::>().join(",").to_string())]), + }; if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); } @@ -447,7 +450,10 @@ pub async fn delete_rules_v1(configuration: &configuration::Configuration, ids: let local_var_uri_str = format!("{}/recon/entities/rules/v1", local_var_configuration.base_path); let mut local_var_req_builder = local_var_client.request(reqwest::Method::DELETE, local_var_uri_str.as_str()); - local_var_req_builder = local_var_req_builder.query(&[("ids", &ids.into_iter().map(|p| p.to_string()).collect::>().join(",").to_string())]); + local_var_req_builder = match "multi" { + "multi" => local_var_req_builder.query(&ids.into_iter().map(|p| ("ids".to_owned(), p)).collect::>()), + _ => local_var_req_builder.query(&[("ids", &ids.into_iter().map(|p| p.to_string()).collect::>().join(",").to_string())]), + }; if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); } @@ -485,7 +491,10 @@ pub async fn get_actions_v1(configuration: &configuration::Configuration, ids: V let local_var_uri_str = format!("{}/recon/entities/actions/v1", local_var_configuration.base_path); let mut local_var_req_builder = local_var_client.request(reqwest::Method::GET, local_var_uri_str.as_str()); - local_var_req_builder = local_var_req_builder.query(&[("ids", &ids.into_iter().map(|p| p.to_string()).collect::>().join(",").to_string())]); + local_var_req_builder = match "multi" { + "multi" => local_var_req_builder.query(&ids.into_iter().map(|p| ("ids".to_owned(), p)).collect::>()), + _ => local_var_req_builder.query(&[("ids", &ids.into_iter().map(|p| p.to_string()).collect::>().join(",").to_string())]), + }; if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); } @@ -520,7 +529,10 @@ pub async fn get_notifications_detailed_translated_v1(configuration: &configurat let local_var_uri_str = format!("{}/recon/entities/notifications-detailed-translated/v1", local_var_configuration.base_path); let mut local_var_req_builder = local_var_client.request(reqwest::Method::GET, local_var_uri_str.as_str()); - local_var_req_builder = local_var_req_builder.query(&[("ids", &ids.into_iter().map(|p| p.to_string()).collect::>().join(",").to_string())]); + local_var_req_builder = match "multi" { + "multi" => local_var_req_builder.query(&ids.into_iter().map(|p| ("ids".to_owned(), p)).collect::>()), + _ => local_var_req_builder.query(&[("ids", &ids.into_iter().map(|p| p.to_string()).collect::>().join(",").to_string())]), + }; if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); } @@ -555,7 +567,10 @@ pub async fn get_notifications_detailed_v1(configuration: &configuration::Config let local_var_uri_str = format!("{}/recon/entities/notifications-detailed/v1", local_var_configuration.base_path); let mut local_var_req_builder = local_var_client.request(reqwest::Method::GET, local_var_uri_str.as_str()); - local_var_req_builder = local_var_req_builder.query(&[("ids", &ids.into_iter().map(|p| p.to_string()).collect::>().join(",").to_string())]); + local_var_req_builder = match "multi" { + "multi" => local_var_req_builder.query(&ids.into_iter().map(|p| ("ids".to_owned(), p)).collect::>()), + _ => local_var_req_builder.query(&[("ids", &ids.into_iter().map(|p| p.to_string()).collect::>().join(",").to_string())]), + }; if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); } @@ -590,7 +605,10 @@ pub async fn get_notifications_translated_v1(configuration: &configuration::Conf let local_var_uri_str = format!("{}/recon/entities/notifications-translated/v1", local_var_configuration.base_path); let mut local_var_req_builder = local_var_client.request(reqwest::Method::GET, local_var_uri_str.as_str()); - local_var_req_builder = local_var_req_builder.query(&[("ids", &ids.into_iter().map(|p| p.to_string()).collect::>().join(",").to_string())]); + local_var_req_builder = match "multi" { + "multi" => local_var_req_builder.query(&ids.into_iter().map(|p| ("ids".to_owned(), p)).collect::>()), + _ => local_var_req_builder.query(&[("ids", &ids.into_iter().map(|p| p.to_string()).collect::>().join(",").to_string())]), + }; if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); } @@ -625,7 +643,10 @@ pub async fn get_notifications_v1(configuration: &configuration::Configuration, let local_var_uri_str = format!("{}/recon/entities/notifications/v1", local_var_configuration.base_path); let mut local_var_req_builder = local_var_client.request(reqwest::Method::GET, local_var_uri_str.as_str()); - local_var_req_builder = local_var_req_builder.query(&[("ids", &ids.into_iter().map(|p| p.to_string()).collect::>().join(",").to_string())]); + local_var_req_builder = match "multi" { + "multi" => local_var_req_builder.query(&ids.into_iter().map(|p| ("ids".to_owned(), p)).collect::>()), + _ => local_var_req_builder.query(&[("ids", &ids.into_iter().map(|p| p.to_string()).collect::>().join(",").to_string())]), + }; if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); } @@ -660,7 +681,10 @@ pub async fn get_rules_v1(configuration: &configuration::Configuration, ids: Vec let local_var_uri_str = format!("{}/recon/entities/rules/v1", local_var_configuration.base_path); let mut local_var_req_builder = local_var_client.request(reqwest::Method::GET, local_var_uri_str.as_str()); - local_var_req_builder = local_var_req_builder.query(&[("ids", &ids.into_iter().map(|p| p.to_string()).collect::>().join(",").to_string())]); + local_var_req_builder = match "multi" { + "multi" => local_var_req_builder.query(&ids.into_iter().map(|p| ("ids".to_owned(), p)).collect::>()), + _ => local_var_req_builder.query(&[("ids", &ids.into_iter().map(|p| p.to_string()).collect::>().join(",").to_string())]), + }; if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); } diff --git a/src/apis/report_executions_api.rs b/src/apis/report_executions_api.rs index aab1588c..1fb5c0a1 100644 --- a/src/apis/report_executions_api.rs +++ b/src/apis/report_executions_api.rs @@ -101,7 +101,10 @@ pub async fn report_executions_get(configuration: &configuration::Configuration, let local_var_uri_str = format!("{}/reports/entities/report-executions/v1", local_var_configuration.base_path); let mut local_var_req_builder = local_var_client.request(reqwest::Method::GET, local_var_uri_str.as_str()); - local_var_req_builder = local_var_req_builder.query(&[("ids", &ids.into_iter().map(|p| p.to_string()).collect::>().join(",").to_string())]); + local_var_req_builder = match "multi" { + "multi" => local_var_req_builder.query(&ids.into_iter().map(|p| ("ids".to_owned(), p)).collect::>()), + _ => local_var_req_builder.query(&[("ids", &ids.into_iter().map(|p| p.to_string()).collect::>().join(",").to_string())]), + }; if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); } diff --git a/src/apis/response_policies_api.rs b/src/apis/response_policies_api.rs index a31b4630..2b16e5d5 100644 --- a/src/apis/response_policies_api.rs +++ b/src/apis/response_policies_api.rs @@ -180,7 +180,10 @@ pub async fn delete_rt_response_policies(configuration: &configuration::Configur let local_var_uri_str = format!("{}/policy/entities/response/v1", local_var_configuration.base_path); let mut local_var_req_builder = local_var_client.request(reqwest::Method::DELETE, local_var_uri_str.as_str()); - local_var_req_builder = local_var_req_builder.query(&[("ids", &ids.into_iter().map(|p| p.to_string()).collect::>().join(",").to_string())]); + local_var_req_builder = match "multi" { + "multi" => local_var_req_builder.query(&ids.into_iter().map(|p| ("ids".to_owned(), p)).collect::>()), + _ => local_var_req_builder.query(&[("ids", &ids.into_iter().map(|p| p.to_string()).collect::>().join(",").to_string())]), + }; if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); } @@ -215,7 +218,10 @@ pub async fn get_rt_response_policies(configuration: &configuration::Configurati let local_var_uri_str = format!("{}/policy/entities/response/v1", local_var_configuration.base_path); let mut local_var_req_builder = local_var_client.request(reqwest::Method::GET, local_var_uri_str.as_str()); - local_var_req_builder = local_var_req_builder.query(&[("ids", &ids.into_iter().map(|p| p.to_string()).collect::>().join(",").to_string())]); + local_var_req_builder = match "multi" { + "multi" => local_var_req_builder.query(&ids.into_iter().map(|p| ("ids".to_owned(), p)).collect::>()), + _ => local_var_req_builder.query(&[("ids", &ids.into_iter().map(|p| p.to_string()).collect::>().join(",").to_string())]), + }; if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); } diff --git a/src/apis/scheduled_reports_api.rs b/src/apis/scheduled_reports_api.rs index 924be3a3..4ddb8f84 100644 --- a/src/apis/scheduled_reports_api.rs +++ b/src/apis/scheduled_reports_api.rs @@ -54,7 +54,10 @@ pub async fn scheduled_reports_get(configuration: &configuration::Configuration, let local_var_uri_str = format!("{}/reports/entities/scheduled-reports/v1", local_var_configuration.base_path); let mut local_var_req_builder = local_var_client.request(reqwest::Method::GET, local_var_uri_str.as_str()); - local_var_req_builder = local_var_req_builder.query(&[("ids", &ids.into_iter().map(|p| p.to_string()).collect::>().join(",").to_string())]); + local_var_req_builder = match "multi" { + "multi" => local_var_req_builder.query(&ids.into_iter().map(|p| ("ids".to_owned(), p)).collect::>()), + _ => local_var_req_builder.query(&[("ids", &ids.into_iter().map(|p| p.to_string()).collect::>().join(",").to_string())]), + }; if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); } diff --git a/src/apis/sensor_download_api.rs b/src/apis/sensor_download_api.rs index cf6e59bc..0c2b92d0 100644 --- a/src/apis/sensor_download_api.rs +++ b/src/apis/sensor_download_api.rs @@ -239,7 +239,10 @@ pub async fn get_sensor_installers_entities(configuration: &configuration::Confi let local_var_uri_str = format!("{}/sensors/entities/installers/v1", local_var_configuration.base_path); let mut local_var_req_builder = local_var_client.request(reqwest::Method::GET, local_var_uri_str.as_str()); - local_var_req_builder = local_var_req_builder.query(&[("ids", &ids.into_iter().map(|p| p.to_string()).collect::>().join(",").to_string())]); + local_var_req_builder = match "multi" { + "multi" => local_var_req_builder.query(&ids.into_iter().map(|p| ("ids".to_owned(), p)).collect::>()), + _ => local_var_req_builder.query(&[("ids", &ids.into_iter().map(|p| p.to_string()).collect::>().join(",").to_string())]), + }; if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); } diff --git a/src/apis/sensor_update_policies_api.rs b/src/apis/sensor_update_policies_api.rs index 77ffd1bb..073d8962 100644 --- a/src/apis/sensor_update_policies_api.rs +++ b/src/apis/sensor_update_policies_api.rs @@ -288,7 +288,10 @@ pub async fn delete_sensor_update_policies(configuration: &configuration::Config let local_var_uri_str = format!("{}/policy/entities/sensor-update/v1", local_var_configuration.base_path); let mut local_var_req_builder = local_var_client.request(reqwest::Method::DELETE, local_var_uri_str.as_str()); - local_var_req_builder = local_var_req_builder.query(&[("ids", &ids.into_iter().map(|p| p.to_string()).collect::>().join(",").to_string())]); + local_var_req_builder = match "multi" { + "multi" => local_var_req_builder.query(&ids.into_iter().map(|p| ("ids".to_owned(), p)).collect::>()), + _ => local_var_req_builder.query(&[("ids", &ids.into_iter().map(|p| p.to_string()).collect::>().join(",").to_string())]), + }; if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); } @@ -323,7 +326,10 @@ pub async fn get_sensor_update_policies(configuration: &configuration::Configura let local_var_uri_str = format!("{}/policy/entities/sensor-update/v1", local_var_configuration.base_path); let mut local_var_req_builder = local_var_client.request(reqwest::Method::GET, local_var_uri_str.as_str()); - local_var_req_builder = local_var_req_builder.query(&[("ids", &ids.into_iter().map(|p| p.to_string()).collect::>().join(",").to_string())]); + local_var_req_builder = match "multi" { + "multi" => local_var_req_builder.query(&ids.into_iter().map(|p| ("ids".to_owned(), p)).collect::>()), + _ => local_var_req_builder.query(&[("ids", &ids.into_iter().map(|p| p.to_string()).collect::>().join(",").to_string())]), + }; if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); } @@ -358,7 +364,10 @@ pub async fn get_sensor_update_policies_v2(configuration: &configuration::Config let local_var_uri_str = format!("{}/policy/entities/sensor-update/v2", local_var_configuration.base_path); let mut local_var_req_builder = local_var_client.request(reqwest::Method::GET, local_var_uri_str.as_str()); - local_var_req_builder = local_var_req_builder.query(&[("ids", &ids.into_iter().map(|p| p.to_string()).collect::>().join(",").to_string())]); + local_var_req_builder = match "multi" { + "multi" => local_var_req_builder.query(&ids.into_iter().map(|p| ("ids".to_owned(), p)).collect::>()), + _ => local_var_req_builder.query(&[("ids", &ids.into_iter().map(|p| p.to_string()).collect::>().join(",").to_string())]), + }; if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); } diff --git a/src/apis/sensor_visibility_exclusions_api.rs b/src/apis/sensor_visibility_exclusions_api.rs index ce190b70..ae79b820 100644 --- a/src/apis/sensor_visibility_exclusions_api.rs +++ b/src/apis/sensor_visibility_exclusions_api.rs @@ -116,7 +116,10 @@ pub async fn delete_sensor_visibility_exclusions_v1(configuration: &configuratio let local_var_uri_str = format!("{}/policy/entities/sv-exclusions/v1", local_var_configuration.base_path); let mut local_var_req_builder = local_var_client.request(reqwest::Method::DELETE, local_var_uri_str.as_str()); - local_var_req_builder = local_var_req_builder.query(&[("ids", &ids.into_iter().map(|p| p.to_string()).collect::>().join(",").to_string())]); + local_var_req_builder = match "csv" { + "multi" => local_var_req_builder.query(&ids.into_iter().map(|p| ("ids".to_owned(), p)).collect::>()), + _ => local_var_req_builder.query(&[("ids", &ids.into_iter().map(|p| p.to_string()).collect::>().join(",").to_string())]), + }; if let Some(ref local_var_str) = comment { local_var_req_builder = local_var_req_builder.query(&[("comment", &local_var_str.to_string())]); } @@ -154,7 +157,10 @@ pub async fn get_sensor_visibility_exclusions_v1(configuration: &configuration:: let local_var_uri_str = format!("{}/policy/entities/sv-exclusions/v1", local_var_configuration.base_path); let mut local_var_req_builder = local_var_client.request(reqwest::Method::GET, local_var_uri_str.as_str()); - local_var_req_builder = local_var_req_builder.query(&[("ids", &ids.into_iter().map(|p| p.to_string()).collect::>().join(",").to_string())]); + local_var_req_builder = match "csv" { + "multi" => local_var_req_builder.query(&ids.into_iter().map(|p| ("ids".to_owned(), p)).collect::>()), + _ => local_var_req_builder.query(&[("ids", &ids.into_iter().map(|p| p.to_string()).collect::>().join(",").to_string())]), + }; if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); } diff --git a/src/apis/spotlight_vulnerabilities_api.rs b/src/apis/spotlight_vulnerabilities_api.rs index 496b6c84..7522db54 100644 --- a/src/apis/spotlight_vulnerabilities_api.rs +++ b/src/apis/spotlight_vulnerabilities_api.rs @@ -83,7 +83,10 @@ pub async fn combined_query_vulnerabilities( } local_var_req_builder = local_var_req_builder.query(&[("filter", &filter.to_string())]); if let Some(ref local_var_str) = facet { - local_var_req_builder = local_var_req_builder.query(&[("facet", &local_var_str.into_iter().map(|p| p.to_string()).collect::>().join(",").to_string())]); + local_var_req_builder = match "multi" { + "multi" => local_var_req_builder.query(&local_var_str.into_iter().map(|p| ("facet".to_owned(), p.to_string())).collect::>()), + _ => local_var_req_builder.query(&[("facet", &local_var_str.into_iter().map(|p| p.to_string()).collect::>().join(",").to_string())]), + }; } if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); @@ -119,7 +122,10 @@ pub async fn get_remediations_v2(configuration: &configuration::Configuration, i let local_var_uri_str = format!("{}/spotlight/entities/remediations/v2", local_var_configuration.base_path); let mut local_var_req_builder = local_var_client.request(reqwest::Method::GET, local_var_uri_str.as_str()); - local_var_req_builder = local_var_req_builder.query(&[("ids", &ids.into_iter().map(|p| p.to_string()).collect::>().join(",").to_string())]); + local_var_req_builder = match "multi" { + "multi" => local_var_req_builder.query(&ids.into_iter().map(|p| ("ids".to_owned(), p)).collect::>()), + _ => local_var_req_builder.query(&[("ids", &ids.into_iter().map(|p| p.to_string()).collect::>().join(",").to_string())]), + }; if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); } @@ -154,7 +160,10 @@ pub async fn get_vulnerabilities(configuration: &configuration::Configuration, i let local_var_uri_str = format!("{}/spotlight/entities/vulnerabilities/v2", local_var_configuration.base_path); let mut local_var_req_builder = local_var_client.request(reqwest::Method::GET, local_var_uri_str.as_str()); - local_var_req_builder = local_var_req_builder.query(&[("ids", &ids.into_iter().map(|p| p.to_string()).collect::>().join(",").to_string())]); + local_var_req_builder = match "multi" { + "multi" => local_var_req_builder.query(&ids.into_iter().map(|p| ("ids".to_owned(), p)).collect::>()), + _ => local_var_req_builder.query(&[("ids", &ids.into_iter().map(|p| p.to_string()).collect::>().join(",").to_string())]), + }; if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); } diff --git a/src/apis/user_management_api.rs b/src/apis/user_management_api.rs index 66ba454e..6deda084 100644 --- a/src/apis/user_management_api.rs +++ b/src/apis/user_management_api.rs @@ -264,7 +264,10 @@ pub async fn get_roles(configuration: &configuration::Configuration, ids: Vec>().join(",").to_string())]); + local_var_req_builder = match "multi" { + "multi" => local_var_req_builder.query(&ids.into_iter().map(|p| ("ids".to_owned(), p)).collect::>()), + _ => local_var_req_builder.query(&[("ids", &ids.into_iter().map(|p| p.to_string()).collect::>().join(",").to_string())]), + }; if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); } @@ -404,7 +407,10 @@ pub async fn retrieve_user(configuration: &configuration::Configuration, ids: Ve let local_var_uri_str = format!("{}/users/entities/users/v1", local_var_configuration.base_path); let mut local_var_req_builder = local_var_client.request(reqwest::Method::GET, local_var_uri_str.as_str()); - local_var_req_builder = local_var_req_builder.query(&[("ids", &ids.into_iter().map(|p| p.to_string()).collect::>().join(",").to_string())]); + local_var_req_builder = match "multi" { + "multi" => local_var_req_builder.query(&ids.into_iter().map(|p| ("ids".to_owned(), p)).collect::>()), + _ => local_var_req_builder.query(&[("ids", &ids.into_iter().map(|p| p.to_string()).collect::>().join(",").to_string())]), + }; if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); } @@ -439,7 +445,10 @@ pub async fn retrieve_user_uuid(configuration: &configuration::Configuration, ui let local_var_uri_str = format!("{}/users/queries/user-uuids-by-email/v1", local_var_configuration.base_path); let mut local_var_req_builder = local_var_client.request(reqwest::Method::GET, local_var_uri_str.as_str()); - local_var_req_builder = local_var_req_builder.query(&[("uid", &uid.into_iter().map(|p| p.to_string()).collect::>().join(",").to_string())]); + local_var_req_builder = match "multi" { + "multi" => local_var_req_builder.query(&uid.into_iter().map(|p| ("uid".to_owned(), p)).collect::>()), + _ => local_var_req_builder.query(&[("uid", &uid.into_iter().map(|p| p.to_string()).collect::>().join(",").to_string())]), + }; if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); } @@ -509,7 +518,10 @@ pub async fn revoke_user_role_ids(configuration: &configuration::Configuration, let mut local_var_req_builder = local_var_client.request(reqwest::Method::DELETE, local_var_uri_str.as_str()); local_var_req_builder = local_var_req_builder.query(&[("user_uuid", &user_uuid.to_string())]); - local_var_req_builder = local_var_req_builder.query(&[("ids", &ids.into_iter().map(|p| p.to_string()).collect::>().join(",").to_string())]); + local_var_req_builder = match "multi" { + "multi" => local_var_req_builder.query(&ids.into_iter().map(|p| ("ids".to_owned(), p)).collect::>()), + _ => local_var_req_builder.query(&[("ids", &ids.into_iter().map(|p| p.to_string()).collect::>().join(",").to_string())]), + }; if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); } diff --git a/src/apis/zero_trust_assessment_api.rs b/src/apis/zero_trust_assessment_api.rs index dd119fbe..99f56165 100644 --- a/src/apis/zero_trust_assessment_api.rs +++ b/src/apis/zero_trust_assessment_api.rs @@ -44,7 +44,10 @@ pub async fn get_assessment_v1(configuration: &configuration::Configuration, ids let local_var_uri_str = format!("{}/zero-trust-assessment/entities/assessments/v1", local_var_configuration.base_path); let mut local_var_req_builder = local_var_client.request(reqwest::Method::GET, local_var_uri_str.as_str()); - local_var_req_builder = local_var_req_builder.query(&[("ids", &ids.into_iter().map(|p| p.to_string()).collect::>().join(",").to_string())]); + local_var_req_builder = match "multi" { + "multi" => local_var_req_builder.query(&ids.into_iter().map(|p| ("ids".to_owned(), p)).collect::>()), + _ => local_var_req_builder.query(&[("ids", &ids.into_iter().map(|p| p.to_string()).collect::>().join(",").to_string())]), + }; if let Some(ref local_var_user_agent) = local_var_configuration.user_agent { local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); }