get_mobile_device_access_effect
async
¶
get_mobile_device_access_effect(
organization_id: OrganizationId,
*,
config_overrides: Optional[AsyncWorkMailClientConfig] = None,
device_type: Optional[DeviceType] = None,
device_model: Optional[DeviceModel] = None,
device_operating_system: Optional[DeviceOperatingSystem] = None,
device_user_agent: Optional[DeviceUserAgent] = None,
) -> GetMobileDeviceAccessEffectResponse
Simulates the effect of the mobile device access rules for the given attributes of a sample access event. Use this method to test the effects of the current set of mobile device access rules for the WorkMail organization for a particular user's attributes.
Parameters:
-
organization_id(OrganizationId) –The WorkMail organization to simulate the access effect for.
-
device_type(Optional[DeviceType], default:None) –Device type the simulated user will report.
-
device_model(Optional[DeviceModel], default:None) –Device model the simulated user will report.
-
device_operating_system(Optional[DeviceOperatingSystem], default:None) –Device operating system the simulated user will report.
-
device_user_agent(Optional[DeviceUserAgent], default:None) –Device user agent the simulated user will report.
Raises:
-
InvalidParameterException–One or more of the input parameters don't match the service's restrictions.
-
OrganizationNotFoundException–An operation received a valid organization identifier that either doesn't belong or exist in the system.
-
OrganizationStateException–The organization must have a valid state to perform certain operations on the organization or its members.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_workmail/_services/async_work_mail.py
3206 3207 3208 3209 3210 3211 3212 3213 3214 3215 3216 3217 3218 3219 3220 3221 3222 3223 3224 3225 3226 3227 3228 3229 3230 3231 3232 3233 3234 3235 3236 3237 3238 3239 3240 3241 3242 3243 3244 3245 3246 3247 3248 3249 3250 3251 3252 3253 3254 3255 3256 3257 3258 3259 3260 3261 3262 3263 3264 3265 3266 3267 3268 3269 3270 3271 3272 | |