Show / Hide Table of Contents

Class AccountsResource.ProductsResource.LocalInventoriesResource

The "localInventories" collection of methods.

Inheritance
object
AccountsResource.ProductsResource.LocalInventoriesResource
Inherited Members
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: Google.Apis.Merchant.inventories_v1beta
Assembly: Google.Apis.Merchant.inventories_v1beta.dll
Syntax
public class AccountsResource.ProductsResource.LocalInventoriesResource

Constructors

LocalInventoriesResource(IClientService)

Constructs a new resource.

Declaration
public LocalInventoriesResource(IClientService service)
Parameters
Type Name Description
IClientService service

Methods

Delete(string)

Deletes the specified LocalInventory from the given product in your merchant account. It might take a up to an hour for the LocalInventory to be deleted from the specific product. Once you have received a successful delete response, wait for that period before attempting a delete again.

Declaration
public virtual AccountsResource.ProductsResource.LocalInventoriesResource.DeleteRequest Delete(string name)
Parameters
Type Name Description
string name

Required. The name of the local inventory for the given product to delete. Format: accounts/{account}/products/{product}/localInventories/{store_code}

Returns
Type Description
AccountsResource.ProductsResource.LocalInventoriesResource.DeleteRequest

Insert(LocalInventory, string)

Inserts a LocalInventory resource to a product in your merchant account. Replaces the full LocalInventory resource if an entry with the same storeCode already exists for the product. It might take up to 30 minutes for the new or updated LocalInventory resource to appear in products.

Declaration
public virtual AccountsResource.ProductsResource.LocalInventoriesResource.InsertRequest Insert(LocalInventory body, string parent)
Parameters
Type Name Description
LocalInventory body

The body of the request.

string parent

Required. The account and product where this inventory will be inserted. Format: accounts/{account}/products/{product}

Returns
Type Description
AccountsResource.ProductsResource.LocalInventoriesResource.InsertRequest

List(string)

Lists the LocalInventory resources for the given product in your merchant account. The response might contain fewer items than specified by pageSize. If pageToken was returned in previous request, it can be used to obtain additional results. LocalInventory resources are listed per product for a given account.

Declaration
public virtual AccountsResource.ProductsResource.LocalInventoriesResource.ListRequest List(string parent)
Parameters
Type Name Description
string parent

Required. The name of the parent product to list local inventories for. Format: accounts/{account}/products/{product}

Returns
Type Description
AccountsResource.ProductsResource.LocalInventoriesResource.ListRequest
In this article
Back to top Generated by DocFX