Documentation ¶
Overview ¶
Copyright © 2024. Citrix Systems, Inc.
Copyright © 2024. Citrix Systems, Inc.
Copyright © 2024. Citrix Systems, Inc.
Index ¶
- func GetImageDefinition(ctx context.Context, client *citrixdaasclient.CitrixDaasClient, ...) (*citrixorchestration.ImageDefinitionResponseModel, error)
- func GetImageVersion(ctx context.Context, client *citrixdaasclient.CitrixDaasClient, ...) (*citrixorchestration.ImageVersionResponseModel, error)
- func NewImageDefinitionDataSource() datasource.DataSource
- func NewImageDefinitionResource() resource.Resource
- func NewImageVersionDataSource() datasource.DataSource
- func NewImageVersionResource() resource.Resource
- type AzureImageDefinitionModel
- func (AzureImageDefinitionModel) GetAttributes() map[string]schema.Attribute
- func (AzureImageDefinitionModel) GetDataSourceAttributes() map[string]schema.Attribute
- func (AzureImageDefinitionModel) GetDataSourceSchema() schema.SingleNestedAttribute
- func (AzureImageDefinitionModel) GetSchema() schema.SingleNestedAttribute
- type AzureImageSpecsDataSourceModel
- type AzureImageSpecsModel
- type ImageDefinitionDataSource
- func (d *ImageDefinitionDataSource) Configure(ctx context.Context, req datasource.ConfigureRequest, ...)
- func (d *ImageDefinitionDataSource) Metadata(_ context.Context, req datasource.MetadataRequest, ...)
- func (d *ImageDefinitionDataSource) Read(ctx context.Context, req datasource.ReadRequest, resp *datasource.ReadResponse)
- func (d *ImageDefinitionDataSource) Schema(_ context.Context, _ datasource.SchemaRequest, resp *datasource.SchemaResponse)
- type ImageDefinitionModel
- func (ImageDefinitionModel) GetAttributes() map[string]schema.Attribute
- func (ImageDefinitionModel) GetDataSourceAttributes() map[string]schema.Attribute
- func (ImageDefinitionModel) GetDataSourceSchema() schema.Schema
- func (ImageDefinitionModel) GetSchema() schema.Schema
- func (r ImageDefinitionModel) RefreshPropertyValues(ctx context.Context, diagnostics *diag.Diagnostics, isResource bool, ...) ImageDefinitionModel
- type ImageDefinitionResource
- func (r *ImageDefinitionResource) Configure(_ context.Context, req resource.ConfigureRequest, ...)
- func (r *ImageDefinitionResource) Create(ctx context.Context, req resource.CreateRequest, resp *resource.CreateResponse)
- func (r *ImageDefinitionResource) Delete(ctx context.Context, req resource.DeleteRequest, resp *resource.DeleteResponse)
- func (r *ImageDefinitionResource) ImportState(ctx context.Context, req resource.ImportStateRequest, ...)
- func (r *ImageDefinitionResource) Metadata(_ context.Context, req resource.MetadataRequest, ...)
- func (r *ImageDefinitionResource) ModifyPlan(ctx context.Context, req resource.ModifyPlanRequest, ...)
- func (r *ImageDefinitionResource) Read(ctx context.Context, req resource.ReadRequest, resp *resource.ReadResponse)
- func (r *ImageDefinitionResource) Schema(_ context.Context, _ resource.SchemaRequest, resp *resource.SchemaResponse)
- func (r *ImageDefinitionResource) Update(ctx context.Context, req resource.UpdateRequest, resp *resource.UpdateResponse)
- func (r *ImageDefinitionResource) ValidateConfig(ctx context.Context, req resource.ValidateConfigRequest, ...)
- type ImageVersionDataSource
- func (d *ImageVersionDataSource) Configure(ctx context.Context, req datasource.ConfigureRequest, ...)
- func (d *ImageVersionDataSource) Metadata(_ context.Context, req datasource.MetadataRequest, ...)
- func (d *ImageVersionDataSource) Read(ctx context.Context, req datasource.ReadRequest, resp *datasource.ReadResponse)
- func (d *ImageVersionDataSource) Schema(_ context.Context, _ datasource.SchemaRequest, resp *datasource.SchemaResponse)
- type ImageVersionModel
- func (ImageVersionModel) GetAttributes() map[string]schema.Attribute
- func (ImageVersionModel) GetDataSourceAttributes() map[string]schema.Attribute
- func (ImageVersionModel) GetDataSourceSchema() schema.Schema
- func (ImageVersionModel) GetSchema() schema.Schema
- func (r ImageVersionModel) RefreshDataSourcePropertyValues(ctx context.Context, diagnostics *diag.Diagnostics, ...) ImageVersionModel
- func (r ImageVersionModel) RefreshImageVersionBaseProperties(ctx context.Context, diagnostics *diag.Diagnostics, ...) (ImageVersionModel, citrixorchestration.ImageVersionSpecResponseModel, bool)
- func (r ImageVersionModel) RefreshPropertyValues(ctx context.Context, diagnostics *diag.Diagnostics, ...) ImageVersionModel
- type ImageVersionResource
- func (r *ImageVersionResource) Configure(_ context.Context, req resource.ConfigureRequest, ...)
- func (r *ImageVersionResource) Create(ctx context.Context, req resource.CreateRequest, resp *resource.CreateResponse)
- func (r *ImageVersionResource) Delete(ctx context.Context, req resource.DeleteRequest, resp *resource.DeleteResponse)
- func (r *ImageVersionResource) ImportState(ctx context.Context, req resource.ImportStateRequest, ...)
- func (r *ImageVersionResource) Metadata(_ context.Context, req resource.MetadataRequest, ...)
- func (r *ImageVersionResource) ModifyPlan(ctx context.Context, req resource.ModifyPlanRequest, ...)
- func (r *ImageVersionResource) Read(ctx context.Context, req resource.ReadRequest, resp *resource.ReadResponse)
- func (r *ImageVersionResource) Schema(_ context.Context, _ resource.SchemaRequest, resp *resource.SchemaResponse)
- func (r *ImageVersionResource) Update(ctx context.Context, req resource.UpdateRequest, resp *resource.UpdateResponse)
- func (r *ImageVersionResource) ValidateConfig(ctx context.Context, req resource.ValidateConfigRequest, ...)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetImageDefinition ¶ added in v1.0.9
func GetImageDefinition(ctx context.Context, client *citrixdaasclient.CitrixDaasClient, diagnostics *diag.Diagnostics, imageDefinitionNameOrId string) (*citrixorchestration.ImageDefinitionResponseModel, error)
func GetImageVersion ¶ added in v1.0.9
func GetImageVersion(ctx context.Context, client *citrixdaasclient.CitrixDaasClient, diagnostics *diag.Diagnostics, imageDefinitionId string, imageVersionId string) (*citrixorchestration.ImageVersionResponseModel, error)
func NewImageDefinitionDataSource ¶
func NewImageDefinitionDataSource() datasource.DataSource
func NewImageDefinitionResource ¶
NewImageDefinitionResource is a helper function to simplify the provider implementation.
func NewImageVersionDataSource ¶ added in v1.0.9
func NewImageVersionDataSource() datasource.DataSource
func NewImageVersionResource ¶
NewImageVersionResource is a helper function to simplify the provider implementation.
Types ¶
type AzureImageDefinitionModel ¶
type AzureImageDefinitionModel struct { ResourceGroup types.String `tfsdk:"resource_group"` // Optional, If not specified, create new resource group, cannot use existing image gallery UseImageGallery types.Bool `tfsdk:"use_image_gallery"` ImageGalleryName types.String `tfsdk:"image_gallery_name"` }
func (AzureImageDefinitionModel) GetAttributes ¶
func (AzureImageDefinitionModel) GetAttributes() map[string]schema.Attribute
func (AzureImageDefinitionModel) GetDataSourceAttributes ¶
func (AzureImageDefinitionModel) GetDataSourceAttributes() map[string]schema.Attribute
func (AzureImageDefinitionModel) GetDataSourceSchema ¶
func (AzureImageDefinitionModel) GetDataSourceSchema() schema.SingleNestedAttribute
func (AzureImageDefinitionModel) GetSchema ¶
func (AzureImageDefinitionModel) GetSchema() schema.SingleNestedAttribute
type AzureImageSpecsDataSourceModel ¶ added in v1.0.9
type AzureImageSpecsDataSourceModel struct { // Required Attributes ServiceOffering types.String `tfsdk:"service_offering"` LicenseType types.String `tfsdk:"license_type"` StorageType types.String `tfsdk:"storage_type"` // Optional Attributes MachineProfile types.Object `tfsdk:"machine_profile"` DiskEncryptionSet types.Object `tfsdk:"disk_encryption_set"` }
func (AzureImageSpecsDataSourceModel) GetDataSourceAttributes ¶ added in v1.0.9
func (AzureImageSpecsDataSourceModel) GetDataSourceAttributes() map[string]schema.Attribute
func (AzureImageSpecsDataSourceModel) GetDataSourceSchema ¶ added in v1.0.9
func (AzureImageSpecsDataSourceModel) GetDataSourceSchema() schema.SingleNestedAttribute
type AzureImageSpecsModel ¶
type AzureImageSpecsModel struct { // Required Attributes ServiceOffering types.String `tfsdk:"service_offering"` LicenseType types.String `tfsdk:"license_type"` StorageType types.String `tfsdk:"storage_type"` // Optional Attributes MachineProfile types.Object `tfsdk:"machine_profile"` DiskEncryptionSet types.Object `tfsdk:"disk_encryption_set"` NetworkMapping types.List `tfsdk:"network_mapping"` // List[NetworkMappingModel] // Master Image Attributes ResourceGroup types.String `tfsdk:"resource_group"` MasterImage types.String `tfsdk:"master_image"` GalleryImage types.Object `tfsdk:"gallery_image"` }
func ParseMasterImageToAzureImageModel ¶
func ParseMasterImageToAzureImageModel(ctx context.Context, diagnostics *diag.Diagnostics, azureImageSpecs AzureImageSpecsModel, masterImage citrixorchestration.HypervisorResourceRefResponseModel) AzureImageSpecsModel
func (AzureImageSpecsModel) GetAttributes ¶
func (AzureImageSpecsModel) GetAttributes() map[string]schema.Attribute
func (AzureImageSpecsModel) GetSchema ¶
func (AzureImageSpecsModel) GetSchema() schema.SingleNestedAttribute
type ImageDefinitionDataSource ¶
type ImageDefinitionDataSource struct {
// contains filtered or unexported fields
}
func (*ImageDefinitionDataSource) Configure ¶
func (d *ImageDefinitionDataSource) Configure(ctx context.Context, req datasource.ConfigureRequest, resp *datasource.ConfigureResponse)
func (*ImageDefinitionDataSource) Metadata ¶
func (d *ImageDefinitionDataSource) Metadata(_ context.Context, req datasource.MetadataRequest, resp *datasource.MetadataResponse)
func (*ImageDefinitionDataSource) Read ¶
func (d *ImageDefinitionDataSource) Read(ctx context.Context, req datasource.ReadRequest, resp *datasource.ReadResponse)
func (*ImageDefinitionDataSource) Schema ¶
func (d *ImageDefinitionDataSource) Schema(_ context.Context, _ datasource.SchemaRequest, resp *datasource.SchemaResponse)
type ImageDefinitionModel ¶
type ImageDefinitionModel struct { Id types.String `tfsdk:"id"` Name types.String `tfsdk:"name"` Description types.String `tfsdk:"description"` OsType types.String `tfsdk:"os_type"` SessionSupport types.String `tfsdk:"session_support"` Hypervisor types.String `tfsdk:"hypervisor"` AzureImageDefinitionModel types.Object `tfsdk:"azure_image_definition"` LatestVersion types.Int64 `tfsdk:"latest_version"` }
func (ImageDefinitionModel) GetAttributes ¶
func (ImageDefinitionModel) GetAttributes() map[string]schema.Attribute
func (ImageDefinitionModel) GetDataSourceAttributes ¶
func (ImageDefinitionModel) GetDataSourceAttributes() map[string]schema.Attribute
func (ImageDefinitionModel) GetDataSourceSchema ¶
func (ImageDefinitionModel) GetDataSourceSchema() schema.Schema
func (ImageDefinitionModel) GetSchema ¶
func (ImageDefinitionModel) GetSchema() schema.Schema
func (ImageDefinitionModel) RefreshPropertyValues ¶
func (r ImageDefinitionModel) RefreshPropertyValues(ctx context.Context, diagnostics *diag.Diagnostics, isResource bool, imageDefinition *citrixorchestration.ImageDefinitionResponseModel) ImageDefinitionModel
type ImageDefinitionResource ¶
type ImageDefinitionResource struct {
// contains filtered or unexported fields
}
ImageDefinitionResource is the resource implementation.
func (*ImageDefinitionResource) Configure ¶
func (r *ImageDefinitionResource) Configure(_ context.Context, req resource.ConfigureRequest, _ *resource.ConfigureResponse)
Configure adds the provider configured client to the data source.
func (*ImageDefinitionResource) Create ¶
func (r *ImageDefinitionResource) Create(ctx context.Context, req resource.CreateRequest, resp *resource.CreateResponse)
Create creates the resource and sets the initial Terraform state.
func (*ImageDefinitionResource) Delete ¶
func (r *ImageDefinitionResource) Delete(ctx context.Context, req resource.DeleteRequest, resp *resource.DeleteResponse)
Delete deletes the resource and removes the Terraform state on success.
func (*ImageDefinitionResource) ImportState ¶
func (r *ImageDefinitionResource) ImportState(ctx context.Context, req resource.ImportStateRequest, resp *resource.ImportStateResponse)
func (*ImageDefinitionResource) Metadata ¶
func (r *ImageDefinitionResource) Metadata(_ context.Context, req resource.MetadataRequest, resp *resource.MetadataResponse)
Metadata returns the data source type name.
func (*ImageDefinitionResource) ModifyPlan ¶
func (r *ImageDefinitionResource) ModifyPlan(ctx context.Context, req resource.ModifyPlanRequest, resp *resource.ModifyPlanResponse)
func (*ImageDefinitionResource) Read ¶
func (r *ImageDefinitionResource) Read(ctx context.Context, req resource.ReadRequest, resp *resource.ReadResponse)
Read refreshes the Terraform state with the latest data.
func (*ImageDefinitionResource) Schema ¶
func (r *ImageDefinitionResource) Schema(_ context.Context, _ resource.SchemaRequest, resp *resource.SchemaResponse)
Schema defines the schema for the data source.
func (*ImageDefinitionResource) Update ¶
func (r *ImageDefinitionResource) Update(ctx context.Context, req resource.UpdateRequest, resp *resource.UpdateResponse)
Update updates the resource and sets the updated Terraform state on success.
func (*ImageDefinitionResource) ValidateConfig ¶
func (r *ImageDefinitionResource) ValidateConfig(ctx context.Context, req resource.ValidateConfigRequest, resp *resource.ValidateConfigResponse)
type ImageVersionDataSource ¶ added in v1.0.9
type ImageVersionDataSource struct {
// contains filtered or unexported fields
}
func (*ImageVersionDataSource) Configure ¶ added in v1.0.9
func (d *ImageVersionDataSource) Configure(ctx context.Context, req datasource.ConfigureRequest, resp *datasource.ConfigureResponse)
func (*ImageVersionDataSource) Metadata ¶ added in v1.0.9
func (d *ImageVersionDataSource) Metadata(_ context.Context, req datasource.MetadataRequest, resp *datasource.MetadataResponse)
func (*ImageVersionDataSource) Read ¶ added in v1.0.9
func (d *ImageVersionDataSource) Read(ctx context.Context, req datasource.ReadRequest, resp *datasource.ReadResponse)
func (*ImageVersionDataSource) Schema ¶ added in v1.0.9
func (d *ImageVersionDataSource) Schema(_ context.Context, _ datasource.SchemaRequest, resp *datasource.SchemaResponse)
type ImageVersionModel ¶
type ImageVersionModel struct { // Computed Attributes Id types.String `tfsdk:"id"` VersionNumber types.Int32 `tfsdk:"version_number"` // Required Attributes ImageDefinition types.String `tfsdk:"image_definition"` Hypervisor types.String `tfsdk:"hypervisor"` ResourcePool types.String `tfsdk:"hypervisor_resource_pool"` // Optional Attributes Description types.String `tfsdk:"description"` AzureImageSpecs types.Object `tfsdk:"azure_image_specs"` SessionSupport types.String `tfsdk:"session_support"` OsType types.String `tfsdk:"os_type"` }
func (ImageVersionModel) GetAttributes ¶
func (ImageVersionModel) GetAttributes() map[string]schema.Attribute
func (ImageVersionModel) GetDataSourceAttributes ¶ added in v1.0.9
func (ImageVersionModel) GetDataSourceAttributes() map[string]schema.Attribute
func (ImageVersionModel) GetDataSourceSchema ¶ added in v1.0.9
func (ImageVersionModel) GetDataSourceSchema() schema.Schema
func (ImageVersionModel) GetSchema ¶
func (ImageVersionModel) GetSchema() schema.Schema
func (ImageVersionModel) RefreshDataSourcePropertyValues ¶ added in v1.0.9
func (r ImageVersionModel) RefreshDataSourcePropertyValues(ctx context.Context, diagnostics *diag.Diagnostics, imageVersion *citrixorchestration.ImageVersionResponseModel) ImageVersionModel
func (ImageVersionModel) RefreshImageVersionBaseProperties ¶ added in v1.0.9
func (r ImageVersionModel) RefreshImageVersionBaseProperties(ctx context.Context, diagnostics *diag.Diagnostics, imageVersion *citrixorchestration.ImageVersionResponseModel) (ImageVersionModel, citrixorchestration.ImageVersionSpecResponseModel, bool)
func (ImageVersionModel) RefreshPropertyValues ¶
func (r ImageVersionModel) RefreshPropertyValues(ctx context.Context, diagnostics *diag.Diagnostics, imageVersion *citrixorchestration.ImageVersionResponseModel) ImageVersionModel
type ImageVersionResource ¶
type ImageVersionResource struct {
// contains filtered or unexported fields
}
ImageDefinitionResource is the resource implementation.
func (*ImageVersionResource) Configure ¶
func (r *ImageVersionResource) Configure(_ context.Context, req resource.ConfigureRequest, _ *resource.ConfigureResponse)
Configure adds the provider configured client to the data source.
func (*ImageVersionResource) Create ¶
func (r *ImageVersionResource) Create(ctx context.Context, req resource.CreateRequest, resp *resource.CreateResponse)
Create implements resource.Resource.
func (*ImageVersionResource) Delete ¶
func (r *ImageVersionResource) Delete(ctx context.Context, req resource.DeleteRequest, resp *resource.DeleteResponse)
Delete implements resource.Resource.
func (*ImageVersionResource) ImportState ¶
func (r *ImageVersionResource) ImportState(ctx context.Context, req resource.ImportStateRequest, resp *resource.ImportStateResponse)
ImportState implements resource.ResourceWithImportState.
func (*ImageVersionResource) Metadata ¶
func (r *ImageVersionResource) Metadata(_ context.Context, req resource.MetadataRequest, resp *resource.MetadataResponse)
Metadata returns the data source type name.
func (*ImageVersionResource) ModifyPlan ¶
func (r *ImageVersionResource) ModifyPlan(ctx context.Context, req resource.ModifyPlanRequest, resp *resource.ModifyPlanResponse)
func (*ImageVersionResource) Read ¶
func (r *ImageVersionResource) Read(ctx context.Context, req resource.ReadRequest, resp *resource.ReadResponse)
Read implements resource.Resource.
func (*ImageVersionResource) Schema ¶
func (r *ImageVersionResource) Schema(_ context.Context, _ resource.SchemaRequest, resp *resource.SchemaResponse)
Schema defines the schema for the data source.
func (*ImageVersionResource) Update ¶
func (r *ImageVersionResource) Update(ctx context.Context, req resource.UpdateRequest, resp *resource.UpdateResponse)
Update implements resource.Resource.
func (*ImageVersionResource) ValidateConfig ¶
func (r *ImageVersionResource) ValidateConfig(ctx context.Context, req resource.ValidateConfigRequest, resp *resource.ValidateConfigResponse)