Documentation ¶
Index ¶
- Variables
- func NewMachineCatalogResource() resource.Resource
- type AwsMachineConfigModel
- type AzureComputeGallerySettings
- type AzureDiskEncryptionSetModel
- type AzureMachineConfigModel
- type AzureMachineProfileModel
- type AzureMasterImageModel
- type AzureWritebackCacheModel
- type CustomPropertyModel
- type GalleryImageModel
- type GcpMachineConfigModel
- type GcpWritebackCacheModel
- type MachineAccountCreationRulesModel
- type MachineAccountsModel
- type MachineCatalogMachineModel
- type MachineCatalogResourceModel
- type MachineDomainIdentityModel
- type NetworkMappingModel
- type NutanixMachineConfigModel
- type ProvisioningSchemeModel
- type RemotePcOuModel
- type VsphereMachineConfigModel
- type VsphereWritebackCacheModel
- type XenserverMachineConfigModel
- type XenserverWritebackCacheModel
Constants ¶
This section is empty.
Variables ¶
View Source
var MappedCustomProperties = map[string]string{
"Zones": "availability_zones",
"StorageType": "storage_type",
"ResourceGroups": "vda_resource_group",
"UseManagedDisks": "use_managed_disks",
"WBCDiskStorageType": "wbc_disk_storage_type",
"PersistWBC": "persist_wbc",
"PersistOsDisk": "persist_os_disk",
"PersistVm": "persist_vm",
"CatalogZones": "availability_zones",
"StorageTypeAtShutdown": "storage_cost_saving",
"LicenseType": "license_type",
"UseSharedImageGallery": "use_azure_compute_gallery",
"SharedImageGalleryReplicaRatio": "replica_ratio",
"SharedImageGalleryReplicaMaximum": "replica_maximum",
}
Functions ¶
func NewMachineCatalogResource ¶
NewMachineCatalogResource is a helper function to simplify the provider implementation.
Types ¶
type AwsMachineConfigModel ¶
type AwsMachineConfigModel struct { ServiceOffering types.String `tfsdk:"service_offering"` MasterImage types.String `tfsdk:"master_image"` /** AWS Hypervisor **/ ImageAmi types.String `tfsdk:"image_ami"` SecurityGroups []types.String `tfsdk:"security_groups"` TenancyType types.String `tfsdk:"tenancy_type"` }
func (*AwsMachineConfigModel) RefreshProperties ¶
func (mc *AwsMachineConfigModel) RefreshProperties(catalog citrixorchestration.MachineCatalogDetailResponseModel)
type AzureComputeGallerySettings ¶ added in v0.5.5
type AzureDiskEncryptionSetModel ¶ added in v0.5.5
type AzureMachineConfigModel ¶
type AzureMachineConfigModel struct { ServiceOffering types.String `tfsdk:"service_offering"` /** Azure Hypervisor **/ AzureMasterImage *AzureMasterImageModel `tfsdk:"azure_master_image"` VdaResourceGroup types.String `tfsdk:"vda_resource_group"` StorageType types.String `tfsdk:"storage_type"` UseAzureComputeGallery *AzureComputeGallerySettings `tfsdk:"use_azure_compute_gallery"` LicenseType types.String `tfsdk:"license_type"` UseManagedDisks types.Bool `tfsdk:"use_managed_disks"` MachineProfile *AzureMachineProfileModel `tfsdk:"machine_profile"` WritebackCache *AzureWritebackCacheModel `tfsdk:"writeback_cache"` DiskEncryptionSet *AzureDiskEncryptionSetModel `tfsdk:"disk_encryption_set"` EnrollInIntune types.Bool `tfsdk:"enroll_in_intune"` }
func (*AzureMachineConfigModel) RefreshProperties ¶
func (mc *AzureMachineConfigModel) RefreshProperties(catalog citrixorchestration.MachineCatalogDetailResponseModel)
type AzureMachineProfileModel ¶ added in v0.5.5
type AzureMasterImageModel ¶ added in v0.5.5
type AzureWritebackCacheModel ¶ added in v0.5.3
type AzureWritebackCacheModel struct { PersistWBC types.Bool `tfsdk:"persist_wbc"` WBCDiskStorageType types.String `tfsdk:"wbc_disk_storage_type"` PersistOsDisk types.Bool `tfsdk:"persist_os_disk"` PersistVm types.Bool `tfsdk:"persist_vm"` StorageCostSaving types.Bool `tfsdk:"storage_cost_saving"` WriteBackCacheDiskSizeGB types.Int64 `tfsdk:"writeback_cache_disk_size_gb"` WriteBackCacheMemorySizeMB types.Int64 `tfsdk:"writeback_cache_memory_size_mb"` }
WritebackCacheModel maps the write back cacheconfiguration schema data.
type CustomPropertyModel ¶ added in v0.5.5
type GalleryImageModel ¶
type GcpMachineConfigModel ¶
type GcpMachineConfigModel struct { MasterImage types.String `tfsdk:"master_image"` /** GCP Hypervisor **/ MachineProfile types.String `tfsdk:"machine_profile"` MachineSnapshot types.String `tfsdk:"machine_snapshot"` StorageType types.String `tfsdk:"storage_type"` WritebackCache *GcpWritebackCacheModel `tfsdk:"writeback_cache"` }
func (*GcpMachineConfigModel) RefreshProperties ¶
func (mc *GcpMachineConfigModel) RefreshProperties(catalog citrixorchestration.MachineCatalogDetailResponseModel)
type GcpWritebackCacheModel ¶ added in v0.5.3
type GcpWritebackCacheModel struct { PersistWBC types.Bool `tfsdk:"persist_wbc"` WBCDiskStorageType types.String `tfsdk:"wbc_disk_storage_type"` PersistOsDisk types.Bool `tfsdk:"persist_os_disk"` WriteBackCacheDiskSizeGB types.Int64 `tfsdk:"writeback_cache_disk_size_gb"` WriteBackCacheMemorySizeMB types.Int64 `tfsdk:"writeback_cache_memory_size_mb"` }
type MachineAccountCreationRulesModel ¶
type MachineAccountCreationRulesModel struct { NamingScheme types.String `tfsdk:"naming_scheme"` NamingSchemeType types.String `tfsdk:"naming_scheme_type"` }
MachineAccountCreationRulesModel maps the nested machine account creation rules resource schema data.
type MachineAccountsModel ¶
type MachineAccountsModel struct { Hypervisor types.String `tfsdk:"hypervisor"` Machines []MachineCatalogMachineModel `tfsdk:"machines"` }
type MachineCatalogMachineModel ¶
type MachineCatalogMachineModel struct { MachineAccount types.String `tfsdk:"machine_account"` MachineName types.String `tfsdk:"machine_name"` Region types.String `tfsdk:"region"` ResourceGroupName types.String `tfsdk:"resource_group_name"` ProjectName types.String `tfsdk:"project_name"` AvailabilityZone types.String `tfsdk:"availability_zone"` Datacenter types.String `tfsdk:"datacenter"` Cluster types.String `tfsdk:"cluster"` Host types.String `tfsdk:"host"` }
type MachineCatalogResourceModel ¶
type MachineCatalogResourceModel struct { Id types.String `tfsdk:"id"` Name types.String `tfsdk:"name"` Description types.String `tfsdk:"description"` IsPowerManaged types.Bool `tfsdk:"is_power_managed"` IsRemotePc types.Bool `tfsdk:"is_remote_pc"` AllocationType types.String `tfsdk:"allocation_type"` SessionSupport types.String `tfsdk:"session_support"` Zone types.String `tfsdk:"zone"` VdaUpgradeType types.String `tfsdk:"vda_upgrade_type"` ProvisioningType types.String `tfsdk:"provisioning_type"` ProvisioningScheme *ProvisioningSchemeModel `tfsdk:"provisioning_scheme"` MachineAccounts []MachineAccountsModel `tfsdk:"machine_accounts"` RemotePcOus []RemotePcOuModel `tfsdk:"remote_pc_ous"` MinimumFunctionalLevel types.String `tfsdk:"minimum_functional_level"` }
MachineCatalogResourceModel maps the resource schema data.
func (MachineCatalogResourceModel) RefreshPropertyValues ¶
func (r MachineCatalogResourceModel) RefreshPropertyValues(ctx context.Context, client *citrixclient.CitrixDaasClient, catalog *citrixorchestration.MachineCatalogDetailResponseModel, connectionType *citrixorchestration.HypervisorConnectionType, machines *citrixorchestration.MachineResponseModelCollection, pluginId string) MachineCatalogResourceModel
type NetworkMappingModel ¶
type NetworkMappingModel struct { NetworkDevice types.String `tfsdk:"network_device"` Network types.String `tfsdk:"network"` }
NetworkMappingModel maps the nested network mapping resource schema data.
type NutanixMachineConfigModel ¶ added in v0.5.4
type NutanixMachineConfigModel struct { Container types.String `tfsdk:"container"` MasterImage types.String `tfsdk:"master_image"` CpuCount types.Int64 `tfsdk:"cpu_count"` CoresPerCpuCount types.Int64 `tfsdk:"cores_per_cpu_count"` MemoryMB types.Int64 `tfsdk:"memory_mb"` }
func (*NutanixMachineConfigModel) RefreshProperties ¶ added in v0.5.4
func (mc *NutanixMachineConfigModel) RefreshProperties(catalog citrixorchestration.MachineCatalogDetailResponseModel)
type ProvisioningSchemeModel ¶
type ProvisioningSchemeModel struct { Hypervisor types.String `tfsdk:"hypervisor"` HypervisorResourcePool types.String `tfsdk:"hypervisor_resource_pool"` AzureMachineConfig *AzureMachineConfigModel `tfsdk:"azure_machine_config"` AwsMachineConfig *AwsMachineConfigModel `tfsdk:"aws_machine_config"` GcpMachineConfig *GcpMachineConfigModel `tfsdk:"gcp_machine_config"` VsphereMachineConfig *VsphereMachineConfigModel `tfsdk:"vsphere_machine_config"` XenserverMachineConfig *XenserverMachineConfigModel `tfsdk:"xenserver_machine_config"` NutanixMachineConfigModel *NutanixMachineConfigModel `tfsdk:"nutanix_machine_config"` NumTotalMachines types.Int64 `tfsdk:"number_of_total_machines"` NetworkMapping *NetworkMappingModel `tfsdk:"network_mapping"` AvailabilityZones types.String `tfsdk:"availability_zones"` IdentityType types.String `tfsdk:"identity_type"` MachineDomainIdentity *MachineDomainIdentityModel `tfsdk:"machine_domain_identity"` MachineAccountCreationRules *MachineAccountCreationRulesModel `tfsdk:"machine_account_creation_rules"` CustomProperties []CustomPropertyModel `tfsdk:"custom_properties"` }
ProvisioningSchemeModel maps the nested provisioning scheme resource schema data.
type RemotePcOuModel ¶
type RemotePcOuModel struct { IncludeSubFolders types.Bool `tfsdk:"include_subfolders"` OUName types.String `tfsdk:"ou_name"` }
func (RemotePcOuModel) RefreshListItem ¶
func (scope RemotePcOuModel) RefreshListItem(remote citrixorchestration.RemotePCEnrollmentScopeResponseModel) RemotePcOuModel
type VsphereMachineConfigModel ¶ added in v0.5.3
type VsphereMachineConfigModel struct { /** Vsphere Hypervisor **/ MasterImageVm types.String `tfsdk:"master_image_vm"` ImageSnapshot types.String `tfsdk:"image_snapshot"` CpuCount types.Int64 `tfsdk:"cpu_count"` MemoryMB types.Int64 `tfsdk:"memory_mb"` WritebackCache *VsphereWritebackCacheModel `tfsdk:"writeback_cache"` }
func (*VsphereMachineConfigModel) RefreshProperties ¶ added in v0.5.3
func (mc *VsphereMachineConfigModel) RefreshProperties(catalog citrixorchestration.MachineCatalogDetailResponseModel)
type VsphereWritebackCacheModel ¶ added in v0.5.3
type XenserverMachineConfigModel ¶ added in v0.5.3
type XenserverMachineConfigModel struct { /** XenServer Hypervisor **/ MasterImageVm types.String `tfsdk:"master_image_vm"` ImageSnapshot types.String `tfsdk:"image_snapshot"` CpuCount types.Int64 `tfsdk:"cpu_count"` MemoryMB types.Int64 `tfsdk:"memory_mb"` WritebackCache *XenserverWritebackCacheModel `tfsdk:"writeback_cache"` }
func (*XenserverMachineConfigModel) RefreshProperties ¶ added in v0.5.3
func (mc *XenserverMachineConfigModel) RefreshProperties(catalog citrixorchestration.MachineCatalogDetailResponseModel)
Click to show internal directories.
Click to hide internal directories.