Documentation ¶
Index ¶
- func BqKeyExtractor(k *client.TestBqCredentialsV2) string
- func NewBigQueryWarehouseResource() resource.Resource
- func NewTransactionalWarehouseResource() resource.Resource
- func NewWarehouseDatasource() datasource.DataSource
- func TrxKeyExtractor(k *client.TestDatabaseCredentials) string
- type BigQueryWarehouseResource
- func (r *BigQueryWarehouseResource) Configure(ctx context.Context, req resource.ConfigureRequest, ...)
- func (r *BigQueryWarehouseResource) Create(ctx context.Context, req resource.CreateRequest, resp *resource.CreateResponse)
- func (r *BigQueryWarehouseResource) Delete(ctx context.Context, req resource.DeleteRequest, resp *resource.DeleteResponse)
- func (r *BigQueryWarehouseResource) ImportState(ctx context.Context, req resource.ImportStateRequest, ...)
- func (r *BigQueryWarehouseResource) Metadata(ctx context.Context, req resource.MetadataRequest, ...)
- func (r *BigQueryWarehouseResource) Read(ctx context.Context, req resource.ReadRequest, resp *resource.ReadResponse)
- func (r *BigQueryWarehouseResource) Schema(ctx context.Context, req resource.SchemaRequest, resp *resource.SchemaResponse)
- func (r *BigQueryWarehouseResource) Update(ctx context.Context, req resource.UpdateRequest, resp *resource.UpdateResponse)
- func (r *BigQueryWarehouseResource) UpgradeState(ctx context.Context) map[int64]resource.StateUpgrader
- type BigQueryWarehouseResourceModel
- type BigQueryWarehouseResourceModelV0
- type BigQueryWarehouseResourceModelV1
- type BqCredentials
- type ConfigurationV0
- type TestCredentials
- type TransactionalCredentials
- type TransactionalWarehouseResource
- func (r *TransactionalWarehouseResource) Configure(ctx context.Context, req resource.ConfigureRequest, ...)
- func (r *TransactionalWarehouseResource) Create(ctx context.Context, req resource.CreateRequest, resp *resource.CreateResponse)
- func (r *TransactionalWarehouseResource) Delete(ctx context.Context, req resource.DeleteRequest, resp *resource.DeleteResponse)
- func (r *TransactionalWarehouseResource) ImportState(ctx context.Context, req resource.ImportStateRequest, ...)
- func (r *TransactionalWarehouseResource) Metadata(ctx context.Context, req resource.MetadataRequest, ...)
- func (r *TransactionalWarehouseResource) Read(ctx context.Context, req resource.ReadRequest, resp *resource.ReadResponse)
- func (r *TransactionalWarehouseResource) Schema(ctx context.Context, req resource.SchemaRequest, resp *resource.SchemaResponse)
- func (r *TransactionalWarehouseResource) Update(ctx context.Context, req resource.UpdateRequest, resp *resource.UpdateResponse)
- func (r *TransactionalWarehouseResource) UpgradeState(ctx context.Context) map[int64]resource.StateUpgrader
- type TransactionalWarehouseResourceModel
- type TransactionalWarehouseResourceModelVO
- type WarehouseDataSource
- func (d *WarehouseDataSource) Configure(ctx context.Context, req datasource.ConfigureRequest, ...)
- func (d *WarehouseDataSource) Metadata(ctx context.Context, req datasource.MetadataRequest, ...)
- func (d *WarehouseDataSource) Read(ctx context.Context, req datasource.ReadRequest, resp *datasource.ReadResponse)
- func (d *WarehouseDataSource) Schema(ctx context.Context, req datasource.SchemaRequest, ...)
- type WarehouseDataSourceModel
- type WarehouseDatasetDataSourceModel
- type WarehouseProjectDataSourceModel
- type WarehouseResource
- type WarehouseResourceModel
- type WarehouseTableDataSourceModel
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BqKeyExtractor ¶
func BqKeyExtractor(k *client.TestBqCredentialsV2) string
func NewBigQueryWarehouseResource ¶
To simplify provider implementations, a named function can be created with the resource implementation.
func NewTransactionalWarehouseResource ¶
To simplify provider implementations, a named function can be created with the resource implementation.
func NewWarehouseDatasource ¶
func NewWarehouseDatasource() datasource.DataSource
func TrxKeyExtractor ¶
func TrxKeyExtractor(k *client.TestDatabaseCredentials) string
Types ¶
type BigQueryWarehouseResource ¶
type BigQueryWarehouseResource struct {
// contains filtered or unexported fields
}
BigQueryWarehouseResource defines the resource implementation.
func (*BigQueryWarehouseResource) Configure ¶
func (r *BigQueryWarehouseResource) Configure(ctx context.Context, req resource.ConfigureRequest, resp *resource.ConfigureResponse)
func (*BigQueryWarehouseResource) Create ¶
func (r *BigQueryWarehouseResource) Create(ctx context.Context, req resource.CreateRequest, resp *resource.CreateResponse)
func (*BigQueryWarehouseResource) Delete ¶
func (r *BigQueryWarehouseResource) Delete(ctx context.Context, req resource.DeleteRequest, resp *resource.DeleteResponse)
func (*BigQueryWarehouseResource) ImportState ¶
func (r *BigQueryWarehouseResource) ImportState(ctx context.Context, req resource.ImportStateRequest, resp *resource.ImportStateResponse)
func (*BigQueryWarehouseResource) Metadata ¶
func (r *BigQueryWarehouseResource) Metadata(ctx context.Context, req resource.MetadataRequest, resp *resource.MetadataResponse)
func (*BigQueryWarehouseResource) Read ¶
func (r *BigQueryWarehouseResource) Read(ctx context.Context, req resource.ReadRequest, resp *resource.ReadResponse)
func (*BigQueryWarehouseResource) Schema ¶
func (r *BigQueryWarehouseResource) Schema(ctx context.Context, req resource.SchemaRequest, resp *resource.SchemaResponse)
func (*BigQueryWarehouseResource) Update ¶
func (r *BigQueryWarehouseResource) Update(ctx context.Context, req resource.UpdateRequest, resp *resource.UpdateResponse)
func (*BigQueryWarehouseResource) UpgradeState ¶
func (r *BigQueryWarehouseResource) UpgradeState(ctx context.Context) map[int64]resource.StateUpgrader
type BigQueryWarehouseResourceModel ¶
type BigQueryWarehouseResourceModel struct { Uuid types.String `tfsdk:"uuid"` Credentials BqCredentials `tfsdk:"credentials"` Name types.String `tfsdk:"name"` CollectorUuid types.String `tfsdk:"collector_uuid"` DeletionProtection types.Bool `tfsdk:"deletion_protection"` }
BigQueryWarehouseResourceModel describes the resource data model according to its Schema.
func (BigQueryWarehouseResourceModel) GetCollectorUuid ¶
func (m BigQueryWarehouseResourceModel) GetCollectorUuid() types.String
func (BigQueryWarehouseResourceModel) GetConnectionUuid ¶
func (m BigQueryWarehouseResourceModel) GetConnectionUuid() types.String
func (BigQueryWarehouseResourceModel) GetName ¶
func (m BigQueryWarehouseResourceModel) GetName() types.String
func (BigQueryWarehouseResourceModel) GetUuid ¶
func (m BigQueryWarehouseResourceModel) GetUuid() types.String
type BigQueryWarehouseResourceModelV0 ¶
type BigQueryWarehouseResourceModelV0 struct { Uuid types.String `tfsdk:"uuid"` ConnectionUuid types.String `tfsdk:"connection_uuid"` Name types.String `tfsdk:"name"` DataCollectorUuid types.String `tfsdk:"data_collector_uuid"` ServiceAccountKey types.String `tfsdk:"service_account_key"` DeletionProtection types.Bool `tfsdk:"deletion_protection"` }
type BigQueryWarehouseResourceModelV1 ¶
type BigQueryWarehouseResourceModelV1 struct { Uuid types.String `tfsdk:"uuid"` ConnectionUuid types.String `tfsdk:"connection_uuid"` Name types.String `tfsdk:"name"` CollectorUuid types.String `tfsdk:"collector_uuid"` ServiceAccountKey types.String `tfsdk:"service_account_key"` DeletionProtection types.Bool `tfsdk:"deletion_protection"` }
type BqCredentials ¶
type ConfigurationV0 ¶
type TestCredentials ¶
type TestCredentials interface { *client.TestBqCredentialsV2 | *client.TestDatabaseCredentials }
type TransactionalCredentials ¶
type TransactionalCredentials struct { ConnectionUuid types.String `tfsdk:"connection_uuid"` Host types.String `tfsdk:"host"` Port types.Int64 `tfsdk:"port"` Database types.String `tfsdk:"database"` Username types.String `tfsdk:"username"` Password types.String `tfsdk:"password"` UpdatedAt types.String `tfsdk:"updated_at"` }
type TransactionalWarehouseResource ¶
type TransactionalWarehouseResource struct {
// contains filtered or unexported fields
}
TransactionalWarehouseResource defines the resource implementation.
func (*TransactionalWarehouseResource) Configure ¶
func (r *TransactionalWarehouseResource) Configure(ctx context.Context, req resource.ConfigureRequest, resp *resource.ConfigureResponse)
func (*TransactionalWarehouseResource) Create ¶
func (r *TransactionalWarehouseResource) Create(ctx context.Context, req resource.CreateRequest, resp *resource.CreateResponse)
func (*TransactionalWarehouseResource) Delete ¶
func (r *TransactionalWarehouseResource) Delete(ctx context.Context, req resource.DeleteRequest, resp *resource.DeleteResponse)
func (*TransactionalWarehouseResource) ImportState ¶
func (r *TransactionalWarehouseResource) ImportState(ctx context.Context, req resource.ImportStateRequest, resp *resource.ImportStateResponse)
func (*TransactionalWarehouseResource) Metadata ¶
func (r *TransactionalWarehouseResource) Metadata(ctx context.Context, req resource.MetadataRequest, resp *resource.MetadataResponse)
func (*TransactionalWarehouseResource) Read ¶
func (r *TransactionalWarehouseResource) Read(ctx context.Context, req resource.ReadRequest, resp *resource.ReadResponse)
func (*TransactionalWarehouseResource) Schema ¶
func (r *TransactionalWarehouseResource) Schema(ctx context.Context, req resource.SchemaRequest, resp *resource.SchemaResponse)
func (*TransactionalWarehouseResource) Update ¶
func (r *TransactionalWarehouseResource) Update(ctx context.Context, req resource.UpdateRequest, resp *resource.UpdateResponse)
func (*TransactionalWarehouseResource) UpgradeState ¶
func (r *TransactionalWarehouseResource) UpgradeState(ctx context.Context) map[int64]resource.StateUpgrader
type TransactionalWarehouseResourceModel ¶
type TransactionalWarehouseResourceModel struct { Uuid types.String `tfsdk:"uuid"` Name types.String `tfsdk:"name"` DbType types.String `tfsdk:"db_type"` CollectorUuid types.String `tfsdk:"collector_uuid"` Credentials TransactionalCredentials `tfsdk:"credentials"` DeletionProtection types.Bool `tfsdk:"deletion_protection"` }
TransactionalWarehouseResourceModel describes the resource data model according to its Schema.
func (TransactionalWarehouseResourceModel) GetCollectorUuid ¶
func (m TransactionalWarehouseResourceModel) GetCollectorUuid() types.String
func (TransactionalWarehouseResourceModel) GetConnectionUuid ¶
func (m TransactionalWarehouseResourceModel) GetConnectionUuid() types.String
func (TransactionalWarehouseResourceModel) GetName ¶
func (m TransactionalWarehouseResourceModel) GetName() types.String
func (TransactionalWarehouseResourceModel) GetUuid ¶
func (m TransactionalWarehouseResourceModel) GetUuid() types.String
type TransactionalWarehouseResourceModelVO ¶
type TransactionalWarehouseResourceModelVO struct { Uuid types.String `tfsdk:"uuid"` ConnectionUuid types.String `tfsdk:"connection_uuid"` Name types.String `tfsdk:"name"` DbType types.String `tfsdk:"db_type"` CollectorUuid types.String `tfsdk:"collector_uuid"` Configuration ConfigurationV0 `tfsdk:"configuration"` DeletionProtection types.Bool `tfsdk:"deletion_protection"` }
type WarehouseDataSource ¶
type WarehouseDataSource struct {
// contains filtered or unexported fields
}
func (*WarehouseDataSource) Configure ¶
func (d *WarehouseDataSource) Configure(ctx context.Context, req datasource.ConfigureRequest, resp *datasource.ConfigureResponse)
func (*WarehouseDataSource) Metadata ¶
func (d *WarehouseDataSource) Metadata(ctx context.Context, req datasource.MetadataRequest, resp *datasource.MetadataResponse)
func (*WarehouseDataSource) Read ¶
func (d *WarehouseDataSource) Read(ctx context.Context, req datasource.ReadRequest, resp *datasource.ReadResponse)
func (*WarehouseDataSource) Schema ¶
func (d *WarehouseDataSource) Schema(ctx context.Context, req datasource.SchemaRequest, resp *datasource.SchemaResponse)
type WarehouseDataSourceModel ¶
type WarehouseDataSourceModel struct { Uuid types.String `tfsdk:"uuid"` Projects map[string]WarehouseProjectDataSourceModel `tfsdk:"projects"` }
type WarehouseDatasetDataSourceModel ¶
type WarehouseDatasetDataSourceModel struct { Mcon types.String `tfsdk:"mcon"` Tables map[string]WarehouseTableDataSourceModel `tfsdk:"tables"` }
type WarehouseProjectDataSourceModel ¶
type WarehouseProjectDataSourceModel struct { Mcon types.String `tfsdk:"mcon"` Datasets map[string]WarehouseDatasetDataSourceModel `tfsdk:"datasets"` }
type WarehouseResource ¶
type WarehouseResource[T WarehouseResourceModel, K TestCredentials] interface { *BigQueryWarehouseResource | *TransactionalWarehouseResource // contains filtered or unexported methods }
type WarehouseResourceModel ¶
type WarehouseResourceModel interface { BigQueryWarehouseResourceModel | TransactionalWarehouseResourceModel GetUuid() types.String GetCollectorUuid() types.String GetName() types.String GetConnectionUuid() types.String }
Click to show internal directories.
Click to hide internal directories.