StacClient.ReplaceCollectionAssetAsync Method

Definition

Overloads

Name Description
ReplaceCollectionAssetAsync(String, String, StacAssetData, CancellationToken)

Update an existing asset in a given collection.

ReplaceCollectionAssetAsync(String, String, RequestContent, String, RequestContext)

[Protocol Method] Update an existing asset in a given collection.

  • This protocol method allows explicit creation of the request and processing of the response for advanced scenarios.

ReplaceCollectionAssetAsync(String, String, StacAssetData, CancellationToken)

Source:
StacClient.cs

Update an existing asset in a given collection.

public virtual System.Threading.Tasks.Task<Azure.Response<Azure.Analytics.PlanetaryComputer.StacCollection>> ReplaceCollectionAssetAsync(string collectionId, string assetId, Azure.Analytics.PlanetaryComputer.StacAssetData body, System.Threading.CancellationToken cancellationToken = default);
abstract member ReplaceCollectionAssetAsync : string * string * Azure.Analytics.PlanetaryComputer.StacAssetData * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.Analytics.PlanetaryComputer.StacCollection>>
override this.ReplaceCollectionAssetAsync : string * string * Azure.Analytics.PlanetaryComputer.StacAssetData * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.Analytics.PlanetaryComputer.StacCollection>>
Public Overridable Function ReplaceCollectionAssetAsync (collectionId As String, assetId As String, body As StacAssetData, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Response(Of StacCollection))

Parameters

collectionId
String

STAC Collection ID.

assetId
String

STAC Asset ID.

body
StacAssetData

Multi-part form data.

cancellationToken
CancellationToken

The cancellation token that can be used to cancel the operation.

Returns

Exceptions

collectionId, assetId or body is null.

collectionId or assetId is an empty string, and was expected to be non-empty.

Service returned a non-success status code.

Applies to

ReplaceCollectionAssetAsync(String, String, RequestContent, String, RequestContext)

Source:
StacClient.cs

[Protocol Method] Update an existing asset in a given collection.

  • This protocol method allows explicit creation of the request and processing of the response for advanced scenarios.
public virtual System.Threading.Tasks.Task<Azure.Response> ReplaceCollectionAssetAsync(string collectionId, string assetId, Azure.Core.RequestContent content, string contentType, Azure.RequestContext context = default);
abstract member ReplaceCollectionAssetAsync : string * string * Azure.Core.RequestContent * string * Azure.RequestContext -> System.Threading.Tasks.Task<Azure.Response>
override this.ReplaceCollectionAssetAsync : string * string * Azure.Core.RequestContent * string * Azure.RequestContext -> System.Threading.Tasks.Task<Azure.Response>
Public Overridable Function ReplaceCollectionAssetAsync (collectionId As String, assetId As String, content As RequestContent, contentType As String, Optional context As RequestContext = Nothing) As Task(Of Response)

Parameters

collectionId
String

STAC Collection ID.

assetId
String

STAC Asset ID.

content
RequestContent

The content to send as the body of the request.

contentType
String

The contentType to use which has the multipart/form-data boundary.

context
RequestContext

The request options, which can override default behaviors of the client pipeline on a per-call basis.

Returns

The response returned from the service.

Exceptions

collectionId, assetId, content or contentType is null.

collectionId, assetId or contentType is an empty string, and was expected to be non-empty.

Service returned a non-success status code.

Applies to