Show / Hide Table of Contents

Class ProjectsResource.LocationsResource.ProductsResource.PatchRequest

Makes changes to a Product resource. Only the display_name, description, and labels fields can be updated right now. If labels are updated, the change will not be reflected in queries until the next index time. Possible errors: * Returns NOT_FOUND if the Product does not exist. * Returns INVALID_ARGUMENT if display_name is present in update_mask but is missing from the request or longer than 4096 characters. * Returns INVALID_ARGUMENT if description is present in update_mask but is longer than 4096 characters. * Returns INVALID_ARGUMENT if product_category is present in update_mask.

Inheritance
object
ClientServiceRequest
ClientServiceRequest<Product>
VisionBaseServiceRequest<Product>
ProjectsResource.LocationsResource.ProductsResource.PatchRequest
Implements
IClientServiceRequest<Product>
IClientServiceRequest
Inherited Members
VisionBaseServiceRequest<Product>.Xgafv
VisionBaseServiceRequest<Product>.AccessToken
VisionBaseServiceRequest<Product>.Alt
VisionBaseServiceRequest<Product>.Callback
VisionBaseServiceRequest<Product>.Fields
VisionBaseServiceRequest<Product>.Key
VisionBaseServiceRequest<Product>.OauthToken
VisionBaseServiceRequest<Product>.PrettyPrint
VisionBaseServiceRequest<Product>.QuotaUser
VisionBaseServiceRequest<Product>.UploadType
VisionBaseServiceRequest<Product>.UploadProtocol
ClientServiceRequest<Product>.Execute()
ClientServiceRequest<Product>.ExecuteAsStream()
ClientServiceRequest<Product>.ExecuteAsync()
ClientServiceRequest<Product>.ExecuteAsync(CancellationToken)
ClientServiceRequest<Product>.ExecuteAsStreamAsync()
ClientServiceRequest<Product>.ExecuteAsStreamAsync(CancellationToken)
ClientServiceRequest<Product>.CreateRequest(bool?)
ClientServiceRequest<Product>.GenerateRequestUri()
ClientServiceRequest<Product>.GetDefaultETagAction(string)
ClientServiceRequest<Product>.ETagAction
ClientServiceRequest<Product>.ModifyRequest
ClientServiceRequest<Product>.ValidateParameters
ClientServiceRequest<Product>.ApiVersion
ClientServiceRequest<Product>.RequestParameters
ClientServiceRequest<Product>.Service
ClientServiceRequest._unsuccessfulResponseHandlers
ClientServiceRequest._exceptionHandlers
ClientServiceRequest._executeInterceptors
ClientServiceRequest.AddUnsuccessfulResponseHandler(IHttpUnsuccessfulResponseHandler)
ClientServiceRequest.AddExceptionHandler(IHttpExceptionHandler)
ClientServiceRequest.AddExecuteInterceptor(IHttpExecuteInterceptor)
ClientServiceRequest.Credential
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: Google.Apis.Vision.v1
Assembly: Google.Apis.Vision.v1.dll
Syntax
public class ProjectsResource.LocationsResource.ProductsResource.PatchRequest : VisionBaseServiceRequest<Product>, IClientServiceRequest<Product>, IClientServiceRequest

Constructors

PatchRequest(IClientService, Product, string)

Constructs a new Patch request.

Declaration
public PatchRequest(IClientService service, Product body, string name)
Parameters
Type Name Description
IClientService service
Product body
string name

Properties

HttpMethod

Gets the HTTP method.

Declaration
public override string HttpMethod { get; }
Property Value
Type Description
string
Overrides
ClientServiceRequest<Product>.HttpMethod

MethodName

Gets the method name.

Declaration
public override string MethodName { get; }
Property Value
Type Description
string
Overrides
ClientServiceRequest<Product>.MethodName

Name

The resource name of the product. Format is: projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID. This field is ignored when creating a product.

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
ClientServiceRequest<Product>.RestPath

UpdateMask

The FieldMask that specifies which fields to update. If update_mask isn't specified, all mutable fields are to be updated. Valid mask paths include product_labels, display_name, and description.

Declaration
[RequestParameter("updateMask", RequestParameterType.Query)]
public virtual object UpdateMask { get; set; }
Property Value
Type Description
object

Methods

GetBody()

Returns the body of the request.

Declaration
protected override object GetBody()
Returns
Type Description
object
Overrides
ClientServiceRequest<Product>.GetBody()

InitParameters()

Initializes Patch parameter list.

Declaration
protected override void InitParameters()
Overrides
VisionBaseServiceRequest<Product>.InitParameters()

Implements

IClientServiceRequest<TResponse>
IClientServiceRequest
In this article
Back to top Generated by DocFX