public sealed class CaseAttachmentServiceClientImpl : CaseAttachmentServiceClient
Reference documentation and code samples for the Google Cloud Support v2 API class CaseAttachmentServiceClientImpl.
CaseAttachmentService client wrapper implementation, for convenient use.
Namespace
Google.Cloud.Support.V2Assembly
Google.Cloud.Support.V2.dll
Remarks
A service to manage file attachments for Google Cloud support cases.
Constructors
CaseAttachmentServiceClientImpl(CaseAttachmentServiceClient, CaseAttachmentServiceSettings, ILogger)
public CaseAttachmentServiceClientImpl(CaseAttachmentService.CaseAttachmentServiceClient grpcClient, CaseAttachmentServiceSettings settings, ILogger logger)
Constructs a client wrapper for the CaseAttachmentService service, with the specified gRPC client and settings.
Parameters | |
---|---|
Name | Description |
grpcClient |
CaseAttachmentServiceCaseAttachmentServiceClient The underlying gRPC client. |
settings |
CaseAttachmentServiceSettings The base CaseAttachmentServiceSettings used within this client. |
logger |
ILogger Optional ILogger to use within this client. |
Properties
GrpcClient
public override CaseAttachmentService.CaseAttachmentServiceClient GrpcClient { get; }
The underlying gRPC CaseAttachmentService client
Property Value | |
---|---|
Type | Description |
CaseAttachmentServiceCaseAttachmentServiceClient |
Methods
ListAttachments(ListAttachmentsRequest, CallSettings)
public override PagedEnumerable<ListAttachmentsResponse, Attachment> ListAttachments(ListAttachmentsRequest request, CallSettings callSettings = null)
List all the attachments associated with a support case.
EXAMPLES:
cURL:
case="projects/some-project/cases/23598314"
curl \
--header "Authorization: Bearer $(gcloud auth print-access-token)" \
"https://cloudsupport.googleapis.com/v2/$case/attachments"
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())
Parameters | |
---|---|
Name | Description |
request |
ListAttachmentsRequest The request object containing all of the parameters for the API call. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
PagedEnumerableListAttachmentsResponseAttachment |
A pageable sequence of Attachment resources. |
ListAttachmentsAsync(ListAttachmentsRequest, CallSettings)
public override PagedAsyncEnumerable<ListAttachmentsResponse, Attachment> ListAttachmentsAsync(ListAttachmentsRequest request, CallSettings callSettings = null)
List all the attachments associated with a support case.
EXAMPLES:
cURL:
case="projects/some-project/cases/23598314"
curl \
--header "Authorization: Bearer $(gcloud auth print-access-token)" \
"https://cloudsupport.googleapis.com/v2/$case/attachments"
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())
Parameters | |
---|---|
Name | Description |
request |
ListAttachmentsRequest The request object containing all of the parameters for the API call. |
callSettings |
CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
PagedAsyncEnumerableListAttachmentsResponseAttachment |
A pageable asynchronous sequence of Attachment resources. |