Show / Hide Table of Contents

Class ProjectsResource.LocationsResource.CatalogsResource.BranchesResource.ProductsResource.PatchRequest

Updates a Product.

Inheritance
object
ClientServiceRequest
ClientServiceRequest<GoogleCloudRetailV2Product>
CloudRetailBaseServiceRequest<GoogleCloudRetailV2Product>
ProjectsResource.LocationsResource.CatalogsResource.BranchesResource.ProductsResource.PatchRequest
Implements
IClientServiceRequest<GoogleCloudRetailV2Product>
IClientServiceRequest
Inherited Members
CloudRetailBaseServiceRequest<GoogleCloudRetailV2Product>.Xgafv
CloudRetailBaseServiceRequest<GoogleCloudRetailV2Product>.AccessToken
CloudRetailBaseServiceRequest<GoogleCloudRetailV2Product>.Alt
CloudRetailBaseServiceRequest<GoogleCloudRetailV2Product>.Callback
CloudRetailBaseServiceRequest<GoogleCloudRetailV2Product>.Fields
CloudRetailBaseServiceRequest<GoogleCloudRetailV2Product>.Key
CloudRetailBaseServiceRequest<GoogleCloudRetailV2Product>.OauthToken
CloudRetailBaseServiceRequest<GoogleCloudRetailV2Product>.PrettyPrint
CloudRetailBaseServiceRequest<GoogleCloudRetailV2Product>.QuotaUser
CloudRetailBaseServiceRequest<GoogleCloudRetailV2Product>.UploadType
CloudRetailBaseServiceRequest<GoogleCloudRetailV2Product>.UploadProtocol
ClientServiceRequest<GoogleCloudRetailV2Product>.Execute()
ClientServiceRequest<GoogleCloudRetailV2Product>.ExecuteAsStream()
ClientServiceRequest<GoogleCloudRetailV2Product>.ExecuteAsync()
ClientServiceRequest<GoogleCloudRetailV2Product>.ExecuteAsync(CancellationToken)
ClientServiceRequest<GoogleCloudRetailV2Product>.ExecuteAsStreamAsync()
ClientServiceRequest<GoogleCloudRetailV2Product>.ExecuteAsStreamAsync(CancellationToken)
ClientServiceRequest<GoogleCloudRetailV2Product>.CreateRequest(bool?)
ClientServiceRequest<GoogleCloudRetailV2Product>.GenerateRequestUri()
ClientServiceRequest<GoogleCloudRetailV2Product>.GetDefaultETagAction(string)
ClientServiceRequest<GoogleCloudRetailV2Product>.ETagAction
ClientServiceRequest<GoogleCloudRetailV2Product>.ModifyRequest
ClientServiceRequest<GoogleCloudRetailV2Product>.ValidateParameters
ClientServiceRequest<GoogleCloudRetailV2Product>.ApiVersion
ClientServiceRequest<GoogleCloudRetailV2Product>.RequestParameters
ClientServiceRequest<GoogleCloudRetailV2Product>.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.CloudRetail.v2
Assembly: Google.Apis.CloudRetail.v2.dll
Syntax
public class ProjectsResource.LocationsResource.CatalogsResource.BranchesResource.ProductsResource.PatchRequest : CloudRetailBaseServiceRequest<GoogleCloudRetailV2Product>, IClientServiceRequest<GoogleCloudRetailV2Product>, IClientServiceRequest

Constructors

PatchRequest(IClientService, GoogleCloudRetailV2Product, string)

Constructs a new Patch request.

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

Properties

AllowMissing

If set to true, and the Product is not found, a new Product will be created. In this situation, update_mask is ignored.

Declaration
[RequestParameter("allowMissing", RequestParameterType.Query)]
public virtual bool? AllowMissing { get; set; }
Property Value
Type Description
bool?

HttpMethod

Gets the HTTP method.

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

MethodName

Gets the method name.

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

Name

Immutable. Full resource name of the product, such as projects/*/locations/global/catalogs/default_catalog/branches/default_branch/products/product_id.

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<GoogleCloudRetailV2Product>.RestPath

UpdateMask

Indicates which fields in the provided Product to update. The immutable and output only fields are NOT supported. If not set, all supported fields (the fields that are neither immutable nor output only) are updated. If an unsupported or unknown field is provided, an INVALID_ARGUMENT error is returned. The attribute key can be updated by setting the mask path as "attributes.${key_name}". If a key name is present in the mask but not in the patching product from the request, this key will be deleted after the update.

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<GoogleCloudRetailV2Product>.GetBody()

InitParameters()

Initializes Patch parameter list.

Declaration
protected override void InitParameters()
Overrides
CloudRetailBaseServiceRequest<GoogleCloudRetailV2Product>.InitParameters()

Implements

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