api

package
v1.2.1 Latest Latest
Warning

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

Go to latest
Published: Jan 6, 2025 License: MPL-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CloudProvider

type CloudProvider struct {
	CloudProviderId *string `json:"cloudProviderId" tfsdk:"cloud_provider_id"`
}

type ClusterArchitecture

type ClusterArchitecture struct {
	ClusterArchitectureId   string   `json:"clusterArchitectureId" tfsdk:"cluster_architecture_id"`
	ClusterArchitectureName *string  `json:"clusterArchitectureName,omitempty" tfsdk:"cluster_architecture_name"`
	Nodes                   float64  `json:"nodes" tfsdk:"nodes"`
	WitnessNodes            *float64 `json:"witnessNodes,omitempty" tfsdk:"witness_nodes"`
}

type ClusterConnection

type ClusterConnection string

func (*ClusterConnection) UnmarshalJSON

func (recv *ClusterConnection) UnmarshalJSON(d []byte) error

UnmarshalJSON to implement json.Unmarshaler for custom unmarshalling

type Condition

type Condition struct {
	ConditionStatus *string `json:"conditionStatus,omitempty" tfsdk:"condition_status"`
	Type_           *string `json:"type,omitempty" tfsdk:"type"`
}

type DataGroup

type DataGroup struct {
	GroupId               *string                   `json:"groupId,omitempty"`
	AllowedIpRanges       *[]models.AllowedIpRange  `json:"allowedIpRanges,omitempty"`
	BackupRetentionPeriod *string                   `json:"backupRetentionPeriod,omitempty"`
	ClusterArchitecture   *ClusterArchitecture      `json:"clusterArchitecture,omitempty"`
	ClusterName           *string                   `json:"clusterName,omitempty"`
	ClusterType           *string                   `json:"clusterType,omitempty"`
	Conditions            *[]Condition              `json:"conditions,omitempty"`
	Connection            *ClusterConnection        `json:"connection,omitempty"`
	CreatedAt             *PointInTime              `json:"createdAt,omitempty"`
	CspAuth               *bool                     `json:"cspAuth,omitempty"`
	InstanceType          *InstanceType             `json:"instanceType,omitempty"`
	LogsUrl               *string                   `json:"logsUrl,omitempty"`
	MetricsUrl            *string                   `json:"metricsUrl,omitempty"`
	PgConfig              *[]models.KeyValue        `json:"pgConfig,omitempty"`
	PgType                *PgType                   `json:"pgType,omitempty"`
	PgVersion             *PgVersion                `json:"pgVersion,omitempty"`
	Phase                 *string                   `json:"phase,omitempty"`
	PrivateNetworking     *bool                     `json:"privateNetworking,omitempty"`
	Provider              *CloudProvider            `json:"provider,omitempty"`
	Region                *Region                   `json:"region,omitempty"`
	ResizingPvc           *[]string                 `json:"resizingPvc,omitempty"`
	Storage               *models.Storage           `json:"storage,omitempty"`
	MaintenanceWindow     *models.MaintenanceWindow `json:"maintenanceWindow,omitempty"`
	ServiceAccountIds     *[]string                 `json:"serviceAccountIds,omitempty"`
	PeAllowedPrincipalIds *[]string                 `json:"peAllowedPrincipalIds,omitempty"`
	RoConnectionUri       *string                   `json:"roConnectionUri,omitempty"`
	ReadOnlyConnections   *bool                     `json:"readOnlyConnections,omitempty"`
	BackupScheduleTime    *string                   `json:"scheduleBackup,omitempty"`
	WalStorage            *models.Storage           `json:"walStorage,omitempty"`
}

type InstanceType

type InstanceType struct {
	InstanceTypeId string `json:"instanceTypeId" tfsdk:"instance_type_id"`
}

type PgType

type PgType struct {
	PgTypeId string `json:"pgTypeId" tfsdk:"pg_type_id"`
}

type PgVersion

type PgVersion struct {
	PgVersionId string `json:"pgVersionId" tfsdk:"pg_version_id"`
}

type PointInTime

type PointInTime string

func (*PointInTime) UnmarshalJSON

func (p *PointInTime) UnmarshalJSON(d []byte) error

UnmarshalJSON to implement json.Unmarshaler for custom unmarshalling

type Region

type Region struct {
	RegionId string `json:"regionId" tfsdk:"region_id"`
}

type WitnessGroup

type WitnessGroup struct {
	GroupId             *string                      `json:"groupId,omitempty" tfsdk:"group_id"`
	ClusterArchitecture *ClusterArchitecture         `json:"clusterArchitecture,omitempty" tfsdk:"cluster_architecture"`
	ClusterType         *string                      `json:"clusterType,omitempty" tfsdk:"cluster_type"`
	InstanceType        *InstanceType                `json:"instanceType,omitempty" tfsdk:"instance_type"`
	Provider            *CloudProvider               `json:"provider,omitempty" tfsdk:"cloud_provider"`
	Region              *Region                      `json:"region,omitempty" tfsdk:"region"`
	Storage             *models.Storage              `json:"storage,omitempty" tfsdk:"storage"`
	Phase               *string                      `json:"phase,omitempty" tfsdk:"phase"`
	MaintenanceWindow   *commonApi.MaintenanceWindow `json:"maintenanceWindow,omitempty" tfsdk:"maintenanceWindow"`
}

type WitnessGroupParamsBody

type WitnessGroupParamsBody struct {
	Provider *CloudProvider `json:"provider,omitempty"`
	Region   *Region        `json:"region,omitempty"`
}

type WitnessGroupParamsBodyData

type WitnessGroupParamsBodyData struct {
	InstanceType *InstanceType   `json:"instanceType,omitempty"`
	Provider     *CloudProvider  `json:"provider,omitempty"`
	Region       *Region         `json:"region,omitempty"`
	Storage      *models.Storage `json:"storage,omitempty"`
}

type WitnessGroupParamsData

type WitnessGroupParamsData struct {
	InstanceType *InstanceType   `json:"instanceType"`
	Storage      *models.Storage `json:"storage"`
}

type WitnessGroupParamsResponse

type WitnessGroupParamsResponse struct {
	Data WitnessGroupParamsData `json:"data"`
}

Jump to

Keyboard shortcuts

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