Documentation ¶
Index ¶
- Constants
- func GetDatabaseDataSourceAttributes() (map[string]schema.Attribute, error)
- func GetDatabaseResourceAttributes() (map[string]schema.Attribute, error)
- func GetDatabasesDataSourceSchema() *schema.Schema
- func IsDbaPasswordUpdateUnsupportedError(resp *http.Response, err error) bool
- func NewDatabaseDataSource() datasource.DataSource
- func NewDatabaseDataSourceState() framework.DataSourceState
- func NewDatabaseResource() resource.Resource
- func NewDatabaseResourceState() framework.ResourceState
- func NewDatabasesDataSource() datasource.DataSource
- func NewDatabasesDataSourceState() framework.DataSourceState
- type DatabaseDataSourceModel
- type DatabaseFilterModel
- type DatabaseNameModel
- type DatabaseResourceModel
- func (state *DatabaseResourceModel) CheckReady(ctx context.Context, client openapi.ClientInterface) error
- func (state *DatabaseResourceModel) Create(ctx context.Context, client openapi.ClientInterface) error
- func (state *DatabaseResourceModel) DbaPasswordMatches(other *DatabaseResourceModel) bool
- func (state *DatabaseResourceModel) Delete(ctx context.Context, client openapi.ClientInterface) error
- func (state *DatabaseResourceModel) GetEventPath() string
- func (state *DatabaseResourceModel) Read(ctx context.Context, client openapi.ClientInterface) error
- func (state *DatabaseResourceModel) Reset()
- func (state *DatabaseResourceModel) SetId(id string) error
- func (state *DatabaseResourceModel) Update(ctx context.Context, client openapi.ClientInterface, ...) error
- func (state *DatabaseResourceModel) UpdateDbaPassword(ctx context.Context, client openapi.ClientInterface, target *string) (*http.Response, error)
- type DatabasesDataSourceModel
Constants ¶
View Source
const (
DBA_PASSWORD_CHANGE_UNSUPPORTED_MSG = "Configured DBA password was changed and the server does not support updating the DBA password. " +
"Revert the configured DBA password to the value in the Terraform state and retry."
)
Variables ¶
This section is empty.
Functions ¶
func GetDatabaseDataSourceAttributes ¶ added in v1.1.0
func GetDatabaseResourceAttributes ¶ added in v1.1.0
func GetDatabasesDataSourceSchema ¶
GetDatabasesDataSourceSchema returns the schema for the databases (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 IsDbaPasswordUpdateUnsupportedError ¶ added in v1.1.0
func NewDatabaseDataSource ¶
func NewDatabaseDataSource() datasource.DataSource
func NewDatabaseDataSourceState ¶
func NewDatabaseDataSourceState() framework.DataSourceState
func NewDatabaseResource ¶
func NewDatabaseResourceState ¶
func NewDatabaseResourceState() framework.ResourceState
func NewDatabasesDataSource ¶
func NewDatabasesDataSource() datasource.DataSource
func NewDatabasesDataSourceState ¶
func NewDatabasesDataSourceState() framework.DataSourceState
Types ¶
type DatabaseDataSourceModel ¶
type DatabaseDataSourceModel openapi.DatabaseModel
func (*DatabaseDataSourceModel) Read ¶
func (state *DatabaseDataSourceModel) Read(ctx context.Context, client openapi.ClientInterface) error
type DatabaseFilterModel ¶
type DatabaseNameModel ¶
type DatabaseNameModel struct { Organization string `tfsdk:"organization" hcl:"organization" cty:"organization"` Project string `tfsdk:"project" hcl:"project" cty:"project"` Name string `tfsdk:"name" hcl:"name" cty:"name"` }
func GetDatabaseDataSourceResponse ¶
func GetDatabaseDataSourceResponse(databases []string) ([]DatabaseNameModel, error)
type DatabaseResourceModel ¶
type DatabaseResourceModel openapi.DatabaseCreateUpdateModel
func (*DatabaseResourceModel) CheckReady ¶
func (state *DatabaseResourceModel) CheckReady(ctx context.Context, client openapi.ClientInterface) error
func (*DatabaseResourceModel) Create ¶
func (state *DatabaseResourceModel) Create(ctx context.Context, client openapi.ClientInterface) error
func (*DatabaseResourceModel) DbaPasswordMatches ¶ added in v1.1.0
func (state *DatabaseResourceModel) DbaPasswordMatches(other *DatabaseResourceModel) bool
func (*DatabaseResourceModel) Delete ¶
func (state *DatabaseResourceModel) Delete(ctx context.Context, client openapi.ClientInterface) error
func (*DatabaseResourceModel) GetEventPath ¶ added in v1.3.0
func (state *DatabaseResourceModel) GetEventPath() string
func (*DatabaseResourceModel) Read ¶
func (state *DatabaseResourceModel) Read(ctx context.Context, client openapi.ClientInterface) error
func (*DatabaseResourceModel) Reset ¶
func (state *DatabaseResourceModel) Reset()
func (*DatabaseResourceModel) SetId ¶
func (state *DatabaseResourceModel) SetId(id string) error
func (*DatabaseResourceModel) Update ¶
func (state *DatabaseResourceModel) Update(ctx context.Context, client openapi.ClientInterface, currentState framework.ResourceState) error
func (*DatabaseResourceModel) UpdateDbaPassword ¶ added in v1.1.0
func (state *DatabaseResourceModel) UpdateDbaPassword(ctx context.Context, client openapi.ClientInterface, target *string) (*http.Response, error)
type DatabasesDataSourceModel ¶
type DatabasesDataSourceModel struct { Filter *DatabaseFilterModel `tfsdk:"filter" hcl:"filter" cty:"filter"` Databases []DatabaseNameModel `tfsdk:"databases" hcl:"databases" cty:"databases"` }
func (*DatabasesDataSourceModel) Read ¶
func (state *DatabasesDataSourceModel) Read(ctx context.Context, client openapi.ClientInterface) error
Click to show internal directories.
Click to hide internal directories.