Class MediaResource.UploadRequest
Uploads media. Upload is supported on the URI /upload/media/{resource_name=**}?upload_type=media.
Note: Upload requests will not be successful without including upload_type=media
query string.
Inheritance
MediaResource.UploadRequest
Inherited Members
Namespace: Google.Apis.DisplayVideo.v1
Assembly: Google.Apis.DisplayVideo.v1.dll
Syntax
public class MediaResource.UploadRequest : DisplayVideoBaseServiceRequest<GoogleBytestreamMedia>, IClientServiceRequest<GoogleBytestreamMedia>, IClientServiceRequest
Constructors
UploadRequest(IClientService, GoogleBytestreamMedia, string)
Constructs a new Upload request.
Declaration
public UploadRequest(IClientService service, GoogleBytestreamMedia body, string resourceName)
Parameters
Type | Name | Description |
---|---|---|
IClientService | service | |
GoogleBytestreamMedia | body | |
string | resourceName |
Properties
HttpMethod
Gets the HTTP method.
Declaration
public override string HttpMethod { get; }
Property Value
Type | Description |
---|---|
string |
Overrides
Google.Apis.Requests.ClientServiceRequest<Google.Apis.DisplayVideo.v1.Data.GoogleBytestreamMedia>.HttpMethod
MethodName
Gets the method name.
Declaration
public override string MethodName { get; }
Property Value
Type | Description |
---|---|
string |
Overrides
Google.Apis.Requests.ClientServiceRequest<Google.Apis.DisplayVideo.v1.Data.GoogleBytestreamMedia>.MethodName
ResourceName
Name of the media that is being downloaded. See ReadRequest.resource_name.
Declaration
[RequestParameter("resourceName", RequestParameterType.Path)]
public virtual string ResourceName { get; }
Property Value
Type | Description |
---|---|
string |
RestPath
Gets the REST path.
Declaration
public override string RestPath { get; }
Property Value
Type | Description |
---|---|
string |
Overrides
Google.Apis.Requests.ClientServiceRequest<Google.Apis.DisplayVideo.v1.Data.GoogleBytestreamMedia>.RestPath
Methods
GetBody()
Returns the body of the request.
Declaration
protected override object GetBody()
Returns
Type | Description |
---|---|
object |
Overrides
Google.Apis.Requests.ClientServiceRequest<Google.Apis.DisplayVideo.v1.Data.GoogleBytestreamMedia>.GetBody()
InitParameters()
Initializes Upload parameter list.
Declaration
protected override void InitParameters()