Documentation ¶
Index ¶
- Variables
- func NewMachineCatalogDataSource() datasource.DataSource
- func NewMachineCatalogResource() resource.Resource
- func NewMachinePropertiesResource() resource.Resource
- func NewPvsDataSource() datasource.DataSource
- type AwsMachineConfigModel
- type AzureComputeGallerySettings
- type AzureMachineConfigModel
- type AzureMasterImageModel
- type AzurePvsConfigurationModel
- type AzureWritebackCacheModel
- type CustomPropertyModel
- type GcpMachineConfigModel
- type GcpWritebackCacheModel
- type ImageUpdateRebootOptionsModel
- type MachineADAccountModel
- func (MachineADAccountModel) GetAttributes() map[string]schema.Attribute
- func (r MachineADAccountModel) GetKey() string
- func (MachineADAccountModel) GetSchema() schema.NestedAttributeObject
- func (r MachineADAccountModel) RefreshListItem(ctx context.Context, diagnostics *diag.Diagnostics, ...) util.ResourceModelWithAttributes
- type MachineAccountCreationRulesModel
- type MachineAccountsModel
- type MachineCatalogDataSource
- func (d *MachineCatalogDataSource) Configure(ctx context.Context, req datasource.ConfigureRequest, ...)
- func (d *MachineCatalogDataSource) Metadata(ctx context.Context, req datasource.MetadataRequest, ...)
- func (d *MachineCatalogDataSource) Read(ctx context.Context, req datasource.ReadRequest, resp *datasource.ReadResponse)
- func (d *MachineCatalogDataSource) Schema(ctx context.Context, req datasource.SchemaRequest, ...)
- type MachineCatalogDataSourceModel
- type MachineCatalogMachineModel
- type MachineCatalogResourceModel
- type MachineDomainIdentityModel
- type MachinePropertiesModel
- type MachinePropertiesResource
- func (r *MachinePropertiesResource) Configure(_ context.Context, req resource.ConfigureRequest, ...)
- func (r *MachinePropertiesResource) Create(ctx context.Context, req resource.CreateRequest, resp *resource.CreateResponse)
- func (r *MachinePropertiesResource) Delete(ctx context.Context, req resource.DeleteRequest, resp *resource.DeleteResponse)
- func (r *MachinePropertiesResource) ImportState(ctx context.Context, req resource.ImportStateRequest, ...)
- func (r *MachinePropertiesResource) Metadata(_ context.Context, req resource.MetadataRequest, ...)
- func (r *MachinePropertiesResource) ModifyPlan(ctx context.Context, req resource.ModifyPlanRequest, ...)
- func (r *MachinePropertiesResource) Read(ctx context.Context, req resource.ReadRequest, resp *resource.ReadResponse)
- func (r *MachinePropertiesResource) Schema(_ context.Context, _ resource.SchemaRequest, resp *resource.SchemaResponse)
- func (r *MachinePropertiesResource) Update(ctx context.Context, req resource.UpdateRequest, resp *resource.UpdateResponse)
- func (r *MachinePropertiesResource) ValidateConfig(ctx context.Context, req resource.ValidateConfigRequest, ...)
- type NutanixMachineConfigModel
- type ProvisioningSchemeModel
- type PvsDataSource
- func (d *PvsDataSource) Configure(ctx context.Context, req datasource.ConfigureRequest, ...)
- func (d *PvsDataSource) Metadata(_ context.Context, req datasource.MetadataRequest, ...)
- func (d *PvsDataSource) Read(ctx context.Context, req datasource.ReadRequest, resp *datasource.ReadResponse)
- func (d *PvsDataSource) Schema(_ context.Context, _ datasource.SchemaRequest, resp *datasource.SchemaResponse)
- type PvsDataSourceModel
- type RemotePcOuModel
- type SCVMMMachineConfigModel
- type VsphereAndSCVMMWritebackCacheModel
- type VsphereMachineConfigModel
- type XenserverMachineConfigModel
- type XenserverWritebackCacheModel
Constants ¶
This section is empty.
Variables ¶
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",
"UseEphemeralOsDisk": "storage_type",
}
Functions ¶
func NewMachineCatalogDataSource ¶ added in v0.6.2
func NewMachineCatalogDataSource() datasource.DataSource
func NewMachineCatalogResource ¶
NewMachineCatalogResource is a helper function to simplify the provider implementation.
func NewMachinePropertiesResource ¶ added in v1.0.7
NewAdminFolderResource is a helper function to simplify the provider implementation.
func NewPvsDataSource ¶ added in v0.6.2
func NewPvsDataSource() datasource.DataSource
Types ¶
type AwsMachineConfigModel ¶
type AwsMachineConfigModel struct { ServiceOffering types.String `tfsdk:"service_offering"` MasterImage types.String `tfsdk:"master_image"` MasterImageNote types.String `tfsdk:"master_image_note"` ImageUpdateRebootOptions types.Object `tfsdk:"image_update_reboot_options"` /** AWS Hypervisor **/ ImageAmi types.String `tfsdk:"image_ami"` SecurityGroups types.List `tfsdk:"security_groups"` // List[String] TenancyType types.String `tfsdk:"tenancy_type"` }
func (AwsMachineConfigModel) GetAttributes ¶ added in v0.6.1
func (AwsMachineConfigModel) GetAttributes() map[string]schema.Attribute
func (AwsMachineConfigModel) GetSchema ¶ added in v0.6.1
func (AwsMachineConfigModel) GetSchema() schema.SingleNestedAttribute
func (*AwsMachineConfigModel) RefreshProperties ¶
func (mc *AwsMachineConfigModel) RefreshProperties(ctx context.Context, diagnostics *diag.Diagnostics, catalog citrixorchestration.MachineCatalogDetailResponseModel)
type AzureComputeGallerySettings ¶ added in v0.5.5
type AzureComputeGallerySettings struct { ReplicaRatio types.Int64 `tfsdk:"replica_ratio"` ReplicaMaximum types.Int64 `tfsdk:"replica_maximum"` }
func (AzureComputeGallerySettings) GetAttributes ¶ added in v0.6.1
func (AzureComputeGallerySettings) GetAttributes() map[string]schema.Attribute
func (AzureComputeGallerySettings) GetSchema ¶ added in v0.6.1
func (AzureComputeGallerySettings) GetSchema() schema.SingleNestedAttribute
type AzureMachineConfigModel ¶
type AzureMachineConfigModel struct { ServiceOffering types.String `tfsdk:"service_offering"` /** Azure Hypervisor **/ AzureMasterImage types.Object `tfsdk:"azure_master_image"` AzurePvsConfiguration types.Object `tfsdk:"azure_pvs_config"` MasterImageNote types.String `tfsdk:"master_image_note"` ImageUpdateRebootOptions types.Object `tfsdk:"image_update_reboot_options"` VdaResourceGroup types.String `tfsdk:"vda_resource_group"` StorageType types.String `tfsdk:"storage_type"` UseAzureComputeGallery types.Object `tfsdk:"use_azure_compute_gallery"` LicenseType types.String `tfsdk:"license_type"` UseManagedDisks types.Bool `tfsdk:"use_managed_disks"` MachineProfile types.Object `tfsdk:"machine_profile"` WritebackCache types.Object `tfsdk:"writeback_cache"` DiskEncryptionSet types.Object `tfsdk:"disk_encryption_set"` EnrollInIntune types.Bool `tfsdk:"enroll_in_intune"` }
func (AzureMachineConfigModel) GetAttributes ¶ added in v0.6.1
func (AzureMachineConfigModel) GetAttributes() map[string]schema.Attribute
func (AzureMachineConfigModel) GetSchema ¶ added in v0.6.1
func (AzureMachineConfigModel) GetSchema() schema.SingleNestedAttribute
func (*AzureMachineConfigModel) RefreshProperties ¶
func (mc *AzureMachineConfigModel) RefreshProperties(ctx context.Context, diagnostics *diag.Diagnostics, catalog citrixorchestration.MachineCatalogDetailResponseModel, provisioningType *citrixorchestration.ProvisioningType)
type AzureMasterImageModel ¶ added in v0.5.5
type AzureMasterImageModel struct { ResourceGroup types.String `tfsdk:"resource_group"` MasterImage types.String `tfsdk:"master_image"` StorageAccount types.String `tfsdk:"storage_account"` Container types.String `tfsdk:"container"` GalleryImage types.Object `tfsdk:"gallery_image"` }
func (AzureMasterImageModel) GetAttributes ¶ added in v0.6.1
func (AzureMasterImageModel) GetAttributes() map[string]schema.Attribute
func (AzureMasterImageModel) GetSchema ¶ added in v0.6.1
func (AzureMasterImageModel) GetSchema() schema.SingleNestedAttribute
type AzurePvsConfigurationModel ¶ added in v0.6.2
type AzurePvsConfigurationModel struct { PvsSiteId types.String `tfsdk:"pvs_site_id"` PvsVdiskId types.String `tfsdk:"pvs_vdisk_id"` }
func (AzurePvsConfigurationModel) GetAttributes ¶ added in v0.6.2
func (AzurePvsConfigurationModel) GetAttributes() map[string]schema.Attribute
func (AzurePvsConfigurationModel) GetSchema ¶ added in v0.6.2
func (AzurePvsConfigurationModel) GetSchema() schema.SingleNestedAttribute
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.
func (AzureWritebackCacheModel) GetAttributes ¶ added in v0.6.1
func (AzureWritebackCacheModel) GetAttributes() map[string]schema.Attribute
func (AzureWritebackCacheModel) GetSchema ¶ added in v0.6.1
func (AzureWritebackCacheModel) GetSchema() schema.SingleNestedAttribute
type CustomPropertyModel ¶ added in v0.5.5
type CustomPropertyModel struct { Name types.String `tfsdk:"name"` Value types.String `tfsdk:"value"` }
func (CustomPropertyModel) GetAttributes ¶ added in v0.6.1
func (CustomPropertyModel) GetAttributes() map[string]schema.Attribute
func (CustomPropertyModel) GetSchema ¶ added in v0.6.1
func (CustomPropertyModel) GetSchema() schema.NestedAttributeObject
type GcpMachineConfigModel ¶
type GcpMachineConfigModel struct { MasterImage types.String `tfsdk:"master_image"` MasterImageNote types.String `tfsdk:"master_image_note"` ImageUpdateRebootOptions types.Object `tfsdk:"image_update_reboot_options"` /** GCP Hypervisor **/ MachineProfile types.String `tfsdk:"machine_profile"` MachineSnapshot types.String `tfsdk:"machine_snapshot"` StorageType types.String `tfsdk:"storage_type"` WritebackCache types.Object `tfsdk:"writeback_cache"` // GcpWritebackCacheModel }
func (GcpMachineConfigModel) GetAttributes ¶ added in v0.6.1
func (GcpMachineConfigModel) GetAttributes() map[string]schema.Attribute
func (GcpMachineConfigModel) GetSchema ¶ added in v0.6.1
func (GcpMachineConfigModel) GetSchema() schema.SingleNestedAttribute
func (*GcpMachineConfigModel) RefreshProperties ¶
func (mc *GcpMachineConfigModel) RefreshProperties(ctx context.Context, diagnostics *diag.Diagnostics, 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"` }
func (GcpWritebackCacheModel) GetAttributes ¶ added in v0.6.1
func (GcpWritebackCacheModel) GetAttributes() map[string]schema.Attribute
func (GcpWritebackCacheModel) GetSchema ¶ added in v0.6.1
func (GcpWritebackCacheModel) GetSchema() schema.SingleNestedAttribute
type ImageUpdateRebootOptionsModel ¶ added in v0.6.1
type ImageUpdateRebootOptionsModel struct { RebootDuration types.Int64 `tfsdk:"reboot_duration"` WarningDuration types.Int64 `tfsdk:"warning_duration"` WarningMessage types.String `tfsdk:"warning_message"` WarningRepeatInterval types.Int64 `tfsdk:"warning_repeat_interval"` }
func (ImageUpdateRebootOptionsModel) GetAttributes ¶ added in v0.6.1
func (ImageUpdateRebootOptionsModel) GetAttributes() map[string]schema.Attribute
func (ImageUpdateRebootOptionsModel) GetSchema ¶ added in v0.6.1
func (ImageUpdateRebootOptionsModel) GetSchema() schema.SingleNestedAttribute
func (ImageUpdateRebootOptionsModel) ValidateConfig ¶ added in v0.6.1
func (rebootOptions ImageUpdateRebootOptionsModel) ValidateConfig(diagnostics *diag.Diagnostics)
type MachineADAccountModel ¶ added in v1.0.8
type MachineADAccountModel struct { ADAccountName types.String `tfsdk:"ad_account_name"` PasswordFormat types.String `tfsdk:"password_format"` ResetPassword types.Bool `tfsdk:"reset_password"` Password types.String `tfsdk:"password"` State types.String `tfsdk:"state"` }
func (MachineADAccountModel) GetAttributes ¶ added in v1.0.8
func (MachineADAccountModel) GetAttributes() map[string]schema.Attribute
func (MachineADAccountModel) GetKey ¶ added in v1.0.8
func (r MachineADAccountModel) GetKey() string
GetKey implements util.RefreshableListItemWithAttributes.
func (MachineADAccountModel) GetSchema ¶ added in v1.0.8
func (MachineADAccountModel) GetSchema() schema.NestedAttributeObject
func (MachineADAccountModel) RefreshListItem ¶ added in v1.0.8
func (r MachineADAccountModel) RefreshListItem(ctx context.Context, diagnostics *diag.Diagnostics, account citrixorchestration.ProvisioningSchemeMachineAccountResponseModel) util.ResourceModelWithAttributes
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.
func (MachineAccountCreationRulesModel) GetAttributes ¶ added in v0.6.1
func (MachineAccountCreationRulesModel) GetAttributes() map[string]schema.Attribute
func (MachineAccountCreationRulesModel) GetSchema ¶ added in v0.6.1
func (MachineAccountCreationRulesModel) GetSchema() schema.SingleNestedAttribute
type MachineAccountsModel ¶
type MachineAccountsModel struct { Hypervisor types.String `tfsdk:"hypervisor"` Machines types.List `tfsdk:"machines"` // List[MachineCatalogMachineModel] }
func (MachineAccountsModel) GetAttributes ¶ added in v0.6.1
func (MachineAccountsModel) GetAttributes() map[string]schema.Attribute
func (MachineAccountsModel) GetSchema ¶ added in v0.6.1
func (MachineAccountsModel) GetSchema() schema.NestedAttributeObject
type MachineCatalogDataSource ¶ added in v0.6.2
type MachineCatalogDataSource struct {
// contains filtered or unexported fields
}
MachineCatalogDataSource defines the data source implementation.
func (*MachineCatalogDataSource) Configure ¶ added in v0.6.2
func (d *MachineCatalogDataSource) Configure(ctx context.Context, req datasource.ConfigureRequest, resp *datasource.ConfigureResponse)
func (*MachineCatalogDataSource) Metadata ¶ added in v0.6.2
func (d *MachineCatalogDataSource) Metadata(ctx context.Context, req datasource.MetadataRequest, resp *datasource.MetadataResponse)
func (*MachineCatalogDataSource) Read ¶ added in v0.6.2
func (d *MachineCatalogDataSource) Read(ctx context.Context, req datasource.ReadRequest, resp *datasource.ReadResponse)
func (*MachineCatalogDataSource) Schema ¶ added in v0.6.2
func (d *MachineCatalogDataSource) Schema(ctx context.Context, req datasource.SchemaRequest, resp *datasource.SchemaResponse)
type MachineCatalogDataSourceModel ¶ added in v0.6.2
type MachineCatalogDataSourceModel struct { Id types.String `tfsdk:"id"` Name types.String `tfsdk:"name"` MachineCatalogFolderPath types.String `tfsdk:"machine_catalog_folder_path"` Vdas []vda.VdaModel `tfsdk:"vdas"` // List[VdaModel] Tenants types.Set `tfsdk:"tenants"` // Set[String] Tags types.Set `tfsdk:"tags"` // Set[string] }
MachineCatalogDataSourceModel defines the Machine Catalog data source implementation.
func (MachineCatalogDataSourceModel) GetSchema ¶ added in v0.6.2
func (MachineCatalogDataSourceModel) GetSchema() schema.Schema
func (MachineCatalogDataSourceModel) RefreshPropertyValues ¶ added in v0.6.2
func (r MachineCatalogDataSourceModel) RefreshPropertyValues(ctx context.Context, diagnostics *diag.Diagnostics, catalog *citrixorchestration.MachineCatalogDetailResponseModel, vdas []citrixorchestration.MachineResponseModel, tags []string) MachineCatalogDataSourceModel
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"` }
func (MachineCatalogMachineModel) GetAttributes ¶ added in v0.6.1
func (MachineCatalogMachineModel) GetAttributes() map[string]schema.Attribute
func (MachineCatalogMachineModel) GetSchema ¶ added in v0.6.1
func (MachineCatalogMachineModel) GetSchema() schema.NestedAttributeObject
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"` PersistUserChanges types.String `tfsdk:"persist_user_changes"` 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 types.Object `tfsdk:"provisioning_scheme"` // ProvisioningSchemeModel MachineAccounts types.List `tfsdk:"machine_accounts"` // List[MachineAccountsModel] RemotePcOus types.List `tfsdk:"remote_pc_ous"` // List[RemotePcOuModel] MinimumFunctionalLevel types.String `tfsdk:"minimum_functional_level"` Scopes types.Set `tfsdk:"scopes"` //Set[String] BuiltInScopes types.Set `tfsdk:"built_in_scopes"` //Set[String] InheritedScopes types.Set `tfsdk:"inherited_scopes"` //Set[String] MachineCatalogFolderPath types.String `tfsdk:"machine_catalog_folder_path"` Tenants types.Set `tfsdk:"tenants"` // Set[String] Metadata types.List `tfsdk:"metadata"` // List[NameValueStringPairModel] Tags types.Set `tfsdk:"tags"` // Set[String] }
MachineCatalogResourceModel maps the resource schema data.
func (MachineCatalogResourceModel) GetAttributes ¶ added in v0.6.2
func (MachineCatalogResourceModel) GetAttributes() map[string]schema.Attribute
func (MachineCatalogResourceModel) GetSchema ¶ added in v0.6.2
func (MachineCatalogResourceModel) GetSchema() schema.Schema
func (MachineCatalogResourceModel) RefreshPropertyValues ¶
func (r MachineCatalogResourceModel) RefreshPropertyValues(ctx context.Context, diagnostics *diag.Diagnostics, client *citrixclient.CitrixDaasClient, catalog *citrixorchestration.MachineCatalogDetailResponseModel, connectionType *citrixorchestration.HypervisorConnectionType, machines []citrixorchestration.MachineResponseModel, pluginId string, tags []string, machineAdAccounts []citrixorchestration.ProvisioningSchemeMachineAccountResponseModel) MachineCatalogResourceModel
type MachineDomainIdentityModel ¶
type MachineDomainIdentityModel struct { Domain types.String `tfsdk:"domain"` Ou types.String `tfsdk:"domain_ou"` ServiceAccountDomain types.String `tfsdk:"service_account_domain"` ServiceAccount types.String `tfsdk:"service_account"` ServiceAccountPassword types.String `tfsdk:"service_account_password"` }
func (MachineDomainIdentityModel) GetAttributes ¶ added in v0.6.1
func (MachineDomainIdentityModel) GetAttributes() map[string]schema.Attribute
func (MachineDomainIdentityModel) GetSchema ¶ added in v0.6.1
func (MachineDomainIdentityModel) GetSchema() schema.SingleNestedAttribute
type MachinePropertiesModel ¶ added in v1.0.7
type MachinePropertiesModel struct { Name types.String `tfsdk:"name"` MachineCatalogId types.String `tfsdk:"machine_catalog_id"` Tags types.Set `tfsdk:"tags"` }
func (MachinePropertiesModel) GetAttributes ¶ added in v1.0.7
func (MachinePropertiesModel) GetAttributes() map[string]schema.Attribute
func (MachinePropertiesModel) GetSchema ¶ added in v1.0.7
func (MachinePropertiesModel) GetSchema() schema.Schema
func (MachinePropertiesModel) RefreshPropertyValues ¶ added in v1.0.7
func (r MachinePropertiesModel) RefreshPropertyValues(ctx context.Context, diagnostics *diag.Diagnostics, machine *citrixorchestration.MachineDetailResponseModel, tagIds []string) MachinePropertiesModel
type MachinePropertiesResource ¶ added in v1.0.7
type MachinePropertiesResource struct {
// contains filtered or unexported fields
}
MachinePropertiesResource is the resource implementation.
func (*MachinePropertiesResource) Configure ¶ added in v1.0.7
func (r *MachinePropertiesResource) Configure(_ context.Context, req resource.ConfigureRequest, _ *resource.ConfigureResponse)
Configure adds the provider configured client to the data source.
func (*MachinePropertiesResource) Create ¶ added in v1.0.7
func (r *MachinePropertiesResource) Create(ctx context.Context, req resource.CreateRequest, resp *resource.CreateResponse)
Create implements resource.Resource.
func (*MachinePropertiesResource) Delete ¶ added in v1.0.7
func (r *MachinePropertiesResource) Delete(ctx context.Context, req resource.DeleteRequest, resp *resource.DeleteResponse)
Delete implements resource.Resource.
func (*MachinePropertiesResource) ImportState ¶ added in v1.0.7
func (r *MachinePropertiesResource) ImportState(ctx context.Context, req resource.ImportStateRequest, resp *resource.ImportStateResponse)
func (*MachinePropertiesResource) Metadata ¶ added in v1.0.7
func (r *MachinePropertiesResource) Metadata(_ context.Context, req resource.MetadataRequest, resp *resource.MetadataResponse)
Metadata returns the data source type name.
func (*MachinePropertiesResource) ModifyPlan ¶ added in v1.0.7
func (r *MachinePropertiesResource) ModifyPlan(ctx context.Context, req resource.ModifyPlanRequest, resp *resource.ModifyPlanResponse)
func (*MachinePropertiesResource) Read ¶ added in v1.0.7
func (r *MachinePropertiesResource) Read(ctx context.Context, req resource.ReadRequest, resp *resource.ReadResponse)
Read implements resource.Resource.
func (*MachinePropertiesResource) Schema ¶ added in v1.0.7
func (r *MachinePropertiesResource) Schema(_ context.Context, _ resource.SchemaRequest, resp *resource.SchemaResponse)
Schema defines the schema for the data source.
func (*MachinePropertiesResource) Update ¶ added in v1.0.7
func (r *MachinePropertiesResource) Update(ctx context.Context, req resource.UpdateRequest, resp *resource.UpdateResponse)
Update implements resource.Resource.
func (*MachinePropertiesResource) ValidateConfig ¶ added in v1.0.7
func (r *MachinePropertiesResource) ValidateConfig(ctx context.Context, req resource.ValidateConfigRequest, resp *resource.ValidateConfigResponse)
type NutanixMachineConfigModel ¶ added in v0.5.4
type NutanixMachineConfigModel struct { Container types.String `tfsdk:"container"` MasterImage types.String `tfsdk:"master_image"` MasterImageNote types.String `tfsdk:"master_image_note"` ImageUpdateRebootOptions types.Object `tfsdk:"image_update_reboot_options"` CpuCount types.Int64 `tfsdk:"cpu_count"` CoresPerCpuCount types.Int64 `tfsdk:"cores_per_cpu_count"` MemoryMB types.Int64 `tfsdk:"memory_mb"` }
func (NutanixMachineConfigModel) GetAttributes ¶ added in v0.6.1
func (NutanixMachineConfigModel) GetAttributes() map[string]schema.Attribute
func (NutanixMachineConfigModel) GetSchema ¶ added in v0.6.1
func (NutanixMachineConfigModel) GetSchema() schema.SingleNestedAttribute
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 types.Object `tfsdk:"azure_machine_config"` // AzureMachineConfigModel AwsMachineConfig types.Object `tfsdk:"aws_machine_config"` // AwsMachineConfigModel GcpMachineConfig types.Object `tfsdk:"gcp_machine_config"` // GcpMachineConfigModel VsphereMachineConfig types.Object `tfsdk:"vsphere_machine_config"` // VsphereMachineConfigModel XenserverMachineConfig types.Object `tfsdk:"xenserver_machine_config"` // XenserverMachineConfigModel NutanixMachineConfig types.Object `tfsdk:"nutanix_machine_config"` // NutanixMachineConfigModel SCVMMMachineConfigModel types.Object `tfsdk:"scvmm_machine_config"` // SCVMMMachineConfigModel NumTotalMachines types.Int64 `tfsdk:"number_of_total_machines"` NetworkMapping types.List `tfsdk:"network_mapping"` // List[NetworkMappingModel] AvailabilityZones types.List `tfsdk:"availability_zones"` // List[string] IdentityType types.String `tfsdk:"identity_type"` MachineDomainIdentity types.Object `tfsdk:"machine_domain_identity"` // MachineDomainIdentityModel MachineAccountCreationRules types.Object `tfsdk:"machine_account_creation_rules"` // MachineAccountCreationRulesModel MachineADAccounts types.List `tfsdk:"machine_ad_accounts"` // Set[MachineADAccountModel] CustomProperties types.List `tfsdk:"custom_properties"` // List[CustomPropertyModel] Metadata types.List `tfsdk:"metadata"` // List[NameValueStringPairModel] }
ProvisioningSchemeModel maps the nested provisioning scheme resource schema data.
func (ProvisioningSchemeModel) GetAttributes ¶ added in v0.6.1
func (ProvisioningSchemeModel) GetAttributes() map[string]schema.Attribute
func (ProvisioningSchemeModel) GetSchema ¶ added in v0.6.1
func (ProvisioningSchemeModel) GetSchema() schema.SingleNestedAttribute
type PvsDataSource ¶ added in v0.6.2
type PvsDataSource struct {
// contains filtered or unexported fields
}
func (*PvsDataSource) Configure ¶ added in v0.6.2
func (d *PvsDataSource) Configure(ctx context.Context, req datasource.ConfigureRequest, resp *datasource.ConfigureResponse)
func (*PvsDataSource) Metadata ¶ added in v0.6.2
func (d *PvsDataSource) Metadata(_ context.Context, req datasource.MetadataRequest, resp *datasource.MetadataResponse)
func (*PvsDataSource) Read ¶ added in v0.6.2
func (d *PvsDataSource) Read(ctx context.Context, req datasource.ReadRequest, resp *datasource.ReadResponse)
func (*PvsDataSource) Schema ¶ added in v0.6.2
func (d *PvsDataSource) Schema(_ context.Context, _ datasource.SchemaRequest, resp *datasource.SchemaResponse)
type PvsDataSourceModel ¶ added in v0.6.2
type PvsDataSourceModel struct { FarmName types.String `tfsdk:"pvs_farm_name"` SiteId types.String `tfsdk:"pvs_site_id"` SiteName types.String `tfsdk:"pvs_site_name"` StoreName types.String `tfsdk:"pvs_store_name"` VdiskId types.String `tfsdk:"pvs_vdisk_id"` VdiskName types.String `tfsdk:"pvs_vdisk_name"` }
func (PvsDataSourceModel) GetSchema ¶ added in v0.6.2
func (PvsDataSourceModel) GetSchema() schema.Schema
func (PvsDataSourceModel) RefreshPropertyValues ¶ added in v0.6.2
func (r PvsDataSourceModel) RefreshPropertyValues(ctx context.Context, diagnostics *diag.Diagnostics, pvsSiteId string, pvsVdiskId string) PvsDataSourceModel
type RemotePcOuModel ¶
type RemotePcOuModel struct { IncludeSubFolders types.Bool `tfsdk:"include_subfolders"` OUName types.String `tfsdk:"ou_name"` }
func (RemotePcOuModel) GetAttributes ¶ added in v0.6.1
func (RemotePcOuModel) GetAttributes() map[string]schema.Attribute
func (RemotePcOuModel) GetKey ¶ added in v0.6.1
func (r RemotePcOuModel) GetKey() string
func (RemotePcOuModel) GetSchema ¶ added in v0.6.1
func (RemotePcOuModel) GetSchema() schema.NestedAttributeObject
func (RemotePcOuModel) RefreshListItem ¶
func (scope RemotePcOuModel) RefreshListItem(_ context.Context, _ *diag.Diagnostics, remote citrixorchestration.RemotePCEnrollmentScopeResponseModel) util.ResourceModelWithAttributes
type SCVMMMachineConfigModel ¶ added in v0.6.3
type SCVMMMachineConfigModel struct { MasterImage types.String `tfsdk:"master_image"` ImageSnapshot types.String `tfsdk:"image_snapshot"` MasterImageNote types.String `tfsdk:"master_image_note"` ImageUpdateRebootOptions types.Object `tfsdk:"image_update_reboot_options"` CpuCount types.Int64 `tfsdk:"cpu_count"` MemoryMB types.Int64 `tfsdk:"memory_mb"` UseFullDiskCloneProvisioning types.Bool `tfsdk:"use_full_disk_clone_provisioning"` WritebackCache types.Object `tfsdk:"writeback_cache"` // VsphereAndSCVMMWritebackCacheModel }
func (SCVMMMachineConfigModel) GetAttributes ¶ added in v0.6.3
func (SCVMMMachineConfigModel) GetAttributes() map[string]schema.Attribute
func (SCVMMMachineConfigModel) GetSchema ¶ added in v0.6.3
func (SCVMMMachineConfigModel) GetSchema() schema.SingleNestedAttribute
func (*SCVMMMachineConfigModel) RefreshProperties ¶ added in v0.6.3
func (mc *SCVMMMachineConfigModel) RefreshProperties(ctx context.Context, diagnostics *diag.Diagnostics, catalog citrixorchestration.MachineCatalogDetailResponseModel)
type VsphereAndSCVMMWritebackCacheModel ¶ added in v0.6.3
type VsphereAndSCVMMWritebackCacheModel struct { WriteBackCacheDiskSizeGB types.Int64 `tfsdk:"writeback_cache_disk_size_gb"` WriteBackCacheMemorySizeMB types.Int64 `tfsdk:"writeback_cache_memory_size_mb"` WriteBackCacheDriveLetter types.String `tfsdk:"writeback_cache_drive_letter"` }
func (VsphereAndSCVMMWritebackCacheModel) GetAttributes ¶ added in v0.6.3
func (VsphereAndSCVMMWritebackCacheModel) GetAttributes() map[string]schema.Attribute
func (VsphereAndSCVMMWritebackCacheModel) GetSchema ¶ added in v0.6.3
func (VsphereAndSCVMMWritebackCacheModel) GetSchema() schema.SingleNestedAttribute
type VsphereMachineConfigModel ¶ added in v0.5.3
type VsphereMachineConfigModel struct { /** vSphere Hypervisor **/ MasterImageVm types.String `tfsdk:"master_image_vm"` ResourcePoolPath types.String `tfsdk:"resource_pool_path"` ImageSnapshot types.String `tfsdk:"image_snapshot"` MasterImageNote types.String `tfsdk:"master_image_note"` ImageUpdateRebootOptions types.Object `tfsdk:"image_update_reboot_options"` CpuCount types.Int64 `tfsdk:"cpu_count"` MemoryMB types.Int64 `tfsdk:"memory_mb"` WritebackCache types.Object `tfsdk:"writeback_cache"` // VsphereAndSCVMMWritebackCacheModel MachineProfile types.String `tfsdk:"machine_profile"` }
func (VsphereMachineConfigModel) GetAttributes ¶ added in v0.6.1
func (VsphereMachineConfigModel) GetAttributes() map[string]schema.Attribute
func (VsphereMachineConfigModel) GetSchema ¶ added in v0.6.1
func (VsphereMachineConfigModel) GetSchema() schema.SingleNestedAttribute
func (*VsphereMachineConfigModel) RefreshProperties ¶ added in v0.5.3
func (mc *VsphereMachineConfigModel) RefreshProperties(ctx context.Context, diagnostics *diag.Diagnostics, catalog citrixorchestration.MachineCatalogDetailResponseModel)
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"` MasterImageNote types.String `tfsdk:"master_image_note"` ImageUpdateRebootOptions types.Object `tfsdk:"image_update_reboot_options"` CpuCount types.Int64 `tfsdk:"cpu_count"` MemoryMB types.Int64 `tfsdk:"memory_mb"` WritebackCache types.Object `tfsdk:"writeback_cache"` // XenserverWritebackCacheModel }
func (XenserverMachineConfigModel) GetAttributes ¶ added in v0.6.1
func (XenserverMachineConfigModel) GetAttributes() map[string]schema.Attribute
func (XenserverMachineConfigModel) GetSchema ¶ added in v0.6.1
func (XenserverMachineConfigModel) GetSchema() schema.SingleNestedAttribute
func (*XenserverMachineConfigModel) RefreshProperties ¶ added in v0.5.3
func (mc *XenserverMachineConfigModel) RefreshProperties(ctx context.Context, diagnostics *diag.Diagnostics, catalog citrixorchestration.MachineCatalogDetailResponseModel)
type XenserverWritebackCacheModel ¶ added in v0.5.3
type XenserverWritebackCacheModel struct { WriteBackCacheDiskSizeGB types.Int64 `tfsdk:"writeback_cache_disk_size_gb"` WriteBackCacheMemorySizeMB types.Int64 `tfsdk:"writeback_cache_memory_size_mb"` }
func (XenserverWritebackCacheModel) GetAttributes ¶ added in v0.6.1
func (XenserverWritebackCacheModel) GetAttributes() map[string]schema.Attribute
func (XenserverWritebackCacheModel) GetSchema ¶ added in v0.6.1
func (XenserverWritebackCacheModel) GetSchema() schema.SingleNestedAttribute
Source Files ¶
- machine_catalog_common_utils.go
- machine_catalog_data_source.go
- machine_catalog_data_source_model.go
- machine_catalog_manual_utils.go
- machine_catalog_mcs_pvs_utils.go
- machine_catalog_remote_pc_utils.go
- machine_catalog_resource.go
- machine_catalog_resource_model.go
- machine_config.go
- machine_properties_resource.go
- machine_properties_resource_model.go
- pvs_data_source.go
- pvs_data_source_model.go