update_asset
¶
update_asset(
agent_space_id: AgentSpaceIdentifier,
asset_id: ResourceId,
*,
config_overrides: Optional[DevOpsAgentClientConfig] = None,
metadata: Optional[object] = None,
content: Optional[AssetContent] = None,
client_token: Optional[str] = None,
) -> UpdateAssetResponse
Updates an asset in the specified agent space
Parameters:
-
agent_space_id(AgentSpaceIdentifier) –The unique identifier for the agent space containing the asset
-
asset_id(ResourceId) –The unique identifier of the asset to update
-
metadata(Optional[object], default:None) –Metadata fields to update. Only the fields present in this document are updated. Omitted fields retain their current values.
-
content(Optional[AssetContent], default:None) –Optional content update. A single file adds or replaces one file; a zip replaces all files; a sourceUrl re-syncs from the original source.
-
client_token(Optional[str], default:None) –A unique, case-sensitive identifier used for idempotent asset 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/dev_ops_agent.py
2663 2664 2665 2666 2667 2668 2669 2670 2671 2672 2673 2674 2675 2676 2677 2678 2679 2680 2681 2682 2683 2684 2685 2686 2687 2688 2689 2690 2691 2692 2693 2694 2695 2696 2697 2698 2699 2700 2701 2702 2703 2704 2705 2706 2707 2708 2709 2710 2711 2712 2713 2714 2715 2716 2717 2718 2719 2720 2721 2722 2723 2724 2725 2726 2727 2728 2729 2730 | |