update_mobile_device_access_rule
async
¶
update_mobile_device_access_rule(
organization_id: OrganizationId,
mobile_device_access_rule_id: MobileDeviceAccessRuleId,
name: MobileDeviceAccessRuleName,
effect: MobileDeviceAccessRuleEffect,
*,
config_overrides: Optional[AsyncWorkMailClientConfig] = None,
description: Optional[MobileDeviceAccessRuleDescription] = None,
device_types: Optional[DeviceTypeList] = None,
not_device_types: Optional[DeviceTypeList] = None,
device_models: Optional[DeviceModelList] = None,
not_device_models: Optional[DeviceModelList] = None,
device_operating_systems: Optional[DeviceOperatingSystemList] = None,
not_device_operating_systems: Optional[DeviceOperatingSystemList] = None,
device_user_agents: Optional[DeviceUserAgentList] = None,
not_device_user_agents: Optional[DeviceUserAgentList] = None,
) -> UpdateMobileDeviceAccessRuleResponse
Updates a mobile device access rule for the specified WorkMail organization.
Parameters:
-
organization_id(OrganizationId) –The WorkMail organization under which the rule will be updated.
-
mobile_device_access_rule_id(MobileDeviceAccessRuleId) –The identifier of the rule to be updated.
-
name(MobileDeviceAccessRuleName) –The updated rule name.
-
description(Optional[MobileDeviceAccessRuleDescription], default:None) –The updated rule description.
-
effect(MobileDeviceAccessRuleEffect) –The effect of the rule when it matches. Allowed values are
ALLOWorDENY. -
device_types(Optional[DeviceTypeList], default:None) –Device types that the updated rule will match.
-
not_device_types(Optional[DeviceTypeList], default:None) –Device types that the updated rule will not match. All other device types will match.
-
device_models(Optional[DeviceModelList], default:None) –Device models that the updated rule will match.
-
not_device_models(Optional[DeviceModelList], default:None) –Device models that the updated rule will not match. All other device models will match.
-
device_operating_systems(Optional[DeviceOperatingSystemList], default:None) –Device operating systems that the updated rule will match.
-
not_device_operating_systems(Optional[DeviceOperatingSystemList], default:None) –Device operating systems that the updated rule will not match. All other device operating systems will match.
-
device_user_agents(Optional[DeviceUserAgentList], default:None) –User agents that the updated rule will match.
-
not_device_user_agents(Optional[DeviceUserAgentList], default:None) –User agents that the updated rule will not match. All other user agents will match.
Raises:
-
EntityNotFoundException–The identifier supplied for the user, group, or resource does not exist in your organization.
-
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
6010 6011 6012 6013 6014 6015 6016 6017 6018 6019 6020 6021 6022 6023 6024 6025 6026 6027 6028 6029 6030 6031 6032 6033 6034 6035 6036 6037 6038 6039 6040 6041 6042 6043 6044 6045 6046 6047 6048 6049 6050 6051 6052 6053 6054 6055 6056 6057 6058 6059 6060 6061 6062 6063 6064 6065 6066 6067 6068 6069 6070 6071 6072 6073 6074 6075 6076 6077 6078 6079 6080 6081 6082 6083 6084 6085 6086 6087 6088 6089 6090 6091 6092 6093 6094 6095 6096 6097 6098 6099 6100 6101 6102 6103 6104 6105 6106 6107 6108 6109 6110 6111 6112 6113 6114 6115 6116 6117 6118 6119 6120 | |