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 |
GetAlertConfig(string)
Get the AlertConfig of the requested project.
Declaration
public virtual ProjectsResource.GetAlertConfigRequest GetAlertConfig(string name)
Parameters
| Type | Name | Description |
|---|---|---|
| string | name | Required. Full AlertConfig resource name. Format: projects/{project_number}/alertConfig |
Returns
| Type | Description |
|---|---|
| ProjectsResource.GetAlertConfigRequest |
GetLoggingConfig(string)
Gets the LoggingConfig of the requested project.
Declaration
public virtual ProjectsResource.GetLoggingConfigRequest GetLoggingConfig(string name)
Parameters
| Type | Name | Description |
|---|---|---|
| string | name | Required. Full LoggingConfig resource name. Format: projects/{project_number}/loggingConfig |
Returns
| Type | Description |
|---|---|
| ProjectsResource.GetLoggingConfigRequest |
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 |
UpdateAlertConfig(GoogleCloudRetailV2alphaAlertConfig, string)
Update the alert config of the requested project.
Declaration
public virtual ProjectsResource.UpdateAlertConfigRequest UpdateAlertConfig(GoogleCloudRetailV2alphaAlertConfig body, string name)
Parameters
| Type | Name | Description |
|---|---|---|
| GoogleCloudRetailV2alphaAlertConfig | body | The body of the request. |
| string | name | Required. Immutable. The name of the AlertConfig singleton resource. Format: projects/*/alertConfig |
Returns
| Type | Description |
|---|---|
| ProjectsResource.UpdateAlertConfigRequest |
UpdateLoggingConfig(GoogleCloudRetailV2alphaLoggingConfig, string)
Updates the LoggingConfig of the requested project.
Declaration
public virtual ProjectsResource.UpdateLoggingConfigRequest UpdateLoggingConfig(GoogleCloudRetailV2alphaLoggingConfig body, string name)
Parameters
| Type | Name | Description |
|---|---|---|
| GoogleCloudRetailV2alphaLoggingConfig | body | The body of the request. |
| string | name | Required. Immutable. The name of the LoggingConfig singleton resource. Format: projects/*/loggingConfig |
Returns
| Type | Description |
|---|---|
| ProjectsResource.UpdateLoggingConfigRequest |