Documentation ¶
Index ¶
- Constants
- func CreateHypervisor(ctx context.Context, client *citrixdaasclient.CitrixDaasClient, ...) (*citrixorchestration.HypervisorDetailResponseModel, error)
- func NewAwsHypervisorResource() resource.Resource
- func NewAzureHypervisorResource() resource.Resource
- func NewGcpHypervisorResource() resource.Resource
- func NewNutanixHypervisorResource() resource.Resource
- func NewVsphereHypervisorResource() resource.Resource
- func NewXenserverHypervisorResource() resource.Resource
- func UpdateHypervisor(ctx context.Context, client *citrixdaasclient.CitrixDaasClient, ...) (*citrixorchestration.HypervisorDetailResponseModel, error)
- type AwsHypervisorResourceModel
- type AzureHypervisorResourceModel
- type GcpHypervisorResourceModel
- type HYPERVISOR_FAULT_STATE
- type NutanixHypervisorResourceModel
- type VsphereHypervisorResourceModel
- type XenserverHypervisorResourceModel
Constants ¶
const (
EnableAzureADDeviceManagement_CustomProperty = "AzureAdDeviceManagement"
)
Variables ¶
This section is empty.
Functions ¶
func CreateHypervisor ¶
func CreateHypervisor(ctx context.Context, client *citrixdaasclient.CitrixDaasClient, diagnostics *diag.Diagnostics, createHypervisorRequestBody citrixorchestration.CreateHypervisorRequestModel) (*citrixorchestration.HypervisorDetailResponseModel, error)
Create creates the resource and sets the initial Terraform state.
func NewAwsHypervisorResource ¶
NewHypervisorResource is a helper function to simplify the provider implementation.
func NewAzureHypervisorResource ¶
NewHypervisorResource is a helper function to simplify the provider implementation.
func NewGcpHypervisorResource ¶
NewHypervisorResource is a helper function to simplify the provider implementation.
func NewNutanixHypervisorResource ¶
NewHypervisorResource is a helper function to simplify the provider implementation.
func NewVsphereHypervisorResource ¶
NewHypervisorResource is a helper function to simplify the provider implementation.
func NewXenserverHypervisorResource ¶
NewHypervisorResource is a helper function to simplify the provider implementation.
func UpdateHypervisor ¶
func UpdateHypervisor(ctx context.Context, client *citrixdaasclient.CitrixDaasClient, diagnostics *diag.Diagnostics, hypervisor *citrixorchestration.HypervisorDetailResponseModel, editHypervisorRequestBody citrixorchestration.EditHypervisorConnectionRequestModel) (*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"` /** 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) RefreshPropertyValues ¶
func (r AwsHypervisorResourceModel) RefreshPropertyValues(hypervisor *citrixorchestration.HypervisorDetailResponseModel) AwsHypervisorResourceModel
type AzureHypervisorResourceModel ¶
type AzureHypervisorResourceModel struct { /**** Connection Details ****/ Id types.String `tfsdk:"id"` Name types.String `tfsdk:"name"` Zone types.String `tfsdk:"zone"` /** 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"` }
HypervisorResourceModel maps the resource schema data.
func (AzureHypervisorResourceModel) RefreshPropertyValues ¶
func (r AzureHypervisorResourceModel) RefreshPropertyValues(hypervisor *citrixorchestration.HypervisorDetailResponseModel) AzureHypervisorResourceModel
type GcpHypervisorResourceModel ¶
type GcpHypervisorResourceModel struct { /**** Connection Details ****/ Id types.String `tfsdk:"id"` Name types.String `tfsdk:"name"` Zone types.String `tfsdk:"zone"` /** GCP Connection **/ ServiceAccountId types.String `tfsdk:"service_account_id"` ServiceAccountCredentials types.String `tfsdk:"service_account_credentials"` }
HypervisorResourceModel maps the resource schema data.
func (GcpHypervisorResourceModel) RefreshPropertyValues ¶
func (r GcpHypervisorResourceModel) RefreshPropertyValues(hypervisor *citrixorchestration.HypervisorDetailResponseModel) GcpHypervisorResourceModel
type HYPERVISOR_FAULT_STATE ¶
type HYPERVISOR_FAULT_STATE string
const (
Initializing HYPERVISOR_FAULT_STATE = "Initializing"
)
type NutanixHypervisorResourceModel ¶
type NutanixHypervisorResourceModel struct { /**** Connection Details ****/ Id types.String `tfsdk:"id"` Name types.String `tfsdk:"name"` Zone types.String `tfsdk:"zone"` /** Nutanix Connection **/ Username types.String `tfsdk:"username"` Password types.String `tfsdk:"password"` PasswordFormat types.String `tfsdk:"password_format"` Addresses []types.String `tfsdk:"addresses"` 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) RefreshPropertyValues ¶
func (r NutanixHypervisorResourceModel) RefreshPropertyValues(hypervisor *citrixorchestration.HypervisorDetailResponseModel) NutanixHypervisorResourceModel
type VsphereHypervisorResourceModel ¶
type VsphereHypervisorResourceModel struct { /**** Connection Details ****/ Id types.String `tfsdk:"id"` Name types.String `tfsdk:"name"` Zone types.String `tfsdk:"zone"` /** Vsphere Connection **/ Username types.String `tfsdk:"username"` Password types.String `tfsdk:"password"` PasswordFormat types.String `tfsdk:"password_format"` Addresses []types.String `tfsdk:"addresses"` SslThumbprints []types.String `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 (VsphereHypervisorResourceModel) RefreshPropertyValues ¶
func (r VsphereHypervisorResourceModel) RefreshPropertyValues(hypervisor *citrixorchestration.HypervisorDetailResponseModel) VsphereHypervisorResourceModel
type XenserverHypervisorResourceModel ¶
type XenserverHypervisorResourceModel struct { /**** Connection Details ****/ Id types.String `tfsdk:"id"` Name types.String `tfsdk:"name"` Zone types.String `tfsdk:"zone"` /** Xenserver Connection **/ Username types.String `tfsdk:"username"` Password types.String `tfsdk:"password"` PasswordFormat types.String `tfsdk:"password_format"` Addresses []types.String `tfsdk:"addresses"` SslThumbprints []types.String `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 (XenserverHypervisorResourceModel) RefreshPropertyValues ¶
func (r XenserverHypervisorResourceModel) RefreshPropertyValues(hypervisor *citrixorchestration.HypervisorDetailResponseModel) XenserverHypervisorResourceModel
Source Files ¶
- aws_hypervisor_resource.go
- aws_hypervisor_resource_model.go
- azure_hypervisor_resource.go
- azure_hypervisor_resource_model.go
- gcp_hypervisor_resource.go
- gcp_hypervisor_resource_model.go
- hypervisor_common.go
- nutanix_hypervisor_resource.go
- nutanix_hypervisor_resource_model.go
- vsphere_hypervisor_resource.go
- vsphere_hypervisor_resource_model.go
- xenserver_hypervisor_resource.go
- xenserver_hypervisor_resource_model.go