google-cloud-cloudsupport overview (0.7.0)

com.google.cloud.support.v2

A client to Google Cloud Support API

The interfaces provided are listed below, along with usage samples.

CaseAttachmentServiceClient

Service Description: A service to manage file attachment for Google Cloud support cases.

Sample for CaseAttachmentServiceClient:

   
 // This snippet has been automatically generated and should be regarded as a code template only. 
  
 // It will require modifications to work: 
  
 // - It may require correct/in-range values for request initialization. 
  
 // - It may require specifying regional endpoints when creating the service client as shown in 
  
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library 
  
 try 
  
 ( 
 CaseAttachmentServiceClient 
  
 caseAttachmentServiceClient 
  
 = 
  
 CaseAttachmentServiceClient 
 . 
 create 
 ()) 
  
 { 
  
 CaseName 
  
 parent 
  
 = 
  
 CaseName 
 . 
 ofProjectCaseName 
 ( 
 "[PROJECT]" 
 , 
  
 "[CASE]" 
 ); 
  
 for 
  
 ( 
 Attachment 
  
 element 
  
 : 
  
 caseAttachmentServiceClient 
 . 
 listAttachments 
 ( 
 parent 
 ). 
 iterateAll 
 ()) 
  
 { 
  
 // doThingsWith(element); 
  
 } 
  
 } 
  
 

CaseServiceClient

Service Description: A service to manage Google Cloud support cases.

Sample for CaseServiceClient:

   
 // This snippet has been automatically generated and should be regarded as a code template only. 
  
 // It will require modifications to work: 
  
 // - It may require correct/in-range values for request initialization. 
  
 // - It may require specifying regional endpoints when creating the service client as shown in 
  
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library 
  
 try 
  
 ( 
 CaseServiceClient 
  
 caseServiceClient 
  
 = 
  
 CaseServiceClient 
 . 
 create 
 ()) 
  
 { 
  
 CaseName 
  
 name 
  
 = 
  
 CaseName 
 . 
 ofProjectCaseName 
 ( 
 "[PROJECT]" 
 , 
  
 "[CASE]" 
 ); 
  
 Case 
  
 response 
  
 = 
  
 caseServiceClient 
 . 
 getCase 
 ( 
 name 
 ); 
  
 } 
  
 

CommentServiceClient

Service Description: A service to manage comments on cases.

Sample for CommentServiceClient:

   
 // This snippet has been automatically generated and should be regarded as a code template only. 
  
 // It will require modifications to work: 
  
 // - It may require correct/in-range values for request initialization. 
  
 // - It may require specifying regional endpoints when creating the service client as shown in 
  
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library 
  
 try 
  
 ( 
 CommentServiceClient 
  
 commentServiceClient 
  
 = 
  
 CommentServiceClient 
 . 
 create 
 ()) 
  
 { 
  
 CaseName 
  
 parent 
  
 = 
  
 CaseName 
 . 
 ofProjectCaseName 
 ( 
 "[PROJECT]" 
 , 
  
 "[CASE]" 
 ); 
  
 Comment 
  
 comment 
  
 = 
  
 Comment 
 . 
 newBuilder 
 (). 
 build 
 (); 
  
 Comment 
  
 response 
  
 = 
  
 commentServiceClient 
 . 
 createComment 
 ( 
 parent 
 , 
  
 comment 
 ); 
  
 } 
  
 

com.google.cloud.support.v2.stub

Design a Mobile Site
View Site in Mobile | Classic
Share by: