Class OrganizationsResource.LocationsResource.RecommendersResource.RecommendationsResource.MarkFailedRequest
Marks the Recommendation State as Failed. Users can use this method to indicate to the Recommender API that they have applied the recommendation themselves, and the operation failed. This stops the recommendation content from being updated. Associated insights are frozen and placed in the ACCEPTED state. MarkRecommendationFailed can be applied to recommendations in ACTIVE, CLAIMED, SUCCEEDED, or FAILED state. Requires the recommender.*.update IAM permission for the specified recommender.
Inheritance
OrganizationsResource.LocationsResource.RecommendersResource.RecommendationsResource.MarkFailedRequest
Inherited Members
Namespace: Google.Apis.Recommender.v1
Assembly: Google.Apis.Recommender.v1.dll
Syntax
public class OrganizationsResource.LocationsResource.RecommendersResource.RecommendationsResource.MarkFailedRequest : RecommenderBaseServiceRequest<GoogleCloudRecommenderV1Recommendation>, IClientServiceRequest<GoogleCloudRecommenderV1Recommendation>, IClientServiceRequest
Constructors
MarkFailedRequest(IClientService, GoogleCloudRecommenderV1MarkRecommendationFailedRequest, string)
Constructs a new MarkFailed request.
Declaration
public MarkFailedRequest(IClientService service, GoogleCloudRecommenderV1MarkRecommendationFailedRequest body, string name)
Parameters
Type | Name | Description |
---|---|---|
IClientService | service | |
GoogleCloudRecommenderV1MarkRecommendationFailedRequest | body | |
string | name |
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
Name
Required. Name of the recommendation.
Declaration
[RequestParameter("name", RequestParameterType.Path)]
public virtual string Name { get; }
Property Value
Type | Description |
---|---|
string |
RestPath
Gets the REST path.
Declaration
public override string RestPath { get; }
Property Value
Type | Description |
---|---|
string |
Overrides
Methods
GetBody()
Returns the body of the request.
Declaration
protected override object GetBody()
Returns
Type | Description |
---|---|
object |
Overrides
InitParameters()
Initializes MarkFailed parameter list.
Declaration
protected override void InitParameters()