backup

package
v1.3.0 Latest Latest
Warning

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

Go to latest
Published: Oct 16, 2024 License: BSD-3-Clause Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetBackupDataSourceAttributes

func GetBackupDataSourceAttributes() (map[string]schema.Attribute, error)

func GetBackupResourceAttributes

func GetBackupResourceAttributes() (map[string]schema.Attribute, error)

func GetBackupsDataSourceSchema

func GetBackupsDataSourceSchema() *schema.Schema

GetBackupsDataSourceSchema returns the schema for the backups (plural) data source. This has to be provided explicitly because there is no schema in the OpenAPI spec for the REST API that corresponds to it.

func NewBackupDataSource

func NewBackupDataSource() datasource.DataSource

func NewBackupDataSourceState

func NewBackupDataSourceState() framework.DataSourceState

func NewBackupResource

func NewBackupResource() resource.Resource

func NewBackupResourceState

func NewBackupResourceState() framework.ResourceState

func NewBackupsDataSource

func NewBackupsDataSource() datasource.DataSource

func NewBackupsDataSourceState

func NewBackupsDataSourceState() framework.DataSourceState

Types

type BackupFilterModel

type BackupFilterModel struct {
	Organization *string  `tfsdk:"organization" hcl:"organization" cty:"organization"`
	Project      *string  `tfsdk:"project" hcl:"project" cty:"project"`
	Database     *string  `tfsdk:"database" hcl:"database" cty:"database"`
	Labels       []string `tfsdk:"labels" hcl:"labels" cty:"labels"`
}

type BackupNameModel

type BackupNameModel struct {
	Organization string `tfsdk:"organization" hcl:"organization" cty:"organization"`
	Project      string `tfsdk:"project" hcl:"project" cty:"project"`
	Database     string `tfsdk:"database" hcl:"database" cty:"database"`
	Name         string `tfsdk:"name" hcl:"name" cty:"name"`
}

func GetBackupDataSourceResponse

func GetBackupDataSourceResponse(backups []string) ([]BackupNameModel, error)

type BackupResourceModel

type BackupResourceModel openapi.BackupModel

func (*BackupResourceModel) CheckReady

func (state *BackupResourceModel) CheckReady(ctx context.Context, client openapi.ClientInterface) error

func (*BackupResourceModel) Create

func (state *BackupResourceModel) Create(ctx context.Context, client openapi.ClientInterface) error

func (*BackupResourceModel) Delete

func (state *BackupResourceModel) Delete(ctx context.Context, client openapi.ClientInterface) error

func (*BackupResourceModel) GetEventPath added in v1.3.0

func (state *BackupResourceModel) GetEventPath() string

func (*BackupResourceModel) Read

func (*BackupResourceModel) Reset

func (state *BackupResourceModel) Reset()

func (*BackupResourceModel) SetId

func (state *BackupResourceModel) SetId(id string) error

func (*BackupResourceModel) Update

func (state *BackupResourceModel) Update(ctx context.Context, client openapi.ClientInterface, currentState framework.ResourceState) error

type BackupsDataSourceModel

type BackupsDataSourceModel struct {
	Filter  *BackupFilterModel `tfsdk:"filter" hcl:"filter" cty:"filter"`
	Backups []BackupNameModel  `tfsdk:"backups" hcl:"backups" cty:"backups"`
}

func (*BackupsDataSourceModel) Read

Jump to

Keyboard shortcuts

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