C# Client Library
A C# Client Library for the AnalyzeRe REST API
Loading...
Searching...
No Matches
ExtensionMethods.IAPIResource_WithDataEndpoint.cs
Go to the documentation of this file.
1
using
AnalyzeRe.APITypes
;
2
using
AnalyzeRe.LargeDataUpload
;
3
4
namespace
AnalyzeRe
5
{
7
public
static
partial class
ExtensionMethods
8
{
15
public
static
T
Post<T>
(
this
T
obj
,
string
csv_data
,
int
?
timeout
=
null
,
16
Parameters
upload_parameters
=
null
)
17
where
T
:
IAPIResource_WithDataEndpoint
18
{
19
T
result =
obj
.Post(
timeout
:
timeout
);
20
result.data.UploadString(
csv_data
,
upload_parameters
);
21
// Uploading data can change certain resources (like LossSets, which acquire a new
22
// server generated 'profile' property), so we must return a fresh GET of them.
23
return
result.Get();
24
}
25
}
26
}
AnalyzeRe.APITypes.ResourceCollection
Describes a collection of resources which can be listed.
Definition
ResourceCollection[T].cs:6
AnalyzeRe.ExtensionMethods
Provides the REST request methods available to data endpoints.
Definition
ExtensionMethods.IAPIResource_WithDataEndpoint.cs:8
AnalyzeRe.ExtensionMethods.Post< T >
static T Post< T >(this T obj, string csv_data, int? timeout=null, Parameters upload_parameters=null)
POST this Resource, along with it's CSV data.
Definition
ExtensionMethods.IAPIResource_WithDataEndpoint.cs:15
AnalyzeRe.LargeDataUpload.Parameters
Parameters to be used in a Large Data Upload operation.
Definition
Parameters.cs:7
AnalyzeRe.APITypes.IAPIResource_WithDataEndpoint
Describes an APIResource class that adds a "/data" sub-resource, since this functionality is common t...
Definition
IAPIResource_WithDataEndpoint.cs:12
AnalyzeRe.APITypes
Definition
APIResource_WithDataEndpoint.cs:5
AnalyzeRe.LargeDataUpload
Definition
AdaptiveBufferedBytesProducer.cs:4
AnalyzeRe
Definition
API.Authentication.cs:14
src
AnalyzeRe.Client
API
ExtensionMethods
ExtensionMethods.IAPIResource_WithDataEndpoint.cs
Generated on Thu Sep 26 2024 17:41:00 for C# Client Library by
1.9.8