Connector for AI Platform Training and Prediction

Workflows connector that defines the built-in function used to access VertexAI (AI Platform) within a workflow.

Explore further

For detailed documentation that includes this code sample, see the following:

Code sample

YAML

  # This workflow expects following items to be provided through input argument for execution: 
 #   - projectID (string) 
 #     - The user project ID. 
 # 
 # Expected successful output: "SUCCESS" 
 main 
 : 
  
 params 
 : 
  
 [ 
 args 
 ] 
  
 steps 
 : 
  
 - 
  
 init 
 : 
  
 assign 
 : 
  
 - 
  
 project_id 
 : 
  
 ${args.projectID} 
  
 - 
  
 list_jobs 
 : 
  
 call 
 : 
  
 googleapis.ml.v1.projects.jobs.list 
  
 args 
 : 
  
 parent 
 : 
  
 ${"projects/" + project_id} 
  
 result 
 : 
  
 jobs 
  
 - 
  
 list_locations 
 : 
  
 call 
 : 
  
 googleapis.ml.v1.projects.locations.list 
  
 args 
 : 
  
 parent 
 : 
  
 ${"projects/" + project_id} 
  
 result 
 : 
  
 locations 
  
 - 
  
 the_end 
 : 
  
 return 
 : 
  
 "SUCCESS" 
 

What's next

To search and filter code samples for other Google Cloud products, see the Google Cloud sample browser .

Create a Mobile Website
View Site in Mobile | Classic
Share by: