Skip to content

Commit

Permalink
initial outline
Browse files Browse the repository at this point in the history
work on #16
  • Loading branch information
justinjm committed Feb 6, 2023
1 parent 669d0b9 commit d8e0f55
Showing 1 changed file with 31 additions and 3 deletions.
34 changes: 31 additions & 3 deletions R/endpoints.R
Original file line number Diff line number Diff line change
Expand Up @@ -152,11 +152,39 @@ gcva_create_endpoint <- function(projectId = gcva_project_get(),

}

#' @title
#'
#' @param
#' @param endpoint Endpoint object
#' @param machineType STRING

gcva_deploy <- function(model=NULL,
endpoint=NULL,
machineType="n1-standard-4") {

# gcva_deploy <- function(){
#
# }


# https://{service-endpoint}/v1/{endpoint}:deployModel
# projects/442003009360/locations/us-central1/endpoints/5359762943640600576

# parent for API request
parent <- sprintf("projects/%s/locations/%s",
projectId,
locationId)

url <- sprintf("https://%s-aiplatform.googleapis.com/v1/%s/endpoints",
locationId,
parent)

# https://{service-endpoint}/v1/{endpoint}:deployModel

# projects.locations.endpoints.deployModel
f <- googleAuthR::gar_api_generator(url,
"POST",
data_parse_function = function(x) x,
checkTrailingSlash = FALSE)

}



Expand Down

0 comments on commit d8e0f55

Please sign in to comment.