create_asset_file
¶
create_asset_file(
agent_space_id: AgentSpaceIdentifier,
asset_id: ResourceId,
path: AssetFilePath,
content: AssetFileBody,
*,
config_overrides: Optional[DevOpsAgentClientConfig] = None,
metadata: Optional[object] = None,
client_token: Optional[str] = None,
) -> CreateAssetFileResponse
Creates 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 to create the file in
-
path(AssetFilePath) –The path of the file within the asset
-
content(AssetFileBody) –The content of the file to create
-
metadata(Optional[object], default:None) –Optional metadata describing this file
-
client_token(Optional[str], default:None) –A unique, case-sensitive identifier used for idempotent asset file creation
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.