Class IndexingResource.DatasourcesResource
The "datasources" collection of methods.
Inheritance
Inherited Members
Namespace: Google.Apis.CloudSearch.v1
Assembly: Google.Apis.CloudSearch.v1.dll
Syntax
public class DatasourcesResource
Constructors
DatasourcesResource(IClientService)
Constructs a new resource.
Declaration
public DatasourcesResource(IClientService service)
Parameters
| Type | Name | Description |
|---|---|---|
| IClientService | service |
Properties
Items
Gets the Items resource.
Declaration
public virtual IndexingResource.DatasourcesResource.ItemsResource Items { get; }
Property Value
| Type | Description |
|---|---|
| IndexingResource.DatasourcesResource.ItemsResource |
Methods
DeleteSchema(String)
Deletes the schema of a data source. Note: This API requires an admin or service account to execute.
Declaration
public virtual IndexingResource.DatasourcesResource.DeleteSchemaRequest DeleteSchema(string name)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | name | Name of the data source to delete Schema. Format: datasources/{source_id} |
Returns
| Type | Description |
|---|---|
| IndexingResource.DatasourcesResource.DeleteSchemaRequest |
GetSchema(String)
Gets the schema of a data source. Note: This API requires an admin or service account to execute.
Declaration
public virtual IndexingResource.DatasourcesResource.GetSchemaRequest GetSchema(string name)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | name | Name of the data source to get Schema. Format: datasources/{source_id} |
Returns
| Type | Description |
|---|---|
| IndexingResource.DatasourcesResource.GetSchemaRequest |
UpdateSchema(UpdateSchemaRequest, String)
Updates the schema of a data source. This method does not perform incremental updates to the schema. Instead, this method updates the schema by overwriting the entire schema. Note: This API requires an admin or service account to execute.
Declaration
public virtual IndexingResource.DatasourcesResource.UpdateSchemaRequest UpdateSchema(UpdateSchemaRequest body, string name)
Parameters
| Type | Name | Description |
|---|---|---|
| UpdateSchemaRequest | body | The body of the request. |
| System.String | name | Name of the data source to update Schema. Format: datasources/{source_id} |
Returns
| Type | Description |
|---|---|
| IndexingResource.DatasourcesResource.UpdateSchemaRequest |