Show / Hide Table of Contents

Class CasesResource.CommentsResource.CreateRequest

Add a new comment to the specified Case. The comment object must have the following fields set: body. Here is an example of calling this endpoint using cURL:

shell
case="projects/some-project/cases/43591344" curl \ --request POST \ --header "Authorization: Bearer
$(gcloud auth print-access-token)" \ --header 'Content-Type: application/json' \ --data '{ "body": "This
is a test comment." }' \ "https://cloudsupport.googleapis.com/v2/$case/comments"
Inheritance
object
ClientServiceRequest
ClientServiceRequest<Comment>
CloudSupportBaseServiceRequest<Comment>
CasesResource.CommentsResource.CreateRequest
Implements
IClientServiceRequest<Comment>
IClientServiceRequest
Inherited Members
CloudSupportBaseServiceRequest<Comment>.Xgafv
CloudSupportBaseServiceRequest<Comment>.AccessToken
CloudSupportBaseServiceRequest<Comment>.Alt
CloudSupportBaseServiceRequest<Comment>.Callback
CloudSupportBaseServiceRequest<Comment>.Fields
CloudSupportBaseServiceRequest<Comment>.Key
CloudSupportBaseServiceRequest<Comment>.OauthToken
CloudSupportBaseServiceRequest<Comment>.PrettyPrint
CloudSupportBaseServiceRequest<Comment>.QuotaUser
CloudSupportBaseServiceRequest<Comment>.UploadType
CloudSupportBaseServiceRequest<Comment>.UploadProtocol
ClientServiceRequest<Comment>.Execute()
ClientServiceRequest<Comment>.ExecuteAsStream()
ClientServiceRequest<Comment>.ExecuteAsync()
ClientServiceRequest<Comment>.ExecuteAsync(CancellationToken)
ClientServiceRequest<Comment>.ExecuteAsStreamAsync()
ClientServiceRequest<Comment>.ExecuteAsStreamAsync(CancellationToken)
ClientServiceRequest<Comment>.CreateRequest(bool?)
ClientServiceRequest<Comment>.GenerateRequestUri()
ClientServiceRequest<Comment>.GetDefaultETagAction(string)
ClientServiceRequest<Comment>.ETagAction
ClientServiceRequest<Comment>.ModifyRequest
ClientServiceRequest<Comment>.ValidateParameters
ClientServiceRequest<Comment>.RequestParameters
ClientServiceRequest<Comment>.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.CloudSupport.v2beta
Assembly: Google.Apis.CloudSupport.v2beta.dll
Syntax
public class CasesResource.CommentsResource.CreateRequest : CloudSupportBaseServiceRequest<Comment>, IClientServiceRequest<Comment>, IClientServiceRequest

Constructors

CreateRequest(IClientService, Comment, string)

Constructs a new Create request.

Declaration
public CreateRequest(IClientService service, Comment body, string parent)
Parameters
Type Name Description
IClientService service
Comment 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.Comment>.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.Comment>.MethodName

Parent

Required. The resource name of Case to which this comment should be added.

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.Comment>.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.Comment>.GetBody()

InitParameters()

Initializes Create parameter list.

Declaration
protected override void InitParameters()
Overrides
CloudSupportBaseServiceRequest<Comment>.InitParameters()

Implements

IClientServiceRequest<TResponse>
IClientServiceRequest
In This Article
Back to top Generated by DocFX