Class ProjectsResource
The "projects" collection of methods.
Inherited Members
Namespace: Google.Apis.CloudRetail.v2alpha
Assembly: Google.Apis.CloudRetail.v2alpha.dll
Syntax
public class ProjectsResource
Constructors
ProjectsResource(IClientService)
Constructs a new resource.
Declaration
public ProjectsResource(IClientService service)
Parameters
Type | Name | Description |
---|---|---|
IClientService | service |
Properties
Locations
Gets the Locations resource.
Declaration
public virtual ProjectsResource.LocationsResource Locations { get; }
Property Value
Type | Description |
---|---|
ProjectsResource.LocationsResource |
Operations
Gets the Operations resource.
Declaration
public virtual ProjectsResource.OperationsResource Operations { get; }
Property Value
Type | Description |
---|---|
ProjectsResource.OperationsResource |
RetailProject
Gets the RetailProject resource.
Declaration
public virtual ProjectsResource.RetailProjectResource RetailProject { get; }
Property Value
Type | Description |
---|---|
ProjectsResource.RetailProjectResource |
Methods
EnrollSolution(GoogleCloudRetailV2alphaEnrollSolutionRequest, string)
The method enrolls a solution of type Retail Search into a project. The Recommendations AI solution type is enrolled by default when your project enables Retail API, so you don't need to call the enrollSolution method for recommendations.
Declaration
public virtual ProjectsResource.EnrollSolutionRequest EnrollSolution(GoogleCloudRetailV2alphaEnrollSolutionRequest body, string project)
Parameters
Type | Name | Description |
---|---|---|
GoogleCloudRetailV2alphaEnrollSolutionRequest | body | The body of the request. |
string | project | Required. Full resource name of parent. Format: |
Returns
Type | Description |
---|---|
ProjectsResource.EnrollSolutionRequest |
GetRetailProject(string)
Gets the project. Throws NOT_FOUND
if the project wasn't initialized for the Retail API service.
Declaration
public virtual ProjectsResource.GetRetailProjectRequest GetRetailProject(string name)
Parameters
Type | Name | Description |
---|---|---|
string | name | Required. Full resource name of the project. Format: |
Returns
Type | Description |
---|---|
ProjectsResource.GetRetailProjectRequest |
ListEnrolledSolutions(string)
Lists all the retail API solutions the project has enrolled.
Declaration
public virtual ProjectsResource.ListEnrolledSolutionsRequest ListEnrolledSolutions(string parent)
Parameters
Type | Name | Description |
---|---|---|
string | parent | Required. Full resource name of parent. Format: |
Returns
Type | Description |
---|---|
ProjectsResource.ListEnrolledSolutionsRequest |