Class ProjectsResource.LocationsResource.CatalogsResource.UserEventsResource.WriteRequest
Writes a single user event.
Inheritance
ProjectsResource.LocationsResource.CatalogsResource.UserEventsResource.WriteRequest
Inherited Members
Namespace: Google.Apis.CloudRetail.v2alpha
Assembly: Google.Apis.CloudRetail.v2alpha.dll
Syntax
public class ProjectsResource.LocationsResource.CatalogsResource.UserEventsResource.WriteRequest : CloudRetailBaseServiceRequest<GoogleCloudRetailV2alphaUserEvent>, IClientServiceRequest<GoogleCloudRetailV2alphaUserEvent>, IClientServiceRequest
Constructors
WriteRequest(IClientService, GoogleCloudRetailV2alphaUserEvent, string)
Constructs a new Write request.
Declaration
public WriteRequest(IClientService service, GoogleCloudRetailV2alphaUserEvent body, string parent)
Parameters
Type | Name | Description |
---|---|---|
IClientService | service | |
GoogleCloudRetailV2alphaUserEvent | body | |
string | parent |
Properties
HttpMethod
Gets the HTTP method.
Declaration
public override string HttpMethod { get; }
Property Value
Type | Description |
---|---|
string |
Overrides
MethodName
Gets the method name.
Declaration
public override string MethodName { get; }
Property Value
Type | Description |
---|---|
string |
Overrides
Parent
Required. The parent catalog resource name, such as
projects/1234/locations/global/catalogs/default_catalog
.
Declaration
[RequestParameter("parent", RequestParameterType.Path)]
public virtual string Parent { get; }
Property Value
Type | Description |
---|---|
string |
RestPath
Gets the REST path.
Declaration
public override string RestPath { get; }
Property Value
Type | Description |
---|---|
string |
Overrides
WriteAsync
If set to true, the user event will be written asynchronously after validation, and the API will respond without waiting for the write. Therefore, silent failures can occur even if the API returns success. In case of silent failures, error messages can be found in Stackdriver logs.
Declaration
[RequestParameter("writeAsync", RequestParameterType.Query)]
public virtual bool? WriteAsync { get; set; }
Property Value
Type | Description |
---|---|
bool? |
Methods
GetBody()
Returns the body of the request.
Declaration
protected override object GetBody()
Returns
Type | Description |
---|---|
object |
Overrides
InitParameters()
Initializes Write parameter list.
Declaration
protected override void InitParameters()