hypervisor

package
v1.0.18 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 13, 2025 License: Apache-2.0 Imports: 31 Imported by: 0

Documentation

Index

Constants

View Source
const (
	EnableAzureADDeviceManagement_CustomProperty          = "AzureAdDeviceManagement"
	ProxyHypervisorTrafficThroughConnector_CustomProperty = "ProxyHypervisorTrafficThroughConnector"
	AuthenticationMode_CustomProperty                     = "AuthenticationMode"
)
View Source
const (
	OpenShiftUsername = "__SERVICE_ACCOUNT__"
)

Variables

This section is empty.

Functions

func CreateHypervisor

Create creates the resource and sets the initial Terraform state.

func NewAwsHypervisorResource

func NewAwsHypervisorResource() resource.Resource

NewHypervisorResource is a helper function to simplify the provider implementation.

func NewAzureHypervisorResource

func NewAzureHypervisorResource() resource.Resource

NewHypervisorResource is a helper function to simplify the provider implementation.

func NewGcpHypervisorResource

func NewGcpHypervisorResource() resource.Resource

NewHypervisorResource is a helper function to simplify the provider implementation.

func NewHypervisorDataSource added in v0.6.2

func NewHypervisorDataSource() datasource.DataSource

func NewNutanixHypervisorResource

func NewNutanixHypervisorResource() resource.Resource

NewHypervisorResource is a helper function to simplify the provider implementation.

func NewOpenShiftHypervisorResource added in v1.0.18

func NewOpenShiftHypervisorResource() resource.Resource

NewHypervisorResource is a helper function to simplify the provider implementation.

func NewSCVMMHypervisorResource added in v0.6.2

func NewSCVMMHypervisorResource() resource.Resource

NewHypervisorResource is a helper function to simplify the provider implementation.

func NewVsphereHypervisorResource

func NewVsphereHypervisorResource() resource.Resource

NewHypervisorResource is a helper function to simplify the provider implementation.

func NewXenserverHypervisorResource

func NewXenserverHypervisorResource() resource.Resource

NewHypervisorResource is a helper function to simplify the provider implementation.

func UpdateHypervisor

func UpdateHypervisor(ctx context.Context, client *citrixdaasclient.CitrixDaasClient, diagnostics *diag.Diagnostics, editHypervisorRequestBody citrixorchestration.EditHypervisorConnectionRequestModel, hypervisorId, hypervisorName string) (*citrixorchestration.HypervisorDetailResponseModel, error)

Update updates the resource and sets the updated Terraform state on success.

Types

type AwsHypervisorResourceModel

type AwsHypervisorResourceModel struct {
	/**** Connection Details ****/
	Id       types.String `tfsdk:"id"`
	Name     types.String `tfsdk:"name"`
	Zone     types.String `tfsdk:"zone"`
	Scopes   types.Set    `tfsdk:"scopes"`   // Set[string]
	Metadata types.List   `tfsdk:"metadata"` // List[NameValueStringPairModel]
	Tenants  types.Set    `tfsdk:"tenants"`  // Set[string]
	/** AWS EC2 Connection **/
	Region    types.String `tfsdk:"region"`
	ApiKey    types.String `tfsdk:"api_key"`
	SecretKey types.String `tfsdk:"secret_key"`
}

HypervisorResourceModel maps the resource schema data.

func (AwsHypervisorResourceModel) GetAttributes added in v0.6.2

func (AwsHypervisorResourceModel) GetAttributes() map[string]schema.Attribute

func (AwsHypervisorResourceModel) GetSchema added in v0.6.2

func (AwsHypervisorResourceModel) RefreshPropertyValues

type AzureHypervisorResourceModel

type AzureHypervisorResourceModel struct {
	/**** Connection Details ****/
	Id       types.String `tfsdk:"id"`
	Name     types.String `tfsdk:"name"`
	Zone     types.String `tfsdk:"zone"`
	Scopes   types.Set    `tfsdk:"scopes"`   // Set[string]
	Metadata types.List   `tfsdk:"metadata"` // List[NameValueStringPairModel]
	Tenants  types.Set    `tfsdk:"tenants"`  // Set[string]

	/** Azure Connection **/
	ApplicationId                          types.String `tfsdk:"application_id"`
	ApplicationSecret                      types.String `tfsdk:"application_secret"`
	ApplicationSecretExpirationDate        types.String `tfsdk:"application_secret_expiration_date"`
	SubscriptionId                         types.String `tfsdk:"subscription_id"`
	ActiveDirectoryId                      types.String `tfsdk:"active_directory_id"`
	EnableAzureADDeviceManagement          types.Bool   `tfsdk:"enable_azure_ad_device_management"`
	AuthenticationMode                     types.String `tfsdk:"authentication_mode"`
	ProxyHypervisorTrafficThroughConnector types.Bool   `tfsdk:"proxy_hypervisor_traffic_through_connector"`
}

HypervisorResourceModel maps the resource schema data.

func (AzureHypervisorResourceModel) GetAttributes added in v0.6.2

func (AzureHypervisorResourceModel) GetSchema added in v0.6.2

func (AzureHypervisorResourceModel) RefreshPropertyValues

type GcpHypervisorResourceModel

type GcpHypervisorResourceModel struct {
	/**** Connection Details ****/
	Id       types.String `tfsdk:"id"`
	Name     types.String `tfsdk:"name"`
	Zone     types.String `tfsdk:"zone"`
	Scopes   types.Set    `tfsdk:"scopes"`   // Set[string]
	Metadata types.List   `tfsdk:"metadata"` // List[NameValueStringPairModel]
	Tenants  types.Set    `tfsdk:"tenants"`  // Set[string]
	/** GCP Connection **/
	ServiceAccountId          types.String `tfsdk:"service_account_id"`
	ServiceAccountCredentials types.String `tfsdk:"service_account_credentials"`
}

HypervisorResourceModel maps the resource schema data.

func (GcpHypervisorResourceModel) GetAttributes added in v0.6.2

func (GcpHypervisorResourceModel) GetAttributes() map[string]schema.Attribute

func (GcpHypervisorResourceModel) GetSchema added in v0.6.2

func (GcpHypervisorResourceModel) RefreshPropertyValues

type HYPERVISOR_FAULT_STATE

type HYPERVISOR_FAULT_STATE string
const (
	Initializing HYPERVISOR_FAULT_STATE = "Initializing"
)

type HypervisorDataSource added in v0.6.2

type HypervisorDataSource struct {
	// contains filtered or unexported fields
}

HypervisorDataSource defines the data source implementation.

func (*HypervisorDataSource) Configure added in v0.6.2

func (*HypervisorDataSource) Metadata added in v0.6.2

func (*HypervisorDataSource) Read added in v0.6.2

func (*HypervisorDataSource) Schema added in v0.6.2

type HypervisorDataSourceModel added in v0.6.2

type HypervisorDataSourceModel struct {
	Id      types.String `tfsdk:"id"`
	Name    types.String `tfsdk:"name"`
	Tenants types.Set    `tfsdk:"tenants"` // Set[string]
}

HypervisorDataSourceModel defines the Hypervisor data source implementation.

func (HypervisorDataSourceModel) GetSchema added in v0.6.2

func (HypervisorDataSourceModel) RefreshPropertyValues added in v0.6.2

type NutanixHypervisorResourceModel

type NutanixHypervisorResourceModel struct {
	/**** Connection Details ****/
	Id       types.String `tfsdk:"id"`
	Name     types.String `tfsdk:"name"`
	Zone     types.String `tfsdk:"zone"`
	Scopes   types.Set    `tfsdk:"scopes"`   // Set[string]
	Metadata types.List   `tfsdk:"metadata"` // List[NameValueStringPairModel]
	Tenants  types.Set    `tfsdk:"tenants"`  // Set[string]
	/** Nutanix Connection **/
	Username                            types.String `tfsdk:"username"`
	Password                            types.String `tfsdk:"password"`
	PasswordFormat                      types.String `tfsdk:"password_format"`
	Addresses                           types.List   `tfsdk:"addresses"` //List[string]
	MaxAbsoluteActiveActions            types.Int64  `tfsdk:"max_absolute_active_actions"`
	MaxAbsoluteNewActionsPerMinute      types.Int64  `tfsdk:"max_absolute_new_actions_per_minute"`
	MaxPowerActionsPercentageOfMachines types.Int64  `tfsdk:"max_power_actions_percentage_of_machines"`
}

HypervisorResourceModel maps the resource schema data.

func (NutanixHypervisorResourceModel) GetAttributes added in v0.6.2

func (NutanixHypervisorResourceModel) GetSchema added in v0.6.2

func (NutanixHypervisorResourceModel) RefreshPropertyValues

type OpenShiftHypervisorResourceModel added in v1.0.18

type OpenShiftHypervisorResourceModel struct {
	/**** Connection Details ****/
	Id       types.String `tfsdk:"id"`
	Name     types.String `tfsdk:"name"`
	Zone     types.String `tfsdk:"zone"`
	Scopes   types.Set    `tfsdk:"scopes"`   // Set[string]
	Metadata types.List   `tfsdk:"metadata"` // List[NameValueStringPairModel]
	Tenants  types.Set    `tfsdk:"tenants"`  // Set[string]

	/** OpenShift Connection **/
	Addresses                           types.List   `tfsdk:"addresses"`
	ServiceAccountToken                 types.String `tfsdk:"service_account_token"`
	SslThumbprints                      types.List   `tfsdk:"ssl_thumbprints"`
	MaxAbsoluteActiveActions            types.Int64  `tfsdk:"max_absolute_active_actions"`
	MaxAbsoluteNewActionsPerMinute      types.Int64  `tfsdk:"max_absolute_new_actions_per_minute"`
	MaxPowerActionsPercentageOfMachines types.Int64  `tfsdk:"max_power_actions_percentage_of_machines"`
}

HypervisorResourceModel maps the resource schema data.

func (OpenShiftHypervisorResourceModel) GetAttributes added in v1.0.18

func (OpenShiftHypervisorResourceModel) GetSchema added in v1.0.18

func (OpenShiftHypervisorResourceModel) RefreshPropertyValues added in v1.0.18

type SCVMMMHypervisorResourceModel added in v0.6.2

type SCVMMMHypervisorResourceModel struct {
	Id       types.String `tfsdk:"id"`
	Name     types.String `tfsdk:"name"`
	Zone     types.String `tfsdk:"zone"`
	Scopes   types.Set    `tfsdk:"scopes"`   // Set[string]
	Metadata types.List   `tfsdk:"metadata"` // List[NameValueStringPairModel]
	Tenants  types.Set    `tfsdk:"tenants"`  // Set[string]
	/** SCVMM Connection **/
	Username                            types.String `tfsdk:"username"`
	Password                            types.String `tfsdk:"password"`
	PasswordFormat                      types.String `tfsdk:"password_format"`
	Addresses                           types.List   `tfsdk:"addresses"` // List[string]
	MaxAbsoluteActiveActions            types.Int64  `tfsdk:"max_absolute_active_actions"`
	MaxAbsoluteNewActionsPerMinute      types.Int64  `tfsdk:"max_absolute_new_actions_per_minute"`
	MaxPowerActionsPercentageOfMachines types.Int64  `tfsdk:"max_power_actions_percentage_of_machines"`
}

func (SCVMMMHypervisorResourceModel) GetAttributes added in v0.6.2

func (SCVMMMHypervisorResourceModel) GetSchema added in v0.6.2

func (SCVMMMHypervisorResourceModel) RefreshPropertyValues added in v0.6.2

type VsphereHypervisorResourceModel

type VsphereHypervisorResourceModel struct {
	/**** Connection Details ****/
	Id       types.String `tfsdk:"id"`
	Name     types.String `tfsdk:"name"`
	Zone     types.String `tfsdk:"zone"`
	Scopes   types.Set    `tfsdk:"scopes"`   // Set[string]
	Metadata types.List   `tfsdk:"metadata"` // List[NameValueStringPairModel]
	Tenants  types.Set    `tfsdk:"tenants"`  // Set[string]
	/** vSphere Connection **/
	Username                            types.String `tfsdk:"username"`
	Password                            types.String `tfsdk:"password"`
	PasswordFormat                      types.String `tfsdk:"password_format"`
	Addresses                           types.List   `tfsdk:"addresses"`       // List[string]
	SslThumbprints                      types.List   `tfsdk:"ssl_thumbprints"` // List[string]
	MaxAbsoluteActiveActions            types.Int64  `tfsdk:"max_absolute_active_actions"`
	MaxAbsoluteNewActionsPerMinute      types.Int64  `tfsdk:"max_absolute_new_actions_per_minute"`
	MaxPowerActionsPercentageOfMachines types.Int64  `tfsdk:"max_power_actions_percentage_of_machines"`
}

HypervisorResourceModel maps the resource schema data.

func (VsphereHypervisorResourceModel) GetAttributes added in v0.6.2

func (VsphereHypervisorResourceModel) GetSchema added in v0.6.2

func (VsphereHypervisorResourceModel) RefreshPropertyValues

type XenserverHypervisorResourceModel

type XenserverHypervisorResourceModel struct {
	/**** Connection Details ****/
	Id       types.String `tfsdk:"id"`
	Name     types.String `tfsdk:"name"`
	Zone     types.String `tfsdk:"zone"`
	Scopes   types.Set    `tfsdk:"scopes"`   // Set[string]
	Metadata types.List   `tfsdk:"metadata"` // List[NameValueStringPairModel]
	Tenants  types.Set    `tfsdk:"tenants"`  // Set[string]
	/** Xenserver Connection **/
	Username                            types.String `tfsdk:"username"`
	Password                            types.String `tfsdk:"password"`
	PasswordFormat                      types.String `tfsdk:"password_format"`
	Addresses                           types.List   `tfsdk:"addresses"`       // List[string]
	SslThumbprints                      types.List   `tfsdk:"ssl_thumbprints"` //List[string]
	MaxAbsoluteActiveActions            types.Int64  `tfsdk:"max_absolute_active_actions"`
	MaxAbsoluteNewActionsPerMinute      types.Int64  `tfsdk:"max_absolute_new_actions_per_minute"`
	MaxPowerActionsPercentageOfMachines types.Int64  `tfsdk:"max_power_actions_percentage_of_machines"`
}

HypervisorResourceModel maps the resource schema data.

func (XenserverHypervisorResourceModel) GetAttributes added in v0.6.2

func (XenserverHypervisorResourceModel) GetSchema added in v0.6.2

func (XenserverHypervisorResourceModel) RefreshPropertyValues

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL