get_mobile_device_access_effect
¶
get_mobile_device_access_effect(
organization_id: OrganizationId,
*,
config_overrides: Optional[WorkMailClientConfig] = 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/work_mail.py
3158 3159 3160 3161 3162 3163 3164 3165 3166 3167 3168 3169 3170 3171 3172 3173 3174 3175 3176 3177 3178 3179 3180 3181 3182 3183 3184 3185 3186 3187 3188 3189 3190 3191 3192 3193 3194 3195 3196 3197 3198 3199 3200 3201 3202 3203 3204 3205 3206 3207 3208 3209 3210 3211 3212 3213 3214 3215 3216 3217 3218 3219 3220 3221 3222 3223 | |