generated from hashicorp/terraform-provider-scaffolding
-
Notifications
You must be signed in to change notification settings - Fork 40
/
infra_azure_vmss.go
56 lines (53 loc) · 1.56 KB
/
infra_azure_vmss.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
package environment
import (
"fmt"
"strings"
"github.com/harness/harness-go-sdk/harness/cd/cac"
"github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema"
)
func infraDetailsAzureVmss() *schema.Resource {
return &schema.Resource{
Schema: map[string]*schema.Schema{
"base_name": {
Description: "Base name.",
Type: schema.TypeString,
Required: true,
},
"cloud_provider_name": {
Description: "The name of the cloud provider to connect with.",
Type: schema.TypeString,
Required: true,
},
"host_connection_attrs_name": {
Description: "The name of the host connection attributes to use.",
Type: schema.TypeString,
Optional: true,
},
"resource_group_name": {
Description: "The name of the resource group.",
Type: schema.TypeString,
Required: true,
},
"subscription_id": {
Description: "The unique id of the azure subscription.",
Type: schema.TypeString,
Required: true,
},
"username": {
Description: "The username to connect with.",
Type: schema.TypeString,
Required: true,
},
"auth_type": {
Description: fmt.Sprintf("The type of authentication to use. Valid options are %s.", strings.Join(cac.VmssAuthTypesSlice, ", ")),
Type: schema.TypeString,
Required: true,
},
"deployment_type": {
Description: fmt.Sprintf("The type of deployment. Valid options are %s", strings.Join(cac.VmssDeploymentTypesSlice, ", ")),
Type: schema.TypeString,
Required: true,
},
},
}
}