generated from pulumi/pulumi-tf-provider-boilerplate
-
Notifications
You must be signed in to change notification settings - Fork 0
/
config.go
62 lines (50 loc) · 2.08 KB
/
config.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
57
58
59
60
61
62
// Code generated by the Pulumi Terraform Bridge (tfgen) Tool DO NOT EDIT.
// *** WARNING: Do not edit by hand unless you're certain you know what you are doing! ***
package config
import (
"github.com/pierskarsenbarg/pulumi-nutanix/sdk/go/nutanix/internal"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi/config"
)
var _ = internal.GetEnvOrDefault
// URL for Nutanix Prism (e.g IP or FQDN for cluster VIP note, this is never the data services VIP, and should not be an
// individual CVM address, as this would cause calls to fail during cluster lifecycle management operations, such as AOS
// upgrades.
func GetEndpoint(ctx *pulumi.Context) string {
return config.Get(ctx, "nutanix:endpoint")
}
// endpoint for foundation VM (eg. Foundation VM IP)
func GetFoundationEndpoint(ctx *pulumi.Context) string {
return config.Get(ctx, "nutanix:foundationEndpoint")
}
// Port for foundation VM
func GetFoundationPort(ctx *pulumi.Context) string {
return config.Get(ctx, "nutanix:foundationPort")
}
// Explicitly allow the provider to perform "insecure" SSL requests. If omitted,default value is `false`
func GetInsecure(ctx *pulumi.Context) bool {
return config.GetBool(ctx, "nutanix:insecure")
}
// Password for provided user name.
func GetPassword(ctx *pulumi.Context) string {
return config.Get(ctx, "nutanix:password")
}
// Port for Nutanix Prism.
func GetPort(ctx *pulumi.Context) string {
return config.Get(ctx, "nutanix:port")
}
func GetProxyUrl(ctx *pulumi.Context) string {
return config.Get(ctx, "nutanix:proxyUrl")
}
// Use session authentification instead of basic auth for each request
func GetSessionAuth(ctx *pulumi.Context) bool {
return config.GetBool(ctx, "nutanix:sessionAuth")
}
// User name for Nutanix Prism. Could be local cluster auth (e.g. 'admin') or directory auth.
func GetUsername(ctx *pulumi.Context) string {
return config.Get(ctx, "nutanix:username")
}
// Set if you know that the creation o update of a resource may take long time (minutes)
func GetWaitTimeout(ctx *pulumi.Context) int {
return config.GetInt(ctx, "nutanix:waitTimeout")
}