Class ManagementResource.UploadsResource
The "uploads" collection of methods.
Inherited Members
Namespace: Google.Apis.Analytics.v3
Assembly: Google.Apis.Analytics.v3.dll
Syntax
public class ManagementResource.UploadsResource
Constructors
UploadsResource(IClientService)
Constructs a new resource.
Declaration
public UploadsResource(IClientService service)
Parameters
| Type | Name | Description |
|---|---|---|
| IClientService | service |
Methods
DeleteUploadData(AnalyticsDataimportDeleteUploadDataRequest, string, string, string)
Delete data associated with a previous upload.
Declaration
public virtual ManagementResource.UploadsResource.DeleteUploadDataRequest DeleteUploadData(AnalyticsDataimportDeleteUploadDataRequest body, string accountId, string webPropertyId, string customDataSourceId)
Parameters
| Type | Name | Description |
|---|---|---|
| AnalyticsDataimportDeleteUploadDataRequest | body | The body of the request. |
| string | accountId | Account Id for the uploads to be deleted. |
| string | webPropertyId | Web property Id for the uploads to be deleted. |
| string | customDataSourceId | Custom data source Id for the uploads to be deleted. |
Returns
| Type | Description |
|---|---|
| ManagementResource.UploadsResource.DeleteUploadDataRequest |
Get(string, string, string, string)
List uploads to which the user has access.
Declaration
public virtual ManagementResource.UploadsResource.GetRequest Get(string accountId, string webPropertyId, string customDataSourceId, string uploadId)
Parameters
| Type | Name | Description |
|---|---|---|
| string | accountId | Account Id for the upload to retrieve. |
| string | webPropertyId | Web property Id for the upload to retrieve. |
| string | customDataSourceId | Custom data source Id for upload to retrieve. |
| string | uploadId | Upload Id to retrieve. |
Returns
| Type | Description |
|---|---|
| ManagementResource.UploadsResource.GetRequest |
List(string, string, string)
List uploads to which the user has access.
Declaration
public virtual ManagementResource.UploadsResource.ListRequest List(string accountId, string webPropertyId, string customDataSourceId)
Parameters
| Type | Name | Description |
|---|---|---|
| string | accountId | Account Id for the uploads to retrieve. |
| string | webPropertyId | Web property Id for the uploads to retrieve. |
| string | customDataSourceId | Custom data source Id for uploads to retrieve. |
Returns
| Type | Description |
|---|---|
| ManagementResource.UploadsResource.ListRequest |
UploadData(string, string, string)
Upload data for a custom data source.
Declaration
public virtual ManagementResource.UploadsResource.UploadDataRequest UploadData(string accountId, string webPropertyId, string customDataSourceId)
Parameters
| Type | Name | Description |
|---|---|---|
| string | accountId | Account Id associated with the upload. |
| string | webPropertyId | Web property UA-string associated with the upload. |
| string | customDataSourceId | Custom data source Id to which the data being uploaded belongs. |
Returns
| Type | Description |
|---|---|
| ManagementResource.UploadsResource.UploadDataRequest |
UploadData(string, string, string, Stream, string)
Upload data for a custom data source.
Declaration
public virtual ManagementResource.UploadsResource.UploadDataMediaUpload UploadData(string accountId, string webPropertyId, string customDataSourceId, Stream stream, string contentType)
Parameters
| Type | Name | Description |
|---|---|---|
| string | accountId | Account Id associated with the upload. |
| string | webPropertyId | Web property UA-string associated with the upload. |
| string | customDataSourceId | Custom data source Id to which the data being uploaded belongs. |
| Stream | stream | The stream to upload. See remarks for further information. |
| string | contentType | The content type of the stream to upload. |
Returns
| Type | Description |
|---|---|
| ManagementResource.UploadsResource.UploadDataMediaUpload |
Remarks
Considerations regarding stream:
-
If
streamis seekable, then the stream position will be reset to0before reading commences. Ifstreamis not seekable, then it will be read from its current position -
Caller is responsible for maintaining the
streamopen until the upload is completed - Caller is responsible for closing the
stream