update_entity
¶
update_entity(
workspace_id: Id,
entity_id: EntityId,
*,
config_overrides: Optional[IoTTwinMakerClientConfig] = None,
entity_name: Optional[EntityName] = None,
description: Optional[Description] = None,
component_updates: Optional[ComponentUpdatesMapRequest] = None,
composite_component_updates: Optional[CompositeComponentUpdatesMapRequest] = None,
parent_entity_update: Optional[ParentEntityUpdateRequest] = None,
) -> UpdateEntityResponse
Updates an entity.
Parameters:
-
workspace_id(Id) –The ID of the workspace that contains the entity.
-
entity_id(EntityId) –The ID of the entity.
-
entity_name(Optional[EntityName], default:None) –The name of the entity.
-
description(Optional[Description], default:None) –The description of the entity.
-
component_updates(Optional[ComponentUpdatesMapRequest], default:None) –An object that maps strings to the component updates in the request. Each string in the mapping must be unique to this object.
-
composite_component_updates(Optional[CompositeComponentUpdatesMapRequest], default:None) –This is an object that maps strings to
compositeComponentupdates in the request. Each key of the map represents thecomponentPathof thecompositeComponent. -
parent_entity_update(Optional[ParentEntityUpdateRequest], default:None) –An object that describes the update request for a parent entity.
Raises:
-
AccessDeniedException–Access is denied.
-
ConflictException–A conflict occurred.
-
InternalServerException–An unexpected error has occurred.
-
ResourceNotFoundException–The resource wasn't found.
-
ServiceQuotaExceededException–The service quota was exceeded.
-
ThrottlingException–The rate exceeds the limit.
-
ValidationException–Failed
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_iottwinmaker/_services/io_t_twin_maker.py
2863 2864 2865 2866 2867 2868 2869 2870 2871 2872 2873 2874 2875 2876 2877 2878 2879 2880 2881 2882 2883 2884 2885 2886 2887 2888 2889 2890 2891 2892 2893 2894 2895 2896 2897 2898 2899 2900 2901 2902 2903 2904 2905 2906 2907 2908 2909 2910 2911 2912 2913 2914 2915 2916 2917 2918 2919 2920 2921 2922 2923 2924 2925 2926 2927 2928 2929 2930 2931 2932 2933 2934 2935 2936 2937 2938 2939 2940 2941 | |