Show / Hide Table of Contents

Class ProductsResource.UpdateRequest

Updates an existing product in your Merchant Center account. Only updates attributes provided in the request.

Inheritance
object
ClientServiceRequest
ClientServiceRequest<Product>
ShoppingContentBaseServiceRequest<Product>
ProductsResource.UpdateRequest
Implements
IClientServiceRequest<Product>
IClientServiceRequest
Inherited Members
ShoppingContentBaseServiceRequest<Product>.Xgafv
ShoppingContentBaseServiceRequest<Product>.AccessToken
ShoppingContentBaseServiceRequest<Product>.Alt
ShoppingContentBaseServiceRequest<Product>.Callback
ShoppingContentBaseServiceRequest<Product>.Fields
ShoppingContentBaseServiceRequest<Product>.Key
ShoppingContentBaseServiceRequest<Product>.OauthToken
ShoppingContentBaseServiceRequest<Product>.PrettyPrint
ShoppingContentBaseServiceRequest<Product>.QuotaUser
ShoppingContentBaseServiceRequest<Product>.UploadType
ShoppingContentBaseServiceRequest<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.ShoppingContent.v2_1
Assembly: Google.Apis.ShoppingContent.v2_1.dll
Syntax
public class ProductsResource.UpdateRequest : ShoppingContentBaseServiceRequest<Product>, IClientServiceRequest<Product>, IClientServiceRequest

Constructors

UpdateRequest(IClientService, Product, ulong, string)

Constructs a new Update request.

Declaration
public UpdateRequest(IClientService service, Product body, ulong merchantId, string productId)
Parameters
Type Name Description
IClientService service
Product body
ulong merchantId
string productId

Properties

HttpMethod

Gets the HTTP method.

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

MerchantId

The ID of the account that contains the product. This account cannot be a multi-client account.

Declaration
[RequestParameter("merchantId", RequestParameterType.Path)]
public virtual ulong MerchantId { get; }
Property Value
Type Description
ulong

MethodName

Gets the method name.

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

ProductId

The REST ID of the product for which to update.

Declaration
[RequestParameter("productId", RequestParameterType.Path)]
public virtual string ProductId { 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 comma-separated list of product attributes to be updated. Example: "title,salePrice". Attributes specified in the update mask without a value specified in the body will be deleted from the product. You must specify the update mask to delete attributes. Only top-level product attributes can be updated. If not defined, product attributes with set values will be updated and other attributes will stay unchanged.

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 Update parameter list.

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

Implements

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