DataRequest
Methods
get Fetch Option
- get
Fetch Option(): FetchOptions
-
Gets the fetch option that controls how requests are handled.
The default option is
OnlineIfNotFound. It queries the network if the requested resource is not in the cache.Returns FetchOptionsThe fetch option.
with Billing Tag
- with
Billing Tag(tag: string): DataRequest
-
An optional free-form tag that is used for grouping billing records together.
If supplied, it must be 4–16 characters long and contain only alphanumeric ASCII characters [A–Za–z0–9].
ParametersReturns DataRequestThe updated DataRequest instance that you can use to chain methods.
with Data Handle
- with
Data Handle(dataHandle: string): DataRequest
-
Sets the provided data handle.
ParametersReturns DataRequestThe updated DataRequest instance that you can use to chain methods.
with Fetch Option
- with
Fetch Option(option: FetchOptions): DataRequest
-
Sets the fetch option that you can use to set the source from which data should be fetched.
see
getFetchOption()for information on usage and format.Parameters-
option: FetchOptions
The
FetchOptionenum.
Returns DataRequestA reference to the updated
DataRequestinstance. -
with Partition Id
- with
Partition Id(partitionId: string): DataRequest
-
Sets the provided partition ID.
ParametersReturns DataRequestThe updated DataRequest instance that you can use to chain methods.
Prepares information for calls to get data from the HERE Blob Service.