StacClient.ReplaceCollectionAsset Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
| Name | Description |
|---|---|
| ReplaceCollectionAsset(String, String, StacAssetData, CancellationToken) |
Update an existing asset in a given collection. |
| ReplaceCollectionAsset(String, String, RequestContent, String, RequestContext) |
[Protocol Method] Update an existing asset in a given collection.
|
ReplaceCollectionAsset(String, String, StacAssetData, CancellationToken)
- Source:
- StacClient.cs
Update an existing asset in a given collection.
public virtual Azure.Response<Azure.Analytics.PlanetaryComputer.StacCollection> ReplaceCollectionAsset(string collectionId, string assetId, Azure.Analytics.PlanetaryComputer.StacAssetData body, System.Threading.CancellationToken cancellationToken = default);
abstract member ReplaceCollectionAsset : string * string * Azure.Analytics.PlanetaryComputer.StacAssetData * System.Threading.CancellationToken -> Azure.Response<Azure.Analytics.PlanetaryComputer.StacCollection>
override this.ReplaceCollectionAsset : string * string * Azure.Analytics.PlanetaryComputer.StacAssetData * System.Threading.CancellationToken -> Azure.Response<Azure.Analytics.PlanetaryComputer.StacCollection>
Public Overridable Function ReplaceCollectionAsset (collectionId As String, assetId As String, body As StacAssetData, Optional cancellationToken As CancellationToken = Nothing) As 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
ReplaceCollectionAsset(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 Azure.Response ReplaceCollectionAsset(string collectionId, string assetId, Azure.Core.RequestContent content, string contentType, Azure.RequestContext context = default);
abstract member ReplaceCollectionAsset : string * string * Azure.Core.RequestContent * string * Azure.RequestContext -> Azure.Response
override this.ReplaceCollectionAsset : string * string * Azure.Core.RequestContent * string * Azure.RequestContext -> Azure.Response
Public Overridable Function ReplaceCollectionAsset (collectionId As String, assetId As String, content As RequestContent, contentType As String, Optional context As RequestContext = Nothing) As 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.