public static final class CaseAttachmentServiceGrpc.CaseAttachmentServiceStub extends AbstractAsyncStub<CaseAttachmentServiceGrpc.CaseAttachmentServiceStub>A stub to allow clients to do asynchronous 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.AbstractAsyncStub > CaseAttachmentServiceGrpc.CaseAttachmentServiceStubMethods
build(Channel channel, CallOptions callOptions)
protected CaseAttachmentServiceGrpc.CaseAttachmentServiceStub build(Channel channel, CallOptions callOptions)| Parameters | |
|---|---|
| Name | Description |
channel |
io.grpc.Channel |
callOptions |
io.grpc.CallOptions |
| Returns | |
|---|---|
| Type | Description |
CaseAttachmentServiceGrpc.CaseAttachmentServiceStub |
|
getAttachment(GetAttachmentRequest request, StreamObserver<Attachment> responseObserver)
public void getAttachment(GetAttachmentRequest request, StreamObserver<Attachment> responseObserver) Retrieve an attachment associated with a support case.
EXAMPLES:
cURL:
<code><code>shell
attachment="projects/some-project/cases/23598314/attachments/0684M00000P3h1fQAB"
curl \
--header "Authorization: Bearer $(gcloud auth print-access-token)" \
"https://cloudsupport.googleapis.com/v2/$attachment"
</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()
.get(name="projects/some-project/cases/43595344/attachments/0684M00000P3h1fQAB")
)
print(request.execute())
</code></code>
| Parameters | |
|---|---|
| Name | Description |
request |
GetAttachmentRequest |
responseObserver |
io.grpc.stub.StreamObserver<Attachment> |
listAttachments(ListAttachmentsRequest request, StreamObserver<ListAttachmentsResponse> responseObserver)
public void listAttachments(ListAttachmentsRequest request, StreamObserver<ListAttachmentsResponse> responseObserver)List all the attachments associated with a support case.
| Parameters | |
|---|---|
| Name | Description |
request |
ListAttachmentsRequest |
responseObserver |
io.grpc.stub.StreamObserver<ListAttachmentsResponse> |