managed

package
v1.0.24 Latest Latest
Warning

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

Go to latest
Published: Mar 20, 2025 License: Apache-2.0 Imports: 29 Imported by: 0

Documentation

Overview

* Copyright © 2022-present Yugabyte, Inc. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0

* Copyright © 2022-present Yugabyte, Inc. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0

* Copyright © 2022-present Yugabyte, Inc. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0

* Copyright © 2022-present Yugabyte, Inc. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0

* Copyright © 2022-present Yugabyte, Inc. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0

* Copyright © 2022-present Yugabyte, Inc. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0

* Copyright © 2022-present Yugabyte, Inc. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0

* Copyright © 2022-present Yugabyte, Inc. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0

* Copyright © 2022-present Yugabyte, Inc. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0

* Copyright © 2022-present Yugabyte, Inc. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0

* Copyright © 2022-present Yugabyte, Inc. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0

* Copyright © 2022-present Yugabyte, Inc. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0

* Copyright © 2022-present Yugabyte, Inc. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0

* Copyright © 2022-present Yugabyte, Inc. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0

* Copyright © 2022-present Yugabyte, Inc. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0

* Copyright © 2022-present Yugabyte, Inc. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0

* Copyright © 2022-present Yugabyte, Inc. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0

* Copyright © 2022-present Yugabyte, Inc. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0

* Copyright © 2022-present Yugabyte, Inc. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0

* Copyright © 2022-present Yugabyte, Inc. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0

* Copyright © 2022-present Yugabyte, Inc. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0

* Copyright © 2022-present Yugabyte, Inc. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0

* Copyright © 2022-present Yugabyte, Inc. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0

Index

Constants

This section is empty.

Variables

View Source
var ErrFailedTask = errors.New("the task failed")

Use to differentiate errors

Functions

func EditBackupSchedule

func EditBackupSchedule(ctx context.Context, backupScheduleStruct BackupScheduleInfo, scheduleId string, backupDes string, accountId string, projectId string, clusterId string, apiClient *openapiclient.APIClient) error

func GetApiErrorDetails added in v1.0.6

func GetApiErrorDetails(err error) string

GetApiErrorDetails will return the api Error message if present If not present will return the original err.Error()

func GetClusterByNameorID added in v1.0.10

func GetClusterByNameorID(accountId string, projectId string, clusterID string, clusterName string, apiClient *openapiclient.APIClient) (*openapiclient.ClusterData, error)

func GetConfigByNameorID added in v1.0.10

func GetConfigByNameorID(accountId string, projectId string, configID string, configName string, apiClient *openapiclient.APIClient) (*openapiclient.MetricsExporterConfigurationData, error)

func GetDbAuditYsqlLogSettings added in v1.0.21

func GetDbAuditYsqlLogSettings(plan DbAuditLoggingConfig) (*openapiclient.DbAuditYsqlLogSettings, error)

func GetIntegrationByID added in v1.0.22

func GetIntegrationByID(accountId string, projectId string, integrationId string, apiClient *openapiclient.APIClient) (*openapiclient.TelemetryProviderData, error)

func GetIntegrationDataByName added in v1.0.22

func GetIntegrationDataByName(ctx context.Context, apiClient *openapiclient.APIClient, accountId string, projectId string, integrationName string) (*openapiclient.TelemetryProviderData, error)

func GetKeyTimeConversionMap added in v1.0.8

func GetKeyTimeConversionMap() map[string]int

func GetNamespaceTypeMap added in v1.0.23

func GetNamespaceTypeMap() map[string]string

func GetTelemetryProviderById added in v1.0.21

func GetTelemetryProviderById(accountId string, projectId string, configID string, apiClient *openapiclient.APIClient) (*openapiclient.TelemetryProviderData, error)

func GetTelemetryProviderByName added in v1.0.22

func GetTelemetryProviderByName(accountId string, projectId string, configName string, apiClient *openapiclient.APIClient) (*openapiclient.TelemetryProviderData, error)

func New

func New(version string) func() tfsdk.Provider

Types

type AWSCMKSpec added in v1.0.3

type AWSCMKSpec struct {
	AccessKey types.String   `tfsdk:"access_key"`
	SecretKey types.String   `tfsdk:"secret_key"`
	ARNList   []types.String `tfsdk:"arn_list"`
}

type AllowList

type AllowList struct {
	AccountID            types.String   `tfsdk:"account_id"`
	ProjectID            types.String   `tfsdk:"project_id"`
	AllowListID          types.String   `tfsdk:"allow_list_id"`
	AllowListName        types.String   `tfsdk:"allow_list_name"`
	AllowListDescription types.String   `tfsdk:"allow_list_description"`
	CIDRList             []types.String `tfsdk:"cidr_list"`
	ClusterIDs           []types.String `tfsdk:"cluster_ids"`
}

type ApiKey added in v1.0.8

type ApiKey struct {
	AccountID    types.String   `tfsdk:"account_id"`
	ProjectID    types.String   `tfsdk:"project_id"`
	Name         types.String   `tfsdk:"name"`
	ApiKey       types.String   `tfsdk:"api_key"`
	Duration     types.Int64    `tfsdk:"duration"`
	Unit         types.String   `tfsdk:"unit"`
	Description  types.String   `tfsdk:"description"`
	RoleName     types.String   `tfsdk:"role_name"`
	AllowListIDs []types.String `tfsdk:"allow_list_ids"`
	Status       types.String   `tfsdk:"status"`
	ApiKeyID     types.String   `tfsdk:"api_key_id"`
	Issuer       types.String   `tfsdk:"issuer"`
	LastUsed     types.String   `tfsdk:"last_used"`
	ExpiryTime   types.String   `tfsdk:"expiration"`
	CreatedAt    types.String   `tfsdk:"date_created"`
}

type ApplicationVPCInfo

type ApplicationVPCInfo struct {
	Cloud     types.String `tfsdk:"cloud"`
	Project   types.String `tfsdk:"project"`
	AccountID types.String `tfsdk:"account_id"`
	Region    types.String `tfsdk:"region"`
	VPCID     types.String `tfsdk:"vpc_id"`
	CIDR      types.String `tfsdk:"cidr"`
}

type AssociateMetricsExporterCluster added in v1.0.10

type AssociateMetricsExporterCluster struct {
	AccountID   types.String `tfsdk:"account_id"`
	ProjectID   types.String `tfsdk:"project_id"`
	ConfigID    types.String `tfsdk:"config_id"`
	ConfigName  types.String `tfsdk:"config_name"`
	ClusterID   types.String `tfsdk:"cluster_id"`
	ClusterName types.String `tfsdk:"cluster_name"`
}

type AzureCMKSpec added in v1.0.16

type AzureCMKSpec struct {
	ClientID     types.String `tfsdk:"client_id"`
	ClientSecret types.String `tfsdk:"client_secret"`
	TenantID     types.String `tfsdk:"tenant_id"`
	KeyVaultUri  types.String `tfsdk:"key_vault_uri"`
	KeyName      types.String `tfsdk:"key_name"`
}

type Backup

type Backup struct {
	AccountID             types.String `tfsdk:"account_id"`
	ProjectID             types.String `tfsdk:"project_id"`
	ClusterID             types.String `tfsdk:"cluster_id"`
	BackupID              types.String `tfsdk:"backup_id"`
	BackupDescription     types.String `tfsdk:"backup_description"`
	RetentionPeriodInDays types.Int64  `tfsdk:"retention_period_in_days"`
	MostRecent            types.Bool   `tfsdk:"most_recent"`
	Timestamp             types.String `tfsdk:"timestamp"`
}

type BackupScheduleInfo

type BackupScheduleInfo struct {
	State                     types.String `tfsdk:"state"`
	RetentionPeriodInDays     types.Int64  `tfsdk:"retention_period_in_days"`
	ScheduleID                types.String `tfsdk:"schedule_id"`
	BackupDescription         types.String `tfsdk:"backup_description"`
	CronExpression            types.String `tfsdk:"cron_expression"`
	TimeIntervalInDays        types.Int64  `tfsdk:"time_interval_in_days"`
	IncrementalIntervalInMins types.Int64  `tfsdk:"incremental_interval_in_mins"`
}

type CMKSpec added in v1.0.3

type CMKSpec struct {
	ProviderType types.String  `tfsdk:"provider_type"`
	AWSCMKSpec   *AWSCMKSpec   `tfsdk:"aws_cmk_spec"`
	GCPCMKSpec   *GCPCMKSpec   `tfsdk:"gcp_cmk_spec"`
	AzureCMKSpec *AzureCMKSpec `tfsdk:"azure_cmk_spec"`
	IsEnabled    types.Bool    `tfsdk:"is_enabled"`
}

type Cluster

type Cluster struct {
	AccountID                     types.String         `tfsdk:"account_id"`
	ProjectID                     types.String         `tfsdk:"project_id"`
	ClusterID                     types.String         `tfsdk:"cluster_id"`
	ClusterName                   types.String         `tfsdk:"cluster_name"`
	CloudType                     types.String         `tfsdk:"cloud_type"`
	ClusterType                   types.String         `tfsdk:"cluster_type"`
	FaultTolerance                types.String         `tfsdk:"fault_tolerance"`
	NumFaultsToTolerate           types.Int64          `tfsdk:"num_faults_to_tolerate"`
	ClusterRegionInfo             []RegionInfo         `tfsdk:"cluster_region_info"`
	DatabaseTrack                 types.String         `tfsdk:"database_track"`
	DesiredState                  types.String         `tfsdk:"desired_state"`
	DesiredConnectionPoolingState types.String         `tfsdk:"desired_connection_pooling_state"`
	ClusterTier                   types.String         `tfsdk:"cluster_tier"`
	ClusterAllowListIDs           []types.String       `tfsdk:"cluster_allow_list_ids"`
	RestoreBackupID               types.String         `tfsdk:"restore_backup_id"`
	NodeConfig                    *NodeConfig          `tfsdk:"node_config"`
	Credentials                   Credentials          `tfsdk:"credentials"`
	ClusterInfo                   ClusterInfo          `tfsdk:"cluster_info"`
	ClusterVersion                types.String         `tfsdk:"cluster_version"`
	BackupSchedules               []BackupScheduleInfo `tfsdk:"backup_schedules"`
	ClusterEndpoints              types.Map            `tfsdk:"cluster_endpoints"`
	ClusterEndpointsV2            []ClusterEndpoint    `tfsdk:"endpoints"`
	ClusterCertificate            types.String         `tfsdk:"cluster_certificate"`
	CMKSpec                       *CMKSpec             `tfsdk:"cmk_spec"`
}

type ClusterEndpoint added in v1.0.13

type ClusterEndpoint struct {
	AccessibilityType types.String `tfsdk:"accessibility_type"`
	Host              types.String `tfsdk:"host"`
	Region            types.String `tfsdk:"region"`
}

type ClusterInfo

type ClusterInfo struct {
	State           types.String `tfsdk:"state"`
	SoftwareVersion types.String `tfsdk:"software_version"`
	CreatedTime     types.String `tfsdk:"created_time"`
	UpdatedTime     types.String `tfsdk:"updated_time"`
}

type Credentials

type Credentials struct {
	Username     types.String `tfsdk:"username"`
	Password     types.String `tfsdk:"password"`
	YSQLUsername types.String `tfsdk:"ysql_username"`
	YSQLPassword types.String `tfsdk:"ysql_password"`
	YCQLUsername types.String `tfsdk:"ycql_username"`
	YCQLPassword types.String `tfsdk:"ycql_password"`
}

type DataDogSpec added in v1.0.10

type DataDogSpec struct {
	Site   types.String `tfsdk:"site"`
	ApiKey types.String `tfsdk:"api_key"`
}

func (DataDogSpec) EncryptedKey added in v1.0.10

func (d DataDogSpec) EncryptedKey() string

type DbAuditLoggingConfig added in v1.0.22

type DbAuditLoggingConfig struct {
	AccountID       types.String `tfsdk:"account_id"`
	ProjectID       types.String `tfsdk:"project_id"`
	ClusterID       types.String `tfsdk:"cluster_id"`
	ClusterName     types.String `tfsdk:"cluster_name"`
	IntegrationId   types.String `tfsdk:"integration_id"`
	IntegrationName types.String `tfsdk:"integration_name"`
	YsqlConfig      *YsqlConfig  `tfsdk:"ysql_config"`
	State           types.String `tfsdk:"state"`
	ConfigID        types.String `tfsdk:"config_id"`
}

type DbQueryLoggingConfig added in v1.0.22

type DbQueryLoggingConfig struct {
	AccountID       types.String `tfsdk:"account_id"`
	ProjectID       types.String `tfsdk:"project_id"`
	ClusterID       types.String `tfsdk:"cluster_id"`
	IntegrationName types.String `tfsdk:"integration_name"`
	State           types.String `tfsdk:"state"`
	ConfigID        types.String `tfsdk:"config_id"`
	LogConfig       *LogConfig   `tfsdk:"log_config"`
}

type DrConfig added in v1.0.23

type DrConfig struct {
	AccountId       types.String   `tfsdk:"account_id"`
	ProjectId       types.String   `tfsdk:"project_id"`
	DrConfigId      types.String   `tfsdk:"dr_config_id"`
	Name            types.String   `tfsdk:"name"`
	SourceClusterId types.String   `tfsdk:"source_cluster_id"`
	TargetClusterId types.String   `tfsdk:"target_cluster_id"`
	Databases       []types.String `tfsdk:"databases"`
}

type GCPCMKSpec added in v1.0.3

type GCPCMKSpec struct {
	KeyRingName       types.String      `tfsdk:"key_ring_name"`
	KeyName           types.String      `tfsdk:"key_name"`
	Location          types.String      `tfsdk:"location"`
	ProtectionLevel   types.String      `tfsdk:"protection_level"`
	GcpServiceAccount GCPServiceAccount `tfsdk:"gcp_service_account"`
}

type GCPServiceAccount added in v1.0.3

type GCPServiceAccount struct {
	Type                    types.String `tfsdk:"type"`
	ProjectId               types.String `tfsdk:"project_id"`
	PrivateKey              types.String `tfsdk:"private_key"`
	PrivateKeyId            types.String `tfsdk:"private_key_id"`
	ClientEmail             types.String `tfsdk:"client_email"`
	ClientId                types.String `tfsdk:"client_id"`
	AuthUri                 types.String `tfsdk:"auth_uri"`
	TokenUri                types.String `tfsdk:"token_uri"`
	AuthProviderX509CertUrl types.String `tfsdk:"auth_provider_x509_cert_url"`
	ClientX509CertUrl       types.String `tfsdk:"client_x509_cert_url"`
	UniverseDomain          types.String `tfsdk:"universe_domain"`
}

type GrafanaSpec added in v1.0.10

type GrafanaSpec struct {
	AccessTokenPolicy types.String `tfsdk:"access_policy_token"`
	Zone              types.String `tfsdk:"zone"`
	InstanceId        types.String `tfsdk:"instance_id"`
	OrgSlug           types.String `tfsdk:"org_slug"`
}

func (GrafanaSpec) EncryptedKey added in v1.0.10

func (g GrafanaSpec) EncryptedKey() string

type LogConfig added in v1.0.22

type LogConfig struct {
	LogMinDurationStatement types.Int64  `tfsdk:"log_min_duration_statement"`
	DebugPrintPlan          types.Bool   `tfsdk:"debug_print_plan"`
	LogConnections          types.Bool   `tfsdk:"log_connections"`
	LogDisconnections       types.Bool   `tfsdk:"log_disconnections"`
	LogDuration             types.Bool   `tfsdk:"log_duration"`
	LogErrorVerbosity       types.String `tfsdk:"log_error_verbosity"`
	LogStatement            types.String `tfsdk:"log_statement"`
	LogMinErrorStatement    types.String `tfsdk:"log_min_error_statement"`
	LogLinePrefix           types.String `tfsdk:"log_line_prefix"`
}

type LogSettings added in v1.0.21

type LogSettings struct {
	LogCatalog       types.Bool   `tfsdk:"log_catalog"`
	LogClient        types.Bool   `tfsdk:"log_client"`
	LogLevel         types.String `tfsdk:"log_level"`
	LogParameter     types.Bool   `tfsdk:"log_parameter"`
	LogRelation      types.Bool   `tfsdk:"log_relation"`
	LogStatementOnce types.Bool   `tfsdk:"log_statement_once"`
}

type MetricsExporter added in v1.0.10

type MetricsExporter struct {
	AccountID     types.String   `tfsdk:"account_id"`
	ProjectID     types.String   `tfsdk:"project_id"`
	ConfigID      types.String   `tfsdk:"config_id"`
	ConfigName    types.String   `tfsdk:"config_name"`
	Type          types.String   `tfsdk:"type"`
	DataDogSpec   *DataDogSpec   `tfsdk:"datadog_spec"`
	GrafanaSpec   *GrafanaSpec   `tfsdk:"grafana_spec"`
	SumoLogicSpec *SumoLogicSpec `tfsdk:"sumologic_spec"`
}

type NodeConfig

type NodeConfig struct {
	NumCores   types.Int64 `tfsdk:"num_cores"`
	DiskSizeGb types.Int64 `tfsdk:"disk_size_gb"`
	DiskIops   types.Int64 `tfsdk:"disk_iops"`
}

type PermissionInfo added in v1.0.5

type PermissionInfo struct {
	ResourceType    types.String   `tfsdk:"resource_type"`
	OperationGroups []types.String `tfsdk:"operation_groups"`
}

type PitrClone added in v1.0.23

type PitrClone struct {
	AccountId         types.String `tfsdk:"account_id"`
	ProjectId         types.String `tfsdk:"project_id"`
	ClusterId         types.String `tfsdk:"cluster_id"`
	CloneNamespaceId  types.String `tfsdk:"clone_namespace_id"`
	CloneAs           types.String `tfsdk:"clone_as"`
	SourceNamespaceId types.String `tfsdk:"source_namespace_id"`
	NamespaceName     types.String `tfsdk:"namespace_name"`
	NamespaceType     types.String `tfsdk:"namespace_type"`
	CloneAtMillis     types.Int64  `tfsdk:"clone_at_millis"`
	State             types.String `tfsdk:"state"`
}

type PitrConfig added in v1.0.23

type PitrConfig struct {
	AccountId                  types.String `tfsdk:"account_id"`
	ProjectId                  types.String `tfsdk:"project_id"`
	ClusterId                  types.String `tfsdk:"cluster_id"`
	PitrConfigId               types.String `tfsdk:"pitr_config_id"`
	NamespaceId                types.String `tfsdk:"namespace_id"`
	NamespaceName              types.String `tfsdk:"namespace_name"`
	NamespaceType              types.String `tfsdk:"namespace_type"`
	RetentionPeriodInDays      types.Int64  `tfsdk:"retention_period_in_days"`
	State                      types.String `tfsdk:"state"`
	EarliestRecoveryTimeMillis types.Int64  `tfsdk:"earliest_recovery_time_millis"`
	LatestRecoveryTimeMillis   types.Int64  `tfsdk:"latest_recovery_time_millis"`
}

type PitrRestore added in v1.0.23

type PitrRestore struct {
	AccountId       types.String `tfsdk:"account_id"`
	ProjectId       types.String `tfsdk:"project_id"`
	ClusterId       types.String `tfsdk:"cluster_id"`
	PitrConfigId    types.String `tfsdk:"pitr_config_id"`
	PitrRestoreId   types.String `tfsdk:"pitr_restore_id"`
	RestoreAtMillis types.Int64  `tfsdk:"restore_at_millis"`
	State           types.String `tfsdk:"state"`
}

type PrivateServiceEndpoint added in v1.0.7

type PrivateServiceEndpoint struct {
	AccountID                types.String   `tfsdk:"account_id"`
	ProjectID                types.String   `tfsdk:"project_id"`
	ClusterID                types.String   `tfsdk:"cluster_id"`
	PrivateServiceEndpointID types.String   `tfsdk:"endpoint_id"`
	AvailabilityZones        []types.String `tfsdk:"availability_zones"`
	ServiceName              types.String   `tfsdk:"service_name"`
	ClusterRegionInfoId      types.String   `tfsdk:"cluster_region_info_id"`
	Region                   types.String   `tfsdk:"region"`
	SecurityPrincipals       []types.String `tfsdk:"security_principals"`
	Host                     types.String   `tfsdk:"host"`
	State                    types.String   `tfsdk:"state"`
}

type PrometheusSpec added in v1.0.22

type PrometheusSpec struct {
	Endpoint types.String `tfsdk:"endpoint"`
}

type ReadReplicaInfo

type ReadReplicaInfo struct {
	CloudType   types.String `tfsdk:"cloud_type"`
	NumNodes    types.Int64  `tfsdk:"num_nodes"`
	NumReplicas types.Int64  `tfsdk:"num_replicas"`
	Region      types.String `tfsdk:"region"`
	VPCID       types.String `tfsdk:"vpc_id"`
	VPCName     types.String `tfsdk:"vpc_name"`
	NodeConfig  NodeConfig   `tfsdk:"node_config"`
	MultiZone   types.Bool   `tfsdk:"multi_zone"`
	Endpoint    types.String `tfsdk:"endpoint"`
}

type ReadReplicas

type ReadReplicas struct {
	AccountID        types.String      `tfsdk:"account_id"`
	ProjectID        types.String      `tfsdk:"project_id"`
	ReadReplicasInfo []ReadReplicaInfo `tfsdk:"read_replicas_info"`
	PrimaryClusterID types.String      `tfsdk:"primary_cluster_id"`
}

type RegionInfo

type RegionInfo struct {
	Region       types.String `tfsdk:"region"`
	NumNodes     types.Int64  `tfsdk:"num_nodes"`
	NumCores     types.Int64  `tfsdk:"num_cores"`
	DiskSizeGb   types.Int64  `tfsdk:"disk_size_gb"`
	DiskIops     types.Int64  `tfsdk:"disk_iops"`
	VPCID        types.String `tfsdk:"vpc_id"`
	VPCName      types.String `tfsdk:"vpc_name"`
	PublicAccess types.Bool   `tfsdk:"public_access"`
	IsPreferred  types.Bool   `tfsdk:"is_preferred"`
	IsDefault    types.Bool   `tfsdk:"is_default"`
}

type Role added in v1.0.5

type Role struct {
	AccountID               types.String     `tfsdk:"account_id"`
	ProjectID               types.String     `tfsdk:"project_id"`
	RoleID                  types.String     `tfsdk:"role_id"`
	RoleName                types.String     `tfsdk:"role_name"`
	RoleDescription         types.String     `tfsdk:"role_description"`
	PermissionList          []PermissionInfo `tfsdk:"permission_list"`
	EffectivePermissionList []PermissionInfo `tfsdk:"effective_permission_list"`
	Users                   []types.String   `tfsdk:"users"`
	ApiKeys                 []types.String   `tfsdk:"api_keys"`
}

type SumoLogicSpec added in v1.0.18

type SumoLogicSpec struct {
	AccessKey         types.String `tfsdk:"access_key"`
	AccessId          types.String `tfsdk:"access_id"`
	InstallationToken types.String `tfsdk:"installation_token"`
}

func (SumoLogicSpec) EncryptedKey added in v1.0.18

func (s SumoLogicSpec) EncryptedKey(key string) string

type TelemetryProvider added in v1.0.21

type TelemetryProvider struct {
	AccountID           types.String         `tfsdk:"account_id"`
	ProjectID           types.String         `tfsdk:"project_id"`
	ConfigID            types.String         `tfsdk:"config_id"`
	ConfigName          types.String         `tfsdk:"config_name"`
	Type                types.String         `tfsdk:"type"`
	DataDogSpec         *DataDogSpec         `tfsdk:"datadog_spec"`
	PrometheusSpec      *PrometheusSpec      `tfsdk:"prometheus_spec"`
	VictoriaMetricsSpec *VictoriaMetricsSpec `tfsdk:"victoriametrics_spec"`
	GrafanaSpec         *GrafanaSpec         `tfsdk:"grafana_spec"`
	SumoLogicSpec       *SumoLogicSpec       `tfsdk:"sumologic_spec"`
	GoogleCloudSpec     *GCPServiceAccount   `tfsdk:"googlecloud_spec"`
	IsValid             types.Bool           `tfsdk:"is_valid"`
}

type User added in v1.0.5

type User struct {
	AccountID types.String `tfsdk:"account_id"`
	ProjectID types.String `tfsdk:"project_id"`
	Email     types.String `tfsdk:"email"`
	RoleName  types.String `tfsdk:"role_name"`
	UserName  types.String `tfsdk:"user_name"`
	UserState types.String `tfsdk:"user_state"`
	UserID    types.String `tfsdk:"user_id"`
}

type VPC

type VPC struct {
	AccountID      types.String    `tfsdk:"account_id"`
	ProjectID      types.String    `tfsdk:"project_id"`
	VPCID          types.String    `tfsdk:"vpc_id"`
	Name           types.String    `tfsdk:"name"`
	Cloud          types.String    `tfsdk:"cloud"`
	GlobalCIDR     types.String    `tfsdk:"global_cidr"`
	ExternalVPCID  types.String    `tfsdk:"external_vpc_id"`
	RegionCIDRInfo []VPCRegionInfo `tfsdk:"region_cidr_info"`
}

type VPCPeering

type VPCPeering struct {
	AccountID          types.String       `tfsdk:"account_id"`
	ProjectID          types.String       `tfsdk:"project_id"`
	Name               types.String       `tfsdk:"name"`
	VPCPeeringID       types.String       `tfsdk:"vpc_peering_id"`
	YugabyteDBVPCID    types.String       `tfsdk:"yugabytedb_vpc_id"`
	ApplicationVPCInfo ApplicationVPCInfo `tfsdk:"application_vpc_info"`
	VPCPeeringState    types.String       `tfsdk:"vpc_peering_state"`
}

type VPCRegionInfo

type VPCRegionInfo struct {
	Region types.String `tfsdk:"region"`
	CIDR   types.String `tfsdk:"cidr"`
}

type VictoriaMetricsSpec added in v1.0.22

type VictoriaMetricsSpec struct {
	Endpoint types.String `tfsdk:"endpoint"`
}

type YsqlConfig added in v1.0.21

type YsqlConfig struct {
	LogSettings      *LogSettings   `tfsdk:"log_settings"`
	StatementClasses []types.String `tfsdk:"statement_classes"`
}

Directories

Path Synopsis
* Copyright © 2022-present Yugabyte, Inc.
* Copyright © 2022-present Yugabyte, Inc.

Jump to

Keyboard shortcuts

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