示例#1
0
 /// <summary>Snippet for Get</summary>
 public void Get()
 {
     // Snippet: Get(string, string, string, CallSettings)
     // Create client
     MachineTypesClient machineTypesClient = MachineTypesClient.Create();
     // Initialize request argument(s)
     string project     = "";
     string zone        = "";
     string machineType = "";
     // Make the request
     MachineType response = machineTypesClient.Get(project, zone, machineType);
     // End snippet
 }
示例#2
0
 /// <summary>Snippet for Get</summary>
 public void GetRequestObject()
 {
     // Snippet: Get(GetMachineTypeRequest, CallSettings)
     // Create client
     MachineTypesClient machineTypesClient = MachineTypesClient.Create();
     // Initialize request argument(s)
     GetMachineTypeRequest request = new GetMachineTypeRequest
     {
         Zone        = "",
         Project     = "",
         MachineType = "",
     };
     // Make the request
     MachineType response = machineTypesClient.Get(request);
     // End snippet
 }