-
-
Notifications
You must be signed in to change notification settings - Fork 41
Commit
- Loading branch information
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
#' Set a minCPU platform on a stopped instance | ||
#' | ||
#' @param instance The (stopped) instance to set a minimum CPU platform upon | ||
#' @param minCpuPlatform The platform to set | ||
#' | ||
#' @export | ||
#' @importFrom googleAuthR gar_api_generator | ||
gce_set_mincpuplatform <- function(instance, minCpuPlatform){ | ||
instance <- as.gce_instance(instance) | ||
instance_pz <- gce_extract_projectzone(instance) | ||
|
||
assert_that(is.string(minCpuPlatform)) | ||
|
||
f <- gar_api_generator( | ||
sprintf("https://www.googleapis.com/compute/v1/projects/%s/zones/%s/instances/%s/setMinCpuPlatform", | ||
instance_pz$project, instance_pz$zone, instance$name), | ||
"POST", | ||
data_parse_function = function(x) x | ||
) | ||
|
||
f(the_body = list(minCpuPlatform = minCpuPlatform)) | ||
} |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
This file was deleted.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
This file was deleted.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.