Class CasesResource.CommentsResource.GetRequest
Retrieve a comment. EXAMPLES: cURL:
shell
comment="projects/some-project/cases/43595344/comments/234567890" curl \ --header "Authorization: Bearer
$(gcloud auth print-access-token)" \ "https://cloudsupport.googleapis.com/v2/$comment"
Python:
python import googleapiclient.discovery api_version = "v2beta" supportApiService =
googleapiclient.discovery.build( serviceName="cloudsupport", version=api_version,
discoveryServiceUrl=f"https://cloudsupport.googleapis.com/$discovery/rest?version={api_version}", )
request = supportApiService.cases().comments().get(
name="projects/some-project/cases/43595344/comments/234567890", ) print(request.execute())
Inheritance
CasesResource.CommentsResource.GetRequest
Inherited Members
Namespace: Google.Apis.CloudSupport.v2beta
Assembly: Google.Apis.CloudSupport.v2beta.dll
Syntax
public class CasesResource.CommentsResource.GetRequest : CloudSupportBaseServiceRequest<Comment>, IClientServiceRequest<Comment>, IClientServiceRequest
Constructors
GetRequest(IClientService, string)
Constructs a new Get request.
Declaration
public GetRequest(IClientService service, string name)
Parameters
| Type | Name | Description |
|---|---|---|
| IClientService | service | |
| string | name |
Properties
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
Name
Required. The name of the comment to retrieve.
Declaration
[RequestParameter("name", RequestParameterType.Path)]
public virtual string Name { get; }
Property Value
| Type | Description |
|---|---|
| string |
RestPath
Gets the REST path.
Declaration
public override string RestPath { get; }
Property Value
| Type | Description |
|---|---|
| string |
Overrides
Methods
InitParameters()
Initializes Get parameter list.
Declaration
protected override void InitParameters()