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
System.Object
MediaResource.UploadRequest
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Google.Apis.DisplayVideo.v1
Assembly: Google.Apis.DisplayVideo.v1.dll
Syntax
public class 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 | |
System.String | resourceName |
Properties
HttpMethod
Gets the HTTP method.
Declaration
public override string HttpMethod { get; }
Property Value
Type | Description |
---|---|
System.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 |
---|---|
System.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 |
---|---|
System.String |
RestPath
Gets the REST path.
Declaration
public override string RestPath { get; }
Property Value
Type | Description |
---|---|
System.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 |
---|---|
System.Object |
Overrides
Google.Apis.Requests.ClientServiceRequest<Google.Apis.DisplayVideo.v1.Data.GoogleBytestreamMedia>.GetBody()
InitParameters()
Initializes Upload parameter list.
Declaration
protected override void InitParameters()
Overrides
Google.Apis.DisplayVideo.v1.DisplayVideoBaseServiceRequest<Google.Apis.DisplayVideo.v1.Data.GoogleBytestreamMedia>.InitParameters()