Show / Hide Table of Contents

Class ProjectsResource.LocationsResource.CatalogsResource.BranchesResource.ProductsResource

The "products" collection of methods.

Inheritance
System.Object
ProjectsResource.LocationsResource.CatalogsResource.BranchesResource.ProductsResource
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Google.Apis.CloudRetail.v2
Assembly: Google.Apis.CloudRetail.v2.dll
Syntax
public class ProductsResource

Constructors

ProductsResource(IClientService)

Constructs a new resource.

Declaration
public ProductsResource(IClientService service)
Parameters
Type Name Description
Google.Apis.Services.IClientService service

Methods

Create(GoogleCloudRetailV2Product, String)

Creates a Product.

Declaration
public virtual ProjectsResource.LocationsResource.CatalogsResource.BranchesResource.ProductsResource.CreateRequest Create(GoogleCloudRetailV2Product body, string parent)
Parameters
Type Name Description
GoogleCloudRetailV2Product body

The body of the request.

System.String parent

Required. The parent catalog resource name, such as projects/*/locations/global/catalogs/default_catalog/branches/default_branch.

Returns
Type Description
ProjectsResource.LocationsResource.CatalogsResource.BranchesResource.ProductsResource.CreateRequest

Delete(String)

Deletes a Product.

Declaration
public virtual ProjectsResource.LocationsResource.CatalogsResource.BranchesResource.ProductsResource.DeleteRequest Delete(string name)
Parameters
Type Name Description
System.String name

Required. Full resource name of Product, such as projects/*/locations/global/catalogs/default_catalog/branches/default_branch/products/some_product_id. If the caller does not have permission to delete the Product, regardless of whether or not it exists, a PERMISSION_DENIED error is returned. If the Product to delete does not exist, a NOT_FOUND error is returned. The Product to delete can neither be a Product.Type.COLLECTION Product member nor a Product.Type.PRIMARY Product with more than one variants. Otherwise, an INVALID_ARGUMENT error is returned. All inventory information for the named Product will be deleted.

Returns
Type Description
ProjectsResource.LocationsResource.CatalogsResource.BranchesResource.ProductsResource.DeleteRequest

Get(String)

Gets a Product.

Declaration
public virtual ProjectsResource.LocationsResource.CatalogsResource.BranchesResource.ProductsResource.GetRequest Get(string name)
Parameters
Type Name Description
System.String name

Required. Full resource name of Product, such as projects/*/locations/global/catalogs/default_catalog/branches/default_branch/products/some_product_id. If the caller does not have permission to access the Product, regardless of whether or not it exists, a PERMISSION_DENIED error is returned. If the requested Product does not exist, a NOT_FOUND error is returned.

Returns
Type Description
ProjectsResource.LocationsResource.CatalogsResource.BranchesResource.ProductsResource.GetRequest

Import(GoogleCloudRetailV2ImportProductsRequest, String)

Bulk import of multiple Products. Request processing may be synchronous. No partial updating is supported. Non-existing items are created. Note that it is possible for a subset of the Products to be successfully updated.

Declaration
public virtual ProjectsResource.LocationsResource.CatalogsResource.BranchesResource.ProductsResource.ImportRequest Import(GoogleCloudRetailV2ImportProductsRequest body, string parent)
Parameters
Type Name Description
GoogleCloudRetailV2ImportProductsRequest body

The body of the request.

System.String parent

Required. projects/1234/locations/global/catalogs/default_catalog/branches/default_branch If no updateMask is specified, requires products.create permission. If updateMask is specified, requires products.update permission.

Returns
Type Description
ProjectsResource.LocationsResource.CatalogsResource.BranchesResource.ProductsResource.ImportRequest

Patch(GoogleCloudRetailV2Product, String)

Updates a Product.

Declaration
public virtual ProjectsResource.LocationsResource.CatalogsResource.BranchesResource.ProductsResource.PatchRequest Patch(GoogleCloudRetailV2Product body, string name)
Parameters
Type Name Description
GoogleCloudRetailV2Product body

The body of the request.

System.String name

Immutable. Full resource name of the product, such as projects/*/locations/global/catalogs/default_catalog/branches/default_branch/products/product_id. The branch ID must be "default_branch".

Returns
Type Description
ProjectsResource.LocationsResource.CatalogsResource.BranchesResource.ProductsResource.PatchRequest
In This Article
Back to top