Class MediaResource.UploadRequest
Creates an enterprise file from the content provided by user. Returns a public download url for end user.
Inheritance
MediaResource.UploadRequest
Implements
Inherited Members
Namespace: Google.Apis.ChromePolicy.v1
Assembly: Google.Apis.ChromePolicy.v1.dll
Syntax
public class MediaResource.UploadRequest : ChromePolicyBaseServiceRequest<GoogleChromePolicyVersionsV1UploadPolicyFileResponse>, IClientServiceRequest<GoogleChromePolicyVersionsV1UploadPolicyFileResponse>, IClientServiceRequest
Constructors
UploadRequest(IClientService, GoogleChromePolicyVersionsV1UploadPolicyFileRequest, string)
Constructs a new Upload request.
Declaration
public UploadRequest(IClientService service, GoogleChromePolicyVersionsV1UploadPolicyFileRequest body, string customer)
Parameters
Type | Name | Description |
---|---|---|
IClientService | service | |
GoogleChromePolicyVersionsV1UploadPolicyFileRequest | body | |
string | customer |
Properties
Customer
Required. The customer for which the file upload will apply.
Declaration
[RequestParameter("customer", RequestParameterType.Path)]
public virtual string Customer { get; }
Property Value
Type | Description |
---|---|
string |
HttpMethod
Gets the HTTP method.
Declaration
public override string HttpMethod { get; }
Property Value
Type | Description |
---|---|
string |
Overrides
MethodName
Gets the method name.
Declaration
public override string MethodName { get; }
Property Value
Type | Description |
---|---|
string |
Overrides
RestPath
Gets the REST path.
Declaration
public override string RestPath { get; }
Property Value
Type | Description |
---|---|
string |
Overrides
Methods
GetBody()
Returns the body of the request.
Declaration
protected override object GetBody()
Returns
Type | Description |
---|---|
object |
Overrides
InitParameters()
Initializes Upload parameter list.
Declaration
protected override void InitParameters()