Documentation
¶
Index ¶
- func CreateHypervisor(ctx context.Context, client *citrixdaasclient.CitrixDaasClient, ...) (*citrixorchestration.HypervisorDetailResponseModel, error)
- func NewAwsHypervisorResource() resource.Resource
- func NewAzureHypervisorResource() resource.Resource
- func NewGcpHypervisorResource() resource.Resource
- func UpdateHypervisor(ctx context.Context, client *citrixdaasclient.CitrixDaasClient, ...) (*citrixorchestration.HypervisorDetailResponseModel, error)
- type AwsHypervisorResourceModel
- type AzureHypervisorResourceModel
- type GcpHypervisorResourceModel
Constants ¶
This section is empty.
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 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"`
}
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
Click to show internal directories.
Click to hide internal directories.