v2

package
v0.12.1 Latest Latest
Warning

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

Go to latest
Published: Sep 27, 2024 License: Apache-2.0 Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ApmConfigSchema

func ApmConfigSchema() schema.Attribute

func ApmPayload

func ApmPayload(ctx context.Context, apmObj types.Object, updateResources *models.DeploymentUpdateResources) (*models.ApmPayload, diag.Diagnostics)

func ApmSchema

func ApmSchema() schema.Attribute

func CheckAvailableMigration added in v0.10.0

func CheckAvailableMigration(ctx context.Context, plan types.Object, state types.Object) (bool, diag.Diagnostics)

func IsApmStopped

func IsApmStopped(res *models.ApmResourceInfo) bool

IsApmStopped returns true if the resource is stopped.

func SetLatestInstanceConfigInfo added in v0.10.0

func SetLatestInstanceConfigInfo(currentTopology *Apm, latestTopology *models.ApmTopologyElement)

func SetLatestInstanceConfigInfoToCurrent added in v0.10.0

func SetLatestInstanceConfigInfoToCurrent(topology *Apm)

Types

type Apm

type Apm struct {
	ElasticsearchClusterRefId          *string    `tfsdk:"elasticsearch_cluster_ref_id"`
	RefId                              *string    `tfsdk:"ref_id"`
	ResourceId                         *string    `tfsdk:"resource_id"`
	Region                             *string    `tfsdk:"region"`
	HttpEndpoint                       *string    `tfsdk:"http_endpoint"`
	HttpsEndpoint                      *string    `tfsdk:"https_endpoint"`
	InstanceConfigurationId            *string    `tfsdk:"instance_configuration_id"`
	LatestInstanceConfigurationId      *string    `tfsdk:"latest_instance_configuration_id"`
	InstanceConfigurationVersion       *int       `tfsdk:"instance_configuration_version"`
	LatestInstanceConfigurationVersion *int       `tfsdk:"latest_instance_configuration_version"`
	Size                               *string    `tfsdk:"size"`
	SizeResource                       *string    `tfsdk:"size_resource"`
	ZoneCount                          int        `tfsdk:"zone_count"`
	Config                             *ApmConfig `tfsdk:"config"`
}

func ReadApm

func ReadApm(in *models.ApmResourceInfo) (*Apm, error)

func ReadApms

func ReadApms(in []*models.ApmResourceInfo) (*Apm, error)

type ApmConfig

type ApmConfig = v1.ApmConfig

type ApmTF

type ApmTF struct {
	ElasticsearchClusterRefId          types.String `tfsdk:"elasticsearch_cluster_ref_id"`
	RefId                              types.String `tfsdk:"ref_id"`
	ResourceId                         types.String `tfsdk:"resource_id"`
	Region                             types.String `tfsdk:"region"`
	HttpEndpoint                       types.String `tfsdk:"http_endpoint"`
	HttpsEndpoint                      types.String `tfsdk:"https_endpoint"`
	InstanceConfigurationId            types.String `tfsdk:"instance_configuration_id"`
	LatestInstanceConfigurationId      types.String `tfsdk:"latest_instance_configuration_id"`
	InstanceConfigurationVersion       types.Int64  `tfsdk:"instance_configuration_version"`
	LatestInstanceConfigurationVersion types.Int64  `tfsdk:"latest_instance_configuration_version"`
	Size                               types.String `tfsdk:"size"`
	SizeResource                       types.String `tfsdk:"size_resource"`
	ZoneCount                          types.Int64  `tfsdk:"zone_count"`
	Config                             types.Object `tfsdk:"config"`
}

Jump to

Keyboard shortcuts

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