Show / Hide Table of Contents

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
object
ClientServiceRequest
ClientServiceRequest<GoogleBytestreamMedia>
DisplayVideoBaseServiceRequest<GoogleBytestreamMedia>
MediaResource.UploadRequest
Implements
IClientServiceRequest<GoogleBytestreamMedia>
IClientServiceRequest
Inherited Members
DisplayVideoBaseServiceRequest<GoogleBytestreamMedia>.Xgafv
DisplayVideoBaseServiceRequest<GoogleBytestreamMedia>.AccessToken
DisplayVideoBaseServiceRequest<GoogleBytestreamMedia>.Alt
DisplayVideoBaseServiceRequest<GoogleBytestreamMedia>.Callback
DisplayVideoBaseServiceRequest<GoogleBytestreamMedia>.Fields
DisplayVideoBaseServiceRequest<GoogleBytestreamMedia>.Key
DisplayVideoBaseServiceRequest<GoogleBytestreamMedia>.OauthToken
DisplayVideoBaseServiceRequest<GoogleBytestreamMedia>.PrettyPrint
DisplayVideoBaseServiceRequest<GoogleBytestreamMedia>.QuotaUser
DisplayVideoBaseServiceRequest<GoogleBytestreamMedia>.UploadType
DisplayVideoBaseServiceRequest<GoogleBytestreamMedia>.UploadProtocol
ClientServiceRequest<GoogleBytestreamMedia>.Execute()
ClientServiceRequest<GoogleBytestreamMedia>.ExecuteAsStream()
ClientServiceRequest<GoogleBytestreamMedia>.ExecuteAsync()
ClientServiceRequest<GoogleBytestreamMedia>.ExecuteAsync(CancellationToken)
ClientServiceRequest<GoogleBytestreamMedia>.ExecuteAsStreamAsync()
ClientServiceRequest<GoogleBytestreamMedia>.ExecuteAsStreamAsync(CancellationToken)
ClientServiceRequest<GoogleBytestreamMedia>.CreateRequest(bool?)
ClientServiceRequest<GoogleBytestreamMedia>.GenerateRequestUri()
ClientServiceRequest<GoogleBytestreamMedia>.GetDefaultETagAction(string)
ClientServiceRequest<GoogleBytestreamMedia>.ETagAction
ClientServiceRequest<GoogleBytestreamMedia>.ModifyRequest
ClientServiceRequest<GoogleBytestreamMedia>.ValidateParameters
ClientServiceRequest<GoogleBytestreamMedia>.ApiVersion
ClientServiceRequest<GoogleBytestreamMedia>.RequestParameters
ClientServiceRequest<GoogleBytestreamMedia>.Service
ClientServiceRequest._unsuccessfulResponseHandlers
ClientServiceRequest._exceptionHandlers
ClientServiceRequest._executeInterceptors
ClientServiceRequest.AddUnsuccessfulResponseHandler(IHttpUnsuccessfulResponseHandler)
ClientServiceRequest.AddExceptionHandler(IHttpExceptionHandler)
ClientServiceRequest.AddExecuteInterceptor(IHttpExecuteInterceptor)
ClientServiceRequest.Credential
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: Google.Apis.DisplayVideo.v2
Assembly: Google.Apis.DisplayVideo.v2.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
ClientServiceRequest<GoogleBytestreamMedia>.HttpMethod

MethodName

Gets the method name.

Declaration
public override string MethodName { get; }
Property Value
Type Description
string
Overrides
ClientServiceRequest<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
ClientServiceRequest<GoogleBytestreamMedia>.RestPath

Methods

GetBody()

Returns the body of the request.

Declaration
protected override object GetBody()
Returns
Type Description
object
Overrides
ClientServiceRequest<GoogleBytestreamMedia>.GetBody()

InitParameters()

Initializes Upload parameter list.

Declaration
protected override void InitParameters()
Overrides
DisplayVideoBaseServiceRequest<GoogleBytestreamMedia>.InitParameters()

Implements

IClientServiceRequest<TResponse>
IClientServiceRequest
In this article
Back to top Generated by DocFX