Show / Hide Table of Contents

Class ProjectsResource.LocationsResource.SynonymSetsResource

The "synonymSets" collection of methods.

Inheritance
object
ProjectsResource.LocationsResource.SynonymSetsResource
Inherited Members
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: Google.Apis.Contentwarehouse.v1
Assembly: Google.Apis.Contentwarehouse.v1.dll
Syntax
public class ProjectsResource.LocationsResource.SynonymSetsResource

Constructors

SynonymSetsResource(IClientService)

Constructs a new resource.

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

Methods

Create(GoogleCloudContentwarehouseV1SynonymSet, string)

Creates a SynonymSet for a single context. Throws an ALREADY_EXISTS exception if a synonymset already exists for the context.

Declaration
public virtual ProjectsResource.LocationsResource.SynonymSetsResource.CreateRequest Create(GoogleCloudContentwarehouseV1SynonymSet body, string parent)
Parameters
Type Name Description
GoogleCloudContentwarehouseV1SynonymSet body

The body of the request.

string parent

Required. The parent name. Format: projects/{project_number}/locations/{location}.

Returns
Type Description
ProjectsResource.LocationsResource.SynonymSetsResource.CreateRequest

Delete(string)

Deletes a SynonymSet for a given context. Throws a NOT_FOUND exception if the SynonymSet is not found.

Declaration
public virtual ProjectsResource.LocationsResource.SynonymSetsResource.DeleteRequest Delete(string name)
Parameters
Type Name Description
string name

Required. The name of the synonymSet to delete Format: projects/{project_number}/locations/{location}/synonymSets/{context}.

Returns
Type Description
ProjectsResource.LocationsResource.SynonymSetsResource.DeleteRequest

Get(string)

Gets a SynonymSet for a particular context. Throws a NOT_FOUND exception if the Synonymset does not exist

Declaration
public virtual ProjectsResource.LocationsResource.SynonymSetsResource.GetRequest Get(string name)
Parameters
Type Name Description
string name

Required. The name of the synonymSet to retrieve Format: projects/{project_number}/locations/{location}/synonymSets/{context}.

Returns
Type Description
ProjectsResource.LocationsResource.SynonymSetsResource.GetRequest

List(string)

Returns all SynonymSets (for all contexts) for the specified location.

Declaration
public virtual ProjectsResource.LocationsResource.SynonymSetsResource.ListRequest List(string parent)
Parameters
Type Name Description
string parent

Required. The parent name. Format: projects/{project_number}/locations/{location}.

Returns
Type Description
ProjectsResource.LocationsResource.SynonymSetsResource.ListRequest

Patch(GoogleCloudContentwarehouseV1SynonymSet, string)

Remove the existing SynonymSet for the context and replaces it with a new one. Throws a NOT_FOUND exception if the SynonymSet is not found.

Declaration
public virtual ProjectsResource.LocationsResource.SynonymSetsResource.PatchRequest Patch(GoogleCloudContentwarehouseV1SynonymSet body, string name)
Parameters
Type Name Description
GoogleCloudContentwarehouseV1SynonymSet body

The body of the request.

string name

Required. The name of the synonymSet to update Format: projects/{project_number}/locations/{location}/synonymSets/{context}.

Returns
Type Description
ProjectsResource.LocationsResource.SynonymSetsResource.PatchRequest
In this article
Back to top Generated by DocFX