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
2767 2768 2769 2770 2771 2772 2773 2774 2775 2776 2777 2778 2779 2780 2781 2782 2783 2784 2785 2786 2787 2788 2789 2790 2791 2792 2793 2794 2795 2796 2797 2798 2799 2800 2801 2802 2803 2804 2805 2806 2807 2808 2809 2810 2811 2812 2813 2814 2815 2816 2817 2818 2819 2820 2821 2822 2823 2824 2825 2826 2827 2828 2829 2830 2831 2832 2833 2834 2835 2836 2837 2838 2839 2840 | |