Skip to content

Commit

Permalink
tidy for release
Browse files Browse the repository at this point in the history
  • Loading branch information
hongooi73 committed Oct 13, 2020
1 parent 59956e6 commit 68c2115
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 11 deletions.
2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Package: AzureRMR
Title: Interface to 'Azure Resource Manager'
Version: 2.3.5.9000
Version: 2.3.6
Authors@R: c(
person("Hong", "Ooi", , "[email protected]", role = c("aut", "cre")),
person("Microsoft", role="cph")
Expand Down
2 changes: 1 addition & 1 deletion NEWS.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# AzureRMR 2.3.5.9000
# AzureRMR 2.3.6

- Add ability to specify user-defined functions in `build_template_definition`. Also allow changing the schema, content version and api profile.
- Change maintainer email address.
Expand Down
10 changes: 5 additions & 5 deletions R/build_tpl_json.R
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
#' @param functions User-defined functions used by the template.
#' @param resources List of resources that the template should deploy.
#' @param outputs The template outputs.
#' @param schema,content_version,api_profile Less common arguments that can be used to customise the template. See the guide to template syntax on Microsoft Docs, linked below.
#' @param schema,version,api_profile Less commonly used arguments that can be used to customise the template. See the guide to template syntax on Microsoft Docs, linked below.
#'
#' @details
#' `build_template_definition` is used to generate a template from its components. The main arguments are `parameters`, `variables`, `functions`, `resources` and `outputs`. Each of these can be specified in various ways:
Expand Down Expand Up @@ -143,8 +143,8 @@ build_template_definition <- function(...)
#' @export
build_template_definition.default <- function(
parameters=named_list(), variables=named_list(), functions=list(), resources=list(), outputs=named_list(),
schema="https://schema.management.azure.com/schemas/2019-04-01/deploymentTemplate.json#",
content_version="1.0.0.0",
schema="2019-04-01",
version="1.0.0.0",
api_profile=NULL,
...)
{
Expand All @@ -154,8 +154,8 @@ build_template_definition.default <- function(

parts <- lapply(
list(
`$schema`=schema,
contentVersion=content_version,
`$schema`=paste0("https://schema.management.azure.com/schemas/", schema, "/deploymentTemplate.json#"),
contentVersion=version,
apiProfile=api_profile,
parameters=parameters,
variables=variables,
Expand Down
7 changes: 3 additions & 4 deletions man/build_template.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 68c2115

Please sign in to comment.