Class TableResource
The "table" collection of methods.
Inheritance
Inherited Members
Namespace: Google.Apis.Fusiontables.v1
Assembly: Google.Apis.Fusiontables.v1.dll
Syntax
public class TableResource
Constructors
TableResource(IClientService)
Constructs a new resource.
Declaration
public TableResource(IClientService service)
Parameters
Type | Name | Description |
---|---|---|
IClientService | service |
Methods
Copy(String)
Copies a table.
Declaration
public virtual TableResource.CopyRequest Copy(string tableId)
Parameters
Type | Name | Description |
---|---|---|
System.String | tableId | ID of the table that is being copied. |
Returns
Type | Description |
---|---|
TableResource.CopyRequest |
Delete(String)
Deletes a table.
Declaration
public virtual TableResource.DeleteRequest Delete(string tableId)
Parameters
Type | Name | Description |
---|---|---|
System.String | tableId | ID of the table that is being deleted. |
Returns
Type | Description |
---|---|
TableResource.DeleteRequest |
Get(String)
Retrieves a specific table by its id.
Declaration
public virtual TableResource.GetRequest Get(string tableId)
Parameters
Type | Name | Description |
---|---|---|
System.String | tableId | Identifier(ID) for the table being requested. |
Returns
Type | Description |
---|---|
TableResource.GetRequest |
ImportRows(String)
Import more rows into a table.
Declaration
public virtual TableResource.ImportRowsRequest ImportRows(string tableId)
Parameters
Type | Name | Description |
---|---|---|
System.String | tableId | The table into which new rows are being imported. |
Returns
Type | Description |
---|---|
TableResource.ImportRowsRequest |
ImportRows(String, Stream, String)
Import more rows into a table.
Declaration
public virtual TableResource.ImportRowsMediaUpload ImportRows(string tableId, Stream stream, string contentType)
Parameters
Type | Name | Description |
---|---|---|
System.String | tableId | The table into which new rows are being imported. |
System.IO.Stream | stream | The stream to upload. See remarks for further information. |
System.String | contentType | The content type of the stream to upload. |
Returns
Type | Description |
---|---|
TableResource.ImportRowsMediaUpload |
Remarks
Considerations regarding stream
:
-
If
stream
is seekable, then the stream position will be reset to0
before reading commences. Ifstream
is not seekable, then it will be read from its current position. -
Caller is responsible for maintaining the
stream
open until the upload is completed. -
Caller is responsible for closing the
stream
.
ImportTable(String)
Import a new table.
Declaration
public virtual TableResource.ImportTableRequest ImportTable(string name)
Parameters
Type | Name | Description |
---|---|---|
System.String | name | The name to be assigned to the new table. |
Returns
Type | Description |
---|---|
TableResource.ImportTableRequest |
ImportTable(String, Stream, String)
Import a new table.
Declaration
public virtual TableResource.ImportTableMediaUpload ImportTable(string name, Stream stream, string contentType)
Parameters
Type | Name | Description |
---|---|---|
System.String | name | The name to be assigned to the new table. |
System.IO.Stream | stream | The stream to upload. See remarks for further information. |
System.String | contentType | The content type of the stream to upload. |
Returns
Type | Description |
---|---|
TableResource.ImportTableMediaUpload |
Remarks
Considerations regarding stream
:
-
If
stream
is seekable, then the stream position will be reset to0
before reading commences. Ifstream
is not seekable, then it will be read from its current position. -
Caller is responsible for maintaining the
stream
open until the upload is completed. -
Caller is responsible for closing the
stream
.
Insert(Table)
Creates a new table.
Declaration
public virtual TableResource.InsertRequest Insert(Table body)
Parameters
Type | Name | Description |
---|---|---|
Table | body | The body of the request. |
Returns
Type | Description |
---|---|
TableResource.InsertRequest |
List()
Retrieves a list of tables a user owns.
Declaration
public virtual TableResource.ListRequest List()
Returns
Type | Description |
---|---|
TableResource.ListRequest |
Patch(Table, String)
Updates an existing table. Unless explicitly requested, only the name, description, and attribution will be updated. This method supports patch semantics.
Declaration
public virtual TableResource.PatchRequest Patch(Table body, string tableId)
Parameters
Type | Name | Description |
---|---|---|
Table | body | The body of the request. |
System.String | tableId | ID of the table that is being updated. |
Returns
Type | Description |
---|---|
TableResource.PatchRequest |
Update(Table, String)
Updates an existing table. Unless explicitly requested, only the name, description, and attribution will be updated.
Declaration
public virtual TableResource.UpdateRequest Update(Table body, string tableId)
Parameters
Type | Name | Description |
---|---|---|
Table | body | The body of the request. |
System.String | tableId | ID of the table that is being updated. |
Returns
Type | Description |
---|---|
TableResource.UpdateRequest |