update_mobile_device_access_rule
¶
update_mobile_device_access_rule(
organization_id: OrganizationId,
mobile_device_access_rule_id: MobileDeviceAccessRuleId,
name: MobileDeviceAccessRuleName,
effect: MobileDeviceAccessRuleEffect,
*,
config_overrides: Optional[WorkMailClientConfig] = 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/work_mail.py
5922 5923 5924 5925 5926 5927 5928 5929 5930 5931 5932 5933 5934 5935 5936 5937 5938 5939 5940 5941 5942 5943 5944 5945 5946 5947 5948 5949 5950 5951 5952 5953 5954 5955 5956 5957 5958 5959 5960 5961 5962 5963 5964 5965 5966 5967 5968 5969 5970 5971 5972 5973 5974 5975 5976 5977 5978 5979 5980 5981 5982 5983 5984 5985 5986 5987 5988 5989 5990 5991 5992 5993 5994 5995 5996 5997 5998 5999 6000 6001 6002 6003 6004 6005 6006 6007 6008 6009 6010 6011 6012 6013 6014 6015 6016 6017 6018 6019 6020 6021 6022 6023 6024 6025 6026 6027 6028 6029 6030 6031 | |