Class CaseAttachmentServiceGrpc.CaseAttachmentServiceFutureStub (0.47.0)

public static final class CaseAttachmentServiceGrpc.CaseAttachmentServiceFutureStub extends AbstractFutureStub<CaseAttachmentServiceGrpc.CaseAttachmentServiceFutureStub>

A stub to allow clients to do ListenableFuture-style rpc calls to service CaseAttachmentService.

A service to manage file attachments for Google Cloud support cases.

Inheritance

java.lang.Object > io.grpc.stub.AbstractStub > io.grpc.stub.AbstractFutureStub > CaseAttachmentServiceGrpc.CaseAttachmentServiceFutureStub

Methods

build(Channel channel, CallOptions callOptions)

protected CaseAttachmentServiceGrpc.CaseAttachmentServiceFutureStub build(Channel channel, CallOptions callOptions)
Parameters
Name Description
channel io.grpc.Channel
callOptions io.grpc.CallOptions
Returns
Type Description
CaseAttachmentServiceGrpc.CaseAttachmentServiceFutureStub
Overrides
io.grpc.stub.AbstractStub.build(io.grpc.Channel,io.grpc.CallOptions)

listAttachments(ListAttachmentsRequest request)

public ListenableFuture<ListAttachmentsResponse> listAttachments(ListAttachmentsRequest request)

List all the attachments associated with a support case. EXAMPLES: cURL: <code><code>shell case="projects/some-project/cases/23598314" curl &#92; --header "Authorization: Bearer $(gcloud auth print-access-token)" &#92; "https://cloudsupport.googleapis.com/v2/$case/attachments" </code></code><code> Python: </code><code><code>python import googleapiclient.discovery api_version = "v2" supportApiService = googleapiclient.discovery.build( serviceName="cloudsupport", version=api_version, discoveryServiceUrl=f"https://cloudsupport.googleapis.com/$discovery/rest?version={api_version}", ) request = ( supportApiService.cases() .attachments() .list(parent="projects/some-project/cases/43595344") ) print(request.execute()) </code></code>

Parameter
Name Description
request ListAttachmentsRequest
Returns
Type Description
com.google.common.util.concurrent.ListenableFuture<ListAttachmentsResponse>