IngestionClient.ReplaceSource 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 |
|---|---|
| ReplaceSource(Guid, IngestionSource, CancellationToken) |
Update an existing ingestion source in a geo-catalog. |
| ReplaceSource(Guid, RequestContent, RequestContext) |
[Protocol Method] Update an existing ingestion source in a geo-catalog
|
ReplaceSource(Guid, IngestionSource, CancellationToken)
- Source:
- IngestionClient.cs
Update an existing ingestion source in a geo-catalog.
public virtual Azure.Response<Azure.Analytics.PlanetaryComputer.IngestionSource> ReplaceSource(Guid sourceId, Azure.Analytics.PlanetaryComputer.IngestionSource body, System.Threading.CancellationToken cancellationToken = default);
abstract member ReplaceSource : Guid * Azure.Analytics.PlanetaryComputer.IngestionSource * System.Threading.CancellationToken -> Azure.Response<Azure.Analytics.PlanetaryComputer.IngestionSource>
override this.ReplaceSource : Guid * Azure.Analytics.PlanetaryComputer.IngestionSource * System.Threading.CancellationToken -> Azure.Response<Azure.Analytics.PlanetaryComputer.IngestionSource>
Public Overridable Function ReplaceSource (sourceId As Guid, body As IngestionSource, Optional cancellationToken As CancellationToken = Nothing) As Response(Of IngestionSource)
Parameters
- sourceId
- Guid
Ingestion source id.
- body
- IngestionSource
Definition of the ingestion source.
- cancellationToken
- CancellationToken
The cancellation token that can be used to cancel the operation.
Returns
Exceptions
body is null.
Service returned a non-success status code.
Applies to
ReplaceSource(Guid, RequestContent, RequestContext)
- Source:
- IngestionClient.cs
[Protocol Method] Update an existing ingestion source in a geo-catalog
- This protocol method allows explicit creation of the request and processing of the response for advanced scenarios.
public virtual Azure.Response ReplaceSource(Guid sourceId, Azure.Core.RequestContent content, Azure.RequestContext context = default);
abstract member ReplaceSource : Guid * Azure.Core.RequestContent * Azure.RequestContext -> Azure.Response
override this.ReplaceSource : Guid * Azure.Core.RequestContent * Azure.RequestContext -> Azure.Response
Public Overridable Function ReplaceSource (sourceId As Guid, content As RequestContent, Optional context As RequestContext = Nothing) As Response
Parameters
- sourceId
- Guid
Ingestion source id.
- content
- RequestContent
The content to send as the body of the request.
- 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
content is null.
Service returned a non-success status code.