image_definition

package
v1.0.9 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 13, 2025 License: Apache-2.0 Imports: 27 Imported by: 0

Documentation

Overview

Copyright © 2024. Citrix Systems, Inc.

Copyright © 2024. Citrix Systems, Inc.

Copyright © 2024. Citrix Systems, Inc.

Index

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

func NewImageDefinitionResource() resource.Resource

NewImageDefinitionResource is a helper function to simplify the provider implementation.

func NewImageVersionDataSource added in v1.0.9

func NewImageVersionDataSource() datasource.DataSource

func NewImageVersionResource

func NewImageVersionResource() resource.Resource

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) GetSchema

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

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"`
	SharedSubscription types.String `tfsdk:"shared_subscription"`
	MasterImage        types.String `tfsdk:"master_image"`
	GalleryImage       types.Object `tfsdk:"gallery_image"`
}

func (AzureImageSpecsModel) GetAttributes

func (AzureImageSpecsModel) GetAttributes() map[string]schema.Attribute

func (AzureImageSpecsModel) GetSchema

type ImageDefinitionDataSource

type ImageDefinitionDataSource struct {
	// contains filtered or unexported fields
}

func (*ImageDefinitionDataSource) Configure

func (*ImageDefinitionDataSource) Metadata

func (*ImageDefinitionDataSource) Read

func (*ImageDefinitionDataSource) Schema

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

Configure adds the provider configured client to the data source.

func (*ImageDefinitionResource) Create

Create creates the resource and sets the initial Terraform state.

func (*ImageDefinitionResource) Delete

Delete deletes the resource and removes the Terraform state on success.

func (*ImageDefinitionResource) ImportState

func (*ImageDefinitionResource) Metadata

Metadata returns the data source type name.

func (*ImageDefinitionResource) ModifyPlan

func (*ImageDefinitionResource) Read

Read refreshes the Terraform state with the latest data.

func (*ImageDefinitionResource) Schema

Schema defines the schema for the data source.

func (*ImageDefinitionResource) Update

Update updates the resource and sets the updated Terraform state on success.

func (*ImageDefinitionResource) ValidateConfig

type ImageVersionDataSource added in v1.0.9

type ImageVersionDataSource struct {
	// contains filtered or unexported fields
}

func (*ImageVersionDataSource) Configure added in v1.0.9

func (*ImageVersionDataSource) Metadata added in v1.0.9

func (*ImageVersionDataSource) Read added in v1.0.9

func (*ImageVersionDataSource) Schema added in v1.0.9

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 (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

Configure adds the provider configured client to the data source.

func (*ImageVersionResource) Create

Create implements resource.Resource.

func (*ImageVersionResource) Delete

Delete implements resource.Resource.

func (*ImageVersionResource) ImportState

ImportState implements resource.ResourceWithImportState.

func (*ImageVersionResource) Metadata

Metadata returns the data source type name.

func (*ImageVersionResource) ModifyPlan

func (*ImageVersionResource) Read

Read implements resource.Resource.

func (*ImageVersionResource) Schema

Schema defines the schema for the data source.

func (*ImageVersionResource) Update

Update implements resource.Resource.

func (*ImageVersionResource) ValidateConfig

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL