Class ProductsResource.UpdateRequest
Updates an existing product in your Merchant Center account. Only updates attributes provided in the request.
Inheritance
Inherited Members
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
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
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
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
InitParameters()
Initializes Update parameter list.
Declaration
protected override void InitParameters()