Class AttachmentsResource.CreateRequest
Create a file attachment on a case or Cloud resource. The attachment object must have the following fields set: filename.
Inheritance
object
AttachmentsResource.CreateRequest
Inherited Members
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: Google.Apis.CloudSupport.v2beta
Assembly: Google.Apis.CloudSupport.v2beta.dll
Syntax
public class AttachmentsResource.CreateRequest : CloudSupportBaseServiceRequest<Attachment>, IClientServiceRequest<Attachment>, IClientServiceRequest
Constructors
CreateRequest(IClientService, CreateAttachmentRequest, string)
Constructs a new Create request.
Declaration
public CreateRequest(IClientService service, CreateAttachmentRequest body, string parent)
Parameters
Type | Name | Description |
---|---|---|
IClientService | service | |
CreateAttachmentRequest | body | |
string | parent |
Properties
HttpMethod
Gets the HTTP method.
Declaration
public override string HttpMethod { get; }
Property Value
Type | Description |
---|---|
string |
Overrides
Google.Apis.Requests.ClientServiceRequest<Google.Apis.CloudSupport.v2beta.Data.Attachment>.HttpMethod
MethodName
Gets the method name.
Declaration
public override string MethodName { get; }
Property Value
Type | Description |
---|---|
string |
Overrides
Google.Apis.Requests.ClientServiceRequest<Google.Apis.CloudSupport.v2beta.Data.Attachment>.MethodName
Parent
Required. The resource name of the case (or case parent) to which the attachment should be attached.
Declaration
[RequestParameter("parent", RequestParameterType.Path)]
public virtual string Parent { 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.CloudSupport.v2beta.Data.Attachment>.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.CloudSupport.v2beta.Data.Attachment>.GetBody()
InitParameters()
Initializes Create parameter list.
Declaration
protected override void InitParameters()
Overrides
Google.Apis.CloudSupport.v2beta.CloudSupportBaseServiceRequest<Google.Apis.CloudSupport.v2beta.Data.Attachment>.InitParameters()