Class SettingsResource.DatasourcesResource
The "datasources" collection of methods.
Inherited Members
Namespace: Google.Apis.CloudSearch.v1
Assembly: Google.Apis.CloudSearch.v1.dll
Syntax
public class SettingsResource.DatasourcesResource
Constructors
DatasourcesResource(IClientService)
Constructs a new resource.
Declaration
public DatasourcesResource(IClientService service)
Parameters
Type | Name | Description |
---|---|---|
IClientService | service |
Methods
Create(DataSource)
Creates a datasource. Note: This API requires an admin account to execute.
Declaration
public virtual SettingsResource.DatasourcesResource.CreateRequest Create(DataSource body)
Parameters
Type | Name | Description |
---|---|---|
DataSource | body | The body of the request. |
Returns
Type | Description |
---|---|
SettingsResource.DatasourcesResource.CreateRequest |
Delete(string)
Deletes a datasource. Note: This API requires an admin account to execute.
Declaration
public virtual SettingsResource.DatasourcesResource.DeleteRequest Delete(string name)
Parameters
Type | Name | Description |
---|---|---|
string | name | The name of the datasource. Format: datasources/{source_id}. |
Returns
Type | Description |
---|---|
SettingsResource.DatasourcesResource.DeleteRequest |
Get(string)
Gets a datasource. Note: This API requires an admin account to execute.
Declaration
public virtual SettingsResource.DatasourcesResource.GetRequest Get(string name)
Parameters
Type | Name | Description |
---|---|---|
string | name | The name of the datasource resource. Format: datasources/{source_id}. |
Returns
Type | Description |
---|---|
SettingsResource.DatasourcesResource.GetRequest |
List()
Lists datasources. Note: This API requires an admin account to execute.
Declaration
public virtual SettingsResource.DatasourcesResource.ListRequest List()
Returns
Type | Description |
---|---|
SettingsResource.DatasourcesResource.ListRequest |
Patch(DataSource, string)
Updates a datasource. Note: This API requires an admin account to execute.
Declaration
public virtual SettingsResource.DatasourcesResource.PatchRequest Patch(DataSource body, string name)
Parameters
Type | Name | Description |
---|---|---|
DataSource | body | The body of the request. |
string | name | The name of the datasource resource. Format: datasources/{source_id}. The name is ignored when creating a datasource. |
Returns
Type | Description |
---|---|
SettingsResource.DatasourcesResource.PatchRequest |
Update(UpdateDataSourceRequest, string)
Updates a datasource. Note: This API requires an admin account to execute.
Declaration
public virtual SettingsResource.DatasourcesResource.UpdateRequest Update(UpdateDataSourceRequest body, string name)
Parameters
Type | Name | Description |
---|---|---|
UpdateDataSourceRequest | body | The body of the request. |
string | name | The name of the datasource resource. Format: datasources/{source_id}. The name is ignored when creating a datasource. |
Returns
Type | Description |
---|---|
SettingsResource.DatasourcesResource.UpdateRequest |