Documentation ¶
Index ¶
- func GetBackupDataSourceAttributes() (map[string]schema.Attribute, error)
- func GetBackupResourceAttributes() (map[string]schema.Attribute, error)
- func GetBackupsDataSourceSchema() *schema.Schema
- func NewBackupDataSource() datasource.DataSource
- func NewBackupDataSourceState() framework.DataSourceState
- func NewBackupResource() resource.Resource
- func NewBackupResourceState() framework.ResourceState
- func NewBackupsDataSource() datasource.DataSource
- func NewBackupsDataSourceState() framework.DataSourceState
- type BackupFilterModel
- type BackupNameModel
- type BackupResourceModel
- func (state *BackupResourceModel) CheckReady(ctx context.Context, client openapi.ClientInterface) error
- func (state *BackupResourceModel) Create(ctx context.Context, client openapi.ClientInterface) error
- func (state *BackupResourceModel) Delete(ctx context.Context, client openapi.ClientInterface) error
- func (state *BackupResourceModel) GetEventPath() string
- func (state *BackupResourceModel) Read(ctx context.Context, client openapi.ClientInterface) error
- func (state *BackupResourceModel) Reset()
- func (state *BackupResourceModel) SetId(id string) error
- func (state *BackupResourceModel) Update(ctx context.Context, client openapi.ClientInterface, ...) error
- type BackupsDataSourceModel
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetBackupsDataSourceSchema ¶
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 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 (state *BackupResourceModel) Read(ctx context.Context, client openapi.ClientInterface) error
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 ¶
func (state *BackupsDataSourceModel) Read(ctx context.Context, client openapi.ClientInterface) error
Click to show internal directories.
Click to hide internal directories.