IngestionClient.CreateSource 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 |
|---|---|
| CreateSource(RequestContent, RequestContext) |
[Protocol Method] Create a new ingestion source in a geo-catalog
|
| CreateSource(IngestionSource, CancellationToken) |
Create a new ingestion source in a geo-catalog. |
CreateSource(RequestContent, RequestContext)
- Source:
- IngestionClient.cs
[Protocol Method] Create a new 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 CreateSource(Azure.Core.RequestContent content, Azure.RequestContext context = default);
abstract member CreateSource : Azure.Core.RequestContent * Azure.RequestContext -> Azure.Response
override this.CreateSource : Azure.Core.RequestContent * Azure.RequestContext -> Azure.Response
Public Overridable Function CreateSource (content As RequestContent, Optional context As RequestContext = Nothing) As Response
Parameters
- 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.
Applies to
CreateSource(IngestionSource, CancellationToken)
- Source:
- IngestionClient.cs
Create a new ingestion source in a geo-catalog.
public virtual Azure.Response<Azure.Analytics.PlanetaryComputer.IngestionSource> CreateSource(Azure.Analytics.PlanetaryComputer.IngestionSource body, System.Threading.CancellationToken cancellationToken = default);
abstract member CreateSource : Azure.Analytics.PlanetaryComputer.IngestionSource * System.Threading.CancellationToken -> Azure.Response<Azure.Analytics.PlanetaryComputer.IngestionSource>
override this.CreateSource : Azure.Analytics.PlanetaryComputer.IngestionSource * System.Threading.CancellationToken -> Azure.Response<Azure.Analytics.PlanetaryComputer.IngestionSource>
Public Overridable Function CreateSource (body As IngestionSource, Optional cancellationToken As CancellationToken = Nothing) As Response(Of IngestionSource)
Parameters
- 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.