Skip to content

Commit

Permalink
Update to terraform-provider-azurerm v1.13.0 (#93)
Browse files Browse the repository at this point in the history
  • Loading branch information
lukehoban authored Aug 21, 2018
1 parent f784fc6 commit 9654f5d
Show file tree
Hide file tree
Showing 51 changed files with 965 additions and 141 deletions.
8 changes: 4 additions & 4 deletions Gopkg.lock

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

2 changes: 1 addition & 1 deletion Gopkg.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

[[constraint]]
name = "github.com/terraform-providers/terraform-provider-azurerm"
version = "=1.12.0"
version = "=1.13.0"

# The current version of terraform-provider-azure (v1.12.0) requires the following
# specific version of azure-sdk-for-go.
Expand Down
25 changes: 14 additions & 11 deletions resources.go
Original file line number Diff line number Diff line change
Expand Up @@ -301,7 +301,8 @@ func Provider() tfbridge.ProviderInfo {
"azurerm_management_lock": {Tok: azureResource(azureMgmtResource, "ManangementLock")},

// Monitoring resources
"azurerm_metric_alertrule": {Tok: azureResource(azureMonitoring, "AlertRule")},
"azurerm_metric_alertrule": {Tok: azureResource(azureMonitoring, "AlertRule")},
"azurerm_monitor_action_group": {Tok: azureResource(azureMonitoring, "ActionGroup")},

// MySQL
"azurerm_mysql_configuration": {Tok: azureResource(azureMySQL, "Configuration")},
Expand Down Expand Up @@ -408,23 +409,25 @@ func Provider() tfbridge.ProviderInfo {
"sku": {Name: "sku", MaxItemsOne: boolRef(true)},
},
},
"azurerm_subscriptions": {Tok: azureDataSource(azureCore, "getSubscriptions")},
"azurerm_cdn_profile": {Tok: azureDataSource(azureCDN, "getProfile")},
"azurerm_client_config": {Tok: azureDataSource(azureCore, "getClientConfig")},
"azurerm_container_registry": {Tok: azureDataSource(azureContainerService, "getRegistry")},
"azurerm_cosmosdb_account": {Tok: azureDataSource(azureCosmosDB, "getAccount")},
"azurerm_data_lake_store": {Tok: azureDataSource(azureDatalake, "getStore")},
"azurerm_eventhub_namespace": {Tok: azureDataSource(azureMessaging, "getEventhubNamespace")},
"azurerm_image": {Tok: azureDataSource(azureCompute, "getImage")},
"azurerm_logic_app_workflow": {Tok: azureDataSource(azureLogicApps, "getWorkflow")},
"azurerm_dns_zone": {Tok: azureDataSource(azureDNS, "getZone")},
"azurerm_subscriptions": {Tok: azureDataSource(azureCore, "getSubscriptions")},
"azurerm_cdn_profile": {Tok: azureDataSource(azureCDN, "getProfile")},
"azurerm_client_config": {Tok: azureDataSource(azureCore, "getClientConfig")},
"azurerm_container_registry": {Tok: azureDataSource(azureContainerService, "getRegistry")},
"azurerm_cosmosdb_account": {Tok: azureDataSource(azureCosmosDB, "getAccount")},
"azurerm_data_lake_store": {Tok: azureDataSource(azureDatalake, "getStore")},
"azurerm_eventhub_namespace": {Tok: azureDataSource(azureMessaging, "getEventhubNamespace")},
"azurerm_image": {Tok: azureDataSource(azureCompute, "getImage")},
"azurerm_log_analytics_workspace": {Tok: azureDataSource(azureOperationalInsights, "getAnalyticsWorkspace")},
"azurerm_logic_app_workflow": {Tok: azureDataSource(azureLogicApps, "getWorkflow")},
"azurerm_dns_zone": {Tok: azureDataSource(azureDNS, "getZone")},
"azurerm_key_vault": {
Tok: azureDataSource(azureKeyVault, "getKeyVault"),
Fields: map[string]*tfbridge.SchemaInfo{
// Ensure "sku" is a singleton
"sku": {Name: "sku", MaxItemsOne: boolRef(true)},
},
},

"azurerm_key_vault_access_policy": {Tok: azureDataSource(azureKeyVault, "getAccessPolicy")},
"azurerm_key_vault_secret": {Tok: azureDataSource(azureKeyVault, "getSecret")},
"azurerm_kubernetes_cluster": {Tok: azureDataSource(azureContainerService, "getKubernetesCluster")},
Expand Down
4 changes: 2 additions & 2 deletions sdk/go/VERSION
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
Generated by pulumi-tfgen-azure from:
Repo: github.com/terraform-providers/terraform-provider-azurerm
Tag: v1.12.0
Commit: bdc8b4ad9e20c1ce7553d1ca03a3441b619c8fd8
Tag: v1.13.0
Commit: e3dd02da41f1cf1cab57ac9052a8c2641c5faef6
42 changes: 39 additions & 3 deletions sdk/go/azure/automation/schedule.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,21 +30,27 @@ func NewSchedule(ctx *pulumi.Context,
inputs["expiryTime"] = nil
inputs["frequency"] = nil
inputs["interval"] = nil
inputs["monthDays"] = nil
inputs["monthlyOccurrences"] = nil
inputs["name"] = nil
inputs["resourceGroupName"] = nil
inputs["startTime"] = nil
inputs["timezone"] = nil
inputs["weekDays"] = nil
} else {
inputs["accountName"] = args.AccountName
inputs["automationAccountName"] = args.AutomationAccountName
inputs["description"] = args.Description
inputs["expiryTime"] = args.ExpiryTime
inputs["frequency"] = args.Frequency
inputs["interval"] = args.Interval
inputs["monthDays"] = args.MonthDays
inputs["monthlyOccurrences"] = args.MonthlyOccurrences
inputs["name"] = args.Name
inputs["resourceGroupName"] = args.ResourceGroupName
inputs["startTime"] = args.StartTime
inputs["timezone"] = args.Timezone
inputs["weekDays"] = args.WeekDays
}
s, err := ctx.RegisterResource("azure:automation/schedule:Schedule", name, true, inputs, opts...)
if err != nil {
Expand All @@ -65,10 +71,13 @@ func GetSchedule(ctx *pulumi.Context,
inputs["expiryTime"] = state.ExpiryTime
inputs["frequency"] = state.Frequency
inputs["interval"] = state.Interval
inputs["monthDays"] = state.MonthDays
inputs["monthlyOccurrences"] = state.MonthlyOccurrences
inputs["name"] = state.Name
inputs["resourceGroupName"] = state.ResourceGroupName
inputs["startTime"] = state.StartTime
inputs["timezone"] = state.Timezone
inputs["weekDays"] = state.WeekDays
}
s, err := ctx.ReadResource("azure:automation/schedule:Schedule", name, id, inputs, opts...)
if err != nil {
Expand Down Expand Up @@ -111,11 +120,21 @@ func (r *Schedule) Frequency() *pulumi.StringOutput {
return (*pulumi.StringOutput)(r.s.State["frequency"])
}

// The number of `frequency`s between runs. Only valid for `Day`, `Hour`, `Week`, or `Month` and defaults to `1`.
// The number of `frequency`s between runs. Only valid when frequency is `Day`, `Hour`, `Week`, or `Month` and defaults to `1`.
func (r *Schedule) Interval() *pulumi.IntOutput {
return (*pulumi.IntOutput)(r.s.State["interval"])
}

// List of days of the month that the job should execute on. Must be between `1` and `31`. `-1` for last day of the month. Only valid when frequency is `Month`.
func (r *Schedule) MonthDays() *pulumi.ArrayOutput {
return (*pulumi.ArrayOutput)(r.s.State["monthDays"])
}

// List of occurrences of days within a month. Only valid when frequency is `Month`. The `monthly_occurrence` block supports fields documented below.
func (r *Schedule) MonthlyOccurrences() *pulumi.ArrayOutput {
return (*pulumi.ArrayOutput)(r.s.State["monthlyOccurrences"])
}

// Specifies the name of the Schedule. Changing this forces a new resource to be created.
func (r *Schedule) Name() *pulumi.StringOutput {
return (*pulumi.StringOutput)(r.s.State["name"])
Expand All @@ -136,6 +155,11 @@ func (r *Schedule) Timezone() *pulumi.StringOutput {
return (*pulumi.StringOutput)(r.s.State["timezone"])
}

// List of days of the week that the job should execute on. Only valid when frequency is `Week`.
func (r *Schedule) WeekDays() *pulumi.ArrayOutput {
return (*pulumi.ArrayOutput)(r.s.State["weekDays"])
}

// Input properties used for looking up and filtering Schedule resources.
type ScheduleState struct {
AccountName interface{}
Expand All @@ -147,8 +171,12 @@ type ScheduleState struct {
ExpiryTime interface{}
// The frequency of the schedule. - can be either `OneTime`, `Day`, `Hour`, `Week`, or `Month`.
Frequency interface{}
// The number of `frequency`s between runs. Only valid for `Day`, `Hour`, `Week`, or `Month` and defaults to `1`.
// The number of `frequency`s between runs. Only valid when frequency is `Day`, `Hour`, `Week`, or `Month` and defaults to `1`.
Interval interface{}
// List of days of the month that the job should execute on. Must be between `1` and `31`. `-1` for last day of the month. Only valid when frequency is `Month`.
MonthDays interface{}
// List of occurrences of days within a month. Only valid when frequency is `Month`. The `monthly_occurrence` block supports fields documented below.
MonthlyOccurrences interface{}
// Specifies the name of the Schedule. Changing this forces a new resource to be created.
Name interface{}
// The name of the resource group in which the Schedule is created. Changing this forces a new resource to be created.
Expand All @@ -157,6 +185,8 @@ type ScheduleState struct {
StartTime interface{}
// The timezone of the start time. Defaults to `UTC`. For possible values see: https://msdn.microsoft.com/en-us/library/ms912391(v=winembedded.11).aspx
Timezone interface{}
// List of days of the week that the job should execute on. Only valid when frequency is `Week`.
WeekDays interface{}
}

// The set of arguments for constructing a Schedule resource.
Expand All @@ -170,8 +200,12 @@ type ScheduleArgs struct {
ExpiryTime interface{}
// The frequency of the schedule. - can be either `OneTime`, `Day`, `Hour`, `Week`, or `Month`.
Frequency interface{}
// The number of `frequency`s between runs. Only valid for `Day`, `Hour`, `Week`, or `Month` and defaults to `1`.
// The number of `frequency`s between runs. Only valid when frequency is `Day`, `Hour`, `Week`, or `Month` and defaults to `1`.
Interval interface{}
// List of days of the month that the job should execute on. Must be between `1` and `31`. `-1` for last day of the month. Only valid when frequency is `Month`.
MonthDays interface{}
// List of occurrences of days within a month. Only valid when frequency is `Month`. The `monthly_occurrence` block supports fields documented below.
MonthlyOccurrences interface{}
// Specifies the name of the Schedule. Changing this forces a new resource to be created.
Name interface{}
// The name of the resource group in which the Schedule is created. Changing this forces a new resource to be created.
Expand All @@ -180,4 +214,6 @@ type ScheduleArgs struct {
StartTime interface{}
// The timezone of the start time. Defaults to `UTC`. For possible values see: https://msdn.microsoft.com/en-us/library/ms912391(v=winembedded.11).aspx
Timezone interface{}
// List of days of the week that the job should execute on. Only valid when frequency is `Week`.
WeekDays interface{}
}
3 changes: 3 additions & 0 deletions sdk/go/azure/containerservice/getKubernetesCluster.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ func LookupKubernetesCluster(ctx *pulumi.Context, args *GetKubernetesClusterArgs
return nil, err
}
return &GetKubernetesClusterResult{
AddonProfiles: outputs["addonProfiles"],
AgentPoolProfiles: outputs["agentPoolProfiles"],
DnsPrefix: outputs["dnsPrefix"],
Fqdn: outputs["fqdn"],
Expand All @@ -49,6 +50,8 @@ type GetKubernetesClusterArgs struct {

// A collection of values returned by getKubernetesCluster.
type GetKubernetesClusterResult struct {
// A `addon_profile` block as documented below.
AddonProfiles interface{}
// One or more `agent_profile_pool` blocks as documented below.
AgentPoolProfiles interface{}
// The DNS Prefix of the managed Kubernetes cluster.
Expand Down
16 changes: 14 additions & 2 deletions sdk/go/azure/containerservice/kubernetesCluster.go
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ func NewKubernetesCluster(ctx *pulumi.Context,
}
inputs := make(map[string]interface{})
if args == nil {
inputs["addonProfile"] = nil
inputs["agentPoolProfile"] = nil
inputs["dnsPrefix"] = nil
inputs["kubernetesVersion"] = nil
Expand All @@ -50,6 +51,7 @@ func NewKubernetesCluster(ctx *pulumi.Context,
inputs["servicePrincipal"] = nil
inputs["tags"] = nil
} else {
inputs["addonProfile"] = args.AddonProfile
inputs["agentPoolProfile"] = args.AgentPoolProfile
inputs["dnsPrefix"] = args.DnsPrefix
inputs["kubernetesVersion"] = args.KubernetesVersion
Expand Down Expand Up @@ -78,6 +80,7 @@ func GetKubernetesCluster(ctx *pulumi.Context,
name string, id pulumi.ID, state *KubernetesClusterState, opts ...pulumi.ResourceOpt) (*KubernetesCluster, error) {
inputs := make(map[string]interface{})
if state != nil {
inputs["addonProfile"] = state.AddonProfile
inputs["agentPoolProfile"] = state.AgentPoolProfile
inputs["dnsPrefix"] = state.DnsPrefix
inputs["fqdn"] = state.Fqdn
Expand Down Expand Up @@ -110,6 +113,11 @@ func (r *KubernetesCluster) ID() *pulumi.IDOutput {
return r.s.ID
}

// A `addon_profile` block.
func (r *KubernetesCluster) AddonProfile() *pulumi.Output {
return r.s.State["addonProfile"]
}

// One or more Agent Pool Profile's block as documented below.
func (r *KubernetesCluster) AgentPoolProfile() *pulumi.Output {
return r.s.State["agentPoolProfile"]
Expand All @@ -125,7 +133,7 @@ func (r *KubernetesCluster) Fqdn() *pulumi.StringOutput {
return (*pulumi.StringOutput)(r.s.State["fqdn"])
}

// Kubernetes configuration, sub-attributes defined below:
// A `kube_config` block as defined below.
func (r *KubernetesCluster) KubeConfig() *pulumi.Output {
return r.s.State["kubeConfig"]
}
Expand Down Expand Up @@ -184,13 +192,15 @@ func (r *KubernetesCluster) Tags() *pulumi.MapOutput {

// Input properties used for looking up and filtering KubernetesCluster resources.
type KubernetesClusterState struct {
// A `addon_profile` block.
AddonProfile interface{}
// One or more Agent Pool Profile's block as documented below.
AgentPoolProfile interface{}
// DNS prefix specified when creating the managed cluster.
DnsPrefix interface{}
// The FQDN of the Azure Kubernetes Managed Cluster.
Fqdn interface{}
// Kubernetes configuration, sub-attributes defined below:
// A `kube_config` block as defined below.
KubeConfig interface{}
// Raw Kubernetes config to be used by
// [kubectl](https://kubernetes.io/docs/reference/kubectl/overview/) and
Expand Down Expand Up @@ -218,6 +228,8 @@ type KubernetesClusterState struct {

// The set of arguments for constructing a KubernetesCluster resource.
type KubernetesClusterArgs struct {
// A `addon_profile` block.
AddonProfile interface{}
// One or more Agent Pool Profile's block as documented below.
AgentPoolProfile interface{}
// DNS prefix specified when creating the managed cluster.
Expand Down
10 changes: 5 additions & 5 deletions sdk/go/azure/iot/ioTHub.go
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ func (r *IoTHub) Location() *pulumi.StringOutput {
return (*pulumi.StringOutput)(r.s.State["location"])
}

// The name of the sku. Possible values are `F1`, `S1`, `S2`, and `S3`.
// The name of the sku. Possible values are `B1`, `B2`, `B3`, `F1`, `S1`, `S2`, and `S3`.
func (r *IoTHub) Name() *pulumi.StringOutput {
return (*pulumi.StringOutput)(r.s.State["name"])
}
Expand All @@ -101,7 +101,7 @@ func (r *IoTHub) ResourceGroupName() *pulumi.StringOutput {
return (*pulumi.StringOutput)(r.s.State["resourceGroupName"])
}

// A list of `shared_access_policy` blocks as defined below.
// One or more `shared_access_policy` blocks as defined below.
func (r *IoTHub) SharedAccessPolicies() *pulumi.ArrayOutput {
return (*pulumi.ArrayOutput)(r.s.State["sharedAccessPolicies"])
}
Expand All @@ -126,11 +126,11 @@ type IoTHubState struct {
Hostname interface{}
// Specifies the supported Azure location where the resource has to be createc. Changing this forces a new resource to be created.
Location interface{}
// The name of the sku. Possible values are `F1`, `S1`, `S2`, and `S3`.
// The name of the sku. Possible values are `B1`, `B2`, `B3`, `F1`, `S1`, `S2`, and `S3`.
Name interface{}
// The name of the resource group under which the IotHub resource has to be created. Changing this forces a new resource to be created.
ResourceGroupName interface{}
// A list of `shared_access_policy` blocks as defined below.
// One or more `shared_access_policy` blocks as defined below.
SharedAccessPolicies interface{}
// A `sku` block as defined below.
Sku interface{}
Expand All @@ -143,7 +143,7 @@ type IoTHubState struct {
type IoTHubArgs struct {
// Specifies the supported Azure location where the resource has to be createc. Changing this forces a new resource to be created.
Location interface{}
// The name of the sku. Possible values are `F1`, `S1`, `S2`, and `S3`.
// The name of the sku. Possible values are `B1`, `B2`, `B3`, `F1`, `S1`, `S2`, and `S3`.
Name interface{}
// The name of the resource group under which the IotHub resource has to be created. Changing this forces a new resource to be created.
ResourceGroupName interface{}
Expand Down
10 changes: 5 additions & 5 deletions sdk/go/azure/lb/backendAddressPool.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@ import (
"github.com/pulumi/pulumi/sdk/go/pulumi"
)

// Create a LoadBalancer Backend Address Pool.
// Create a Load Balancer Backend Address Pool.
//
// ~> **NOTE:** When using this resource, the LoadBalancer needs to have a FrontEnd IP Configuration Attached
// ~> **NOTE:** When using this resource, the Load Balancer needs to have a FrontEnd IP Configuration Attached
type BackendAddressPool struct {
s *pulumi.ResourceState
}
Expand Down Expand Up @@ -83,7 +83,7 @@ func (r *BackendAddressPool) LoadBalancingRules() *pulumi.ArrayOutput {
return (*pulumi.ArrayOutput)(r.s.State["loadBalancingRules"])
}

// The ID of the LoadBalancer in which to create the Backend Address Pool.
// The ID of the Load Balancer in which to create the Backend Address Pool.
func (r *BackendAddressPool) LoadbalancerId() *pulumi.StringOutput {
return (*pulumi.StringOutput)(r.s.State["loadbalancerId"])
}
Expand All @@ -106,7 +106,7 @@ func (r *BackendAddressPool) ResourceGroupName() *pulumi.StringOutput {
type BackendAddressPoolState struct {
BackendIpConfigurations interface{}
LoadBalancingRules interface{}
// The ID of the LoadBalancer in which to create the Backend Address Pool.
// The ID of the Load Balancer in which to create the Backend Address Pool.
LoadbalancerId interface{}
Location interface{}
// Specifies the name of the Backend Address Pool.
Expand All @@ -117,7 +117,7 @@ type BackendAddressPoolState struct {

// The set of arguments for constructing a BackendAddressPool resource.
type BackendAddressPoolArgs struct {
// The ID of the LoadBalancer in which to create the Backend Address Pool.
// The ID of the Load Balancer in which to create the Backend Address Pool.
LoadbalancerId interface{}
Location interface{}
// Specifies the name of the Backend Address Pool.
Expand Down
2 changes: 1 addition & 1 deletion sdk/go/azure/lb/loadBalancer.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import (
"github.com/pulumi/pulumi/sdk/go/pulumi"
)

// Create a LoadBalancer Resource.
// Create a Load Balancer Resource.
type LoadBalancer struct {
s *pulumi.ResourceState
}
Expand Down
Loading

0 comments on commit 9654f5d

Please sign in to comment.