v2

package
v0.12.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DeploymentSchema

func DeploymentSchema() schema.Schema

func HandleRemoteClusters

func HandleRemoteClusters(ctx context.Context, client *api.API, deploymentId string, esObj types.Object) diag.Diagnostics

func UseNullUnlessAddingAPMOrIntegrationsServer added in v0.9.0

func UseNullUnlessAddingAPMOrIntegrationsServer() planmodifier.String

Types

type Deployment

type Deployment struct {
	Id                         string                                   `tfsdk:"id"`
	Alias                      string                                   `tfsdk:"alias"`
	Version                    string                                   `tfsdk:"version"`
	Region                     string                                   `tfsdk:"region"`
	DeploymentTemplateId       string                                   `tfsdk:"deployment_template_id"`
	Name                       string                                   `tfsdk:"name"`
	RequestId                  string                                   `tfsdk:"request_id"`
	ElasticsearchUsername      string                                   `tfsdk:"elasticsearch_username"`
	ElasticsearchPassword      string                                   `tfsdk:"elasticsearch_password"`
	ApmSecretToken             *string                                  `tfsdk:"apm_secret_token"`
	TrafficFilter              []string                                 `tfsdk:"traffic_filter"`
	Tags                       map[string]string                        `tfsdk:"tags"`
	Elasticsearch              *elasticsearchv2.Elasticsearch           `tfsdk:"elasticsearch"`
	Kibana                     *kibanav2.Kibana                         `tfsdk:"kibana"`
	Apm                        *apmv2.Apm                               `tfsdk:"apm"`
	IntegrationsServer         *integrationsserverv2.IntegrationsServer `tfsdk:"integrations_server"`
	EnterpriseSearch           *enterprisesearchv2.EnterpriseSearch     `tfsdk:"enterprise_search"`
	Observability              *observabilityv2.Observability           `tfsdk:"observability"`
	ResetElasticsearchPassword *bool                                    `tfsdk:"reset_elasticsearch_password"`
	MigrateToLatestHardware    *bool                                    `tfsdk:"migrate_to_latest_hardware"`
}

func ReadDeployment

func ReadDeployment(res *models.DeploymentGetResponse, remotes *models.RemoteResources, deploymentResources []*models.DeploymentResource) (*Deployment, error)

func (*Deployment) HasNodeTypes added in v0.10.0

func (dep *Deployment) HasNodeTypes() bool

func (*Deployment) IncludePrivateStateTrafficFilters added in v0.8.0

func (dep *Deployment) IncludePrivateStateTrafficFilters(ctx context.Context, base DeploymentTF, privateFilters []string) diag.Diagnostics

func (*Deployment) NullifyUnusedEsTopologies

func (dep *Deployment) NullifyUnusedEsTopologies(ctx context.Context, esPlan *elasticsearchv2.ElasticsearchTF)

Nullify Elasticsearch topologies that have zero size and are not specified in plan

func (*Deployment) PersistSnapshotSource added in v0.10.0

func (dep *Deployment) PersistSnapshotSource(ctx context.Context, esPlan *elasticsearchv2.ElasticsearchTF) diag.Diagnostics

func (*Deployment) ProcessSelfInObservability

func (dep *Deployment) ProcessSelfInObservability(ctx context.Context, base DeploymentTF) diag.Diagnostics

func (*Deployment) SetCredentialsIfEmpty

func (dep *Deployment) SetCredentialsIfEmpty(state *DeploymentTF)

func (*Deployment) SetLatestInstanceConfigInfo added in v0.10.0

func (dep *Deployment) SetLatestInstanceConfigInfo(migrateUpdateRequest *deployments.MigrateDeploymentTemplateOK)

SetLatestInstanceConfigInfo Sets latest instance_configuration_id and instance_configuration_version for each topology element, based on the migrate template request

func (*Deployment) SetLatestInstanceConfigInfoToCurrent added in v0.10.0

func (dep *Deployment) SetLatestInstanceConfigInfoToCurrent()

SetLatestInstanceConfigInfoToCurrent Sets latest instance_configuration_id and instance_configuration_version for each topology element, based on the current values

type DeploymentTF

type DeploymentTF struct {
	Id                         types.String `tfsdk:"id"`
	Alias                      types.String `tfsdk:"alias"`
	Version                    types.String `tfsdk:"version"`
	Region                     types.String `tfsdk:"region"`
	DeploymentTemplateId       types.String `tfsdk:"deployment_template_id"`
	Name                       types.String `tfsdk:"name"`
	RequestId                  types.String `tfsdk:"request_id"`
	ElasticsearchUsername      types.String `tfsdk:"elasticsearch_username"`
	ElasticsearchPassword      types.String `tfsdk:"elasticsearch_password"`
	ApmSecretToken             types.String `tfsdk:"apm_secret_token"`
	TrafficFilter              types.Set    `tfsdk:"traffic_filter"`
	Tags                       types.Map    `tfsdk:"tags"`
	Elasticsearch              types.Object `tfsdk:"elasticsearch"`
	Kibana                     types.Object `tfsdk:"kibana"`
	Apm                        types.Object `tfsdk:"apm"`
	IntegrationsServer         types.Object `tfsdk:"integrations_server"`
	EnterpriseSearch           types.Object `tfsdk:"enterprise_search"`
	Observability              types.Object `tfsdk:"observability"`
	ResetElasticsearchPassword types.Bool   `tfsdk:"reset_elasticsearch_password"`
	MigrateToLatestHardware    types.Bool   `tfsdk:"migrate_to_latest_hardware"`
}

func (DeploymentTF) CreateRequest

func (dep DeploymentTF) CreateRequest(ctx context.Context, client *api.API) (*models.DeploymentCreateRequest, diag.Diagnostics)

func (DeploymentTF) UpdateRequest

func (plan DeploymentTF) UpdateRequest(ctx context.Context, client *api.API, state DeploymentTF, migrateTemplateRequest *deployments.MigrateDeploymentTemplateOK) (*models.DeploymentUpdateRequest, diag.Diagnostics)

Jump to

Keyboard shortcuts

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