update_asset_file
async
¶
update_asset_file(
agent_space_id: AgentSpaceIdentifier,
asset_id: ResourceId,
path: AssetFilePath,
*,
config_overrides: Optional[AsyncDevOpsAgentClientConfig] = None,
content: Optional[AssetFileBody] = None,
metadata: Optional[object] = None,
client_token: Optional[str] = None,
) -> UpdateAssetFileResponse
Updates a file in an asset
Parameters:
-
agent_space_id(AgentSpaceIdentifier) –The unique identifier for the agent space containing the asset
-
asset_id(ResourceId) –The unique identifier of the asset containing the file
-
path(AssetFilePath) –The path of the file within the asset to update
-
content(Optional[AssetFileBody], default:None) –Updated file content. If omitted, the existing content is unchanged.
-
metadata(Optional[object], default:None) –Metadata fields to update. Only the fields present in this document are updated. Omitted fields retain their current values.
-
client_token(Optional[str], default:None) –A unique, case-sensitive identifier used for idempotent asset file update
Raises:
-
AccessDeniedException–Access to the requested resource is denied due to insufficient permissions.
-
ConflictException–The request conflicts with the current state of the resource.
-
ContentSizeExceededException–This exception is thrown when the content size exceeds the allowed limit.
-
InternalServerException–This exception is thrown when an unexpected error occurs in the processing of a request.
-
InvalidParameterException–One or more parameters provided in the request are invalid.
-
ResourceNotFoundException–The requested resource could not be found.
-
ServiceQuotaExceededException–The request would exceed the service quota limit.
-
ThrottlingException–The request was throttled due to too many requests. Please slow down and try again.
-
ValidationException–The input fails to satisfy the constraints specified by the service.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_devops_agent/_services/async_dev_ops_agent.py
2849 2850 2851 2852 2853 2854 2855 2856 2857 2858 2859 2860 2861 2862 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 | |