зеркало из https://github.com/Azure/AzureRMR.git
tidy for release
This commit is contained in:
Родитель
59956e6fa8
Коммит
68c2115041
|
@ -1,6 +1,6 @@
|
||||||
Package: AzureRMR
|
Package: AzureRMR
|
||||||
Title: Interface to 'Azure Resource Manager'
|
Title: Interface to 'Azure Resource Manager'
|
||||||
Version: 2.3.5.9000
|
Version: 2.3.6
|
||||||
Authors@R: c(
|
Authors@R: c(
|
||||||
person("Hong", "Ooi", , "hongooi73@gmail.com", role = c("aut", "cre")),
|
person("Hong", "Ooi", , "hongooi73@gmail.com", role = c("aut", "cre")),
|
||||||
person("Microsoft", role="cph")
|
person("Microsoft", role="cph")
|
||||||
|
|
2
NEWS.md
2
NEWS.md
|
@ -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.
|
- 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.
|
- Change maintainer email address.
|
||||||
|
|
|
@ -6,7 +6,7 @@
|
||||||
#' @param functions User-defined functions used by the template.
|
#' @param functions User-defined functions used by the template.
|
||||||
#' @param resources List of resources that the template should deploy.
|
#' @param resources List of resources that the template should deploy.
|
||||||
#' @param outputs The template outputs.
|
#' @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
|
#' @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:
|
#' `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:
|
||||||
|
@ -143,8 +143,8 @@ build_template_definition <- function(...)
|
||||||
#' @export
|
#' @export
|
||||||
build_template_definition.default <- function(
|
build_template_definition.default <- function(
|
||||||
parameters=named_list(), variables=named_list(), functions=list(), resources=list(), outputs=named_list(),
|
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#",
|
schema="2019-04-01",
|
||||||
content_version="1.0.0.0",
|
version="1.0.0.0",
|
||||||
api_profile=NULL,
|
api_profile=NULL,
|
||||||
...)
|
...)
|
||||||
{
|
{
|
||||||
|
@ -154,8 +154,8 @@ build_template_definition.default <- function(
|
||||||
|
|
||||||
parts <- lapply(
|
parts <- lapply(
|
||||||
list(
|
list(
|
||||||
`$schema`=schema,
|
`$schema`=paste0("https://schema.management.azure.com/schemas/", schema, "/deploymentTemplate.json#"),
|
||||||
contentVersion=content_version,
|
contentVersion=version,
|
||||||
apiProfile=api_profile,
|
apiProfile=api_profile,
|
||||||
parameters=parameters,
|
parameters=parameters,
|
||||||
variables=variables,
|
variables=variables,
|
||||||
|
|
|
@ -12,9 +12,8 @@ build_template_definition(...)
|
||||||
|
|
||||||
\method{build_template_definition}{default}(parameters = named_list(),
|
\method{build_template_definition}{default}(parameters = named_list(),
|
||||||
variables = named_list(), functions = list(), resources = list(),
|
variables = named_list(), functions = list(), resources = list(),
|
||||||
outputs = named_list(),
|
outputs = named_list(), schema = "2019-04-01", version = "1.0.0.0",
|
||||||
schema = "https://schema.management.azure.com/schemas/2019-04-01/deploymentTemplate.json#",
|
api_profile = NULL, ...)
|
||||||
content_version = "1.0.0.0", api_profile = NULL, ...)
|
|
||||||
|
|
||||||
build_template_parameters(...)
|
build_template_parameters(...)
|
||||||
|
|
||||||
|
@ -33,7 +32,7 @@ build_template_parameters(...)
|
||||||
|
|
||||||
\item{outputs}{The template outputs.}
|
\item{outputs}{The template outputs.}
|
||||||
|
|
||||||
\item{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.}
|
\item{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.}
|
||||||
}
|
}
|
||||||
\value{
|
\value{
|
||||||
The JSON text for the template definition and its parameters.
|
The JSON text for the template definition and its parameters.
|
||||||
|
|
Загрузка…
Ссылка в новой задаче