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 NewHypervisorDataSource() datasource.DataSource
- func NewNutanixHypervisorResource() resource.Resource
- func NewSCVMMHypervisorResource() 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 HypervisorDataSource
- func (d *HypervisorDataSource) Configure(ctx context.Context, req datasource.ConfigureRequest, ...)
- func (d *HypervisorDataSource) Metadata(ctx context.Context, req datasource.MetadataRequest, ...)
- func (d *HypervisorDataSource) Read(ctx context.Context, req datasource.ReadRequest, resp *datasource.ReadResponse)
- func (d *HypervisorDataSource) Schema(ctx context.Context, req datasource.SchemaRequest, ...)
- type HypervisorDataSourceModel
- type NutanixHypervisorResourceModel
- type SCVMMMHypervisorResourceModel
- type VsphereHypervisorResourceModel
- type XenserverHypervisorResourceModel
- func (XenserverHypervisorResourceModel) GetAttributes() map[string]schema.Attribute
- func (XenserverHypervisorResourceModel) GetSchema() schema.Schema
- func (r XenserverHypervisorResourceModel) RefreshPropertyValues(ctx context.Context, diagnostics *diag.Diagnostics, ...) 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 NewHypervisorDataSource ¶ added in v0.6.2
func NewHypervisorDataSource() datasource.DataSource
func NewNutanixHypervisorResource ¶
NewHypervisorResource is a helper function to simplify the provider implementation.
func NewSCVMMHypervisorResource ¶ added in v0.6.2
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, 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] /** 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) GetSchema() schema.Schema
func (AwsHypervisorResourceModel) RefreshPropertyValues ¶
func (r AwsHypervisorResourceModel) RefreshPropertyValues(ctx context.Context, diagnostics *diag.Diagnostics, 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"` Scopes types.Set `tfsdk:"scopes"` // 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"` }
HypervisorResourceModel maps the resource schema data.
func (AzureHypervisorResourceModel) GetAttributes ¶ added in v0.6.2
func (AzureHypervisorResourceModel) GetAttributes() map[string]schema.Attribute
func (AzureHypervisorResourceModel) GetSchema ¶ added in v0.6.2
func (AzureHypervisorResourceModel) GetSchema() schema.Schema
func (AzureHypervisorResourceModel) RefreshPropertyValues ¶
func (r AzureHypervisorResourceModel) RefreshPropertyValues(ctx context.Context, diagnostics *diag.Diagnostics, 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"` Scopes types.Set `tfsdk:"scopes"` // 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) GetSchema() schema.Schema
func (GcpHypervisorResourceModel) RefreshPropertyValues ¶
func (r GcpHypervisorResourceModel) RefreshPropertyValues(ctx context.Context, diagnostics *diag.Diagnostics, hypervisor *citrixorchestration.HypervisorDetailResponseModel) GcpHypervisorResourceModel
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 (d *HypervisorDataSource) Configure(ctx context.Context, req datasource.ConfigureRequest, resp *datasource.ConfigureResponse)
func (*HypervisorDataSource) Metadata ¶ added in v0.6.2
func (d *HypervisorDataSource) Metadata(ctx context.Context, req datasource.MetadataRequest, resp *datasource.MetadataResponse)
func (*HypervisorDataSource) Read ¶ added in v0.6.2
func (d *HypervisorDataSource) Read(ctx context.Context, req datasource.ReadRequest, resp *datasource.ReadResponse)
func (*HypervisorDataSource) Schema ¶ added in v0.6.2
func (d *HypervisorDataSource) Schema(ctx context.Context, req datasource.SchemaRequest, resp *datasource.SchemaResponse)
type HypervisorDataSourceModel ¶ added in v0.6.2
type HypervisorDataSourceModel struct { Id types.String `tfsdk:"id"` Name types.String `tfsdk:"name"` }
HypervisorDataSourceModel defines the Hypervisor data source implementation.
func (HypervisorDataSourceModel) GetSchema ¶ added in v0.6.2
func (HypervisorDataSourceModel) GetSchema() schema.Schema
func (HypervisorDataSourceModel) RefreshPropertyValues ¶ added in v0.6.2
func (r HypervisorDataSourceModel) RefreshPropertyValues(hypervisor *citrixorchestration.HypervisorDetailResponseModel) HypervisorDataSourceModel
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] /** 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) GetAttributes() map[string]schema.Attribute
func (NutanixHypervisorResourceModel) GetSchema ¶ added in v0.6.2
func (NutanixHypervisorResourceModel) GetSchema() schema.Schema
func (NutanixHypervisorResourceModel) RefreshPropertyValues ¶
func (r NutanixHypervisorResourceModel) RefreshPropertyValues(ctx context.Context, diagnostics *diag.Diagnostics, hypervisor *citrixorchestration.HypervisorDetailResponseModel) NutanixHypervisorResourceModel
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] /** 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) GetAttributes() map[string]schema.Attribute
func (SCVMMMHypervisorResourceModel) GetSchema ¶ added in v0.6.2
func (SCVMMMHypervisorResourceModel) GetSchema() schema.Schema
func (SCVMMMHypervisorResourceModel) RefreshPropertyValues ¶ added in v0.6.2
func (r SCVMMMHypervisorResourceModel) RefreshPropertyValues(ctx context.Context, diagnostics *diag.Diagnostics, hypervisor *citrixorchestration.HypervisorDetailResponseModel) SCVMMMHypervisorResourceModel
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] /** 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) GetAttributes() map[string]schema.Attribute
func (VsphereHypervisorResourceModel) GetSchema ¶ added in v0.6.2
func (VsphereHypervisorResourceModel) GetSchema() schema.Schema
func (VsphereHypervisorResourceModel) RefreshPropertyValues ¶
func (r VsphereHypervisorResourceModel) RefreshPropertyValues(ctx context.Context, diagnostics *diag.Diagnostics, 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"` Scopes types.Set `tfsdk:"scopes"` // 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) GetAttributes() map[string]schema.Attribute
func (XenserverHypervisorResourceModel) GetSchema ¶ added in v0.6.2
func (XenserverHypervisorResourceModel) GetSchema() schema.Schema
func (XenserverHypervisorResourceModel) RefreshPropertyValues ¶
func (r XenserverHypervisorResourceModel) RefreshPropertyValues(ctx context.Context, diagnostics *diag.Diagnostics, 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
- hypervisor_data_source.go
- hypervisor_data_source_model.go
- nutanix_hypervisor_resource.go
- nutanix_hypervisor_resource_model.go
- scvmm_hypervisor_resource.go
- scvmm_hypervisor_resource_model.go
- vsphere_hypervisor_resource.go
- vsphere_hypervisor_resource_model.go
- xenserver_hypervisor_resource.go
- xenserver_hypervisor_resource_model.go