Beispiel #1
0
 /// <summary>Snippet for GetTemplate</summary>
 public void GetTemplateRequestObject()
 {
     // Snippet: GetTemplate(GetTemplateRequest, CallSettings)
     // Create client
     TemplatesServiceClient templatesServiceClient = TemplatesServiceClient.Create();
     // Initialize request argument(s)
     GetTemplateRequest request = new GetTemplateRequest
     {
         ProjectId = "",
         GcsPath   = "",
         View      = GetTemplateRequest.Types.TemplateView.MetadataOnly,
         Location  = "",
     };
     // Make the request
     GetTemplateResponse response = templatesServiceClient.GetTemplate(request);
     // End snippet
 }
Beispiel #2
0
 /// <summary>Snippet for LaunchTemplate</summary>
 public void LaunchTemplateRequestObject()
 {
     // Snippet: LaunchTemplate(LaunchTemplateRequest, CallSettings)
     // Create client
     TemplatesServiceClient templatesServiceClient = TemplatesServiceClient.Create();
     // Initialize request argument(s)
     LaunchTemplateRequest request = new LaunchTemplateRequest
     {
         ProjectId        = "",
         ValidateOnly     = false,
         GcsPath          = "",
         LaunchParameters = new LaunchTemplateParameters(),
         Location         = "",
     };
     // Make the request
     LaunchTemplateResponse response = templatesServiceClient.LaunchTemplate(request);
     // End snippet
 }
Beispiel #3
0
 /// <summary>Snippet for CreateJobFromTemplate</summary>
 public void CreateJobFromTemplateRequestObject()
 {
     // Snippet: CreateJobFromTemplate(CreateJobFromTemplateRequest, CallSettings)
     // Create client
     TemplatesServiceClient templatesServiceClient = TemplatesServiceClient.Create();
     // Initialize request argument(s)
     CreateJobFromTemplateRequest request = new CreateJobFromTemplateRequest
     {
         ProjectId   = "",
         GcsPath     = "",
         Parameters  = { { "", "" }, },
         JobName     = "",
         Environment = new RuntimeEnvironment(),
         Location    = "",
     };
     // Make the request
     Job response = templatesServiceClient.CreateJobFromTemplate(request);
     // End snippet
 }