Class ManagementResource.UploadsResource
The "uploads" collection of methods.
Inheritance
Inherited Members
Namespace: Google.Apis.Analytics.v3
Assembly: Google.Apis.Analytics.v3.dll
Syntax
public class UploadsResource
Constructors
UploadsResource(IClientService)
Constructs a new resource.
Declaration
public UploadsResource(IClientService service)
Parameters
| Type | Name | Description |
|---|---|---|
| Google.Apis.Services.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. |
| System.String | accountId | Account Id for the uploads to be deleted. |
| System.String | webPropertyId | Web property Id for the uploads to be deleted. |
| System.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 |
|---|---|---|
| System.String | accountId | Account Id for the upload to retrieve. |
| System.String | webPropertyId | Web property Id for the upload to retrieve. |
| System.String | customDataSourceId | Custom data source Id for upload to retrieve. |
| System.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 |
|---|---|---|
| System.String | accountId | Account Id for the uploads to retrieve. |
| System.String | webPropertyId | Web property Id for the uploads to retrieve. |
| System.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 |
|---|---|---|
| System.String | accountId | Account Id associated with the upload. |
| System.String | webPropertyId | Web property UA-string associated with the upload. |
| System.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 |
|---|---|---|
| System.String | accountId | Account Id associated with the upload. |
| System.String | webPropertyId | Web property UA-string associated with the upload. |
| System.String | customDataSourceId | Custom data source Id to which the data being uploaded belongs. |
| 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 |
|---|---|
| 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