#![cfg(feature = "cloudflare_devices")]
#![allow(clippy::too_many_arguments, clippy::type_complexity)]
#![allow(
clippy::missing_errors_doc,
clippy::doc_markdown,
clippy::useless_format
)]
#![allow(unused_imports)]
use foundation_macros::JsonHash;
use foundation_netio::shared::client::http_client::HttpClient;
use foundation_netio::{DynNetClient, PreparedRequestBuilder};
use serde::{Deserialize, Serialize};
use super::shared::TunnelApiResponseCommon;
use super::shared::TunnelCreatedAt;
use super::shared::TunnelDeletedAt;
use super::shared::TunnelSubnet;
use super::shared::TunnelSubnetComment;
use super::shared::TunnelSubnetId;
use super::shared::TunnelSubnetIpNetwork;
use super::shared::TunnelSubnetIsDefaultNetwork;
use super::shared::TunnelSubnetName;
use super::shared::TunnelSubnetResponseSingle;
use super::shared::TunnelSubnetType;
use super::shared::ApiResponse;
#[derive(Debug, Clone, Default, Serialize, Deserialize, JsonHash)]
pub struct CreateIpProfileResponse {
pub errors: Vec<TeamsDevicesV4ResponseMessage>,
pub messages: Vec<TeamsDevicesV4ResponseMessage>,
pub result: TeamsDevicesIpProfile,
pub success: bool,
}
#[derive(Debug, Clone, Default, Serialize, Deserialize, JsonHash)]
pub struct DeleteDeviceResponse {
pub errors: Vec<TeamsDevicesV4ResponseMessage>,
pub messages: Vec<TeamsDevicesV4ResponseMessage>,
pub result: Option<serde_json::Value>,
pub success: bool,
}
#[derive(Debug, Clone, Default, Serialize, Deserialize, JsonHash)]
pub struct DeleteIpProfileResponse {
pub errors: Vec<TeamsDevicesV4ResponseMessage>,
pub messages: Vec<TeamsDevicesV4ResponseMessage>,
pub result: DeleteIpProfileResponseResult,
pub success: bool,
}
pub type DeleteIpProfileResponseResult = super::shared::IdObject;
pub type DeleteRegistrationResponse = DeleteDeviceResponse;
#[derive(Debug, Clone, Default, Serialize, Deserialize, JsonHash)]
pub struct DeleteRegistrationsResponse {
pub errors: Vec<TeamsDevicesV4ResponseMessage>,
pub messages: Vec<TeamsDevicesV4ResponseMessage>,
pub result: Option<serde_json::Value>,
pub result_info: Option<TeamsDevicesCursorResultInfo>,
pub success: bool,
}
#[derive(Debug, Clone, Default, Serialize, Deserialize, JsonHash)]
pub struct DeviceManagedNetworksCreateDeviceManagedNetworkRequest {
pub config: serde_json::Value,
pub name: String,
#[serde(rename = "type")]
pub r#type: String,
}
#[derive(Debug, Clone, Default, Serialize, Deserialize, JsonHash)]
pub struct DeviceManagedNetworksUpdateDeviceManagedNetworkRequest {
pub config: Option<serde_json::Value>,
pub name: Option<String>,
#[serde(rename = "type")]
pub r#type: Option<String>,
}
#[derive(Debug, Clone, Default, Serialize, Deserialize, JsonHash)]
pub struct DevicePostureIntegrationsCreateDevicePostureIntegrationRequest {
pub config: serde_json::Value,
pub interval: String,
pub name: String,
#[serde(rename = "type")]
pub r#type: String,
}
#[derive(Debug, Clone, Default, Serialize, Deserialize, JsonHash)]
pub struct DevicePostureIntegrationsUpdateDevicePostureIntegrationRequest {
pub config: Option<serde_json::Value>,
pub interval: Option<String>,
pub name: Option<String>,
#[serde(rename = "type")]
pub r#type: Option<String>,
}
#[derive(Debug, Clone, Default, Serialize, Deserialize, JsonHash)]
pub struct DevicePostureRulesCreateDevicePostureRuleRequest {
pub description: Option<String>,
pub expiration: Option<String>,
pub input: Option<serde_json::Value>,
#[serde(rename = "match")]
pub r#match: Option<Vec<TeamsDevicesMatchItem>>,
pub name: String,
pub schedule: Option<String>,
#[serde(rename = "type")]
pub r#type: String,
}
pub type DevicePostureRulesUpdateDevicePostureRuleRequest =
DevicePostureRulesCreateDevicePostureRuleRequest;
#[derive(Debug, Clone, Default, Serialize, Deserialize, JsonHash)]
pub struct DevicesCreateDeviceSettingsPolicyRequest {
pub allow_mode_switch: Option<bool>,
pub allow_updates: Option<bool>,
pub allowed_to_leave: Option<bool>,
pub auto_connect: Option<f64>,
pub captive_portal: Option<f64>,
pub description: Option<serde_json::Value>,
pub disable_auto_fallback: Option<bool>,
pub enabled: Option<bool>,
pub exclude: Option<Vec<serde_json::Value>>,
pub exclude_office_ips: Option<bool>,
pub include: Option<Vec<serde_json::Value>>,
pub lan_allow_minutes: Option<f64>,
pub lan_allow_subnet_size: Option<f64>,
#[serde(rename = "match")]
pub r#match: String,
pub name: String,
pub precedence: f64,
pub register_interface_ip_with_dns: Option<bool>,
pub sccm_vpn_boundary_support: Option<bool>,
pub service_mode_v2: Option<TeamsDevicesServiceModeV2>,
pub support_url: Option<String>,
pub switch_locked: Option<bool>,
pub tunnel_protocol: Option<String>,
}
#[derive(Debug, Clone, Default, Serialize, Deserialize, JsonHash)]
pub struct DevicesUpdateDefaultDeviceSettingsPolicyRequest {
pub allow_mode_switch: Option<bool>,
pub allow_updates: Option<bool>,
pub allowed_to_leave: Option<bool>,
pub auto_connect: Option<f64>,
pub captive_portal: Option<f64>,
pub disable_auto_fallback: Option<bool>,
pub exclude: Option<Vec<serde_json::Value>>,
pub exclude_office_ips: Option<bool>,
pub include: Option<Vec<serde_json::Value>>,
pub lan_allow_minutes: Option<f64>,
pub lan_allow_subnet_size: Option<f64>,
pub register_interface_ip_with_dns: Option<bool>,
pub sccm_vpn_boundary_support: Option<bool>,
pub service_mode_v2: Option<TeamsDevicesServiceModeV2>,
pub support_url: Option<String>,
pub switch_locked: Option<bool>,
pub tunnel_protocol: Option<String>,
}
#[derive(Debug, Clone, Default, Serialize, Deserialize, JsonHash)]
pub struct DevicesUpdateDeviceSettingsPolicyRequest {
pub allow_mode_switch: Option<bool>,
pub allow_updates: Option<bool>,
pub allowed_to_leave: Option<bool>,
pub auto_connect: Option<f64>,
pub captive_portal: Option<f64>,
pub description: Option<String>,
pub disable_auto_fallback: Option<bool>,
pub enabled: Option<bool>,
pub exclude: Option<Vec<serde_json::Value>>,
pub exclude_office_ips: Option<bool>,
pub include: Option<Vec<serde_json::Value>>,
pub lan_allow_minutes: Option<f64>,
pub lan_allow_subnet_size: Option<f64>,
#[serde(rename = "match")]
pub r#match: Option<String>,
pub name: Option<String>,
pub precedence: Option<f64>,
pub register_interface_ip_with_dns: Option<bool>,
pub sccm_vpn_boundary_support: Option<bool>,
pub service_mode_v2: Option<TeamsDevicesServiceModeV2>,
pub support_url: Option<String>,
pub switch_locked: Option<bool>,
pub tunnel_protocol: Option<String>,
}
pub type DlpApiResponseCollection = super::shared::AddressingApiResponseCollectionShape;
pub type DlpApiResponseCommon = super::shared::ErrorsMessagesSuccessObject;
pub type DlpApiResponseSingle = super::shared::ErrorsMessagesSuccessObject;
pub type DlpBehaviors = super::shared::BehaviorsObject;
#[derive(Debug, Clone, Default, Serialize, Deserialize, JsonHash)]
pub struct DlpCreateIntegrationBody {
pub integration_type: String,
pub reference_id: Option<String>,
pub tenant_url: String,
}
pub type DlpEmpty = serde_json::Value;
pub type DlpMessages = Vec<std::collections::HashMap<String, serde_json::Value>>;
pub type DlpRiskLevel = String;
pub type DlpRiskScoreBehaviorsGetResponse = super::shared::ApiEnvelope<Option<DlpBehaviors>>;
pub type DlpRiskScoreBehaviorsPutResponse = super::shared::ApiEnvelope<Option<DlpUpdateBehaviors>>;
#[derive(Debug, Clone, Default, Serialize, Deserialize, JsonHash)]
pub struct DlpRiskScoreIntegration {
pub account_tag: String,
pub active: bool,
pub created_at: String,
pub id: String,
pub integration_type: String,
pub reference_id: String,
pub tenant_url: String,
pub well_known_url: String,
}
pub type DlpRiskScoreIntegrationArray = Vec<DlpRiskScoreIntegration>;
pub type DlpRiskScoreIntegrationType = String;
pub type DlpRiskScoreSummaryGetResponse =
super::shared::ApiEnvelopeErrorsMessagesResultInfoSuccess<Option<DlpRiskSummary>>;
#[derive(Debug, Clone, Default, Serialize, Deserialize, JsonHash)]
pub struct DlpRiskSummary {
pub users: Vec<DlpUserRiskInfo>,
}
pub type DlpUpdateBehaviors = super::shared::BehaviorsObject;
#[derive(Debug, Clone, Default, Serialize, Deserialize, JsonHash)]
pub struct DlpUpdateIntegrationBody {
pub active: bool,
pub reference_id: Option<String>,
pub tenant_url: String,
}
#[derive(Debug, Clone, Default, Serialize, Deserialize, JsonHash)]
pub struct DlpUserRiskInfo {
pub email: String,
pub event_count: i64,
pub last_event: String,
pub max_risk_level: String,
pub name: String,
pub user_id: String,
}
pub type DlpZtRiskScoreIntegrationCreateResponse =
super::shared::ApiEnvelope<Option<DlpRiskScoreIntegration>>;
pub type DlpZtRiskScoreIntegrationDeleteResponse =
super::shared::ApiEnvelope<Option<serde_json::Value>>;
pub type DlpZtRiskScoreIntegrationGetByReferenceIdResponse =
super::shared::ApiEnvelope<Option<DlpRiskScoreIntegration>>;
pub type DlpZtRiskScoreIntegrationGetResponse =
super::shared::ApiEnvelope<Option<DlpRiskScoreIntegration>>;
pub type DlpZtRiskScoreIntegrationListResponse =
super::shared::ApiEnvelope<Option<Vec<DlpRiskScoreIntegration>>>;
pub type DlpZtRiskScoreIntegrationUpdateResponse =
super::shared::ApiEnvelope<Option<DlpRiskScoreIntegration>>;
#[derive(Debug, Clone, Default, Serialize, Deserialize, JsonHash)]
pub struct GetDeviceResponse {
pub errors: Vec<TeamsDevicesV4ResponseMessage>,
pub messages: Vec<TeamsDevicesV4ResponseMessage>,
pub result: TeamsDevicesPhysicalDevice,
pub success: bool,
}
pub type GetIpProfileResponse = CreateIpProfileResponse;
#[derive(Debug, Clone, Default, Serialize, Deserialize, JsonHash)]
pub struct GetRegistrationOverrideCodesResponse {
pub errors: Vec<TeamsDevicesV4ResponseMessage>,
pub messages: Vec<TeamsDevicesV4ResponseMessage>,
pub result: TeamsDevicesOverrideCodes,
pub success: bool,
}
#[derive(Debug, Clone, Default, Serialize, Deserialize, JsonHash)]
pub struct GetRegistrationResponse {
pub errors: Vec<TeamsDevicesV4ResponseMessage>,
pub messages: Vec<TeamsDevicesV4ResponseMessage>,
pub result: TeamsDevicesRegistration,
pub success: bool,
}
#[derive(Debug, Clone, Default, Serialize, Deserialize, JsonHash)]
pub struct ListDevicesResponse {
pub errors: Vec<TeamsDevicesV4ResponseMessage>,
pub messages: Vec<TeamsDevicesV4ResponseMessage>,
pub result: Vec<TeamsDevicesPhysicalDevice>,
pub result_info: Option<TeamsDevicesCursorResultInfo>,
pub success: bool,
}
#[derive(Debug, Clone, Default, Serialize, Deserialize, JsonHash)]
pub struct ListIpProfilesResponse {
pub errors: Vec<TeamsDevicesV4ResponseMessage>,
pub messages: Vec<TeamsDevicesV4ResponseMessage>,
pub result: Vec<TeamsDevicesIpProfile>,
pub result_info: Option<TeamsDevicesPaginationInfo>,
pub success: bool,
}
#[derive(Debug, Clone, Default, Serialize, Deserialize, JsonHash)]
pub struct ListRegistrationsResponse {
pub errors: Vec<TeamsDevicesV4ResponseMessage>,
pub messages: Vec<TeamsDevicesV4ResponseMessage>,
pub result: Vec<TeamsDevicesRegistration>,
pub result_info: Option<TeamsDevicesCursorResultInfo>,
pub success: bool,
}
pub type RevokeDeviceResponse = DeleteDeviceResponse;
pub type RevokeRegistrationsResponse = DeleteRegistrationsResponse;
pub type TeamsDevicesAccessSerialNumberListInputRequest = super::shared::IdObject2;
pub type TeamsDevicesAllowModeSwitch = bool;
pub type TeamsDevicesAllowUpdates = bool;
pub type TeamsDevicesAllowedToLeave = bool;
#[derive(Debug, Clone, Default, Serialize, Deserialize, JsonHash)]
pub struct TeamsDevicesAntivirusInputRequest {
pub update_window_days: Option<f64>,
}
#[derive(Debug, Clone, Default, Serialize, Deserialize, JsonHash)]
pub struct TeamsDevicesApiResponseCollection {
pub errors: Vec<std::collections::HashMap<String, serde_json::Value>>,
pub messages: Vec<std::collections::HashMap<String, serde_json::Value>>,
pub result: Option<Vec<serde_json::Value>>,
pub result_info: Option<TeamsDevicesResultInfo>,
pub success: bool,
}
pub type TeamsDevicesApiResponseCommon = super::shared::ApiEnvelope<serde_json::Value>;
pub type TeamsDevicesApiResponseSingle = super::shared::ApiEnvelope<Option<serde_json::Value>>;
pub type TeamsDevicesApplicationInputRequest =
super::shared::TeamsDevicesApplicationInputRequestShape;
pub type TeamsDevicesAutoConnect = f64;
pub type TeamsDevicesCaptivePortal = f64;
pub type TeamsDevicesCarbonblackInputRequest =
super::shared::TeamsDevicesApplicationInputRequestShape;
pub type TeamsDevicesCheckDisks = Vec<String>;
#[derive(Debug, Clone, Default, Serialize, Deserialize, JsonHash)]
pub struct TeamsDevicesClientCertificateInputRequest {
pub certificate_id: String,
pub cn: String,
}
#[derive(Debug, Clone, Default, Serialize, Deserialize, JsonHash)]
pub struct TeamsDevicesClientCertificateV2InputRequest {
pub certificate_id: String,
pub check_private_key: bool,
pub cn: Option<String>,
pub extended_key_usage: Option<Vec<String>>,
pub locations: Option<std::collections::HashMap<String, serde_json::Value>>,
pub operating_system: String,
pub subject_alternative_names: Option<Vec<String>>,
}
pub type TeamsDevicesComponentsSchemasName = String;
#[derive(Debug, Clone, Default, Serialize, Deserialize, JsonHash)]
pub struct TeamsDevicesComponentsSchemasResponseCollection {
pub errors: Vec<std::collections::HashMap<String, serde_json::Value>>,
pub messages: Vec<std::collections::HashMap<String, serde_json::Value>>,
pub result: Vec<TeamsDevicesDeviceManagedNetworks>,
pub result_info: Option<TeamsDevicesResultInfo>,
pub success: bool,
}
pub type TeamsDevicesComponentsSchemasSingleResponse =
super::shared::ApiEnvelope<TeamsDevicesDeviceManagedNetworks>;
pub type TeamsDevicesComponentsSchemasType = String;
pub type TeamsDevicesComponentsSchemasUuid = String;
pub type TeamsDevicesConfigRequest = serde_json::Value;
pub type TeamsDevicesConfigResponse = serde_json::Value;
#[derive(Debug, Clone, Default, Serialize, Deserialize, JsonHash)]
pub struct TeamsDevicesCrowdstrikeConfigRequest {
pub api_url: String,
pub client_id: String,
pub client_secret: String,
pub customer_id: String,
}
#[derive(Debug, Clone, Default, Serialize, Deserialize, JsonHash)]
pub struct TeamsDevicesCrowdstrikeInputRequest {
pub connection_id: String,
pub last_seen: Option<String>,
pub operator: Option<String>,
pub os: Option<String>,
pub overall: Option<String>,
pub sensor_config: Option<String>,
pub state: Option<String>,
pub version: Option<String>,
#[serde(rename = "versionOperator")]
pub version_operator: Option<String>,
}
#[derive(Debug, Clone, Default, Serialize, Deserialize, JsonHash)]
pub struct TeamsDevicesCursorResultInfo {
pub count: i64,
pub cursor: String,
pub per_page: i64,
pub total_count: Option<i64>,
}
#[derive(Debug, Clone, Default, Serialize, Deserialize, JsonHash)]
pub struct TeamsDevicesCustomS2SConfigRequest {
pub access_client_id: String,
pub access_client_secret: String,
pub api_url: String,
}
#[derive(Debug, Clone, Default, Serialize, Deserialize, JsonHash)]
pub struct TeamsDevicesCustomS2SInputRequest {
pub connection_id: String,
pub operator: String,
pub score: f64,
}
pub type TeamsDevicesDefault = bool;
#[derive(Debug, Clone, Default, Serialize, Deserialize, JsonHash)]
pub struct TeamsDevicesDefaultDeviceSettingsPolicy {
pub allow_mode_switch: Option<bool>,
pub allow_updates: Option<bool>,
pub allowed_to_leave: Option<bool>,
pub auto_connect: Option<f64>,
pub captive_portal: Option<f64>,
pub default: Option<bool>,
pub disable_auto_fallback: Option<bool>,
pub enabled: Option<bool>,
pub exclude: Option<Vec<serde_json::Value>>,
pub exclude_office_ips: Option<bool>,
pub fallback_domains: Option<Vec<TeamsDevicesFallbackDomain>>,
pub gateway_unique_id: Option<String>,
pub include: Option<Vec<serde_json::Value>>,
pub register_interface_ip_with_dns: Option<bool>,
pub sccm_vpn_boundary_support: Option<bool>,
pub service_mode_v2: Option<TeamsDevicesServiceModeV2>,
pub support_url: Option<String>,
pub switch_locked: Option<bool>,
pub tunnel_protocol: Option<String>,
}
pub type TeamsDevicesDefaultDeviceSettingsResponse =
super::shared::ApiEnvelope<TeamsDevicesDefaultDeviceSettingsPolicy>;
pub type TeamsDevicesDescription = String;
#[derive(Debug, Clone, Default, Serialize, Deserialize, JsonHash)]
pub struct TeamsDevicesDeviceManagedNetworks {
pub config: Option<serde_json::Value>,
pub name: Option<String>,
pub network_id: Option<String>,
#[serde(rename = "type")]
pub r#type: Option<String>,
}
pub type TeamsDevicesDeviceManagedNetworksComponentsSchemasName = String;
#[derive(Debug, Clone, Default, Serialize, Deserialize, JsonHash)]
pub struct TeamsDevicesDevicePostureIntegrations {
pub config: Option<serde_json::Value>,
pub id: Option<String>,
pub interval: Option<String>,
pub name: Option<String>,
#[serde(rename = "type")]
pub r#type: Option<String>,
}
#[derive(Debug, Clone, Default, Serialize, Deserialize, JsonHash)]
pub struct TeamsDevicesDevicePostureRules {
pub description: Option<String>,
pub expiration: Option<String>,
pub id: Option<String>,
pub input: Option<serde_json::Value>,
#[serde(rename = "match")]
pub r#match: Option<Vec<TeamsDevicesMatchItem>>,
pub name: Option<String>,
pub schedule: Option<String>,
#[serde(rename = "type")]
pub r#type: Option<String>,
}
#[derive(Debug, Clone, Default, Serialize, Deserialize, JsonHash)]
pub struct TeamsDevicesDeviceSettingsPolicy {
pub allow_mode_switch: Option<bool>,
pub allow_updates: Option<bool>,
pub allowed_to_leave: Option<bool>,
pub auto_connect: Option<f64>,
pub captive_portal: Option<f64>,
pub default: Option<bool>,
pub description: Option<String>,
pub disable_auto_fallback: Option<bool>,
pub enabled: Option<bool>,
pub exclude: Option<Vec<serde_json::Value>>,
pub exclude_office_ips: Option<bool>,
pub fallback_domains: Option<Vec<TeamsDevicesFallbackDomain>>,
pub gateway_unique_id: Option<String>,
pub include: Option<Vec<serde_json::Value>>,
pub lan_allow_minutes: Option<f64>,
pub lan_allow_subnet_size: Option<f64>,
#[serde(rename = "match")]
pub r#match: Option<String>,
pub name: Option<String>,
pub policy_id: Option<String>,
pub precedence: Option<f64>,
pub register_interface_ip_with_dns: Option<bool>,
pub sccm_vpn_boundary_support: Option<bool>,
pub service_mode_v2: Option<TeamsDevicesServiceModeV2>,
pub support_url: Option<String>,
pub switch_locked: Option<bool>,
pub target_tests: Option<Vec<TeamsDevicesTargetDexTest>>,
pub tunnel_protocol: Option<String>,
}
pub type TeamsDevicesDeviceSettingsResponse =
super::shared::ApiEnvelope<TeamsDevicesDeviceSettingsPolicy>;
#[derive(Debug, Clone, Default, Serialize, Deserialize, JsonHash)]
pub struct TeamsDevicesDeviceSettingsResponseCollection {
pub errors: Vec<std::collections::HashMap<String, serde_json::Value>>,
pub messages: Vec<std::collections::HashMap<String, serde_json::Value>>,
pub result: Vec<TeamsDevicesDeviceSettingsPolicy>,
pub result_info: Option<TeamsDevicesResultInfo>,
pub success: bool,
}
pub type TeamsDevicesDisableAutoFallback = bool;
#[derive(Debug, Clone, Default, Serialize, Deserialize, JsonHash)]
pub struct TeamsDevicesDiskEncryptionInputRequest {
#[serde(rename = "checkDisks")]
pub check_disks: Option<Vec<String>>,
#[serde(rename = "requireAll")]
pub require_all: Option<bool>,
}
#[derive(Debug, Clone, Default, Serialize, Deserialize, JsonHash)]
pub struct TeamsDevicesDomainJoinedInputRequest {
pub domain: Option<String>,
pub operating_system: String,
}
pub type TeamsDevicesEmail = String;
pub type TeamsDevicesEmptyBody = serde_json::Value;
pub type TeamsDevicesExclude = Vec<serde_json::Value>;
pub type TeamsDevicesExcludeOfficeIps = bool;
pub type TeamsDevicesExcludeRequest = Vec<serde_json::Value>;
pub type TeamsDevicesExcludeSplitTunnelWithAddress = super::shared::AddressDescriptionObject;
pub type TeamsDevicesExcludeSplitTunnelWithHost = super::shared::DescriptionHostObject;
pub type TeamsDevicesExpiration = String;
pub type TeamsDevicesExtendedKeyUsageEnum = String;
pub type TeamsDevicesFallbackDomain = super::shared::DescriptionDnsServerSuffixObject;
pub type TeamsDevicesFallbackDomains = Vec<TeamsDevicesFallbackDomain>;
#[derive(Debug, Clone, Default, Serialize, Deserialize, JsonHash)]
pub struct TeamsDevicesFileInputRequest {
pub exists: Option<bool>,
pub operating_system: String,
pub path: String,
pub sha256: Option<String>,
pub thumbprint: Option<String>,
}
#[derive(Debug, Clone, Default, Serialize, Deserialize, JsonHash)]
pub struct TeamsDevicesFirewallInputRequest {
pub enabled: bool,
pub operating_system: String,
}
pub type TeamsDevicesGatewayUniqueId = String;
pub type TeamsDevicesIdResponse =
super::shared::ApiEnvelope<std::collections::HashMap<String, serde_json::Value>>;
pub type TeamsDevicesInclude = Vec<serde_json::Value>;
pub type TeamsDevicesIncludeRequest = Vec<serde_json::Value>;
pub type TeamsDevicesIncludeSplitTunnelAddress = String;
pub type TeamsDevicesIncludeSplitTunnelDescription = String;
pub type TeamsDevicesIncludeSplitTunnelHost = String;
pub type TeamsDevicesIncludeSplitTunnelWithAddress = super::shared::AddressDescriptionObject;
pub type TeamsDevicesIncludeSplitTunnelWithHost = super::shared::DescriptionHostObject;
pub type TeamsDevicesInput = serde_json::Value;
pub type TeamsDevicesInterval = String;
#[derive(Debug, Clone, Default, Serialize, Deserialize, JsonHash)]
pub struct TeamsDevicesIntuneConfigRequest {
pub client_id: String,
pub client_secret: String,
pub customer_id: String,
}
pub type TeamsDevicesIntuneInputRequest = super::shared::ComplianceStatusConnectionIdObject;
pub type TeamsDevicesIp = String;
#[derive(Debug, Clone, Default, Serialize, Deserialize, JsonHash)]
pub struct TeamsDevicesIpProfile {
pub created_at: String,
pub description: Option<String>,
pub enabled: bool,
pub id: String,
#[serde(rename = "match")]
pub r#match: String,
pub name: String,
pub precedence: i64,
pub subnet_id: String,
pub updated_at: String,
}
#[derive(Debug, Clone, Default, Serialize, Deserialize, JsonHash)]
pub struct TeamsDevicesIpProfileCreateRequest {
pub description: Option<String>,
pub enabled: Option<bool>,
#[serde(rename = "match")]
pub r#match: String,
pub name: String,
pub precedence: i64,
pub subnet_id: String,
}
pub type TeamsDevicesIpProfileCreatedAt = String;
pub type TeamsDevicesIpProfileDescription = String;
pub type TeamsDevicesIpProfileEnabled = bool;
pub type TeamsDevicesIpProfileId = String;
pub type TeamsDevicesIpProfileMatch = String;
pub type TeamsDevicesIpProfileName = String;
pub type TeamsDevicesIpProfilePrecedence = i64;
pub type TeamsDevicesIpProfileSubnetId = String;
#[derive(Debug, Clone, Default, Serialize, Deserialize, JsonHash)]
pub struct TeamsDevicesIpProfileUpdateRequest {
pub description: Option<String>,
pub enabled: Option<bool>,
#[serde(rename = "match")]
pub r#match: Option<String>,
pub name: Option<String>,
pub precedence: Option<i64>,
pub subnet_id: Option<String>,
}
pub type TeamsDevicesIpProfileUpdatedAt = String;
#[derive(Debug, Clone, Default, Serialize, Deserialize, JsonHash)]
pub struct TeamsDevicesKolideConfigRequest {
pub client_id: String,
pub client_secret: String,
}
#[derive(Debug, Clone, Default, Serialize, Deserialize, JsonHash)]
pub struct TeamsDevicesKolideInputRequest {
pub connection_id: String,
#[serde(rename = "countOperator")]
pub count_operator: String,
pub issue_count: String,
}
pub type TeamsDevicesLanAllowMinutes = f64;
pub type TeamsDevicesLanAllowSubnetSize = f64;
pub type TeamsDevicesMatch = Vec<TeamsDevicesMatchItem>;
#[derive(Debug, Clone, Default, Serialize, Deserialize, JsonHash)]
pub struct TeamsDevicesMatchItem {
pub platform: Option<String>,
}
pub type TeamsDevicesMessages = Vec<std::collections::HashMap<String, serde_json::Value>>;
pub type TeamsDevicesName = String;
#[derive(Debug, Clone, Default, Serialize, Deserialize, JsonHash)]
pub struct TeamsDevicesOsVersionInputRequest {
pub operating_system: String,
pub operator: String,
pub os_distro_name: Option<String>,
pub os_distro_revision: Option<String>,
pub os_version_extra: Option<String>,
pub version: String,
}
#[derive(Debug, Clone, Default, Serialize, Deserialize, JsonHash)]
pub struct TeamsDevicesOverrideCodes {
pub disable_for_time: Option<serde_json::Value>,
}
pub type TeamsDevicesPaginationInfo = super::shared::TeamsDevicesPaginationInfoShape;
pub type TeamsDevicesPaths = Vec<String>;
#[derive(Debug, Clone, Default, Serialize, Deserialize, JsonHash)]
pub struct TeamsDevicesPhysicalDevice {
pub active_registrations: i64,
pub client_version: Option<String>,
pub created_at: String,
pub deleted_at: Option<String>,
pub device_type: Option<String>,
pub hardware_id: Option<String>,
pub id: String,
pub last_seen_at: Option<String>,
pub last_seen_registration: Option<serde_json::Value>,
pub last_seen_user: Option<serde_json::Value>,
pub mac_address: Option<String>,
pub manufacturer: Option<String>,
pub model: Option<String>,
pub name: String,
pub os_version: Option<String>,
pub os_version_extra: Option<String>,
pub public_ip: Option<String>,
pub serial_number: Option<String>,
pub updated_at: String,
}
pub type TeamsDevicesPlatform = String;
#[derive(Debug, Clone, Default, Serialize, Deserialize, JsonHash)]
pub struct TeamsDevicesPolicySummary {
pub default: bool,
pub deleted: bool,
pub id: String,
pub name: String,
pub updated_at: String,
}
pub type TeamsDevicesPrecedence = f64;
pub type TeamsDevicesRegisterInterfaceIpWithDns = bool;
#[derive(Debug, Clone, Default, Serialize, Deserialize, JsonHash)]
pub struct TeamsDevicesRegistration {
pub created_at: String,
pub deleted_at: Option<String>,
pub device: TeamsDevicesRegistrationDeviceDetails,
pub id: String,
pub key: String,
pub key_type: Option<String>,
pub last_seen_at: String,
pub policy: Option<TeamsDevicesPolicySummary>,
pub revoked_at: Option<String>,
pub tunnel_type: Option<String>,
pub updated_at: String,
pub user: Option<TeamsDevicesUser>,
}
#[derive(Debug, Clone, Default, Serialize, Deserialize, JsonHash)]
pub struct TeamsDevicesRegistrationDetails {
pub policy: Option<serde_json::Value>,
}
#[derive(Debug, Clone, Default, Serialize, Deserialize, JsonHash)]
pub struct TeamsDevicesRegistrationDeviceDetails {
pub client_version: Option<String>,
pub id: String,
pub name: String,
}
pub type TeamsDevicesRequireAll = bool;
#[derive(Debug, Clone, Default, Serialize, Deserialize, JsonHash)]
pub struct TeamsDevicesResponseCollection {
pub errors: Vec<std::collections::HashMap<String, serde_json::Value>>,
pub messages: Vec<std::collections::HashMap<String, serde_json::Value>>,
pub result: Vec<TeamsDevicesDevicePostureRules>,
pub result_info: Option<TeamsDevicesResultInfo>,
pub success: bool,
}
pub type TeamsDevicesResultInfo = super::shared::FirewallResultInfoShape;
pub type TeamsDevicesSccmVpnBoundarySupport = bool;
pub type TeamsDevicesSchedule = String;
pub type TeamsDevicesSchemasConfigRequest = serde_json::Value;
pub type TeamsDevicesSchemasConfigResponse = serde_json::Value;
pub type TeamsDevicesSchemasDescription = String;
pub type TeamsDevicesSchemasIdResponse = super::shared::ApiEnvelope<Option<serde_json::Value>>;
pub type TeamsDevicesSchemasMatch = String;
#[derive(Debug, Clone, Default, Serialize, Deserialize, JsonHash)]
pub struct TeamsDevicesSchemasResponseCollection {
pub errors: Vec<std::collections::HashMap<String, serde_json::Value>>,
pub messages: Vec<std::collections::HashMap<String, serde_json::Value>>,
pub result: Vec<TeamsDevicesDevicePostureIntegrations>,
pub result_info: Option<TeamsDevicesResultInfo>,
pub success: bool,
}
pub type TeamsDevicesSchemasSingleResponse =
super::shared::ApiEnvelope<TeamsDevicesDevicePostureIntegrations>;
pub type TeamsDevicesSchemasType = String;
pub type TeamsDevicesSchemasUuid = String;
pub type TeamsDevicesSentineloneInputRequest =
super::shared::TeamsDevicesApplicationInputRequestShape;
#[derive(Debug, Clone, Default, Serialize, Deserialize, JsonHash)]
pub struct TeamsDevicesSentineloneS2SConfigRequest {
pub api_url: String,
pub client_secret: String,
}
#[derive(Debug, Clone, Default, Serialize, Deserialize, JsonHash)]
pub struct TeamsDevicesSentineloneS2SInputRequest {
pub active_threats: Option<f64>,
pub connection_id: String,
pub infected: Option<bool>,
pub is_active: Option<bool>,
pub network_status: Option<String>,
pub operational_state: Option<String>,
pub operator: Option<String>,
}
#[derive(Debug, Clone, Default, Serialize, Deserialize, JsonHash)]
pub struct TeamsDevicesServiceModeV2 {
pub mode: Option<String>,
pub port: Option<f64>,
}
pub type TeamsDevicesSingleResponse = super::shared::ApiEnvelope<TeamsDevicesDevicePostureRules>;
pub type TeamsDevicesSplitTunnel = serde_json::Value;
pub type TeamsDevicesSplitTunnelAddress = String;
pub type TeamsDevicesSplitTunnelDescription = String;
pub type TeamsDevicesSplitTunnelHost = String;
pub type TeamsDevicesSplitTunnelInclude = serde_json::Value;
#[derive(Debug, Clone, Default, Serialize, Deserialize, JsonHash)]
pub struct TeamsDevicesSplitTunnelIncludeResponseCollection {
pub errors: Vec<std::collections::HashMap<String, serde_json::Value>>,
pub messages: Vec<std::collections::HashMap<String, serde_json::Value>>,
pub result: Vec<serde_json::Value>,
pub result_info: Option<TeamsDevicesResultInfo>,
pub success: bool,
}
pub type TeamsDevicesSplitTunnelResponseCollection =
TeamsDevicesSplitTunnelIncludeResponseCollection;
pub type TeamsDevicesSupportUrl = String;
pub type TeamsDevicesSwitchLocked = bool;
#[derive(Debug, Clone, Default, Serialize, Deserialize, JsonHash)]
pub struct TeamsDevicesTaniumConfigRequest {
pub access_client_id: Option<String>,
pub access_client_secret: Option<String>,
pub api_url: String,
pub client_secret: String,
}
#[derive(Debug, Clone, Default, Serialize, Deserialize, JsonHash)]
pub struct TeamsDevicesTaniumInputRequest {
pub connection_id: String,
pub eid_last_seen: Option<String>,
pub operator: Option<String>,
pub risk_level: Option<String>,
#[serde(rename = "scoreOperator")]
pub score_operator: Option<String>,
pub total_score: Option<f64>,
}
pub type TeamsDevicesTargetDexTest = super::shared::IdNameObject;
pub type TeamsDevicesTlsConfigRequest = super::shared::Sha256TlsSockaddrObject;
pub type TeamsDevicesTlsConfigResponse = super::shared::Sha256TlsSockaddrObject;
pub type TeamsDevicesTrustStores = Vec<String>;
pub type TeamsDevicesTrustStoresEnum = String;
pub type TeamsDevicesTunnelProtocol = String;
pub type TeamsDevicesType = String;
#[derive(Debug, Clone, Default, Serialize, Deserialize, JsonHash)]
pub struct TeamsDevicesUniqueClientIdInputRequest {
pub id: String,
pub operating_system: String,
}
#[derive(Debug, Clone, Default, Serialize, Deserialize, JsonHash)]
pub struct TeamsDevicesUptycsConfigRequest {
pub api_url: String,
pub client_key: String,
pub client_secret: String,
pub customer_id: String,
}
#[derive(Debug, Clone, Default, Serialize, Deserialize, JsonHash)]
pub struct TeamsDevicesUser {
pub email: Option<String>,
pub id: Option<String>,
pub name: Option<String>,
}
pub type TeamsDevicesUuid = String;
pub type TeamsDevicesV4ResponseMessage = super::shared::CodeMessageObject2;
#[derive(Debug, Clone, Default, Serialize, Deserialize, JsonHash)]
pub struct TeamsDevicesWorkspaceOneConfigRequest {
pub api_url: String,
pub auth_url: String,
pub client_id: String,
pub client_secret: String,
}
#[derive(Debug, Clone, Default, Serialize, Deserialize, JsonHash)]
pub struct TeamsDevicesWorkspaceOneConfigResponse {
pub api_url: String,
pub auth_url: String,
pub client_id: String,
}
pub type TeamsDevicesWorkspaceOneInputRequest = super::shared::ComplianceStatusConnectionIdObject;
#[derive(Debug, Clone, Default, Serialize, Deserialize, JsonHash)]
pub struct TeamsDevicesZeroTrustAccountDeviceSettings {
pub disable_for_time: Option<f64>,
pub external_emergency_signal_enabled: Option<bool>,
pub external_emergency_signal_fingerprint: Option<String>,
pub external_emergency_signal_interval: Option<String>,
pub external_emergency_signal_url: Option<String>,
pub gateway_proxy_enabled: Option<bool>,
pub gateway_udp_proxy_enabled: Option<bool>,
pub root_certificate_installation_enabled: Option<bool>,
pub use_zt_virtual_ip: Option<bool>,
}
pub type TeamsDevicesZeroTrustAccountDeviceSettingsResponse =
super::shared::ApiEnvelope<TeamsDevicesZeroTrustAccountDeviceSettings>;
#[derive(Debug, Clone, Default, Serialize, Deserialize, JsonHash)]
pub struct TunnelApiResponseCollection {
pub errors: Vec<std::collections::HashMap<String, serde_json::Value>>,
pub messages: Vec<std::collections::HashMap<String, serde_json::Value>>,
pub result: Option<Vec<serde_json::Value>>,
pub result_info: Option<TunnelResultInfo>,
pub success: bool,
}
pub type TunnelMessages = Vec<std::collections::HashMap<String, serde_json::Value>>;
pub type TunnelResultInfo = super::shared::FirewallResultInfoShape;
#[derive(Debug, Clone, Default, Serialize, Deserialize, JsonHash)]
pub struct TunnelSubnetResponseCollection {
pub errors: Vec<std::collections::HashMap<String, serde_json::Value>>,
pub messages: Vec<std::collections::HashMap<String, serde_json::Value>>,
pub result: Vec<TunnelSubnet>,
pub result_info: Option<TunnelResultInfo>,
pub success: bool,
}
pub type UnrevokeRegistrationsResponse = DeleteRegistrationsResponse;
pub type UpdateIpProfileResponse = CreateIpProfileResponse;
#[derive(Debug, Clone, Default, Serialize, Deserialize, JsonHash)]
pub struct ZeroTrustApplicationsReviewStatusUpdateRequest {
pub approved_apps: Vec<i64>,
pub in_review_apps: Vec<i64>,
pub unapproved_apps: Vec<i64>,
}
pub type ZeroTrustGatewayAction = String;
pub type ZeroTrustGatewayActivityLogSettings = super::shared::EnabledObject2;
#[derive(Debug, Clone, Default, Serialize, Deserialize, JsonHash)]
pub struct ZeroTrustGatewayAntiVirusSettings {
pub enabled_download_phase: Option<bool>,
pub enabled_upload_phase: Option<bool>,
pub fail_closed: Option<bool>,
pub notification_settings: Option<ZeroTrustGatewayNotificationSettings>,
}
#[derive(Debug, Clone, Default, Serialize, Deserialize, JsonHash)]
pub struct ZeroTrustGatewayApiResponseCollection {
pub errors: Vec<std::collections::HashMap<String, serde_json::Value>>,
pub messages: Vec<std::collections::HashMap<String, serde_json::Value>>,
pub result_info: Option<ZeroTrustGatewayResultInfo>,
pub success: bool,
}
pub type ZeroTrustGatewayApiResponseCommon = super::shared::ErrorsMessagesSuccessObject;
pub type ZeroTrustGatewayApiResponseSingle = super::shared::ErrorsMessagesSuccessObject;
pub type ZeroTrustGatewayAppId = i64;
pub type ZeroTrustGatewayAppTypeId = i64;
pub type ZeroTrustGatewayAppTypes = serde_json::Value;
pub type ZeroTrustGatewayAppTypesComponentsSchemasName = String;
#[derive(Debug, Clone, Default, Serialize, Deserialize, JsonHash)]
pub struct ZeroTrustGatewayAppTypesComponentsSchemasResponseCollection {
pub errors: Vec<std::collections::HashMap<String, serde_json::Value>>,
pub messages: Vec<std::collections::HashMap<String, serde_json::Value>>,
pub result: Option<Vec<serde_json::Value>>,
pub result_info: Option<ZeroTrustGatewayResultInfo>,
pub success: bool,
}
#[derive(Debug, Clone, Default, Serialize, Deserialize, JsonHash)]
pub struct ZeroTrustGatewayApplication {
pub application_type_id: Option<i64>,
pub created_at: Option<String>,
pub id: Option<i64>,
pub name: Option<String>,
}
#[derive(Debug, Clone, Default, Serialize, Deserialize, JsonHash)]
pub struct ZeroTrustGatewayApplicationType {
pub created_at: Option<String>,
pub description: Option<String>,
pub id: Option<i64>,
pub name: Option<String>,
}
pub type ZeroTrustGatewayApplicationsReviewStatusResponse =
super::shared::ApiEnvelope<Option<ZeroTrustGatewayApplicationsReviewStatusResponseContent>>;
#[derive(Debug, Clone, Default, Serialize, Deserialize, JsonHash)]
pub struct ZeroTrustGatewayApplicationsReviewStatusResponseContent {
pub approved_apps: Option<Vec<i64>>,
pub created_at: Option<String>,
pub in_review_apps: Option<Vec<i64>>,
pub unapproved_apps: Option<Vec<i64>>,
pub updated_at: Option<String>,
}
pub type ZeroTrustGatewayApprovedApps = Vec<i64>;
pub type ZeroTrustGatewayAuditSshSettingsComponentsSchemasSingleResponse =
super::shared::ApiEnvelope<Option<ZeroTrustGatewaySettings>>;
pub type ZeroTrustGatewayAuditSshSettingsComponentsSchemasUuid = String;
pub type ZeroTrustGatewayBeta = bool;
pub type ZeroTrustGatewayBindingStatus = String;
#[derive(Debug, Clone, Default, Serialize, Deserialize, JsonHash)]
pub struct ZeroTrustGatewayBlockPageSettings {
pub background_color: Option<String>,
pub enabled: Option<bool>,
pub footer_text: Option<String>,
pub header_text: Option<String>,
pub include_context: Option<bool>,
pub logo_path: Option<String>,
pub mailto_address: Option<String>,
pub mailto_subject: Option<String>,
pub mode: Option<String>,
pub name: Option<String>,
pub read_only: Option<bool>,
pub source_account: Option<String>,
pub suppress_footer: Option<bool>,
pub target_uri: Option<String>,
pub version: Option<i64>,
}
#[derive(Debug, Clone, Default, Serialize, Deserialize, JsonHash)]
pub struct ZeroTrustGatewayBodyScanningSettings {
pub inspection_mode: Option<String>,
}
#[derive(Debug, Clone, Default, Serialize, Deserialize, JsonHash)]
pub struct ZeroTrustGatewayBrowserIsolationSettings {
pub non_identity_enabled: Option<bool>,
pub url_browser_isolation_enabled: Option<bool>,
}
#[derive(Debug, Clone, Default, Serialize, Deserialize, JsonHash)]
pub struct ZeroTrustGatewayCategories {
pub beta: Option<bool>,
pub class: Option<String>,
pub description: Option<String>,
pub id: Option<i64>,
pub name: Option<String>,
pub subcategories: Option<Vec<ZeroTrustGatewaySubcategory>>,
}
pub type ZeroTrustGatewayCategoriesComponentsSchemasName = String;
#[derive(Debug, Clone, Default, Serialize, Deserialize, JsonHash)]
pub struct ZeroTrustGatewayCategoriesComponentsSchemasResponseCollection {
pub errors: Vec<std::collections::HashMap<String, serde_json::Value>>,
pub messages: Vec<std::collections::HashMap<String, serde_json::Value>>,
pub result: Option<Vec<ZeroTrustGatewayCategories>>,
pub result_info: Option<ZeroTrustGatewayResultInfo>,
pub success: bool,
}
pub type ZeroTrustGatewayCertificateSettings = super::shared::IdObject2;
#[derive(Debug, Clone, Default, Serialize, Deserialize, JsonHash)]
pub struct ZeroTrustGatewayCertificates {
pub binding_status: Option<String>,
pub certificate: Option<String>,
pub created_at: Option<String>,
pub expires_on: Option<String>,
pub fingerprint: Option<String>,
pub id: Option<String>,
pub in_use: Option<bool>,
pub issuer_org: Option<String>,
pub issuer_raw: Option<String>,
#[serde(rename = "type")]
pub r#type: Option<String>,
pub updated_at: Option<String>,
pub uploaded_on: Option<String>,
}
pub type ZeroTrustGatewayCfAccountId = String;
pub type ZeroTrustGatewayClass = String;
pub type ZeroTrustGatewayClientDefault = bool;
pub type ZeroTrustGatewayComponentsSchemasDescription = String;
pub type ZeroTrustGatewayComponentsSchemasName = String;
#[derive(Debug, Clone, Default, Serialize, Deserialize, JsonHash)]
pub struct ZeroTrustGatewayComponentsSchemasResponseCollection {
pub errors: Vec<std::collections::HashMap<String, serde_json::Value>>,
pub messages: Vec<std::collections::HashMap<String, serde_json::Value>>,
pub result: Option<Vec<ZeroTrustGatewayLocations>>,
pub result_info: Option<ZeroTrustGatewayResultInfo>,
pub success: bool,
}
pub type ZeroTrustGatewayComponentsSchemasSingleResponse =
super::shared::ApiEnvelope<Option<ZeroTrustGatewayRules>>;
pub type ZeroTrustGatewayComponentsSchemasUuid = String;
pub type ZeroTrustGatewayContents = String;
pub type ZeroTrustGatewayCount = f64;
#[derive(Debug, Clone, Default, Serialize, Deserialize, JsonHash)]
pub struct ZeroTrustGatewayCustomCertificateSettings {
pub binding_status: Option<String>,
pub enabled: Option<bool>,
pub id: Option<String>,
pub updated_at: Option<String>,
}
pub type ZeroTrustGatewayDeletedAt = String;
pub type ZeroTrustGatewayDescription = String;
pub type ZeroTrustGatewayDescriptionItem = String;
pub type ZeroTrustGatewayDevicePosture = String;
pub type ZeroTrustGatewayDnsDestinationIpsIdRead = String;
pub type ZeroTrustGatewayDnsDestinationIpsIdWrite = String;
pub type ZeroTrustGatewayDnsDestinationIpv6BlockId = String;
pub type ZeroTrustGatewayDnsResolverSettingsV4 =
super::shared::ZeroTrustGatewayDnsResolverSettingsV4Shape;
pub type ZeroTrustGatewayDnsResolverSettingsV6 =
super::shared::ZeroTrustGatewayDnsResolverSettingsV4Shape;
#[derive(Debug, Clone, Default, Serialize, Deserialize, JsonHash)]
pub struct ZeroTrustGatewayDohEndpoint {
pub enabled: Option<bool>,
pub networks: Option<Vec<ZeroTrustGatewayIpNetwork>>,
pub require_token: Option<bool>,
}
#[derive(Debug, Clone, Default, Serialize, Deserialize, JsonHash)]
pub struct ZeroTrustGatewayDotEndpoint {
pub enabled: Option<bool>,
pub networks: Option<Vec<ZeroTrustGatewayIpNetwork>>,
}
pub type ZeroTrustGatewayEcsSupport = bool;
pub type ZeroTrustGatewayEmptyResponse = super::shared::ApiEnvelope<Option<serde_json::Value>>;
pub type ZeroTrustGatewayEnabled = bool;
pub type ZeroTrustGatewayEnabledDownloadPhase = bool;
pub type ZeroTrustGatewayEnabledUploadPhase = bool;
#[derive(Debug, Clone, Default, Serialize, Deserialize, JsonHash)]
pub struct ZeroTrustGatewayEndpoints {
pub doh: ZeroTrustGatewayDohEndpoint,
pub dot: ZeroTrustGatewayDotEndpoint,
pub ipv4: ZeroTrustGatewayIpv4Endpoint,
pub ipv6: ZeroTrustGatewayIpv6Endpoint,
}
#[derive(Debug, Clone, Default, Serialize, Deserialize, JsonHash)]
pub struct ZeroTrustGatewayExpiration {
pub duration: Option<i64>,
pub expired: Option<bool>,
pub expires_at: serde_json::Value,
}
#[derive(Debug, Clone, Default, Serialize, Deserialize, JsonHash)]
pub struct ZeroTrustGatewayExtendedEmailMatching {
pub enabled: Option<bool>,
pub read_only: Option<bool>,
pub source_account: Option<String>,
pub version: Option<i64>,
}
pub type ZeroTrustGatewayFailClosed = bool;
pub type ZeroTrustGatewayFilters = Vec<String>;
#[derive(Debug, Clone, Default, Serialize, Deserialize, JsonHash)]
pub struct ZeroTrustGatewayFipsSettings {
pub tls: Option<bool>,
}
pub type ZeroTrustGatewayGatewayAccount =
super::shared::ApiEnvelope<Option<std::collections::HashMap<String, serde_json::Value>>>;
pub type ZeroTrustGatewayGatewayAccountConfig =
super::shared::ApiEnvelope<Option<serde_json::Value>>;
#[derive(Debug, Clone, Default, Serialize, Deserialize, JsonHash)]
pub struct ZeroTrustGatewayGatewayAccountLoggingSettings {
pub redact_pii: Option<bool>,
pub settings_by_rule_type: Option<std::collections::HashMap<String, serde_json::Value>>,
}
pub type ZeroTrustGatewayGatewayAccountLoggingSettingsResponse =
super::shared::ApiEnvelope<Option<ZeroTrustGatewayGatewayAccountLoggingSettings>>;
#[derive(Debug, Clone, Default, Serialize, Deserialize, JsonHash)]
pub struct ZeroTrustGatewayGatewayAccountSettings {
pub settings: Option<std::collections::HashMap<String, serde_json::Value>>,
}
pub type ZeroTrustGatewayGatewayTag = String;
#[derive(Debug, Clone, Default, Serialize, Deserialize, JsonHash)]
pub struct ZeroTrustGatewayGenerateCertRequest {
pub validity_period_days: Option<i64>,
}
pub type ZeroTrustGatewayHostSelectorSettings = super::shared::EnabledObject2;
pub type ZeroTrustGatewayId = i64;
pub type ZeroTrustGatewayIdentity = String;
pub type ZeroTrustGatewayInReviewApps = Vec<i64>;
#[derive(Debug, Clone, Default, Serialize, Deserialize, JsonHash)]
pub struct ZeroTrustGatewayInspectionSettings {
pub mode: Option<String>,
}
pub type ZeroTrustGatewayIp = String;
pub type ZeroTrustGatewayIpNetwork = super::shared::NetworkObject;
pub type ZeroTrustGatewayIpNetworks = Vec<ZeroTrustGatewayIpNetwork>;
pub type ZeroTrustGatewayIps = Vec<String>;
pub type ZeroTrustGatewayIpv4Endpoint = super::shared::EnabledObject2;
pub type ZeroTrustGatewayIpv4Network = super::shared::NetworkObject;
pub type ZeroTrustGatewayIpv4Networks = Vec<ZeroTrustGatewayIpv4Network>;
#[derive(Debug, Clone, Default, Serialize, Deserialize, JsonHash)]
pub struct ZeroTrustGatewayIpv6Endpoint {
pub enabled: Option<bool>,
pub networks: Option<Vec<ZeroTrustGatewayIpv6Network>>,
}
pub type ZeroTrustGatewayIpv6Network = super::shared::NetworkObject;
pub type ZeroTrustGatewayIpv6Networks = Vec<ZeroTrustGatewayIpv6Network>;
pub type ZeroTrustGatewayItems = Vec<std::collections::HashMap<String, serde_json::Value>>;
pub type ZeroTrustGatewayItemsInput = Vec<std::collections::HashMap<String, serde_json::Value>>;
pub type ZeroTrustGatewayListItemResponseCollection =
super::shared::ApiEnvelopeErrorsMessagesResultInfoSuccess<
Option<Vec<Vec<std::collections::HashMap<String, serde_json::Value>>>>,
>;
pub type ZeroTrustGatewayListSingleResponse =
super::shared::ApiEnvelope<Option<ZeroTrustGatewayLists>>;
#[derive(Debug, Clone, Default, Serialize, Deserialize, JsonHash)]
pub struct ZeroTrustGatewayLists {
pub count: Option<f64>,
pub created_at: Option<String>,
pub description: Option<String>,
pub id: Option<String>,
pub items: Option<Vec<std::collections::HashMap<String, serde_json::Value>>>,
pub name: Option<String>,
#[serde(rename = "type")]
pub r#type: Option<String>,
pub updated_at: Option<String>,
}
#[derive(Debug, Clone, Default, Serialize, Deserialize, JsonHash)]
pub struct ZeroTrustGatewayLocations {
pub client_default: Option<bool>,
pub created_at: Option<String>,
pub dns_destination_ips_id: Option<String>,
pub dns_destination_ipv6_block_id: Option<String>,
pub doh_subdomain: Option<String>,
pub ecs_support: Option<bool>,
pub endpoints: Option<ZeroTrustGatewayEndpoints>,
pub id: Option<String>,
pub ip: Option<String>,
pub ipv4_destination: Option<String>,
pub ipv4_destination_backup: Option<String>,
pub name: Option<String>,
pub networks: Option<Vec<ZeroTrustGatewayIpv4Network>>,
pub updated_at: Option<String>,
}
#[derive(Debug, Clone, Default, Serialize, Deserialize, JsonHash)]
pub struct ZeroTrustGatewayLocationsCreateZeroTrustGatewayLocationRequest {
pub client_default: Option<bool>,
pub dns_destination_ips_id: Option<String>,
pub ecs_support: Option<bool>,
pub endpoints: Option<ZeroTrustGatewayEndpoints>,
pub name: String,
pub networks: Option<Vec<ZeroTrustGatewayIpv4Network>>,
}
pub type ZeroTrustGatewayLocationsUpdateZeroTrustGatewayLocationRequest =
ZeroTrustGatewayLocationsCreateZeroTrustGatewayLocationRequest;
pub type ZeroTrustGatewayMessages = Vec<std::collections::HashMap<String, serde_json::Value>>;
pub type ZeroTrustGatewayName = String;
#[derive(Debug, Clone, Default, Serialize, Deserialize, JsonHash)]
pub struct ZeroTrustGatewayNotificationSettings {
pub enabled: Option<bool>,
pub include_context: Option<bool>,
pub msg: Option<String>,
pub support_url: Option<String>,
}
#[derive(Debug, Clone, Default, Serialize, Deserialize, JsonHash)]
pub struct ZeroTrustGatewayPacfile {
pub contents: Option<String>,
pub created_at: Option<String>,
pub description: Option<String>,
pub id: Option<String>,
pub name: Option<String>,
pub slug: Option<String>,
pub updated_at: Option<String>,
pub url: Option<String>,
}
pub type ZeroTrustGatewayPacfilesComponentsSchemasDescription = String;
pub type ZeroTrustGatewayPacfilesComponentsSchemasName = String;
#[derive(Debug, Clone, Default, Serialize, Deserialize, JsonHash)]
pub struct ZeroTrustGatewayPacfilesComponentsSchemasResponseCollection {
pub errors: Vec<std::collections::HashMap<String, serde_json::Value>>,
pub messages: Vec<std::collections::HashMap<String, serde_json::Value>>,
pub result: Option<Vec<std::collections::HashMap<String, serde_json::Value>>>,
pub result_info: Option<ZeroTrustGatewayResultInfo>,
pub success: bool,
}
pub type ZeroTrustGatewayPacfilesComponentsSchemasSingleResponse =
super::shared::ApiEnvelope<Option<ZeroTrustGatewayPacfile>>;
#[derive(Debug, Clone, Default, Serialize, Deserialize, JsonHash)]
pub struct ZeroTrustGatewayPacfilesCreatePacfileRequest {
pub contents: String,
pub description: Option<String>,
pub name: String,
pub slug: Option<String>,
}
#[derive(Debug, Clone, Default, Serialize, Deserialize, JsonHash)]
pub struct ZeroTrustGatewayPacfilesUpdateRequest {
pub contents: String,
pub description: String,
pub name: String,
}
pub type ZeroTrustGatewayPrecedence = i64;
pub type ZeroTrustGatewayProtocolDetection = super::shared::EnabledObject2;
pub type ZeroTrustGatewayProviderName = String;
#[derive(Debug, Clone, Default, Serialize, Deserialize, JsonHash)]
pub struct ZeroTrustGatewayProxyEndpointIdentity {
pub created_at: Option<String>,
pub id: Option<String>,
pub kind: String,
pub name: String,
pub subdomain: Option<String>,
pub updated_at: Option<String>,
}
#[derive(Debug, Clone, Default, Serialize, Deserialize, JsonHash)]
pub struct ZeroTrustGatewayProxyEndpointIdentityCreate {
pub kind: String,
pub name: String,
}
#[derive(Debug, Clone, Default, Serialize, Deserialize, JsonHash)]
pub struct ZeroTrustGatewayProxyEndpointIp {
pub created_at: Option<String>,
pub id: Option<String>,
pub ips: Vec<String>,
pub kind: Option<String>,
pub name: String,
pub subdomain: Option<String>,
pub updated_at: Option<String>,
}
#[derive(Debug, Clone, Default, Serialize, Deserialize, JsonHash)]
pub struct ZeroTrustGatewayProxyEndpointIpCreate {
pub kind: Option<String>,
pub name: String,
}
pub type ZeroTrustGatewayProxyEndpoints = serde_json::Value;
pub type ZeroTrustGatewayProxyEndpointsComponentsSchemasName = String;
pub type ZeroTrustGatewayProxyEndpointsComponentsSchemasResponseCollection =
ZeroTrustGatewayAppTypesComponentsSchemasResponseCollection;
pub type ZeroTrustGatewayProxyEndpointsComponentsSchemasSingleResponse =
super::shared::ApiEnvelope<Option<serde_json::Value>>;
#[derive(Debug, Clone, Default, Serialize, Deserialize, JsonHash)]
pub struct ZeroTrustGatewayProxyEndpointsCreateProxyEndpointRequest {
pub kind: Option<String>,
}
#[derive(Debug, Clone, Default, Serialize, Deserialize, JsonHash)]
pub struct ZeroTrustGatewayProxyEndpointsUpdateProxyEndpointRequest {
pub ips: Option<Vec<String>>,
pub name: Option<String>,
}
pub type ZeroTrustGatewayPublicKey = String;
pub type ZeroTrustGatewayReadOnly = bool;
pub type ZeroTrustGatewayReadOnlyTimestamp = String;
#[derive(Debug, Clone, Default, Serialize, Deserialize, JsonHash)]
pub struct ZeroTrustGatewayResponseCollection {
pub errors: Vec<std::collections::HashMap<String, serde_json::Value>>,
pub messages: Vec<std::collections::HashMap<String, serde_json::Value>>,
pub result: Option<Vec<ZeroTrustGatewayCertificates>>,
pub result_info: Option<ZeroTrustGatewayResultInfo>,
pub success: bool,
}
pub type ZeroTrustGatewayResultInfo = super::shared::FirewallResultInfoShape;
#[derive(Debug, Clone, Default, Serialize, Deserialize, JsonHash)]
pub struct ZeroTrustGatewayRuleSettings {
pub add_headers: Option<serde_json::Value>,
pub allow_child_bypass: Option<bool>,
pub audit_ssh: Option<std::collections::HashMap<String, serde_json::Value>>,
pub biso_admin_controls: Option<std::collections::HashMap<String, serde_json::Value>>,
pub block_page: Option<std::collections::HashMap<String, serde_json::Value>>,
pub block_page_enabled: Option<bool>,
pub block_reason: Option<String>,
pub bypass_parent_rule: Option<bool>,
pub check_session: Option<std::collections::HashMap<String, serde_json::Value>>,
pub dns_resolvers: Option<std::collections::HashMap<String, serde_json::Value>>,
pub egress: Option<std::collections::HashMap<String, serde_json::Value>>,
pub forensic_copy: Option<std::collections::HashMap<String, serde_json::Value>>,
pub ignore_cname_category_matches: Option<bool>,
pub insecure_disable_dnssec_validation: Option<bool>,
pub ip_categories: Option<bool>,
pub ip_indicator_feeds: Option<bool>,
pub l4override: Option<std::collections::HashMap<String, serde_json::Value>>,
pub notification_settings: Option<std::collections::HashMap<String, serde_json::Value>>,
pub override_host: Option<String>,
pub override_ips: Option<Vec<String>>,
pub payload_log: Option<std::collections::HashMap<String, serde_json::Value>>,
pub quarantine: Option<std::collections::HashMap<String, serde_json::Value>>,
pub redirect: Option<std::collections::HashMap<String, serde_json::Value>>,
pub resolve_dns_internally: Option<std::collections::HashMap<String, serde_json::Value>>,
pub resolve_dns_through_cloudflare: Option<bool>,
pub untrusted_cert: Option<std::collections::HashMap<String, serde_json::Value>>,
}
#[derive(Debug, Clone, Default, Serialize, Deserialize, JsonHash)]
pub struct ZeroTrustGatewayRules {
pub action: String,
pub created_at: Option<String>,
pub deleted_at: Option<String>,
pub description: Option<String>,
pub device_posture: Option<String>,
pub enabled: bool,
pub expiration: Option<ZeroTrustGatewayExpiration>,
pub filters: Vec<String>,
pub id: Option<String>,
pub identity: Option<String>,
pub name: String,
pub precedence: i64,
pub read_only: Option<bool>,
pub rule_settings: Option<ZeroTrustGatewayRuleSettings>,
pub schedule: Option<ZeroTrustGatewaySchedule>,
pub sharable: Option<bool>,
pub source_account: Option<String>,
pub traffic: String,
pub updated_at: Option<String>,
pub version: Option<i64>,
pub warning_status: Option<String>,
}
#[derive(Debug, Clone, Default, Serialize, Deserialize, JsonHash)]
pub struct ZeroTrustGatewayRulesComponentsSchemasResponseCollection {
pub errors: Vec<std::collections::HashMap<String, serde_json::Value>>,
pub messages: Vec<std::collections::HashMap<String, serde_json::Value>>,
pub result: Option<Vec<ZeroTrustGatewayRules>>,
pub result_info: Option<ZeroTrustGatewayResultInfo>,
pub success: bool,
}
#[derive(Debug, Clone, Default, Serialize, Deserialize, JsonHash)]
pub struct ZeroTrustGatewayRulesCreateZeroTrustGatewayRuleRequest {
pub action: String,
pub description: Option<String>,
pub device_posture: Option<String>,
pub enabled: Option<bool>,
pub expiration: Option<ZeroTrustGatewayExpiration>,
pub filters: Option<Vec<String>>,
pub identity: Option<String>,
pub name: String,
pub precedence: Option<i64>,
pub rule_settings: Option<ZeroTrustGatewayRuleSettings>,
pub schedule: Option<ZeroTrustGatewaySchedule>,
pub traffic: Option<String>,
}
pub type ZeroTrustGatewayRulesUpdateZeroTrustGatewayRuleRequest =
ZeroTrustGatewayRulesCreateZeroTrustGatewayRuleRequest;
#[derive(Debug, Clone, Default, Serialize, Deserialize, JsonHash)]
pub struct ZeroTrustGatewaySandbox {
pub enabled: Option<bool>,
pub fallback_action: Option<String>,
}
#[derive(Debug, Clone, Default, Serialize, Deserialize, JsonHash)]
pub struct ZeroTrustGatewaySchedule {
pub fri: Option<String>,
pub mon: Option<String>,
pub sat: Option<String>,
pub sun: Option<String>,
pub thu: Option<String>,
pub time_zone: Option<String>,
pub tue: Option<String>,
pub wed: Option<String>,
}
pub type ZeroTrustGatewaySchemasDescription = String;
pub type ZeroTrustGatewaySchemasName = String;
#[derive(Debug, Clone, Default, Serialize, Deserialize, JsonHash)]
pub struct ZeroTrustGatewaySchemasResponseCollection {
pub errors: Vec<std::collections::HashMap<String, serde_json::Value>>,
pub messages: Vec<std::collections::HashMap<String, serde_json::Value>>,
pub result: Option<Vec<ZeroTrustGatewayLists>>,
pub result_info: Option<ZeroTrustGatewayResultInfo>,
pub success: bool,
}
pub type ZeroTrustGatewaySchemasSingleResponse =
super::shared::ApiEnvelope<Option<ZeroTrustGatewayLocations>>;
pub type ZeroTrustGatewaySchemasSubdomain = String;
pub type ZeroTrustGatewaySchemasType = String;
pub type ZeroTrustGatewaySchemasUuid = String;
#[derive(Debug, Clone, Default, Serialize, Deserialize, JsonHash)]
pub struct ZeroTrustGatewaySettings {
pub created_at: Option<String>,
pub public_key: Option<String>,
pub seed_id: Option<String>,
pub updated_at: Option<String>,
}
pub type ZeroTrustGatewaySharable = bool;
pub type ZeroTrustGatewaySingleResponse =
super::shared::ApiEnvelope<Option<ZeroTrustGatewayCertificates>>;
pub type ZeroTrustGatewaySingleResponseWithListItems =
super::shared::ApiEnvelope<Option<std::collections::HashMap<String, serde_json::Value>>>;
pub type ZeroTrustGatewaySlug = String;
pub type ZeroTrustGatewaySourceAccount = String;
#[derive(Debug, Clone, Default, Serialize, Deserialize, JsonHash)]
pub struct ZeroTrustGatewaySubcategory {
pub beta: Option<bool>,
pub class: Option<String>,
pub description: Option<String>,
pub id: Option<i64>,
pub name: Option<String>,
}
pub type ZeroTrustGatewaySubdomain = String;
pub type ZeroTrustGatewayTimestamp = String;
pub type ZeroTrustGatewayTlsSettings = super::shared::EnabledObject2;
pub type ZeroTrustGatewayTraffic = String;
pub type ZeroTrustGatewayType = String;
pub type ZeroTrustGatewayUnapprovedApps = Vec<i64>;
pub type ZeroTrustGatewayUrl = String;
pub type ZeroTrustGatewayUuid = String;
pub type ZeroTrustGatewayValue = String;
pub type ZeroTrustGatewayVersion = i64;
pub type ZeroTrustGatewayWarningStatus = String;
#[derive(Debug, Clone, Default, Serialize, Deserialize, JsonHash)]
pub struct ZeroTrustListsCreateZeroTrustListRequest {
pub description: Option<String>,
pub items: Option<Vec<std::collections::HashMap<String, serde_json::Value>>>,
pub name: String,
#[serde(rename = "type")]
pub r#type: String,
}
#[derive(Debug, Clone, Default, Serialize, Deserialize, JsonHash)]
pub struct ZeroTrustListsPatchZeroTrustListRequest {
pub append: Option<Vec<std::collections::HashMap<String, serde_json::Value>>>,
pub remove: Option<Vec<String>>,
}
#[derive(Debug, Clone, Default, Serialize, Deserialize, JsonHash)]
pub struct ZeroTrustListsUpdateZeroTrustListRequest {
pub description: Option<String>,
pub items: Option<Vec<std::collections::HashMap<String, serde_json::Value>>>,
pub name: String,
}
#[derive(Debug, Clone, Default, Serialize, Deserialize, JsonHash)]
pub struct ZeroTrustNetworksSubnetUpdateCloudflareSourceRequest {
pub comment: Option<String>,
pub name: Option<String>,
pub network: Option<String>,
}
#[derive(Debug, Clone, Default, Serialize, Deserialize, JsonHash)]
pub struct ZeroTrustUpdateAuditSshSettingsRequest {
pub public_key: String,
}
#[derive(Debug, Clone, Default, Serialize, JsonHash)]
pub struct ListIpProfilesArgs {
pub account_id: String,
pub per_page: Option<String>,
}
#[derive(Debug, Clone, Default, Serialize, JsonHash)]
pub struct CreateIpProfileArgs {
pub account_id: String,
pub body: TeamsDevicesIpProfileCreateRequest,
}
pub type GetIpProfileArgs = super::shared::AccountIdProfileIdArgs;
#[derive(Debug, Clone, Default, Serialize, JsonHash)]
pub struct UpdateIpProfileArgs {
pub account_id: String,
pub profile_id: String,
pub body: TeamsDevicesIpProfileUpdateRequest,
}
pub type DeleteIpProfileArgs = super::shared::AccountIdProfileIdArgs;
pub type DeviceManagedNetworksListDeviceManagedNetworksArgs = super::shared::AccountIdArgs;
#[derive(Debug, Clone, Default, Serialize, JsonHash)]
pub struct DeviceManagedNetworksCreateDeviceManagedNetworkArgs {
pub account_id: String,
pub body: DeviceManagedNetworksCreateDeviceManagedNetworkRequest,
}
pub type DeviceManagedNetworksDeviceManagedNetworkDetailsArgs =
super::shared::NetworkIdAccountIdArgs;
#[derive(Debug, Clone, Default, Serialize, JsonHash)]
pub struct DeviceManagedNetworksUpdateDeviceManagedNetworkArgs {
pub network_id: String,
pub account_id: String,
pub body: DeviceManagedNetworksUpdateDeviceManagedNetworkRequest,
}
pub type DeviceManagedNetworksDeleteDeviceManagedNetworkArgs =
super::shared::NetworkIdAccountIdArgs;
#[derive(Debug, Clone, Default, Serialize, JsonHash)]
pub struct ListDevicesArgs {
pub account_id: String,
pub cursor: Option<String>,
pub sort_by: Option<String>,
pub sort_order: Option<String>,
pub last_seen_user_email: Option<String>,
pub seen_after: Option<String>,
pub seen_before: Option<String>,
pub per_page: Option<String>,
pub search: Option<String>,
pub active_registrations: Option<String>,
pub id: Vec<String>,
pub include: Option<String>,
}
#[derive(Debug, Clone, Default, Serialize, JsonHash)]
pub struct GetDeviceArgs {
pub device_id: String,
pub account_id: String,
pub include: Option<String>,
}
#[derive(Debug, Clone, Default, Serialize, JsonHash)]
pub struct DeleteDeviceArgs {
pub device_id: String,
pub account_id: String,
}
#[derive(Debug, Clone, Default, Serialize, JsonHash)]
pub struct RevokeDeviceArgs {
pub account_id: String,
pub device_id: String,
}
pub type DevicesListDeviceSettingsPoliciesArgs = super::shared::AccountIdArgs;
pub type DevicesGetDefaultDeviceSettingsPolicyArgs = super::shared::AccountIdArgs;
#[derive(Debug, Clone, Default, Serialize, JsonHash)]
pub struct DevicesCreateDeviceSettingsPolicyArgs {
pub account_id: String,
pub body: DevicesCreateDeviceSettingsPolicyRequest,
}
#[derive(Debug, Clone, Default, Serialize, JsonHash)]
pub struct DevicesUpdateDefaultDeviceSettingsPolicyArgs {
pub account_id: String,
pub body: DevicesUpdateDefaultDeviceSettingsPolicyRequest,
}
pub type DevicesGetSplitTunnelExcludeListArgs = super::shared::AccountIdArgs;
#[derive(Debug, Clone, Default, Serialize, JsonHash)]
pub struct DevicesSetSplitTunnelExcludeListArgs {
pub account_id: String,
pub body: Vec<TeamsDevicesSplitTunnel>,
}
pub type DevicesGetSplitTunnelIncludeListArgs = super::shared::AccountIdArgs;
#[derive(Debug, Clone, Default, Serialize, JsonHash)]
pub struct DevicesSetSplitTunnelIncludeListArgs {
pub account_id: String,
pub body: Vec<TeamsDevicesSplitTunnelInclude>,
}
pub type DevicesGetDeviceSettingsPolicyByIdArgs = super::shared::PolicyIdAccountIdArgs;
#[derive(Debug, Clone, Default, Serialize, JsonHash)]
pub struct DevicesUpdateDeviceSettingsPolicyArgs {
pub policy_id: String,
pub account_id: String,
pub body: DevicesUpdateDeviceSettingsPolicyRequest,
}
pub type DevicesDeleteDeviceSettingsPolicyArgs = super::shared::PolicyIdAccountIdArgs;
pub type DevicesGetSplitTunnelExcludeListForADeviceSettingsPolicyArgs =
super::shared::PolicyIdAccountIdArgs;
#[derive(Debug, Clone, Default, Serialize, JsonHash)]
pub struct DevicesSetSplitTunnelExcludeListForADeviceSettingsPolicyArgs {
pub policy_id: String,
pub account_id: String,
pub body: Vec<TeamsDevicesSplitTunnel>,
}
pub type DevicesGetSplitTunnelIncludeListForADeviceSettingsPolicyArgs =
super::shared::PolicyIdAccountIdArgs;
#[derive(Debug, Clone, Default, Serialize, JsonHash)]
pub struct DevicesSetSplitTunnelIncludeListForADeviceSettingsPolicyArgs {
pub policy_id: String,
pub account_id: String,
pub body: Vec<TeamsDevicesSplitTunnelInclude>,
}
pub type DevicePostureRulesListDevicePostureRulesArgs = super::shared::AccountIdArgs;
#[derive(Debug, Clone, Default, Serialize, JsonHash)]
pub struct DevicePostureRulesCreateDevicePostureRuleArgs {
pub account_id: String,
pub body: DevicePostureRulesCreateDevicePostureRuleRequest,
}
pub type DevicePostureIntegrationsListDevicePostureIntegrationsArgs = super::shared::AccountIdArgs;
#[derive(Debug, Clone, Default, Serialize, JsonHash)]
pub struct DevicePostureIntegrationsCreateDevicePostureIntegrationArgs {
pub account_id: String,
pub body: DevicePostureIntegrationsCreateDevicePostureIntegrationRequest,
}
pub type DevicePostureIntegrationsDevicePostureIntegrationDetailsArgs =
super::shared::IntegrationIdAccountIdArgs;
#[derive(Debug, Clone, Default, Serialize, JsonHash)]
pub struct DevicePostureIntegrationsUpdateDevicePostureIntegrationArgs {
pub integration_id: String,
pub account_id: String,
pub body: DevicePostureIntegrationsUpdateDevicePostureIntegrationRequest,
}
pub type DevicePostureIntegrationsDeleteDevicePostureIntegrationArgs =
super::shared::IntegrationIdAccountIdArgs;
pub type DevicePostureRulesDevicePostureRulesDetailsArgs = super::shared::RuleIdAccountIdArgs;
#[derive(Debug, Clone, Default, Serialize, JsonHash)]
pub struct DevicePostureRulesUpdateDevicePostureRuleArgs {
pub rule_id: String,
pub account_id: String,
pub body: DevicePostureRulesUpdateDevicePostureRuleRequest,
}
pub type DevicePostureRulesDeleteDevicePostureRuleArgs = super::shared::RuleIdAccountIdArgs;
#[derive(Debug, Clone, Default, Serialize, JsonHash)]
pub struct ListRegistrationsArgs {
pub account_id: String,
pub user_id: Vec<String>,
pub seen_after: Option<String>,
pub seen_before: Option<String>,
pub status: Option<String>,
pub per_page: Option<String>,
pub search: Option<String>,
pub sort_by: Option<String>,
pub sort_order: Option<String>,
pub cursor: Option<String>,
pub id: Vec<String>,
pub device_id: Option<String>,
pub include: Option<String>,
}
pub type DeleteRegistrationsArgs = super::shared::AccountIdIdArgs2;
pub type RevokeRegistrationsArgs = super::shared::AccountIdIdArgs2;
pub type UnrevokeRegistrationsArgs = super::shared::AccountIdIdArgs2;
#[derive(Debug, Clone, Default, Serialize, JsonHash)]
pub struct GetRegistrationArgs {
pub registration_id: String,
pub account_id: String,
pub include: Option<String>,
}
#[derive(Debug, Clone, Default, Serialize, JsonHash)]
pub struct DeleteRegistrationArgs {
pub registration_id: String,
pub account_id: String,
}
#[derive(Debug, Clone, Default, Serialize, JsonHash)]
pub struct GetRegistrationOverrideCodesArgs {
pub account_id: String,
pub registration_id: String,
}
pub type ZeroTrustAccountsGetDeviceSettingsForZeroTrustAccountArgs = super::shared::AccountIdArgs;
#[derive(Debug, Clone, Default, Serialize, JsonHash)]
pub struct ZeroTrustAccountsUpdateDeviceSettingsForTheZeroTrustAccountArgs {
pub account_id: String,
pub body: TeamsDevicesZeroTrustAccountDeviceSettings,
}
pub type ZeroTrustAccountsPatchDeviceSettingsForTheZeroTrustAccountArgs =
ZeroTrustAccountsUpdateDeviceSettingsForTheZeroTrustAccountArgs;
pub type ZeroTrustAccountsDeleteDeviceSettingsForZeroTrustAccountArgs =
super::shared::AccountIdArgs;
pub type ZeroTrustAccountsGetZeroTrustAccountInformationArgs = super::shared::AccountIdArgs;
pub type ZeroTrustAccountsCreateZeroTrustAccountArgs = super::shared::AccountIdArgs;
pub type ZeroTrustGatewayApplicationAndApplicationTypeMappingsListApplicationAndApplicationTypeMappingsArgs =
super::shared::AccountIdArgs;
pub type ZeroTrustApplicationsReviewStatusListArgs = super::shared::AccountIdArgs;
#[derive(Debug, Clone, Default, Serialize, JsonHash)]
pub struct ZeroTrustApplicationsReviewStatusUpdateArgs {
pub account_id: String,
pub body: ZeroTrustApplicationsReviewStatusUpdateRequest,
}
pub type ZeroTrustGetAuditSshSettingsArgs = super::shared::AccountIdArgs;
#[derive(Debug, Clone, Default, Serialize, JsonHash)]
pub struct ZeroTrustUpdateAuditSshSettingsArgs {
pub account_id: String,
pub body: ZeroTrustUpdateAuditSshSettingsRequest,
}
pub type ZeroTrustRotateSshAccountSeedArgs = super::shared::AccountIdArgs;
pub type ZeroTrustGatewayCategoriesListCategoriesArgs = super::shared::AccountIdArgs;
pub type ZeroTrustCertificatesListZeroTrustCertificatesArgs = super::shared::AccountIdArgs;
#[derive(Debug, Clone, Default, Serialize, JsonHash)]
pub struct ZeroTrustCertificatesCreateZeroTrustCertificateArgs {
pub account_id: String,
pub body: ZeroTrustGatewayGenerateCertRequest,
}
pub type ZeroTrustCertificatesZeroTrustCertificateDetailsArgs =
super::shared::CertificateIdAccountIdArgs;
pub type ZeroTrustCertificatesDeleteZeroTrustCertificateArgs =
super::shared::CertificateIdAccountIdArgs;
pub type ZeroTrustCertificatesActivateZeroTrustCertificateArgs =
super::shared::CertificateIdAccountIdArgs;
pub type ZeroTrustCertificatesDeactivateZeroTrustCertificateArgs =
super::shared::CertificateIdAccountIdArgs;
pub type ZeroTrustAccountsGetZeroTrustAccountConfigurationArgs = super::shared::AccountIdArgs;
pub type ZeroTrustAccountsUpdateZeroTrustAccountConfigurationArgs = super::shared::AccountIdArgs;
pub type ZeroTrustAccountsPatchZeroTrustAccountConfigurationArgs = super::shared::AccountIdArgs;
#[derive(Debug, Clone, Default, Serialize, JsonHash)]
pub struct ZeroTrustListsListZeroTrustListsArgs {
pub account_id: String,
pub r#type: Option<String>,
}
#[derive(Debug, Clone, Default, Serialize, JsonHash)]
pub struct ZeroTrustListsCreateZeroTrustListArgs {
pub account_id: String,
pub body: ZeroTrustListsCreateZeroTrustListRequest,
}
pub type ZeroTrustListsZeroTrustListDetailsArgs = super::shared::ListIdAccountIdArgs;
#[derive(Debug, Clone, Default, Serialize, JsonHash)]
pub struct ZeroTrustListsUpdateZeroTrustListArgs {
pub list_id: String,
pub account_id: String,
pub body: ZeroTrustListsUpdateZeroTrustListRequest,
}
#[derive(Debug, Clone, Default, Serialize, JsonHash)]
pub struct ZeroTrustListsPatchZeroTrustListArgs {
pub list_id: String,
pub account_id: String,
pub body: ZeroTrustListsPatchZeroTrustListRequest,
}
pub type ZeroTrustListsDeleteZeroTrustListArgs = super::shared::ListIdAccountIdArgs;
pub type ZeroTrustListsZeroTrustListItemsArgs = super::shared::ListIdAccountIdArgs;
pub type ZeroTrustGatewayLocationsListZeroTrustGatewayLocationsArgs = super::shared::AccountIdArgs;
#[derive(Debug, Clone, Default, Serialize, JsonHash)]
pub struct ZeroTrustGatewayLocationsCreateZeroTrustGatewayLocationArgs {
pub account_id: String,
pub body: ZeroTrustGatewayLocationsCreateZeroTrustGatewayLocationRequest,
}
pub type ZeroTrustGatewayLocationsZeroTrustGatewayLocationDetailsArgs =
super::shared::LocationIdAccountIdArgs;
#[derive(Debug, Clone, Default, Serialize, JsonHash)]
pub struct ZeroTrustGatewayLocationsUpdateZeroTrustGatewayLocationArgs {
pub location_id: String,
pub account_id: String,
pub body: ZeroTrustGatewayLocationsUpdateZeroTrustGatewayLocationRequest,
}
pub type ZeroTrustGatewayLocationsDeleteZeroTrustGatewayLocationArgs =
super::shared::LocationIdAccountIdArgs;
pub type ZeroTrustAccountsGetLoggingSettingsForTheZeroTrustAccountArgs =
super::shared::AccountIdArgs;
#[derive(Debug, Clone, Default, Serialize, JsonHash)]
pub struct ZeroTrustAccountsUpdateLoggingSettingsForTheZeroTrustAccountArgs {
pub account_id: String,
pub body: ZeroTrustGatewayGatewayAccountLoggingSettings,
}
pub type ZeroTrustGatewayPacfilesListArgs = super::shared::AccountIdArgs;
#[derive(Debug, Clone, Default, Serialize, JsonHash)]
pub struct ZeroTrustGatewayPacfilesCreatePacfileArgs {
pub account_id: String,
pub body: ZeroTrustGatewayPacfilesCreatePacfileRequest,
}
pub type ZeroTrustGatewayPacfilesDetailsArgs = super::shared::PacfileIdAccountIdArgs;
#[derive(Debug, Clone, Default, Serialize, JsonHash)]
pub struct ZeroTrustGatewayPacfilesUpdateArgs {
pub pacfile_id: String,
pub account_id: String,
pub body: ZeroTrustGatewayPacfilesUpdateRequest,
}
pub type ZeroTrustGatewayPacfilesDeleteArgs = super::shared::PacfileIdAccountIdArgs;
pub type ZeroTrustGatewayProxyEndpointsListProxyEndpointsArgs = super::shared::AccountIdArgs;
#[derive(Debug, Clone, Default, Serialize, JsonHash)]
pub struct ZeroTrustGatewayProxyEndpointsCreateProxyEndpointArgs {
pub account_id: String,
pub body: ZeroTrustGatewayProxyEndpointsCreateProxyEndpointRequest,
}
pub type ZeroTrustGatewayProxyEndpointsProxyEndpointDetailsArgs =
super::shared::ProxyEndpointIdAccountIdArgs;
#[derive(Debug, Clone, Default, Serialize, JsonHash)]
pub struct ZeroTrustGatewayProxyEndpointsUpdateProxyEndpointArgs {
pub proxy_endpoint_id: String,
pub account_id: String,
pub body: ZeroTrustGatewayProxyEndpointsUpdateProxyEndpointRequest,
}
pub type ZeroTrustGatewayProxyEndpointsDeleteProxyEndpointArgs =
super::shared::ProxyEndpointIdAccountIdArgs;
pub type ZeroTrustGatewayRulesListZeroTrustGatewayRulesArgs = super::shared::AccountIdArgs;
#[derive(Debug, Clone, Default, Serialize, JsonHash)]
pub struct ZeroTrustGatewayRulesCreateZeroTrustGatewayRuleArgs {
pub account_id: String,
pub body: ZeroTrustGatewayRulesCreateZeroTrustGatewayRuleRequest,
}
pub type ZeroTrustGatewayRulesListZeroTrustGatewayRulesTenantArgs = super::shared::AccountIdArgs;
pub type ZeroTrustGatewayRulesZeroTrustGatewayRuleDetailsArgs = super::shared::RuleIdAccountIdArgs;
#[derive(Debug, Clone, Default, Serialize, JsonHash)]
pub struct ZeroTrustGatewayRulesUpdateZeroTrustGatewayRuleArgs {
pub rule_id: String,
pub account_id: String,
pub body: ZeroTrustGatewayRulesUpdateZeroTrustGatewayRuleRequest,
}
pub type ZeroTrustGatewayRulesDeleteZeroTrustGatewayRuleArgs = super::shared::RuleIdAccountIdArgs;
pub type ZeroTrustGatewayRulesResetExpirationZeroTrustGatewayRuleArgs =
super::shared::RuleIdAccountIdArgs;
#[derive(Debug, Clone, Default, Serialize, JsonHash)]
pub struct ZeroTrustNetworksSubnetsListArgs {
pub account_id: String,
pub name: Option<String>,
pub comment: Option<String>,
pub network: Option<String>,
pub existed_at: Option<String>,
pub address_family: Option<String>,
pub is_default_network: Option<String>,
pub is_deleted: Option<String>,
pub sort_order: Option<String>,
pub subnet_types: Option<String>,
pub per_page: Option<String>,
pub page: Option<String>,
}
#[derive(Debug, Clone, Default, Serialize, JsonHash)]
pub struct ZeroTrustNetworksSubnetUpdateCloudflareSourceArgs {
pub account_id: String,
pub address_family: String,
pub body: ZeroTrustNetworksSubnetUpdateCloudflareSourceRequest,
}
pub type DlpRiskScoreBehaviorsGetArgs = super::shared::AccountIdArgs;
#[derive(Debug, Clone, Default, Serialize, JsonHash)]
pub struct DlpRiskScoreBehaviorsPutArgs {
pub account_id: String,
pub body: DlpUpdateBehaviors,
}
pub type DlpZtRiskScoreIntegrationListArgs = super::shared::AccountIdArgs;
#[derive(Debug, Clone, Default, Serialize, JsonHash)]
pub struct DlpZtRiskScoreIntegrationCreateArgs {
pub account_id: String,
pub body: DlpCreateIntegrationBody,
}
#[derive(Debug, Clone, Default, Serialize, JsonHash)]
pub struct DlpZtRiskScoreIntegrationGetByReferenceIdArgs {
pub account_id: String,
pub reference_id: String,
}
pub type DlpZtRiskScoreIntegrationGetArgs = super::shared::AccountIdIntegrationIdArgs;
#[derive(Debug, Clone, Default, Serialize, JsonHash)]
pub struct DlpZtRiskScoreIntegrationUpdateArgs {
pub account_id: String,
pub integration_id: String,
pub body: DlpUpdateIntegrationBody,
}
pub type DlpZtRiskScoreIntegrationDeleteArgs = super::shared::AccountIdIntegrationIdArgs;
pub type DlpRiskScoreSummaryGetArgs = super::shared::AccountIdArgs;
pub async fn list_ip_profiles_request<F>(
client: impl Into<super::shared::ApiClient>,
args: &ListIpProfilesArgs,
base_url: &str,
builder_mod: Option<F>,
) -> Result<ApiResponse<ListIpProfilesResponse>, super::shared::ApiError>
where
F: FnOnce(&mut PreparedRequestBuilder),
{
let path = format!("/accounts/{}/devices/ip-profiles", args.account_id,);
let endpoint_url = format!("{}{}", base_url, path);
let mut builder = PreparedRequestBuilder::get(&endpoint_url)
.map_err(|e| super::shared::ApiError::RequestBuildFailed(e.to_string()))?;
builder = builder.query("per_page", args.per_page.as_deref());
if let Some(f) = builder_mod {
f(&mut builder);
}
super::shared::send_json(client.into(), builder.build()).await
}
pub async fn create_ip_profile_request<F>(
client: impl Into<super::shared::ApiClient>,
args: &CreateIpProfileArgs,
base_url: &str,
builder_mod: Option<F>,
) -> Result<ApiResponse<CreateIpProfileResponse>, super::shared::ApiError>
where
F: FnOnce(&mut PreparedRequestBuilder),
{
let path = format!("/accounts/{}/devices/ip-profiles", args.account_id,);
let endpoint_url = format!("{}{}", base_url, path);
let mut builder = PreparedRequestBuilder::post(&endpoint_url)
.map_err(|e| super::shared::ApiError::RequestBuildFailed(e.to_string()))?;
builder = builder
.body_json(&args.body)
.map_err(|e| super::shared::ApiError::RequestBuildFailed(e.to_string()))?;
if let Some(f) = builder_mod {
f(&mut builder);
}
super::shared::send_json(client.into(), builder.build()).await
}
pub async fn get_ip_profile_request<F>(
client: impl Into<super::shared::ApiClient>,
args: &GetIpProfileArgs,
base_url: &str,
builder_mod: Option<F>,
) -> Result<ApiResponse<GetIpProfileResponse>, super::shared::ApiError>
where
F: FnOnce(&mut PreparedRequestBuilder),
{
let path = format!(
"/accounts/{}/devices/ip-profiles/{}",
args.account_id, args.profile_id,
);
let endpoint_url = format!("{}{}", base_url, path);
let mut builder = PreparedRequestBuilder::get(&endpoint_url)
.map_err(|e| super::shared::ApiError::RequestBuildFailed(e.to_string()))?;
if let Some(f) = builder_mod {
f(&mut builder);
}
super::shared::send_json(client.into(), builder.build()).await
}
pub async fn update_ip_profile_request<F>(
client: impl Into<super::shared::ApiClient>,
args: &UpdateIpProfileArgs,
base_url: &str,
builder_mod: Option<F>,
) -> Result<ApiResponse<UpdateIpProfileResponse>, super::shared::ApiError>
where
F: FnOnce(&mut PreparedRequestBuilder),
{
let path = format!(
"/accounts/{}/devices/ip-profiles/{}",
args.account_id, args.profile_id,
);
let endpoint_url = format!("{}{}", base_url, path);
let mut builder = PreparedRequestBuilder::patch(&endpoint_url)
.map_err(|e| super::shared::ApiError::RequestBuildFailed(e.to_string()))?;
builder = builder
.body_json(&args.body)
.map_err(|e| super::shared::ApiError::RequestBuildFailed(e.to_string()))?;
if let Some(f) = builder_mod {
f(&mut builder);
}
super::shared::send_json(client.into(), builder.build()).await
}
pub async fn delete_ip_profile_request<F>(
client: impl Into<super::shared::ApiClient>,
args: &DeleteIpProfileArgs,
base_url: &str,
builder_mod: Option<F>,
) -> Result<ApiResponse<DeleteIpProfileResponse>, super::shared::ApiError>
where
F: FnOnce(&mut PreparedRequestBuilder),
{
let path = format!(
"/accounts/{}/devices/ip-profiles/{}",
args.account_id, args.profile_id,
);
let endpoint_url = format!("{}{}", base_url, path);
let mut builder = PreparedRequestBuilder::delete(&endpoint_url)
.map_err(|e| super::shared::ApiError::RequestBuildFailed(e.to_string()))?;
if let Some(f) = builder_mod {
f(&mut builder);
}
super::shared::send_json(client.into(), builder.build()).await
}
pub async fn device_managed_networks_list_device_managed_networks_request<F>(
client: impl Into<super::shared::ApiClient>,
args: &DeviceManagedNetworksListDeviceManagedNetworksArgs,
base_url: &str,
builder_mod: Option<F>,
) -> Result<ApiResponse<TeamsDevicesComponentsSchemasResponseCollection>, super::shared::ApiError>
where
F: FnOnce(&mut PreparedRequestBuilder),
{
let path = format!("/accounts/{}/devices/networks", args.account_id,);
let endpoint_url = format!("{}{}", base_url, path);
let mut builder = PreparedRequestBuilder::get(&endpoint_url)
.map_err(|e| super::shared::ApiError::RequestBuildFailed(e.to_string()))?;
if let Some(f) = builder_mod {
f(&mut builder);
}
super::shared::send_json(client.into(), builder.build()).await
}
pub async fn device_managed_networks_create_device_managed_network_request<F>(
client: impl Into<super::shared::ApiClient>,
args: &DeviceManagedNetworksCreateDeviceManagedNetworkArgs,
base_url: &str,
builder_mod: Option<F>,
) -> Result<ApiResponse<TeamsDevicesComponentsSchemasSingleResponse>, super::shared::ApiError>
where
F: FnOnce(&mut PreparedRequestBuilder),
{
let path = format!("/accounts/{}/devices/networks", args.account_id,);
let endpoint_url = format!("{}{}", base_url, path);
let mut builder = PreparedRequestBuilder::post(&endpoint_url)
.map_err(|e| super::shared::ApiError::RequestBuildFailed(e.to_string()))?;
builder = builder
.body_json(&args.body)
.map_err(|e| super::shared::ApiError::RequestBuildFailed(e.to_string()))?;
if let Some(f) = builder_mod {
f(&mut builder);
}
super::shared::send_json(client.into(), builder.build()).await
}
pub async fn device_managed_networks_device_managed_network_details_request<F>(
client: impl Into<super::shared::ApiClient>,
args: &DeviceManagedNetworksDeviceManagedNetworkDetailsArgs,
base_url: &str,
builder_mod: Option<F>,
) -> Result<ApiResponse<TeamsDevicesComponentsSchemasSingleResponse>, super::shared::ApiError>
where
F: FnOnce(&mut PreparedRequestBuilder),
{
let path = format!(
"/accounts/{}/devices/networks/{}",
args.account_id, args.network_id,
);
let endpoint_url = format!("{}{}", base_url, path);
let mut builder = PreparedRequestBuilder::get(&endpoint_url)
.map_err(|e| super::shared::ApiError::RequestBuildFailed(e.to_string()))?;
if let Some(f) = builder_mod {
f(&mut builder);
}
super::shared::send_json(client.into(), builder.build()).await
}
pub async fn device_managed_networks_update_device_managed_network_request<F>(
client: impl Into<super::shared::ApiClient>,
args: &DeviceManagedNetworksUpdateDeviceManagedNetworkArgs,
base_url: &str,
builder_mod: Option<F>,
) -> Result<ApiResponse<TeamsDevicesComponentsSchemasSingleResponse>, super::shared::ApiError>
where
F: FnOnce(&mut PreparedRequestBuilder),
{
let path = format!(
"/accounts/{}/devices/networks/{}",
args.account_id, args.network_id,
);
let endpoint_url = format!("{}{}", base_url, path);
let mut builder = PreparedRequestBuilder::put(&endpoint_url)
.map_err(|e| super::shared::ApiError::RequestBuildFailed(e.to_string()))?;
builder = builder
.body_json(&args.body)
.map_err(|e| super::shared::ApiError::RequestBuildFailed(e.to_string()))?;
if let Some(f) = builder_mod {
f(&mut builder);
}
super::shared::send_json(client.into(), builder.build()).await
}
pub async fn device_managed_networks_delete_device_managed_network_request<F>(
client: impl Into<super::shared::ApiClient>,
args: &DeviceManagedNetworksDeleteDeviceManagedNetworkArgs,
base_url: &str,
builder_mod: Option<F>,
) -> Result<ApiResponse<TeamsDevicesComponentsSchemasResponseCollection>, super::shared::ApiError>
where
F: FnOnce(&mut PreparedRequestBuilder),
{
let path = format!(
"/accounts/{}/devices/networks/{}",
args.account_id, args.network_id,
);
let endpoint_url = format!("{}{}", base_url, path);
let mut builder = PreparedRequestBuilder::delete(&endpoint_url)
.map_err(|e| super::shared::ApiError::RequestBuildFailed(e.to_string()))?;
if let Some(f) = builder_mod {
f(&mut builder);
}
super::shared::send_json(client.into(), builder.build()).await
}
pub async fn list_devices_request<F>(
client: impl Into<super::shared::ApiClient>,
args: &ListDevicesArgs,
base_url: &str,
builder_mod: Option<F>,
) -> Result<ApiResponse<ListDevicesResponse>, super::shared::ApiError>
where
F: FnOnce(&mut PreparedRequestBuilder),
{
let path = format!("/accounts/{}/devices/physical-devices", args.account_id,);
let endpoint_url = format!("{}{}", base_url, path);
let mut builder = PreparedRequestBuilder::get(&endpoint_url)
.map_err(|e| super::shared::ApiError::RequestBuildFailed(e.to_string()))?;
builder = builder.query("cursor", args.cursor.as_deref());
builder = builder.query("sort_by", args.sort_by.as_deref());
builder = builder.query("sort_order", args.sort_order.as_deref());
builder = builder.query("last_seen_user.email", args.last_seen_user_email.as_deref());
builder = builder.query("seen_after", args.seen_after.as_deref());
builder = builder.query("seen_before", args.seen_before.as_deref());
builder = builder.query("per_page", args.per_page.as_deref());
builder = builder.query("search", args.search.as_deref());
builder = builder.query("active_registrations", args.active_registrations.as_deref());
for value in &args.id {
builder = builder.query("id", Some(value.as_str()));
}
builder = builder.query("include", args.include.as_deref());
if let Some(f) = builder_mod {
f(&mut builder);
}
super::shared::send_json(client.into(), builder.build()).await
}
pub async fn get_device_request<F>(
client: impl Into<super::shared::ApiClient>,
args: &GetDeviceArgs,
base_url: &str,
builder_mod: Option<F>,
) -> Result<ApiResponse<GetDeviceResponse>, super::shared::ApiError>
where
F: FnOnce(&mut PreparedRequestBuilder),
{
let path = format!(
"/accounts/{}/devices/physical-devices/{}",
args.account_id, args.device_id,
);
let endpoint_url = format!("{}{}", base_url, path);
let mut builder = PreparedRequestBuilder::get(&endpoint_url)
.map_err(|e| super::shared::ApiError::RequestBuildFailed(e.to_string()))?;
builder = builder.query("include", args.include.as_deref());
if let Some(f) = builder_mod {
f(&mut builder);
}
super::shared::send_json(client.into(), builder.build()).await
}
pub async fn delete_device_request<F>(
client: impl Into<super::shared::ApiClient>,
args: &DeleteDeviceArgs,
base_url: &str,
builder_mod: Option<F>,
) -> Result<ApiResponse<DeleteDeviceResponse>, super::shared::ApiError>
where
F: FnOnce(&mut PreparedRequestBuilder),
{
let path = format!(
"/accounts/{}/devices/physical-devices/{}",
args.account_id, args.device_id,
);
let endpoint_url = format!("{}{}", base_url, path);
let mut builder = PreparedRequestBuilder::delete(&endpoint_url)
.map_err(|e| super::shared::ApiError::RequestBuildFailed(e.to_string()))?;
if let Some(f) = builder_mod {
f(&mut builder);
}
super::shared::send_json(client.into(), builder.build()).await
}
pub async fn revoke_device_request<F>(
client: impl Into<super::shared::ApiClient>,
args: &RevokeDeviceArgs,
base_url: &str,
builder_mod: Option<F>,
) -> Result<ApiResponse<RevokeDeviceResponse>, super::shared::ApiError>
where
F: FnOnce(&mut PreparedRequestBuilder),
{
let path = format!(
"/accounts/{}/devices/physical-devices/{}/revoke",
args.account_id, args.device_id,
);
let endpoint_url = format!("{}{}", base_url, path);
let mut builder = PreparedRequestBuilder::post(&endpoint_url)
.map_err(|e| super::shared::ApiError::RequestBuildFailed(e.to_string()))?;
if let Some(f) = builder_mod {
f(&mut builder);
}
super::shared::send_json(client.into(), builder.build()).await
}
pub async fn devices_list_device_settings_policies_request<F>(
client: impl Into<super::shared::ApiClient>,
args: &DevicesListDeviceSettingsPoliciesArgs,
base_url: &str,
builder_mod: Option<F>,
) -> Result<ApiResponse<TeamsDevicesDeviceSettingsResponseCollection>, super::shared::ApiError>
where
F: FnOnce(&mut PreparedRequestBuilder),
{
let path = format!("/accounts/{}/devices/policies", args.account_id,);
let endpoint_url = format!("{}{}", base_url, path);
let mut builder = PreparedRequestBuilder::get(&endpoint_url)
.map_err(|e| super::shared::ApiError::RequestBuildFailed(e.to_string()))?;
if let Some(f) = builder_mod {
f(&mut builder);
}
super::shared::send_json(client.into(), builder.build()).await
}
pub async fn devices_get_default_device_settings_policy_request<F>(
client: impl Into<super::shared::ApiClient>,
args: &DevicesGetDefaultDeviceSettingsPolicyArgs,
base_url: &str,
builder_mod: Option<F>,
) -> Result<ApiResponse<TeamsDevicesDefaultDeviceSettingsResponse>, super::shared::ApiError>
where
F: FnOnce(&mut PreparedRequestBuilder),
{
let path = format!("/accounts/{}/devices/policy", args.account_id,);
let endpoint_url = format!("{}{}", base_url, path);
let mut builder = PreparedRequestBuilder::get(&endpoint_url)
.map_err(|e| super::shared::ApiError::RequestBuildFailed(e.to_string()))?;
if let Some(f) = builder_mod {
f(&mut builder);
}
super::shared::send_json(client.into(), builder.build()).await
}
pub async fn devices_create_device_settings_policy_request<F>(
client: impl Into<super::shared::ApiClient>,
args: &DevicesCreateDeviceSettingsPolicyArgs,
base_url: &str,
builder_mod: Option<F>,
) -> Result<ApiResponse<TeamsDevicesDeviceSettingsResponse>, super::shared::ApiError>
where
F: FnOnce(&mut PreparedRequestBuilder),
{
let path = format!("/accounts/{}/devices/policy", args.account_id,);
let endpoint_url = format!("{}{}", base_url, path);
let mut builder = PreparedRequestBuilder::post(&endpoint_url)
.map_err(|e| super::shared::ApiError::RequestBuildFailed(e.to_string()))?;
builder = builder
.body_json(&args.body)
.map_err(|e| super::shared::ApiError::RequestBuildFailed(e.to_string()))?;
if let Some(f) = builder_mod {
f(&mut builder);
}
super::shared::send_json(client.into(), builder.build()).await
}
pub async fn devices_update_default_device_settings_policy_request<F>(
client: impl Into<super::shared::ApiClient>,
args: &DevicesUpdateDefaultDeviceSettingsPolicyArgs,
base_url: &str,
builder_mod: Option<F>,
) -> Result<ApiResponse<TeamsDevicesDefaultDeviceSettingsResponse>, super::shared::ApiError>
where
F: FnOnce(&mut PreparedRequestBuilder),
{
let path = format!("/accounts/{}/devices/policy", args.account_id,);
let endpoint_url = format!("{}{}", base_url, path);
let mut builder = PreparedRequestBuilder::patch(&endpoint_url)
.map_err(|e| super::shared::ApiError::RequestBuildFailed(e.to_string()))?;
builder = builder
.body_json(&args.body)
.map_err(|e| super::shared::ApiError::RequestBuildFailed(e.to_string()))?;
if let Some(f) = builder_mod {
f(&mut builder);
}
super::shared::send_json(client.into(), builder.build()).await
}
pub async fn devices_get_split_tunnel_exclude_list_request<F>(
client: impl Into<super::shared::ApiClient>,
args: &DevicesGetSplitTunnelExcludeListArgs,
base_url: &str,
builder_mod: Option<F>,
) -> Result<ApiResponse<TeamsDevicesSplitTunnelResponseCollection>, super::shared::ApiError>
where
F: FnOnce(&mut PreparedRequestBuilder),
{
let path = format!("/accounts/{}/devices/policy/exclude", args.account_id,);
let endpoint_url = format!("{}{}", base_url, path);
let mut builder = PreparedRequestBuilder::get(&endpoint_url)
.map_err(|e| super::shared::ApiError::RequestBuildFailed(e.to_string()))?;
if let Some(f) = builder_mod {
f(&mut builder);
}
super::shared::send_json(client.into(), builder.build()).await
}
pub async fn devices_set_split_tunnel_exclude_list_request<F>(
client: impl Into<super::shared::ApiClient>,
args: &DevicesSetSplitTunnelExcludeListArgs,
base_url: &str,
builder_mod: Option<F>,
) -> Result<ApiResponse<TeamsDevicesSplitTunnelResponseCollection>, super::shared::ApiError>
where
F: FnOnce(&mut PreparedRequestBuilder),
{
let path = format!("/accounts/{}/devices/policy/exclude", args.account_id,);
let endpoint_url = format!("{}{}", base_url, path);
let mut builder = PreparedRequestBuilder::put(&endpoint_url)
.map_err(|e| super::shared::ApiError::RequestBuildFailed(e.to_string()))?;
builder = builder
.body_json(&args.body)
.map_err(|e| super::shared::ApiError::RequestBuildFailed(e.to_string()))?;
if let Some(f) = builder_mod {
f(&mut builder);
}
super::shared::send_json(client.into(), builder.build()).await
}
pub async fn devices_get_split_tunnel_include_list_request<F>(
client: impl Into<super::shared::ApiClient>,
args: &DevicesGetSplitTunnelIncludeListArgs,
base_url: &str,
builder_mod: Option<F>,
) -> Result<ApiResponse<TeamsDevicesSplitTunnelIncludeResponseCollection>, super::shared::ApiError>
where
F: FnOnce(&mut PreparedRequestBuilder),
{
let path = format!("/accounts/{}/devices/policy/include", args.account_id,);
let endpoint_url = format!("{}{}", base_url, path);
let mut builder = PreparedRequestBuilder::get(&endpoint_url)
.map_err(|e| super::shared::ApiError::RequestBuildFailed(e.to_string()))?;
if let Some(f) = builder_mod {
f(&mut builder);
}
super::shared::send_json(client.into(), builder.build()).await
}
pub async fn devices_set_split_tunnel_include_list_request<F>(
client: impl Into<super::shared::ApiClient>,
args: &DevicesSetSplitTunnelIncludeListArgs,
base_url: &str,
builder_mod: Option<F>,
) -> Result<ApiResponse<TeamsDevicesSplitTunnelIncludeResponseCollection>, super::shared::ApiError>
where
F: FnOnce(&mut PreparedRequestBuilder),
{
let path = format!("/accounts/{}/devices/policy/include", args.account_id,);
let endpoint_url = format!("{}{}", base_url, path);
let mut builder = PreparedRequestBuilder::put(&endpoint_url)
.map_err(|e| super::shared::ApiError::RequestBuildFailed(e.to_string()))?;
builder = builder
.body_json(&args.body)
.map_err(|e| super::shared::ApiError::RequestBuildFailed(e.to_string()))?;
if let Some(f) = builder_mod {
f(&mut builder);
}
super::shared::send_json(client.into(), builder.build()).await
}
pub async fn devices_get_device_settings_policy_by_id_request<F>(
client: impl Into<super::shared::ApiClient>,
args: &DevicesGetDeviceSettingsPolicyByIdArgs,
base_url: &str,
builder_mod: Option<F>,
) -> Result<ApiResponse<TeamsDevicesDeviceSettingsResponse>, super::shared::ApiError>
where
F: FnOnce(&mut PreparedRequestBuilder),
{
let path = format!(
"/accounts/{}/devices/policy/{}",
args.account_id, args.policy_id,
);
let endpoint_url = format!("{}{}", base_url, path);
let mut builder = PreparedRequestBuilder::get(&endpoint_url)
.map_err(|e| super::shared::ApiError::RequestBuildFailed(e.to_string()))?;
if let Some(f) = builder_mod {
f(&mut builder);
}
super::shared::send_json(client.into(), builder.build()).await
}
pub async fn devices_update_device_settings_policy_request<F>(
client: impl Into<super::shared::ApiClient>,
args: &DevicesUpdateDeviceSettingsPolicyArgs,
base_url: &str,
builder_mod: Option<F>,
) -> Result<ApiResponse<TeamsDevicesDeviceSettingsResponse>, super::shared::ApiError>
where
F: FnOnce(&mut PreparedRequestBuilder),
{
let path = format!(
"/accounts/{}/devices/policy/{}",
args.account_id, args.policy_id,
);
let endpoint_url = format!("{}{}", base_url, path);
let mut builder = PreparedRequestBuilder::patch(&endpoint_url)
.map_err(|e| super::shared::ApiError::RequestBuildFailed(e.to_string()))?;
builder = builder
.body_json(&args.body)
.map_err(|e| super::shared::ApiError::RequestBuildFailed(e.to_string()))?;
if let Some(f) = builder_mod {
f(&mut builder);
}
super::shared::send_json(client.into(), builder.build()).await
}
pub async fn devices_delete_device_settings_policy_request<F>(
client: impl Into<super::shared::ApiClient>,
args: &DevicesDeleteDeviceSettingsPolicyArgs,
base_url: &str,
builder_mod: Option<F>,
) -> Result<ApiResponse<TeamsDevicesDeviceSettingsResponseCollection>, super::shared::ApiError>
where
F: FnOnce(&mut PreparedRequestBuilder),
{
let path = format!(
"/accounts/{}/devices/policy/{}",
args.account_id, args.policy_id,
);
let endpoint_url = format!("{}{}", base_url, path);
let mut builder = PreparedRequestBuilder::delete(&endpoint_url)
.map_err(|e| super::shared::ApiError::RequestBuildFailed(e.to_string()))?;
if let Some(f) = builder_mod {
f(&mut builder);
}
super::shared::send_json(client.into(), builder.build()).await
}
pub async fn devices_get_split_tunnel_exclude_list_for_a_device_settings_policy_request<F>(
client: impl Into<super::shared::ApiClient>,
args: &DevicesGetSplitTunnelExcludeListForADeviceSettingsPolicyArgs,
base_url: &str,
builder_mod: Option<F>,
) -> Result<ApiResponse<TeamsDevicesSplitTunnelResponseCollection>, super::shared::ApiError>
where
F: FnOnce(&mut PreparedRequestBuilder),
{
let path = format!(
"/accounts/{}/devices/policy/{}/exclude",
args.account_id, args.policy_id,
);
let endpoint_url = format!("{}{}", base_url, path);
let mut builder = PreparedRequestBuilder::get(&endpoint_url)
.map_err(|e| super::shared::ApiError::RequestBuildFailed(e.to_string()))?;
if let Some(f) = builder_mod {
f(&mut builder);
}
super::shared::send_json(client.into(), builder.build()).await
}
pub async fn devices_set_split_tunnel_exclude_list_for_a_device_settings_policy_request<F>(
client: impl Into<super::shared::ApiClient>,
args: &DevicesSetSplitTunnelExcludeListForADeviceSettingsPolicyArgs,
base_url: &str,
builder_mod: Option<F>,
) -> Result<ApiResponse<TeamsDevicesSplitTunnelResponseCollection>, super::shared::ApiError>
where
F: FnOnce(&mut PreparedRequestBuilder),
{
let path = format!(
"/accounts/{}/devices/policy/{}/exclude",
args.account_id, args.policy_id,
);
let endpoint_url = format!("{}{}", base_url, path);
let mut builder = PreparedRequestBuilder::put(&endpoint_url)
.map_err(|e| super::shared::ApiError::RequestBuildFailed(e.to_string()))?;
builder = builder
.body_json(&args.body)
.map_err(|e| super::shared::ApiError::RequestBuildFailed(e.to_string()))?;
if let Some(f) = builder_mod {
f(&mut builder);
}
super::shared::send_json(client.into(), builder.build()).await
}
pub async fn devices_get_split_tunnel_include_list_for_a_device_settings_policy_request<F>(
client: impl Into<super::shared::ApiClient>,
args: &DevicesGetSplitTunnelIncludeListForADeviceSettingsPolicyArgs,
base_url: &str,
builder_mod: Option<F>,
) -> Result<ApiResponse<TeamsDevicesSplitTunnelIncludeResponseCollection>, super::shared::ApiError>
where
F: FnOnce(&mut PreparedRequestBuilder),
{
let path = format!(
"/accounts/{}/devices/policy/{}/include",
args.account_id, args.policy_id,
);
let endpoint_url = format!("{}{}", base_url, path);
let mut builder = PreparedRequestBuilder::get(&endpoint_url)
.map_err(|e| super::shared::ApiError::RequestBuildFailed(e.to_string()))?;
if let Some(f) = builder_mod {
f(&mut builder);
}
super::shared::send_json(client.into(), builder.build()).await
}
pub async fn devices_set_split_tunnel_include_list_for_a_device_settings_policy_request<F>(
client: impl Into<super::shared::ApiClient>,
args: &DevicesSetSplitTunnelIncludeListForADeviceSettingsPolicyArgs,
base_url: &str,
builder_mod: Option<F>,
) -> Result<ApiResponse<TeamsDevicesSplitTunnelIncludeResponseCollection>, super::shared::ApiError>
where
F: FnOnce(&mut PreparedRequestBuilder),
{
let path = format!(
"/accounts/{}/devices/policy/{}/include",
args.account_id, args.policy_id,
);
let endpoint_url = format!("{}{}", base_url, path);
let mut builder = PreparedRequestBuilder::put(&endpoint_url)
.map_err(|e| super::shared::ApiError::RequestBuildFailed(e.to_string()))?;
builder = builder
.body_json(&args.body)
.map_err(|e| super::shared::ApiError::RequestBuildFailed(e.to_string()))?;
if let Some(f) = builder_mod {
f(&mut builder);
}
super::shared::send_json(client.into(), builder.build()).await
}
pub async fn device_posture_rules_list_device_posture_rules_request<F>(
client: impl Into<super::shared::ApiClient>,
args: &DevicePostureRulesListDevicePostureRulesArgs,
base_url: &str,
builder_mod: Option<F>,
) -> Result<ApiResponse<TeamsDevicesResponseCollection>, super::shared::ApiError>
where
F: FnOnce(&mut PreparedRequestBuilder),
{
let path = format!("/accounts/{}/devices/posture", args.account_id,);
let endpoint_url = format!("{}{}", base_url, path);
let mut builder = PreparedRequestBuilder::get(&endpoint_url)
.map_err(|e| super::shared::ApiError::RequestBuildFailed(e.to_string()))?;
if let Some(f) = builder_mod {
f(&mut builder);
}
super::shared::send_json(client.into(), builder.build()).await
}
pub async fn device_posture_rules_create_device_posture_rule_request<F>(
client: impl Into<super::shared::ApiClient>,
args: &DevicePostureRulesCreateDevicePostureRuleArgs,
base_url: &str,
builder_mod: Option<F>,
) -> Result<ApiResponse<TeamsDevicesSingleResponse>, super::shared::ApiError>
where
F: FnOnce(&mut PreparedRequestBuilder),
{
let path = format!("/accounts/{}/devices/posture", args.account_id,);
let endpoint_url = format!("{}{}", base_url, path);
let mut builder = PreparedRequestBuilder::post(&endpoint_url)
.map_err(|e| super::shared::ApiError::RequestBuildFailed(e.to_string()))?;
builder = builder
.body_json(&args.body)
.map_err(|e| super::shared::ApiError::RequestBuildFailed(e.to_string()))?;
if let Some(f) = builder_mod {
f(&mut builder);
}
super::shared::send_json(client.into(), builder.build()).await
}
pub async fn device_posture_integrations_list_device_posture_integrations_request<F>(
client: impl Into<super::shared::ApiClient>,
args: &DevicePostureIntegrationsListDevicePostureIntegrationsArgs,
base_url: &str,
builder_mod: Option<F>,
) -> Result<ApiResponse<TeamsDevicesSchemasResponseCollection>, super::shared::ApiError>
where
F: FnOnce(&mut PreparedRequestBuilder),
{
let path = format!("/accounts/{}/devices/posture/integration", args.account_id,);
let endpoint_url = format!("{}{}", base_url, path);
let mut builder = PreparedRequestBuilder::get(&endpoint_url)
.map_err(|e| super::shared::ApiError::RequestBuildFailed(e.to_string()))?;
if let Some(f) = builder_mod {
f(&mut builder);
}
super::shared::send_json(client.into(), builder.build()).await
}
pub async fn device_posture_integrations_create_device_posture_integration_request<F>(
client: impl Into<super::shared::ApiClient>,
args: &DevicePostureIntegrationsCreateDevicePostureIntegrationArgs,
base_url: &str,
builder_mod: Option<F>,
) -> Result<ApiResponse<TeamsDevicesSchemasSingleResponse>, super::shared::ApiError>
where
F: FnOnce(&mut PreparedRequestBuilder),
{
let path = format!("/accounts/{}/devices/posture/integration", args.account_id,);
let endpoint_url = format!("{}{}", base_url, path);
let mut builder = PreparedRequestBuilder::post(&endpoint_url)
.map_err(|e| super::shared::ApiError::RequestBuildFailed(e.to_string()))?;
builder = builder
.body_json(&args.body)
.map_err(|e| super::shared::ApiError::RequestBuildFailed(e.to_string()))?;
if let Some(f) = builder_mod {
f(&mut builder);
}
super::shared::send_json(client.into(), builder.build()).await
}
pub async fn device_posture_integrations_device_posture_integration_details_request<F>(
client: impl Into<super::shared::ApiClient>,
args: &DevicePostureIntegrationsDevicePostureIntegrationDetailsArgs,
base_url: &str,
builder_mod: Option<F>,
) -> Result<ApiResponse<TeamsDevicesSchemasSingleResponse>, super::shared::ApiError>
where
F: FnOnce(&mut PreparedRequestBuilder),
{
let path = format!(
"/accounts/{}/devices/posture/integration/{}",
args.account_id, args.integration_id,
);
let endpoint_url = format!("{}{}", base_url, path);
let mut builder = PreparedRequestBuilder::get(&endpoint_url)
.map_err(|e| super::shared::ApiError::RequestBuildFailed(e.to_string()))?;
if let Some(f) = builder_mod {
f(&mut builder);
}
super::shared::send_json(client.into(), builder.build()).await
}
pub async fn device_posture_integrations_update_device_posture_integration_request<F>(
client: impl Into<super::shared::ApiClient>,
args: &DevicePostureIntegrationsUpdateDevicePostureIntegrationArgs,
base_url: &str,
builder_mod: Option<F>,
) -> Result<ApiResponse<TeamsDevicesSchemasSingleResponse>, super::shared::ApiError>
where
F: FnOnce(&mut PreparedRequestBuilder),
{
let path = format!(
"/accounts/{}/devices/posture/integration/{}",
args.account_id, args.integration_id,
);
let endpoint_url = format!("{}{}", base_url, path);
let mut builder = PreparedRequestBuilder::patch(&endpoint_url)
.map_err(|e| super::shared::ApiError::RequestBuildFailed(e.to_string()))?;
builder = builder
.body_json(&args.body)
.map_err(|e| super::shared::ApiError::RequestBuildFailed(e.to_string()))?;
if let Some(f) = builder_mod {
f(&mut builder);
}
super::shared::send_json(client.into(), builder.build()).await
}
pub async fn device_posture_integrations_delete_device_posture_integration_request<F>(
client: impl Into<super::shared::ApiClient>,
args: &DevicePostureIntegrationsDeleteDevicePostureIntegrationArgs,
base_url: &str,
builder_mod: Option<F>,
) -> Result<ApiResponse<TeamsDevicesSchemasIdResponse>, super::shared::ApiError>
where
F: FnOnce(&mut PreparedRequestBuilder),
{
let path = format!(
"/accounts/{}/devices/posture/integration/{}",
args.account_id, args.integration_id,
);
let endpoint_url = format!("{}{}", base_url, path);
let mut builder = PreparedRequestBuilder::delete(&endpoint_url)
.map_err(|e| super::shared::ApiError::RequestBuildFailed(e.to_string()))?;
if let Some(f) = builder_mod {
f(&mut builder);
}
super::shared::send_json(client.into(), builder.build()).await
}
pub async fn device_posture_rules_device_posture_rules_details_request<F>(
client: impl Into<super::shared::ApiClient>,
args: &DevicePostureRulesDevicePostureRulesDetailsArgs,
base_url: &str,
builder_mod: Option<F>,
) -> Result<ApiResponse<TeamsDevicesSingleResponse>, super::shared::ApiError>
where
F: FnOnce(&mut PreparedRequestBuilder),
{
let path = format!(
"/accounts/{}/devices/posture/{}",
args.account_id, args.rule_id,
);
let endpoint_url = format!("{}{}", base_url, path);
let mut builder = PreparedRequestBuilder::get(&endpoint_url)
.map_err(|e| super::shared::ApiError::RequestBuildFailed(e.to_string()))?;
if let Some(f) = builder_mod {
f(&mut builder);
}
super::shared::send_json(client.into(), builder.build()).await
}
pub async fn device_posture_rules_update_device_posture_rule_request<F>(
client: impl Into<super::shared::ApiClient>,
args: &DevicePostureRulesUpdateDevicePostureRuleArgs,
base_url: &str,
builder_mod: Option<F>,
) -> Result<ApiResponse<TeamsDevicesSingleResponse>, super::shared::ApiError>
where
F: FnOnce(&mut PreparedRequestBuilder),
{
let path = format!(
"/accounts/{}/devices/posture/{}",
args.account_id, args.rule_id,
);
let endpoint_url = format!("{}{}", base_url, path);
let mut builder = PreparedRequestBuilder::put(&endpoint_url)
.map_err(|e| super::shared::ApiError::RequestBuildFailed(e.to_string()))?;
builder = builder
.body_json(&args.body)
.map_err(|e| super::shared::ApiError::RequestBuildFailed(e.to_string()))?;
if let Some(f) = builder_mod {
f(&mut builder);
}
super::shared::send_json(client.into(), builder.build()).await
}
pub async fn device_posture_rules_delete_device_posture_rule_request<F>(
client: impl Into<super::shared::ApiClient>,
args: &DevicePostureRulesDeleteDevicePostureRuleArgs,
base_url: &str,
builder_mod: Option<F>,
) -> Result<ApiResponse<TeamsDevicesIdResponse>, super::shared::ApiError>
where
F: FnOnce(&mut PreparedRequestBuilder),
{
let path = format!(
"/accounts/{}/devices/posture/{}",
args.account_id, args.rule_id,
);
let endpoint_url = format!("{}{}", base_url, path);
let mut builder = PreparedRequestBuilder::delete(&endpoint_url)
.map_err(|e| super::shared::ApiError::RequestBuildFailed(e.to_string()))?;
if let Some(f) = builder_mod {
f(&mut builder);
}
super::shared::send_json(client.into(), builder.build()).await
}
pub async fn list_registrations_request<F>(
client: impl Into<super::shared::ApiClient>,
args: &ListRegistrationsArgs,
base_url: &str,
builder_mod: Option<F>,
) -> Result<ApiResponse<ListRegistrationsResponse>, super::shared::ApiError>
where
F: FnOnce(&mut PreparedRequestBuilder),
{
let path = format!("/accounts/{}/devices/registrations", args.account_id,);
let endpoint_url = format!("{}{}", base_url, path);
let mut builder = PreparedRequestBuilder::get(&endpoint_url)
.map_err(|e| super::shared::ApiError::RequestBuildFailed(e.to_string()))?;
for value in &args.user_id {
builder = builder.query("user.id", Some(value.as_str()));
}
builder = builder.query("seen_after", args.seen_after.as_deref());
builder = builder.query("seen_before", args.seen_before.as_deref());
builder = builder.query("status", args.status.as_deref());
builder = builder.query("per_page", args.per_page.as_deref());
builder = builder.query("search", args.search.as_deref());
builder = builder.query("sort_by", args.sort_by.as_deref());
builder = builder.query("sort_order", args.sort_order.as_deref());
builder = builder.query("cursor", args.cursor.as_deref());
for value in &args.id {
builder = builder.query("id", Some(value.as_str()));
}
builder = builder.query("device.id", args.device_id.as_deref());
builder = builder.query("include", args.include.as_deref());
if let Some(f) = builder_mod {
f(&mut builder);
}
super::shared::send_json(client.into(), builder.build()).await
}
pub async fn delete_registrations_request<F>(
client: impl Into<super::shared::ApiClient>,
args: &DeleteRegistrationsArgs,
base_url: &str,
builder_mod: Option<F>,
) -> Result<ApiResponse<DeleteRegistrationsResponse>, super::shared::ApiError>
where
F: FnOnce(&mut PreparedRequestBuilder),
{
let path = format!("/accounts/{}/devices/registrations", args.account_id,);
let endpoint_url = format!("{}{}", base_url, path);
let mut builder = PreparedRequestBuilder::delete(&endpoint_url)
.map_err(|e| super::shared::ApiError::RequestBuildFailed(e.to_string()))?;
for value in &args.id {
builder = builder.query("id", Some(value.as_str()));
}
if let Some(f) = builder_mod {
f(&mut builder);
}
super::shared::send_json(client.into(), builder.build()).await
}
pub async fn revoke_registrations_request<F>(
client: impl Into<super::shared::ApiClient>,
args: &RevokeRegistrationsArgs,
base_url: &str,
builder_mod: Option<F>,
) -> Result<ApiResponse<RevokeRegistrationsResponse>, super::shared::ApiError>
where
F: FnOnce(&mut PreparedRequestBuilder),
{
let path = format!("/accounts/{}/devices/registrations/revoke", args.account_id,);
let endpoint_url = format!("{}{}", base_url, path);
let mut builder = PreparedRequestBuilder::post(&endpoint_url)
.map_err(|e| super::shared::ApiError::RequestBuildFailed(e.to_string()))?;
for value in &args.id {
builder = builder.query("id", Some(value.as_str()));
}
if let Some(f) = builder_mod {
f(&mut builder);
}
super::shared::send_json(client.into(), builder.build()).await
}
pub async fn unrevoke_registrations_request<F>(
client: impl Into<super::shared::ApiClient>,
args: &UnrevokeRegistrationsArgs,
base_url: &str,
builder_mod: Option<F>,
) -> Result<ApiResponse<UnrevokeRegistrationsResponse>, super::shared::ApiError>
where
F: FnOnce(&mut PreparedRequestBuilder),
{
let path = format!(
"/accounts/{}/devices/registrations/unrevoke",
args.account_id,
);
let endpoint_url = format!("{}{}", base_url, path);
let mut builder = PreparedRequestBuilder::post(&endpoint_url)
.map_err(|e| super::shared::ApiError::RequestBuildFailed(e.to_string()))?;
for value in &args.id {
builder = builder.query("id", Some(value.as_str()));
}
if let Some(f) = builder_mod {
f(&mut builder);
}
super::shared::send_json(client.into(), builder.build()).await
}
pub async fn get_registration_request<F>(
client: impl Into<super::shared::ApiClient>,
args: &GetRegistrationArgs,
base_url: &str,
builder_mod: Option<F>,
) -> Result<ApiResponse<GetRegistrationResponse>, super::shared::ApiError>
where
F: FnOnce(&mut PreparedRequestBuilder),
{
let path = format!(
"/accounts/{}/devices/registrations/{}",
args.account_id, args.registration_id,
);
let endpoint_url = format!("{}{}", base_url, path);
let mut builder = PreparedRequestBuilder::get(&endpoint_url)
.map_err(|e| super::shared::ApiError::RequestBuildFailed(e.to_string()))?;
builder = builder.query("include", args.include.as_deref());
if let Some(f) = builder_mod {
f(&mut builder);
}
super::shared::send_json(client.into(), builder.build()).await
}
pub async fn delete_registration_request<F>(
client: impl Into<super::shared::ApiClient>,
args: &DeleteRegistrationArgs,
base_url: &str,
builder_mod: Option<F>,
) -> Result<ApiResponse<DeleteRegistrationResponse>, super::shared::ApiError>
where
F: FnOnce(&mut PreparedRequestBuilder),
{
let path = format!(
"/accounts/{}/devices/registrations/{}",
args.account_id, args.registration_id,
);
let endpoint_url = format!("{}{}", base_url, path);
let mut builder = PreparedRequestBuilder::delete(&endpoint_url)
.map_err(|e| super::shared::ApiError::RequestBuildFailed(e.to_string()))?;
if let Some(f) = builder_mod {
f(&mut builder);
}
super::shared::send_json(client.into(), builder.build()).await
}
pub async fn get_registration_override_codes_request<F>(
client: impl Into<super::shared::ApiClient>,
args: &GetRegistrationOverrideCodesArgs,
base_url: &str,
builder_mod: Option<F>,
) -> Result<ApiResponse<GetRegistrationOverrideCodesResponse>, super::shared::ApiError>
where
F: FnOnce(&mut PreparedRequestBuilder),
{
let path = format!(
"/accounts/{}/devices/registrations/{}/override_codes",
args.account_id, args.registration_id,
);
let endpoint_url = format!("{}{}", base_url, path);
let mut builder = PreparedRequestBuilder::get(&endpoint_url)
.map_err(|e| super::shared::ApiError::RequestBuildFailed(e.to_string()))?;
if let Some(f) = builder_mod {
f(&mut builder);
}
super::shared::send_json(client.into(), builder.build()).await
}
pub async fn zero_trust_accounts_get_device_settings_for_zero_trust_account_request<F>(
client: impl Into<super::shared::ApiClient>,
args: &ZeroTrustAccountsGetDeviceSettingsForZeroTrustAccountArgs,
base_url: &str,
builder_mod: Option<F>,
) -> Result<ApiResponse<TeamsDevicesZeroTrustAccountDeviceSettingsResponse>, super::shared::ApiError>
where
F: FnOnce(&mut PreparedRequestBuilder),
{
let path = format!("/accounts/{}/devices/settings", args.account_id,);
let endpoint_url = format!("{}{}", base_url, path);
let mut builder = PreparedRequestBuilder::get(&endpoint_url)
.map_err(|e| super::shared::ApiError::RequestBuildFailed(e.to_string()))?;
if let Some(f) = builder_mod {
f(&mut builder);
}
super::shared::send_json(client.into(), builder.build()).await
}
pub async fn zero_trust_accounts_update_device_settings_for_the_zero_trust_account_request<F>(
client: impl Into<super::shared::ApiClient>,
args: &ZeroTrustAccountsUpdateDeviceSettingsForTheZeroTrustAccountArgs,
base_url: &str,
builder_mod: Option<F>,
) -> Result<ApiResponse<TeamsDevicesZeroTrustAccountDeviceSettingsResponse>, super::shared::ApiError>
where
F: FnOnce(&mut PreparedRequestBuilder),
{
let path = format!("/accounts/{}/devices/settings", args.account_id,);
let endpoint_url = format!("{}{}", base_url, path);
let mut builder = PreparedRequestBuilder::put(&endpoint_url)
.map_err(|e| super::shared::ApiError::RequestBuildFailed(e.to_string()))?;
builder = builder
.body_json(&args.body)
.map_err(|e| super::shared::ApiError::RequestBuildFailed(e.to_string()))?;
if let Some(f) = builder_mod {
f(&mut builder);
}
super::shared::send_json(client.into(), builder.build()).await
}
pub async fn zero_trust_accounts_patch_device_settings_for_the_zero_trust_account_request<F>(
client: impl Into<super::shared::ApiClient>,
args: &ZeroTrustAccountsPatchDeviceSettingsForTheZeroTrustAccountArgs,
base_url: &str,
builder_mod: Option<F>,
) -> Result<ApiResponse<TeamsDevicesZeroTrustAccountDeviceSettingsResponse>, super::shared::ApiError>
where
F: FnOnce(&mut PreparedRequestBuilder),
{
let path = format!("/accounts/{}/devices/settings", args.account_id,);
let endpoint_url = format!("{}{}", base_url, path);
let mut builder = PreparedRequestBuilder::patch(&endpoint_url)
.map_err(|e| super::shared::ApiError::RequestBuildFailed(e.to_string()))?;
builder = builder
.body_json(&args.body)
.map_err(|e| super::shared::ApiError::RequestBuildFailed(e.to_string()))?;
if let Some(f) = builder_mod {
f(&mut builder);
}
super::shared::send_json(client.into(), builder.build()).await
}
pub async fn zero_trust_accounts_delete_device_settings_for_zero_trust_account_request<F>(
client: impl Into<super::shared::ApiClient>,
args: &ZeroTrustAccountsDeleteDeviceSettingsForZeroTrustAccountArgs,
base_url: &str,
builder_mod: Option<F>,
) -> Result<ApiResponse<TeamsDevicesZeroTrustAccountDeviceSettingsResponse>, super::shared::ApiError>
where
F: FnOnce(&mut PreparedRequestBuilder),
{
let path = format!("/accounts/{}/devices/settings", args.account_id,);
let endpoint_url = format!("{}{}", base_url, path);
let mut builder = PreparedRequestBuilder::delete(&endpoint_url)
.map_err(|e| super::shared::ApiError::RequestBuildFailed(e.to_string()))?;
if let Some(f) = builder_mod {
f(&mut builder);
}
super::shared::send_json(client.into(), builder.build()).await
}
pub async fn zero_trust_accounts_get_zero_trust_account_information_request<F>(
client: impl Into<super::shared::ApiClient>,
args: &ZeroTrustAccountsGetZeroTrustAccountInformationArgs,
base_url: &str,
builder_mod: Option<F>,
) -> Result<ApiResponse<ZeroTrustGatewayGatewayAccount>, super::shared::ApiError>
where
F: FnOnce(&mut PreparedRequestBuilder),
{
let path = format!("/accounts/{}/gateway", args.account_id,);
let endpoint_url = format!("{}{}", base_url, path);
let mut builder = PreparedRequestBuilder::get(&endpoint_url)
.map_err(|e| super::shared::ApiError::RequestBuildFailed(e.to_string()))?;
if let Some(f) = builder_mod {
f(&mut builder);
}
super::shared::send_json(client.into(), builder.build()).await
}
pub async fn zero_trust_accounts_create_zero_trust_account_request<F>(
client: impl Into<super::shared::ApiClient>,
args: &ZeroTrustAccountsCreateZeroTrustAccountArgs,
base_url: &str,
builder_mod: Option<F>,
) -> Result<ApiResponse<ZeroTrustGatewayGatewayAccount>, super::shared::ApiError>
where
F: FnOnce(&mut PreparedRequestBuilder),
{
let path = format!("/accounts/{}/gateway", args.account_id,);
let endpoint_url = format!("{}{}", base_url, path);
let mut builder = PreparedRequestBuilder::post(&endpoint_url)
.map_err(|e| super::shared::ApiError::RequestBuildFailed(e.to_string()))?;
if let Some(f) = builder_mod {
f(&mut builder);
}
super::shared::send_json(client.into(), builder.build()).await
}
pub async fn zero_trust_gateway_application_and_application_type_mappings_list_application_and_application_type_mappings_request<
F,
>(
client: impl Into<super::shared::ApiClient>,
args: &ZeroTrustGatewayApplicationAndApplicationTypeMappingsListApplicationAndApplicationTypeMappingsArgs,
base_url: &str,
builder_mod: Option<F>,
) -> Result<
ApiResponse<ZeroTrustGatewayAppTypesComponentsSchemasResponseCollection>,
super::shared::ApiError,
>
where
F: FnOnce(&mut PreparedRequestBuilder),
{
let path = format!("/accounts/{}/gateway/app_types", args.account_id,);
let endpoint_url = format!("{}{}", base_url, path);
let mut builder = PreparedRequestBuilder::get(&endpoint_url)
.map_err(|e| super::shared::ApiError::RequestBuildFailed(e.to_string()))?;
if let Some(f) = builder_mod {
f(&mut builder);
}
super::shared::send_json(client.into(), builder.build()).await
}
pub async fn zero_trust_applications_review_status_list_request<F>(
client: impl Into<super::shared::ApiClient>,
args: &ZeroTrustApplicationsReviewStatusListArgs,
base_url: &str,
builder_mod: Option<F>,
) -> Result<ApiResponse<ZeroTrustGatewayApplicationsReviewStatusResponse>, super::shared::ApiError>
where
F: FnOnce(&mut PreparedRequestBuilder),
{
let path = format!("/accounts/{}/gateway/apps/review_status", args.account_id,);
let endpoint_url = format!("{}{}", base_url, path);
let mut builder = PreparedRequestBuilder::get(&endpoint_url)
.map_err(|e| super::shared::ApiError::RequestBuildFailed(e.to_string()))?;
if let Some(f) = builder_mod {
f(&mut builder);
}
super::shared::send_json(client.into(), builder.build()).await
}
pub async fn zero_trust_applications_review_status_update_request<F>(
client: impl Into<super::shared::ApiClient>,
args: &ZeroTrustApplicationsReviewStatusUpdateArgs,
base_url: &str,
builder_mod: Option<F>,
) -> Result<ApiResponse<ZeroTrustGatewayApplicationsReviewStatusResponse>, super::shared::ApiError>
where
F: FnOnce(&mut PreparedRequestBuilder),
{
let path = format!("/accounts/{}/gateway/apps/review_status", args.account_id,);
let endpoint_url = format!("{}{}", base_url, path);
let mut builder = PreparedRequestBuilder::put(&endpoint_url)
.map_err(|e| super::shared::ApiError::RequestBuildFailed(e.to_string()))?;
builder = builder
.body_json(&args.body)
.map_err(|e| super::shared::ApiError::RequestBuildFailed(e.to_string()))?;
if let Some(f) = builder_mod {
f(&mut builder);
}
super::shared::send_json(client.into(), builder.build()).await
}
pub async fn zero_trust_get_audit_ssh_settings_request<F>(
client: impl Into<super::shared::ApiClient>,
args: &ZeroTrustGetAuditSshSettingsArgs,
base_url: &str,
builder_mod: Option<F>,
) -> Result<
ApiResponse<ZeroTrustGatewayAuditSshSettingsComponentsSchemasSingleResponse>,
super::shared::ApiError,
>
where
F: FnOnce(&mut PreparedRequestBuilder),
{
let path = format!("/accounts/{}/gateway/audit_ssh_settings", args.account_id,);
let endpoint_url = format!("{}{}", base_url, path);
let mut builder = PreparedRequestBuilder::get(&endpoint_url)
.map_err(|e| super::shared::ApiError::RequestBuildFailed(e.to_string()))?;
if let Some(f) = builder_mod {
f(&mut builder);
}
super::shared::send_json(client.into(), builder.build()).await
}
pub async fn zero_trust_update_audit_ssh_settings_request<F>(
client: impl Into<super::shared::ApiClient>,
args: &ZeroTrustUpdateAuditSshSettingsArgs,
base_url: &str,
builder_mod: Option<F>,
) -> Result<
ApiResponse<ZeroTrustGatewayAuditSshSettingsComponentsSchemasSingleResponse>,
super::shared::ApiError,
>
where
F: FnOnce(&mut PreparedRequestBuilder),
{
let path = format!("/accounts/{}/gateway/audit_ssh_settings", args.account_id,);
let endpoint_url = format!("{}{}", base_url, path);
let mut builder = PreparedRequestBuilder::put(&endpoint_url)
.map_err(|e| super::shared::ApiError::RequestBuildFailed(e.to_string()))?;
builder = builder
.body_json(&args.body)
.map_err(|e| super::shared::ApiError::RequestBuildFailed(e.to_string()))?;
if let Some(f) = builder_mod {
f(&mut builder);
}
super::shared::send_json(client.into(), builder.build()).await
}
pub async fn zero_trust_rotate_ssh_account_seed_request<F>(
client: impl Into<super::shared::ApiClient>,
args: &ZeroTrustRotateSshAccountSeedArgs,
base_url: &str,
builder_mod: Option<F>,
) -> Result<
ApiResponse<ZeroTrustGatewayAuditSshSettingsComponentsSchemasSingleResponse>,
super::shared::ApiError,
>
where
F: FnOnce(&mut PreparedRequestBuilder),
{
let path = format!(
"/accounts/{}/gateway/audit_ssh_settings/rotate_seed",
args.account_id,
);
let endpoint_url = format!("{}{}", base_url, path);
let mut builder = PreparedRequestBuilder::post(&endpoint_url)
.map_err(|e| super::shared::ApiError::RequestBuildFailed(e.to_string()))?;
if let Some(f) = builder_mod {
f(&mut builder);
}
super::shared::send_json(client.into(), builder.build()).await
}
pub async fn zero_trust_gateway_categories_list_categories_request<F>(
client: impl Into<super::shared::ApiClient>,
args: &ZeroTrustGatewayCategoriesListCategoriesArgs,
base_url: &str,
builder_mod: Option<F>,
) -> Result<
ApiResponse<ZeroTrustGatewayCategoriesComponentsSchemasResponseCollection>,
super::shared::ApiError,
>
where
F: FnOnce(&mut PreparedRequestBuilder),
{
let path = format!("/accounts/{}/gateway/categories", args.account_id,);
let endpoint_url = format!("{}{}", base_url, path);
let mut builder = PreparedRequestBuilder::get(&endpoint_url)
.map_err(|e| super::shared::ApiError::RequestBuildFailed(e.to_string()))?;
if let Some(f) = builder_mod {
f(&mut builder);
}
super::shared::send_json(client.into(), builder.build()).await
}
pub async fn zero_trust_certificates_list_zero_trust_certificates_request<F>(
client: impl Into<super::shared::ApiClient>,
args: &ZeroTrustCertificatesListZeroTrustCertificatesArgs,
base_url: &str,
builder_mod: Option<F>,
) -> Result<ApiResponse<ZeroTrustGatewayResponseCollection>, super::shared::ApiError>
where
F: FnOnce(&mut PreparedRequestBuilder),
{
let path = format!("/accounts/{}/gateway/certificates", args.account_id,);
let endpoint_url = format!("{}{}", base_url, path);
let mut builder = PreparedRequestBuilder::get(&endpoint_url)
.map_err(|e| super::shared::ApiError::RequestBuildFailed(e.to_string()))?;
if let Some(f) = builder_mod {
f(&mut builder);
}
super::shared::send_json(client.into(), builder.build()).await
}
pub async fn zero_trust_certificates_create_zero_trust_certificate_request<F>(
client: impl Into<super::shared::ApiClient>,
args: &ZeroTrustCertificatesCreateZeroTrustCertificateArgs,
base_url: &str,
builder_mod: Option<F>,
) -> Result<ApiResponse<ZeroTrustGatewaySingleResponse>, super::shared::ApiError>
where
F: FnOnce(&mut PreparedRequestBuilder),
{
let path = format!("/accounts/{}/gateway/certificates", args.account_id,);
let endpoint_url = format!("{}{}", base_url, path);
let mut builder = PreparedRequestBuilder::post(&endpoint_url)
.map_err(|e| super::shared::ApiError::RequestBuildFailed(e.to_string()))?;
builder = builder
.body_json(&args.body)
.map_err(|e| super::shared::ApiError::RequestBuildFailed(e.to_string()))?;
if let Some(f) = builder_mod {
f(&mut builder);
}
super::shared::send_json(client.into(), builder.build()).await
}
pub async fn zero_trust_certificates_zero_trust_certificate_details_request<F>(
client: impl Into<super::shared::ApiClient>,
args: &ZeroTrustCertificatesZeroTrustCertificateDetailsArgs,
base_url: &str,
builder_mod: Option<F>,
) -> Result<ApiResponse<ZeroTrustGatewaySingleResponse>, super::shared::ApiError>
where
F: FnOnce(&mut PreparedRequestBuilder),
{
let path = format!(
"/accounts/{}/gateway/certificates/{}",
args.account_id, args.certificate_id,
);
let endpoint_url = format!("{}{}", base_url, path);
let mut builder = PreparedRequestBuilder::get(&endpoint_url)
.map_err(|e| super::shared::ApiError::RequestBuildFailed(e.to_string()))?;
if let Some(f) = builder_mod {
f(&mut builder);
}
super::shared::send_json(client.into(), builder.build()).await
}
pub async fn zero_trust_certificates_delete_zero_trust_certificate_request<F>(
client: impl Into<super::shared::ApiClient>,
args: &ZeroTrustCertificatesDeleteZeroTrustCertificateArgs,
base_url: &str,
builder_mod: Option<F>,
) -> Result<ApiResponse<ZeroTrustGatewaySingleResponse>, super::shared::ApiError>
where
F: FnOnce(&mut PreparedRequestBuilder),
{
let path = format!(
"/accounts/{}/gateway/certificates/{}",
args.account_id, args.certificate_id,
);
let endpoint_url = format!("{}{}", base_url, path);
let mut builder = PreparedRequestBuilder::delete(&endpoint_url)
.map_err(|e| super::shared::ApiError::RequestBuildFailed(e.to_string()))?;
if let Some(f) = builder_mod {
f(&mut builder);
}
super::shared::send_json(client.into(), builder.build()).await
}
pub async fn zero_trust_certificates_activate_zero_trust_certificate_request<F>(
client: impl Into<super::shared::ApiClient>,
args: &ZeroTrustCertificatesActivateZeroTrustCertificateArgs,
base_url: &str,
builder_mod: Option<F>,
) -> Result<ApiResponse<ZeroTrustGatewaySingleResponse>, super::shared::ApiError>
where
F: FnOnce(&mut PreparedRequestBuilder),
{
let path = format!(
"/accounts/{}/gateway/certificates/{}/activate",
args.account_id, args.certificate_id,
);
let endpoint_url = format!("{}{}", base_url, path);
let mut builder = PreparedRequestBuilder::post(&endpoint_url)
.map_err(|e| super::shared::ApiError::RequestBuildFailed(e.to_string()))?;
if let Some(f) = builder_mod {
f(&mut builder);
}
super::shared::send_json(client.into(), builder.build()).await
}
pub async fn zero_trust_certificates_deactivate_zero_trust_certificate_request<F>(
client: impl Into<super::shared::ApiClient>,
args: &ZeroTrustCertificatesDeactivateZeroTrustCertificateArgs,
base_url: &str,
builder_mod: Option<F>,
) -> Result<ApiResponse<ZeroTrustGatewaySingleResponse>, super::shared::ApiError>
where
F: FnOnce(&mut PreparedRequestBuilder),
{
let path = format!(
"/accounts/{}/gateway/certificates/{}/deactivate",
args.account_id, args.certificate_id,
);
let endpoint_url = format!("{}{}", base_url, path);
let mut builder = PreparedRequestBuilder::post(&endpoint_url)
.map_err(|e| super::shared::ApiError::RequestBuildFailed(e.to_string()))?;
if let Some(f) = builder_mod {
f(&mut builder);
}
super::shared::send_json(client.into(), builder.build()).await
}
pub async fn zero_trust_accounts_get_zero_trust_account_configuration_request<F>(
client: impl Into<super::shared::ApiClient>,
args: &ZeroTrustAccountsGetZeroTrustAccountConfigurationArgs,
base_url: &str,
builder_mod: Option<F>,
) -> Result<ApiResponse<ZeroTrustGatewayGatewayAccountConfig>, super::shared::ApiError>
where
F: FnOnce(&mut PreparedRequestBuilder),
{
let path = format!("/accounts/{}/gateway/configuration", args.account_id,);
let endpoint_url = format!("{}{}", base_url, path);
let mut builder = PreparedRequestBuilder::get(&endpoint_url)
.map_err(|e| super::shared::ApiError::RequestBuildFailed(e.to_string()))?;
if let Some(f) = builder_mod {
f(&mut builder);
}
super::shared::send_json(client.into(), builder.build()).await
}
pub async fn zero_trust_accounts_update_zero_trust_account_configuration_request<F>(
client: impl Into<super::shared::ApiClient>,
args: &ZeroTrustAccountsUpdateZeroTrustAccountConfigurationArgs,
base_url: &str,
builder_mod: Option<F>,
) -> Result<ApiResponse<ZeroTrustGatewayGatewayAccountConfig>, super::shared::ApiError>
where
F: FnOnce(&mut PreparedRequestBuilder),
{
let path = format!("/accounts/{}/gateway/configuration", args.account_id,);
let endpoint_url = format!("{}{}", base_url, path);
let mut builder = PreparedRequestBuilder::put(&endpoint_url)
.map_err(|e| super::shared::ApiError::RequestBuildFailed(e.to_string()))?;
if let Some(f) = builder_mod {
f(&mut builder);
}
super::shared::send_json(client.into(), builder.build()).await
}
pub async fn zero_trust_accounts_patch_zero_trust_account_configuration_request<F>(
client: impl Into<super::shared::ApiClient>,
args: &ZeroTrustAccountsPatchZeroTrustAccountConfigurationArgs,
base_url: &str,
builder_mod: Option<F>,
) -> Result<ApiResponse<ZeroTrustGatewayGatewayAccountConfig>, super::shared::ApiError>
where
F: FnOnce(&mut PreparedRequestBuilder),
{
let path = format!("/accounts/{}/gateway/configuration", args.account_id,);
let endpoint_url = format!("{}{}", base_url, path);
let mut builder = PreparedRequestBuilder::patch(&endpoint_url)
.map_err(|e| super::shared::ApiError::RequestBuildFailed(e.to_string()))?;
if let Some(f) = builder_mod {
f(&mut builder);
}
super::shared::send_json(client.into(), builder.build()).await
}
pub async fn zero_trust_lists_list_zero_trust_lists_request<F>(
client: impl Into<super::shared::ApiClient>,
args: &ZeroTrustListsListZeroTrustListsArgs,
base_url: &str,
builder_mod: Option<F>,
) -> Result<ApiResponse<ZeroTrustGatewaySchemasResponseCollection>, super::shared::ApiError>
where
F: FnOnce(&mut PreparedRequestBuilder),
{
let path = format!("/accounts/{}/gateway/lists", args.account_id,);
let endpoint_url = format!("{}{}", base_url, path);
let mut builder = PreparedRequestBuilder::get(&endpoint_url)
.map_err(|e| super::shared::ApiError::RequestBuildFailed(e.to_string()))?;
builder = builder.query("type", args.r#type.as_deref());
if let Some(f) = builder_mod {
f(&mut builder);
}
super::shared::send_json(client.into(), builder.build()).await
}
pub async fn zero_trust_lists_create_zero_trust_list_request<F>(
client: impl Into<super::shared::ApiClient>,
args: &ZeroTrustListsCreateZeroTrustListArgs,
base_url: &str,
builder_mod: Option<F>,
) -> Result<ApiResponse<ZeroTrustGatewaySingleResponseWithListItems>, super::shared::ApiError>
where
F: FnOnce(&mut PreparedRequestBuilder),
{
let path = format!("/accounts/{}/gateway/lists", args.account_id,);
let endpoint_url = format!("{}{}", base_url, path);
let mut builder = PreparedRequestBuilder::post(&endpoint_url)
.map_err(|e| super::shared::ApiError::RequestBuildFailed(e.to_string()))?;
builder = builder
.body_json(&args.body)
.map_err(|e| super::shared::ApiError::RequestBuildFailed(e.to_string()))?;
if let Some(f) = builder_mod {
f(&mut builder);
}
super::shared::send_json(client.into(), builder.build()).await
}
pub async fn zero_trust_lists_zero_trust_list_details_request<F>(
client: impl Into<super::shared::ApiClient>,
args: &ZeroTrustListsZeroTrustListDetailsArgs,
base_url: &str,
builder_mod: Option<F>,
) -> Result<ApiResponse<ZeroTrustGatewayListSingleResponse>, super::shared::ApiError>
where
F: FnOnce(&mut PreparedRequestBuilder),
{
let path = format!(
"/accounts/{}/gateway/lists/{}",
args.account_id, args.list_id,
);
let endpoint_url = format!("{}{}", base_url, path);
let mut builder = PreparedRequestBuilder::get(&endpoint_url)
.map_err(|e| super::shared::ApiError::RequestBuildFailed(e.to_string()))?;
if let Some(f) = builder_mod {
f(&mut builder);
}
super::shared::send_json(client.into(), builder.build()).await
}
pub async fn zero_trust_lists_update_zero_trust_list_request<F>(
client: impl Into<super::shared::ApiClient>,
args: &ZeroTrustListsUpdateZeroTrustListArgs,
base_url: &str,
builder_mod: Option<F>,
) -> Result<ApiResponse<ZeroTrustGatewayListSingleResponse>, super::shared::ApiError>
where
F: FnOnce(&mut PreparedRequestBuilder),
{
let path = format!(
"/accounts/{}/gateway/lists/{}",
args.account_id, args.list_id,
);
let endpoint_url = format!("{}{}", base_url, path);
let mut builder = PreparedRequestBuilder::put(&endpoint_url)
.map_err(|e| super::shared::ApiError::RequestBuildFailed(e.to_string()))?;
builder = builder
.body_json(&args.body)
.map_err(|e| super::shared::ApiError::RequestBuildFailed(e.to_string()))?;
if let Some(f) = builder_mod {
f(&mut builder);
}
super::shared::send_json(client.into(), builder.build()).await
}
pub async fn zero_trust_lists_patch_zero_trust_list_request<F>(
client: impl Into<super::shared::ApiClient>,
args: &ZeroTrustListsPatchZeroTrustListArgs,
base_url: &str,
builder_mod: Option<F>,
) -> Result<ApiResponse<ZeroTrustGatewayListSingleResponse>, super::shared::ApiError>
where
F: FnOnce(&mut PreparedRequestBuilder),
{
let path = format!(
"/accounts/{}/gateway/lists/{}",
args.account_id, args.list_id,
);
let endpoint_url = format!("{}{}", base_url, path);
let mut builder = PreparedRequestBuilder::patch(&endpoint_url)
.map_err(|e| super::shared::ApiError::RequestBuildFailed(e.to_string()))?;
builder = builder
.body_json(&args.body)
.map_err(|e| super::shared::ApiError::RequestBuildFailed(e.to_string()))?;
if let Some(f) = builder_mod {
f(&mut builder);
}
super::shared::send_json(client.into(), builder.build()).await
}
pub async fn zero_trust_lists_delete_zero_trust_list_request<F>(
client: impl Into<super::shared::ApiClient>,
args: &ZeroTrustListsDeleteZeroTrustListArgs,
base_url: &str,
builder_mod: Option<F>,
) -> Result<ApiResponse<ZeroTrustGatewayEmptyResponse>, super::shared::ApiError>
where
F: FnOnce(&mut PreparedRequestBuilder),
{
let path = format!(
"/accounts/{}/gateway/lists/{}",
args.account_id, args.list_id,
);
let endpoint_url = format!("{}{}", base_url, path);
let mut builder = PreparedRequestBuilder::delete(&endpoint_url)
.map_err(|e| super::shared::ApiError::RequestBuildFailed(e.to_string()))?;
if let Some(f) = builder_mod {
f(&mut builder);
}
super::shared::send_json(client.into(), builder.build()).await
}
pub async fn zero_trust_lists_zero_trust_list_items_request<F>(
client: impl Into<super::shared::ApiClient>,
args: &ZeroTrustListsZeroTrustListItemsArgs,
base_url: &str,
builder_mod: Option<F>,
) -> Result<ApiResponse<ZeroTrustGatewayListItemResponseCollection>, super::shared::ApiError>
where
F: FnOnce(&mut PreparedRequestBuilder),
{
let path = format!(
"/accounts/{}/gateway/lists/{}/items",
args.account_id, args.list_id,
);
let endpoint_url = format!("{}{}", base_url, path);
let mut builder = PreparedRequestBuilder::get(&endpoint_url)
.map_err(|e| super::shared::ApiError::RequestBuildFailed(e.to_string()))?;
if let Some(f) = builder_mod {
f(&mut builder);
}
super::shared::send_json(client.into(), builder.build()).await
}
pub async fn zero_trust_gateway_locations_list_zero_trust_gateway_locations_request<F>(
client: impl Into<super::shared::ApiClient>,
args: &ZeroTrustGatewayLocationsListZeroTrustGatewayLocationsArgs,
base_url: &str,
builder_mod: Option<F>,
) -> Result<ApiResponse<ZeroTrustGatewayComponentsSchemasResponseCollection>, super::shared::ApiError>
where
F: FnOnce(&mut PreparedRequestBuilder),
{
let path = format!("/accounts/{}/gateway/locations", args.account_id,);
let endpoint_url = format!("{}{}", base_url, path);
let mut builder = PreparedRequestBuilder::get(&endpoint_url)
.map_err(|e| super::shared::ApiError::RequestBuildFailed(e.to_string()))?;
if let Some(f) = builder_mod {
f(&mut builder);
}
super::shared::send_json(client.into(), builder.build()).await
}
pub async fn zero_trust_gateway_locations_create_zero_trust_gateway_location_request<F>(
client: impl Into<super::shared::ApiClient>,
args: &ZeroTrustGatewayLocationsCreateZeroTrustGatewayLocationArgs,
base_url: &str,
builder_mod: Option<F>,
) -> Result<ApiResponse<ZeroTrustGatewaySchemasSingleResponse>, super::shared::ApiError>
where
F: FnOnce(&mut PreparedRequestBuilder),
{
let path = format!("/accounts/{}/gateway/locations", args.account_id,);
let endpoint_url = format!("{}{}", base_url, path);
let mut builder = PreparedRequestBuilder::post(&endpoint_url)
.map_err(|e| super::shared::ApiError::RequestBuildFailed(e.to_string()))?;
builder = builder
.body_json(&args.body)
.map_err(|e| super::shared::ApiError::RequestBuildFailed(e.to_string()))?;
if let Some(f) = builder_mod {
f(&mut builder);
}
super::shared::send_json(client.into(), builder.build()).await
}
pub async fn zero_trust_gateway_locations_zero_trust_gateway_location_details_request<F>(
client: impl Into<super::shared::ApiClient>,
args: &ZeroTrustGatewayLocationsZeroTrustGatewayLocationDetailsArgs,
base_url: &str,
builder_mod: Option<F>,
) -> Result<ApiResponse<ZeroTrustGatewaySchemasSingleResponse>, super::shared::ApiError>
where
F: FnOnce(&mut PreparedRequestBuilder),
{
let path = format!(
"/accounts/{}/gateway/locations/{}",
args.account_id, args.location_id,
);
let endpoint_url = format!("{}{}", base_url, path);
let mut builder = PreparedRequestBuilder::get(&endpoint_url)
.map_err(|e| super::shared::ApiError::RequestBuildFailed(e.to_string()))?;
if let Some(f) = builder_mod {
f(&mut builder);
}
super::shared::send_json(client.into(), builder.build()).await
}
pub async fn zero_trust_gateway_locations_update_zero_trust_gateway_location_request<F>(
client: impl Into<super::shared::ApiClient>,
args: &ZeroTrustGatewayLocationsUpdateZeroTrustGatewayLocationArgs,
base_url: &str,
builder_mod: Option<F>,
) -> Result<ApiResponse<ZeroTrustGatewaySchemasSingleResponse>, super::shared::ApiError>
where
F: FnOnce(&mut PreparedRequestBuilder),
{
let path = format!(
"/accounts/{}/gateway/locations/{}",
args.account_id, args.location_id,
);
let endpoint_url = format!("{}{}", base_url, path);
let mut builder = PreparedRequestBuilder::put(&endpoint_url)
.map_err(|e| super::shared::ApiError::RequestBuildFailed(e.to_string()))?;
builder = builder
.body_json(&args.body)
.map_err(|e| super::shared::ApiError::RequestBuildFailed(e.to_string()))?;
if let Some(f) = builder_mod {
f(&mut builder);
}
super::shared::send_json(client.into(), builder.build()).await
}
pub async fn zero_trust_gateway_locations_delete_zero_trust_gateway_location_request<F>(
client: impl Into<super::shared::ApiClient>,
args: &ZeroTrustGatewayLocationsDeleteZeroTrustGatewayLocationArgs,
base_url: &str,
builder_mod: Option<F>,
) -> Result<ApiResponse<ZeroTrustGatewayEmptyResponse>, super::shared::ApiError>
where
F: FnOnce(&mut PreparedRequestBuilder),
{
let path = format!(
"/accounts/{}/gateway/locations/{}",
args.account_id, args.location_id,
);
let endpoint_url = format!("{}{}", base_url, path);
let mut builder = PreparedRequestBuilder::delete(&endpoint_url)
.map_err(|e| super::shared::ApiError::RequestBuildFailed(e.to_string()))?;
if let Some(f) = builder_mod {
f(&mut builder);
}
super::shared::send_json(client.into(), builder.build()).await
}
pub async fn zero_trust_accounts_get_logging_settings_for_the_zero_trust_account_request<F>(
client: impl Into<super::shared::ApiClient>,
args: &ZeroTrustAccountsGetLoggingSettingsForTheZeroTrustAccountArgs,
base_url: &str,
builder_mod: Option<F>,
) -> Result<
ApiResponse<ZeroTrustGatewayGatewayAccountLoggingSettingsResponse>,
super::shared::ApiError,
>
where
F: FnOnce(&mut PreparedRequestBuilder),
{
let path = format!("/accounts/{}/gateway/logging", args.account_id,);
let endpoint_url = format!("{}{}", base_url, path);
let mut builder = PreparedRequestBuilder::get(&endpoint_url)
.map_err(|e| super::shared::ApiError::RequestBuildFailed(e.to_string()))?;
if let Some(f) = builder_mod {
f(&mut builder);
}
super::shared::send_json(client.into(), builder.build()).await
}
pub async fn zero_trust_accounts_update_logging_settings_for_the_zero_trust_account_request<F>(
client: impl Into<super::shared::ApiClient>,
args: &ZeroTrustAccountsUpdateLoggingSettingsForTheZeroTrustAccountArgs,
base_url: &str,
builder_mod: Option<F>,
) -> Result<
ApiResponse<ZeroTrustGatewayGatewayAccountLoggingSettingsResponse>,
super::shared::ApiError,
>
where
F: FnOnce(&mut PreparedRequestBuilder),
{
let path = format!("/accounts/{}/gateway/logging", args.account_id,);
let endpoint_url = format!("{}{}", base_url, path);
let mut builder = PreparedRequestBuilder::put(&endpoint_url)
.map_err(|e| super::shared::ApiError::RequestBuildFailed(e.to_string()))?;
builder = builder
.body_json(&args.body)
.map_err(|e| super::shared::ApiError::RequestBuildFailed(e.to_string()))?;
if let Some(f) = builder_mod {
f(&mut builder);
}
super::shared::send_json(client.into(), builder.build()).await
}
pub async fn zero_trust_gateway_pacfiles_list_request<F>(
client: impl Into<super::shared::ApiClient>,
args: &ZeroTrustGatewayPacfilesListArgs,
base_url: &str,
builder_mod: Option<F>,
) -> Result<
ApiResponse<ZeroTrustGatewayPacfilesComponentsSchemasResponseCollection>,
super::shared::ApiError,
>
where
F: FnOnce(&mut PreparedRequestBuilder),
{
let path = format!("/accounts/{}/gateway/pacfiles", args.account_id,);
let endpoint_url = format!("{}{}", base_url, path);
let mut builder = PreparedRequestBuilder::get(&endpoint_url)
.map_err(|e| super::shared::ApiError::RequestBuildFailed(e.to_string()))?;
if let Some(f) = builder_mod {
f(&mut builder);
}
super::shared::send_json(client.into(), builder.build()).await
}
pub async fn zero_trust_gateway_pacfiles_create_pacfile_request<F>(
client: impl Into<super::shared::ApiClient>,
args: &ZeroTrustGatewayPacfilesCreatePacfileArgs,
base_url: &str,
builder_mod: Option<F>,
) -> Result<
ApiResponse<ZeroTrustGatewayPacfilesComponentsSchemasSingleResponse>,
super::shared::ApiError,
>
where
F: FnOnce(&mut PreparedRequestBuilder),
{
let path = format!("/accounts/{}/gateway/pacfiles", args.account_id,);
let endpoint_url = format!("{}{}", base_url, path);
let mut builder = PreparedRequestBuilder::post(&endpoint_url)
.map_err(|e| super::shared::ApiError::RequestBuildFailed(e.to_string()))?;
builder = builder
.body_json(&args.body)
.map_err(|e| super::shared::ApiError::RequestBuildFailed(e.to_string()))?;
if let Some(f) = builder_mod {
f(&mut builder);
}
super::shared::send_json(client.into(), builder.build()).await
}
pub async fn zero_trust_gateway_pacfiles_details_request<F>(
client: impl Into<super::shared::ApiClient>,
args: &ZeroTrustGatewayPacfilesDetailsArgs,
base_url: &str,
builder_mod: Option<F>,
) -> Result<
ApiResponse<ZeroTrustGatewayPacfilesComponentsSchemasSingleResponse>,
super::shared::ApiError,
>
where
F: FnOnce(&mut PreparedRequestBuilder),
{
let path = format!(
"/accounts/{}/gateway/pacfiles/{}",
args.account_id, args.pacfile_id,
);
let endpoint_url = format!("{}{}", base_url, path);
let mut builder = PreparedRequestBuilder::get(&endpoint_url)
.map_err(|e| super::shared::ApiError::RequestBuildFailed(e.to_string()))?;
if let Some(f) = builder_mod {
f(&mut builder);
}
super::shared::send_json(client.into(), builder.build()).await
}
pub async fn zero_trust_gateway_pacfiles_update_request<F>(
client: impl Into<super::shared::ApiClient>,
args: &ZeroTrustGatewayPacfilesUpdateArgs,
base_url: &str,
builder_mod: Option<F>,
) -> Result<
ApiResponse<ZeroTrustGatewayPacfilesComponentsSchemasSingleResponse>,
super::shared::ApiError,
>
where
F: FnOnce(&mut PreparedRequestBuilder),
{
let path = format!(
"/accounts/{}/gateway/pacfiles/{}",
args.account_id, args.pacfile_id,
);
let endpoint_url = format!("{}{}", base_url, path);
let mut builder = PreparedRequestBuilder::put(&endpoint_url)
.map_err(|e| super::shared::ApiError::RequestBuildFailed(e.to_string()))?;
builder = builder
.body_json(&args.body)
.map_err(|e| super::shared::ApiError::RequestBuildFailed(e.to_string()))?;
if let Some(f) = builder_mod {
f(&mut builder);
}
super::shared::send_json(client.into(), builder.build()).await
}
pub async fn zero_trust_gateway_pacfiles_delete_request<F>(
client: impl Into<super::shared::ApiClient>,
args: &ZeroTrustGatewayPacfilesDeleteArgs,
base_url: &str,
builder_mod: Option<F>,
) -> Result<ApiResponse<ZeroTrustGatewayEmptyResponse>, super::shared::ApiError>
where
F: FnOnce(&mut PreparedRequestBuilder),
{
let path = format!(
"/accounts/{}/gateway/pacfiles/{}",
args.account_id, args.pacfile_id,
);
let endpoint_url = format!("{}{}", base_url, path);
let mut builder = PreparedRequestBuilder::delete(&endpoint_url)
.map_err(|e| super::shared::ApiError::RequestBuildFailed(e.to_string()))?;
if let Some(f) = builder_mod {
f(&mut builder);
}
super::shared::send_json(client.into(), builder.build()).await
}
pub async fn zero_trust_gateway_proxy_endpoints_list_proxy_endpoints_request<F>(
client: impl Into<super::shared::ApiClient>,
args: &ZeroTrustGatewayProxyEndpointsListProxyEndpointsArgs,
base_url: &str,
builder_mod: Option<F>,
) -> Result<
ApiResponse<ZeroTrustGatewayProxyEndpointsComponentsSchemasResponseCollection>,
super::shared::ApiError,
>
where
F: FnOnce(&mut PreparedRequestBuilder),
{
let path = format!("/accounts/{}/gateway/proxy_endpoints", args.account_id,);
let endpoint_url = format!("{}{}", base_url, path);
let mut builder = PreparedRequestBuilder::get(&endpoint_url)
.map_err(|e| super::shared::ApiError::RequestBuildFailed(e.to_string()))?;
if let Some(f) = builder_mod {
f(&mut builder);
}
super::shared::send_json(client.into(), builder.build()).await
}
pub async fn zero_trust_gateway_proxy_endpoints_create_proxy_endpoint_request<F>(
client: impl Into<super::shared::ApiClient>,
args: &ZeroTrustGatewayProxyEndpointsCreateProxyEndpointArgs,
base_url: &str,
builder_mod: Option<F>,
) -> Result<
ApiResponse<ZeroTrustGatewayProxyEndpointsComponentsSchemasSingleResponse>,
super::shared::ApiError,
>
where
F: FnOnce(&mut PreparedRequestBuilder),
{
let path = format!("/accounts/{}/gateway/proxy_endpoints", args.account_id,);
let endpoint_url = format!("{}{}", base_url, path);
let mut builder = PreparedRequestBuilder::post(&endpoint_url)
.map_err(|e| super::shared::ApiError::RequestBuildFailed(e.to_string()))?;
builder = builder
.body_json(&args.body)
.map_err(|e| super::shared::ApiError::RequestBuildFailed(e.to_string()))?;
if let Some(f) = builder_mod {
f(&mut builder);
}
super::shared::send_json(client.into(), builder.build()).await
}
pub async fn zero_trust_gateway_proxy_endpoints_proxy_endpoint_details_request<F>(
client: impl Into<super::shared::ApiClient>,
args: &ZeroTrustGatewayProxyEndpointsProxyEndpointDetailsArgs,
base_url: &str,
builder_mod: Option<F>,
) -> Result<
ApiResponse<ZeroTrustGatewayProxyEndpointsComponentsSchemasSingleResponse>,
super::shared::ApiError,
>
where
F: FnOnce(&mut PreparedRequestBuilder),
{
let path = format!(
"/accounts/{}/gateway/proxy_endpoints/{}",
args.account_id, args.proxy_endpoint_id,
);
let endpoint_url = format!("{}{}", base_url, path);
let mut builder = PreparedRequestBuilder::get(&endpoint_url)
.map_err(|e| super::shared::ApiError::RequestBuildFailed(e.to_string()))?;
if let Some(f) = builder_mod {
f(&mut builder);
}
super::shared::send_json(client.into(), builder.build()).await
}
pub async fn zero_trust_gateway_proxy_endpoints_update_proxy_endpoint_request<F>(
client: impl Into<super::shared::ApiClient>,
args: &ZeroTrustGatewayProxyEndpointsUpdateProxyEndpointArgs,
base_url: &str,
builder_mod: Option<F>,
) -> Result<
ApiResponse<ZeroTrustGatewayProxyEndpointsComponentsSchemasSingleResponse>,
super::shared::ApiError,
>
where
F: FnOnce(&mut PreparedRequestBuilder),
{
let path = format!(
"/accounts/{}/gateway/proxy_endpoints/{}",
args.account_id, args.proxy_endpoint_id,
);
let endpoint_url = format!("{}{}", base_url, path);
let mut builder = PreparedRequestBuilder::patch(&endpoint_url)
.map_err(|e| super::shared::ApiError::RequestBuildFailed(e.to_string()))?;
builder = builder
.body_json(&args.body)
.map_err(|e| super::shared::ApiError::RequestBuildFailed(e.to_string()))?;
if let Some(f) = builder_mod {
f(&mut builder);
}
super::shared::send_json(client.into(), builder.build()).await
}
pub async fn zero_trust_gateway_proxy_endpoints_delete_proxy_endpoint_request<F>(
client: impl Into<super::shared::ApiClient>,
args: &ZeroTrustGatewayProxyEndpointsDeleteProxyEndpointArgs,
base_url: &str,
builder_mod: Option<F>,
) -> Result<ApiResponse<ZeroTrustGatewayEmptyResponse>, super::shared::ApiError>
where
F: FnOnce(&mut PreparedRequestBuilder),
{
let path = format!(
"/accounts/{}/gateway/proxy_endpoints/{}",
args.account_id, args.proxy_endpoint_id,
);
let endpoint_url = format!("{}{}", base_url, path);
let mut builder = PreparedRequestBuilder::delete(&endpoint_url)
.map_err(|e| super::shared::ApiError::RequestBuildFailed(e.to_string()))?;
if let Some(f) = builder_mod {
f(&mut builder);
}
super::shared::send_json(client.into(), builder.build()).await
}
pub async fn zero_trust_gateway_rules_list_zero_trust_gateway_rules_request<F>(
client: impl Into<super::shared::ApiClient>,
args: &ZeroTrustGatewayRulesListZeroTrustGatewayRulesArgs,
base_url: &str,
builder_mod: Option<F>,
) -> Result<
ApiResponse<ZeroTrustGatewayRulesComponentsSchemasResponseCollection>,
super::shared::ApiError,
>
where
F: FnOnce(&mut PreparedRequestBuilder),
{
let path = format!("/accounts/{}/gateway/rules", args.account_id,);
let endpoint_url = format!("{}{}", base_url, path);
let mut builder = PreparedRequestBuilder::get(&endpoint_url)
.map_err(|e| super::shared::ApiError::RequestBuildFailed(e.to_string()))?;
if let Some(f) = builder_mod {
f(&mut builder);
}
super::shared::send_json(client.into(), builder.build()).await
}
pub async fn zero_trust_gateway_rules_create_zero_trust_gateway_rule_request<F>(
client: impl Into<super::shared::ApiClient>,
args: &ZeroTrustGatewayRulesCreateZeroTrustGatewayRuleArgs,
base_url: &str,
builder_mod: Option<F>,
) -> Result<ApiResponse<ZeroTrustGatewayComponentsSchemasSingleResponse>, super::shared::ApiError>
where
F: FnOnce(&mut PreparedRequestBuilder),
{
let path = format!("/accounts/{}/gateway/rules", args.account_id,);
let endpoint_url = format!("{}{}", base_url, path);
let mut builder = PreparedRequestBuilder::post(&endpoint_url)
.map_err(|e| super::shared::ApiError::RequestBuildFailed(e.to_string()))?;
builder = builder
.body_json(&args.body)
.map_err(|e| super::shared::ApiError::RequestBuildFailed(e.to_string()))?;
if let Some(f) = builder_mod {
f(&mut builder);
}
super::shared::send_json(client.into(), builder.build()).await
}
pub async fn zero_trust_gateway_rules_list_zero_trust_gateway_rules_tenant_request<F>(
client: impl Into<super::shared::ApiClient>,
args: &ZeroTrustGatewayRulesListZeroTrustGatewayRulesTenantArgs,
base_url: &str,
builder_mod: Option<F>,
) -> Result<
ApiResponse<ZeroTrustGatewayRulesComponentsSchemasResponseCollection>,
super::shared::ApiError,
>
where
F: FnOnce(&mut PreparedRequestBuilder),
{
let path = format!("/accounts/{}/gateway/rules/tenant", args.account_id,);
let endpoint_url = format!("{}{}", base_url, path);
let mut builder = PreparedRequestBuilder::get(&endpoint_url)
.map_err(|e| super::shared::ApiError::RequestBuildFailed(e.to_string()))?;
if let Some(f) = builder_mod {
f(&mut builder);
}
super::shared::send_json(client.into(), builder.build()).await
}
pub async fn zero_trust_gateway_rules_zero_trust_gateway_rule_details_request<F>(
client: impl Into<super::shared::ApiClient>,
args: &ZeroTrustGatewayRulesZeroTrustGatewayRuleDetailsArgs,
base_url: &str,
builder_mod: Option<F>,
) -> Result<ApiResponse<ZeroTrustGatewayComponentsSchemasSingleResponse>, super::shared::ApiError>
where
F: FnOnce(&mut PreparedRequestBuilder),
{
let path = format!(
"/accounts/{}/gateway/rules/{}",
args.account_id, args.rule_id,
);
let endpoint_url = format!("{}{}", base_url, path);
let mut builder = PreparedRequestBuilder::get(&endpoint_url)
.map_err(|e| super::shared::ApiError::RequestBuildFailed(e.to_string()))?;
if let Some(f) = builder_mod {
f(&mut builder);
}
super::shared::send_json(client.into(), builder.build()).await
}
pub async fn zero_trust_gateway_rules_update_zero_trust_gateway_rule_request<F>(
client: impl Into<super::shared::ApiClient>,
args: &ZeroTrustGatewayRulesUpdateZeroTrustGatewayRuleArgs,
base_url: &str,
builder_mod: Option<F>,
) -> Result<ApiResponse<ZeroTrustGatewayComponentsSchemasSingleResponse>, super::shared::ApiError>
where
F: FnOnce(&mut PreparedRequestBuilder),
{
let path = format!(
"/accounts/{}/gateway/rules/{}",
args.account_id, args.rule_id,
);
let endpoint_url = format!("{}{}", base_url, path);
let mut builder = PreparedRequestBuilder::put(&endpoint_url)
.map_err(|e| super::shared::ApiError::RequestBuildFailed(e.to_string()))?;
builder = builder
.body_json(&args.body)
.map_err(|e| super::shared::ApiError::RequestBuildFailed(e.to_string()))?;
if let Some(f) = builder_mod {
f(&mut builder);
}
super::shared::send_json(client.into(), builder.build()).await
}
pub async fn zero_trust_gateway_rules_delete_zero_trust_gateway_rule_request<F>(
client: impl Into<super::shared::ApiClient>,
args: &ZeroTrustGatewayRulesDeleteZeroTrustGatewayRuleArgs,
base_url: &str,
builder_mod: Option<F>,
) -> Result<ApiResponse<ZeroTrustGatewayEmptyResponse>, super::shared::ApiError>
where
F: FnOnce(&mut PreparedRequestBuilder),
{
let path = format!(
"/accounts/{}/gateway/rules/{}",
args.account_id, args.rule_id,
);
let endpoint_url = format!("{}{}", base_url, path);
let mut builder = PreparedRequestBuilder::delete(&endpoint_url)
.map_err(|e| super::shared::ApiError::RequestBuildFailed(e.to_string()))?;
if let Some(f) = builder_mod {
f(&mut builder);
}
super::shared::send_json(client.into(), builder.build()).await
}
pub async fn zero_trust_gateway_rules_reset_expiration_zero_trust_gateway_rule_request<F>(
client: impl Into<super::shared::ApiClient>,
args: &ZeroTrustGatewayRulesResetExpirationZeroTrustGatewayRuleArgs,
base_url: &str,
builder_mod: Option<F>,
) -> Result<ApiResponse<ZeroTrustGatewayComponentsSchemasSingleResponse>, super::shared::ApiError>
where
F: FnOnce(&mut PreparedRequestBuilder),
{
let path = format!(
"/accounts/{}/gateway/rules/{}/reset_expiration",
args.account_id, args.rule_id,
);
let endpoint_url = format!("{}{}", base_url, path);
let mut builder = PreparedRequestBuilder::post(&endpoint_url)
.map_err(|e| super::shared::ApiError::RequestBuildFailed(e.to_string()))?;
if let Some(f) = builder_mod {
f(&mut builder);
}
super::shared::send_json(client.into(), builder.build()).await
}
pub async fn zero_trust_networks_subnets_list_request<F>(
client: impl Into<super::shared::ApiClient>,
args: &ZeroTrustNetworksSubnetsListArgs,
base_url: &str,
builder_mod: Option<F>,
) -> Result<ApiResponse<TunnelSubnetResponseCollection>, super::shared::ApiError>
where
F: FnOnce(&mut PreparedRequestBuilder),
{
let path = format!("/accounts/{}/zerotrust/subnets", args.account_id,);
let endpoint_url = format!("{}{}", base_url, path);
let mut builder = PreparedRequestBuilder::get(&endpoint_url)
.map_err(|e| super::shared::ApiError::RequestBuildFailed(e.to_string()))?;
builder = builder.query("name", args.name.as_deref());
builder = builder.query("comment", args.comment.as_deref());
builder = builder.query("network", args.network.as_deref());
builder = builder.query("existed_at", args.existed_at.as_deref());
builder = builder.query("address_family", args.address_family.as_deref());
builder = builder.query("is_default_network", args.is_default_network.as_deref());
builder = builder.query("is_deleted", args.is_deleted.as_deref());
builder = builder.query("sort_order", args.sort_order.as_deref());
builder = builder.query("subnet_types", args.subnet_types.as_deref());
builder = builder.query("per_page", args.per_page.as_deref());
builder = builder.query("page", args.page.as_deref());
if let Some(f) = builder_mod {
f(&mut builder);
}
super::shared::send_json(client.into(), builder.build()).await
}
pub async fn zero_trust_networks_subnet_update_cloudflare_source_request<F>(
client: impl Into<super::shared::ApiClient>,
args: &ZeroTrustNetworksSubnetUpdateCloudflareSourceArgs,
base_url: &str,
builder_mod: Option<F>,
) -> Result<ApiResponse<TunnelSubnetResponseSingle>, super::shared::ApiError>
where
F: FnOnce(&mut PreparedRequestBuilder),
{
let path = format!(
"/accounts/{}/zerotrust/subnets/cloudflare_source/{}",
args.account_id, args.address_family,
);
let endpoint_url = format!("{}{}", base_url, path);
let mut builder = PreparedRequestBuilder::patch(&endpoint_url)
.map_err(|e| super::shared::ApiError::RequestBuildFailed(e.to_string()))?;
builder = builder
.body_json(&args.body)
.map_err(|e| super::shared::ApiError::RequestBuildFailed(e.to_string()))?;
if let Some(f) = builder_mod {
f(&mut builder);
}
super::shared::send_json(client.into(), builder.build()).await
}
pub async fn dlp_risk_score_behaviors_get_request<F>(
client: impl Into<super::shared::ApiClient>,
args: &DlpRiskScoreBehaviorsGetArgs,
base_url: &str,
builder_mod: Option<F>,
) -> Result<ApiResponse<DlpRiskScoreBehaviorsGetResponse>, super::shared::ApiError>
where
F: FnOnce(&mut PreparedRequestBuilder),
{
let path = format!("/accounts/{}/zt_risk_scoring/behaviors", args.account_id,);
let endpoint_url = format!("{}{}", base_url, path);
let mut builder = PreparedRequestBuilder::get(&endpoint_url)
.map_err(|e| super::shared::ApiError::RequestBuildFailed(e.to_string()))?;
if let Some(f) = builder_mod {
f(&mut builder);
}
super::shared::send_json(client.into(), builder.build()).await
}
pub async fn dlp_risk_score_behaviors_put_request<F>(
client: impl Into<super::shared::ApiClient>,
args: &DlpRiskScoreBehaviorsPutArgs,
base_url: &str,
builder_mod: Option<F>,
) -> Result<ApiResponse<DlpRiskScoreBehaviorsPutResponse>, super::shared::ApiError>
where
F: FnOnce(&mut PreparedRequestBuilder),
{
let path = format!("/accounts/{}/zt_risk_scoring/behaviors", args.account_id,);
let endpoint_url = format!("{}{}", base_url, path);
let mut builder = PreparedRequestBuilder::put(&endpoint_url)
.map_err(|e| super::shared::ApiError::RequestBuildFailed(e.to_string()))?;
builder = builder
.body_json(&args.body)
.map_err(|e| super::shared::ApiError::RequestBuildFailed(e.to_string()))?;
if let Some(f) = builder_mod {
f(&mut builder);
}
super::shared::send_json(client.into(), builder.build()).await
}
pub async fn dlp_zt_risk_score_integration_list_request<F>(
client: impl Into<super::shared::ApiClient>,
args: &DlpZtRiskScoreIntegrationListArgs,
base_url: &str,
builder_mod: Option<F>,
) -> Result<ApiResponse<DlpZtRiskScoreIntegrationListResponse>, super::shared::ApiError>
where
F: FnOnce(&mut PreparedRequestBuilder),
{
let path = format!("/accounts/{}/zt_risk_scoring/integrations", args.account_id,);
let endpoint_url = format!("{}{}", base_url, path);
let mut builder = PreparedRequestBuilder::get(&endpoint_url)
.map_err(|e| super::shared::ApiError::RequestBuildFailed(e.to_string()))?;
if let Some(f) = builder_mod {
f(&mut builder);
}
super::shared::send_json(client.into(), builder.build()).await
}
pub async fn dlp_zt_risk_score_integration_create_request<F>(
client: impl Into<super::shared::ApiClient>,
args: &DlpZtRiskScoreIntegrationCreateArgs,
base_url: &str,
builder_mod: Option<F>,
) -> Result<ApiResponse<DlpZtRiskScoreIntegrationCreateResponse>, super::shared::ApiError>
where
F: FnOnce(&mut PreparedRequestBuilder),
{
let path = format!("/accounts/{}/zt_risk_scoring/integrations", args.account_id,);
let endpoint_url = format!("{}{}", base_url, path);
let mut builder = PreparedRequestBuilder::post(&endpoint_url)
.map_err(|e| super::shared::ApiError::RequestBuildFailed(e.to_string()))?;
builder = builder
.body_json(&args.body)
.map_err(|e| super::shared::ApiError::RequestBuildFailed(e.to_string()))?;
if let Some(f) = builder_mod {
f(&mut builder);
}
super::shared::send_json(client.into(), builder.build()).await
}
pub async fn dlp_zt_risk_score_integration_get_by_reference_id_request<F>(
client: impl Into<super::shared::ApiClient>,
args: &DlpZtRiskScoreIntegrationGetByReferenceIdArgs,
base_url: &str,
builder_mod: Option<F>,
) -> Result<ApiResponse<DlpZtRiskScoreIntegrationGetByReferenceIdResponse>, super::shared::ApiError>
where
F: FnOnce(&mut PreparedRequestBuilder),
{
let path = format!(
"/accounts/{}/zt_risk_scoring/integrations/reference_id/{}",
args.account_id, args.reference_id,
);
let endpoint_url = format!("{}{}", base_url, path);
let mut builder = PreparedRequestBuilder::get(&endpoint_url)
.map_err(|e| super::shared::ApiError::RequestBuildFailed(e.to_string()))?;
if let Some(f) = builder_mod {
f(&mut builder);
}
super::shared::send_json(client.into(), builder.build()).await
}
pub async fn dlp_zt_risk_score_integration_get_request<F>(
client: impl Into<super::shared::ApiClient>,
args: &DlpZtRiskScoreIntegrationGetArgs,
base_url: &str,
builder_mod: Option<F>,
) -> Result<ApiResponse<DlpZtRiskScoreIntegrationGetResponse>, super::shared::ApiError>
where
F: FnOnce(&mut PreparedRequestBuilder),
{
let path = format!(
"/accounts/{}/zt_risk_scoring/integrations/{}",
args.account_id, args.integration_id,
);
let endpoint_url = format!("{}{}", base_url, path);
let mut builder = PreparedRequestBuilder::get(&endpoint_url)
.map_err(|e| super::shared::ApiError::RequestBuildFailed(e.to_string()))?;
if let Some(f) = builder_mod {
f(&mut builder);
}
super::shared::send_json(client.into(), builder.build()).await
}
pub async fn dlp_zt_risk_score_integration_update_request<F>(
client: impl Into<super::shared::ApiClient>,
args: &DlpZtRiskScoreIntegrationUpdateArgs,
base_url: &str,
builder_mod: Option<F>,
) -> Result<ApiResponse<DlpZtRiskScoreIntegrationUpdateResponse>, super::shared::ApiError>
where
F: FnOnce(&mut PreparedRequestBuilder),
{
let path = format!(
"/accounts/{}/zt_risk_scoring/integrations/{}",
args.account_id, args.integration_id,
);
let endpoint_url = format!("{}{}", base_url, path);
let mut builder = PreparedRequestBuilder::put(&endpoint_url)
.map_err(|e| super::shared::ApiError::RequestBuildFailed(e.to_string()))?;
builder = builder
.body_json(&args.body)
.map_err(|e| super::shared::ApiError::RequestBuildFailed(e.to_string()))?;
if let Some(f) = builder_mod {
f(&mut builder);
}
super::shared::send_json(client.into(), builder.build()).await
}
pub async fn dlp_zt_risk_score_integration_delete_request<F>(
client: impl Into<super::shared::ApiClient>,
args: &DlpZtRiskScoreIntegrationDeleteArgs,
base_url: &str,
builder_mod: Option<F>,
) -> Result<ApiResponse<DlpZtRiskScoreIntegrationDeleteResponse>, super::shared::ApiError>
where
F: FnOnce(&mut PreparedRequestBuilder),
{
let path = format!(
"/accounts/{}/zt_risk_scoring/integrations/{}",
args.account_id, args.integration_id,
);
let endpoint_url = format!("{}{}", base_url, path);
let mut builder = PreparedRequestBuilder::delete(&endpoint_url)
.map_err(|e| super::shared::ApiError::RequestBuildFailed(e.to_string()))?;
if let Some(f) = builder_mod {
f(&mut builder);
}
super::shared::send_json(client.into(), builder.build()).await
}
pub async fn dlp_risk_score_summary_get_request<F>(
client: impl Into<super::shared::ApiClient>,
args: &DlpRiskScoreSummaryGetArgs,
base_url: &str,
builder_mod: Option<F>,
) -> Result<ApiResponse<DlpRiskScoreSummaryGetResponse>, super::shared::ApiError>
where
F: FnOnce(&mut PreparedRequestBuilder),
{
let path = format!("/accounts/{}/zt_risk_scoring/summary", args.account_id,);
let endpoint_url = format!("{}{}", base_url, path);
let mut builder = PreparedRequestBuilder::get(&endpoint_url)
.map_err(|e| super::shared::ApiError::RequestBuildFailed(e.to_string()))?;
if let Some(f) = builder_mod {
f(&mut builder);
}
super::shared::send_json(client.into(), builder.build()).await
}