Documentation
¶
Index ¶
- Constants
- func New(version string) func() provider.Provider
- func NewDatabasePostgresDataSource() datasource.DataSource
- func NewDatabaseVitessDataSource() datasource.DataSource
- func NewDatabasesDataSource() datasource.DataSource
- func NewOrganizationDataSource() datasource.DataSource
- func NewOrganizationsDataSource() datasource.DataSource
- func NewPostgresBranchDataSource() datasource.DataSource
- func NewPostgresBranchResource() resource.Resource
- func NewPostgresBranchRoleDataSource() datasource.DataSource
- func NewPostgresBranchRoleResource() resource.Resource
- func NewPostgresBranchRolesDataSource() datasource.DataSource
- func NewProviderHTTPTransport(opts ProviderHTTPTransportOpts) *providerHttpTransport
- func NewVitessBranchDataSource() datasource.DataSource
- func NewVitessBranchPasswordDataSource() datasource.DataSource
- func NewVitessBranchPasswordResource() resource.Resource
- func NewVitessBranchPasswordsDataSource() datasource.DataSource
- func NewVitessBranchResource() resource.Resource
- type DatabasePostgresDataSource
- func (r *DatabasePostgresDataSource) Configure(ctx context.Context, req datasource.ConfigureRequest, ...)
- func (r *DatabasePostgresDataSource) Metadata(ctx context.Context, req datasource.MetadataRequest, ...)
- func (r *DatabasePostgresDataSource) Read(ctx context.Context, req datasource.ReadRequest, resp *datasource.ReadResponse)
- func (r *DatabasePostgresDataSource) Schema(ctx context.Context, req datasource.SchemaRequest, ...)
- type DatabasePostgresDataSourceModel
- func (r *DatabasePostgresDataSourceModel) RefreshFromOperationsGetPostgresDatabaseResponseBody(ctx context.Context, resp *operations.GetPostgresDatabaseResponseBody) diag.Diagnostics
- func (r *DatabasePostgresDataSourceModel) ToOperationsGetPostgresDatabaseRequest(ctx context.Context) (*operations.GetPostgresDatabaseRequest, diag.Diagnostics)
- type DatabaseVitessDataSource
- func (r *DatabaseVitessDataSource) Configure(ctx context.Context, req datasource.ConfigureRequest, ...)
- func (r *DatabaseVitessDataSource) Metadata(ctx context.Context, req datasource.MetadataRequest, ...)
- func (r *DatabaseVitessDataSource) Read(ctx context.Context, req datasource.ReadRequest, resp *datasource.ReadResponse)
- func (r *DatabaseVitessDataSource) Schema(ctx context.Context, req datasource.SchemaRequest, ...)
- type DatabaseVitessDataSourceModel
- func (r *DatabaseVitessDataSourceModel) RefreshFromOperationsGetVitessDatabaseResponseBody(ctx context.Context, resp *operations.GetVitessDatabaseResponseBody) diag.Diagnostics
- func (r *DatabaseVitessDataSourceModel) ToOperationsGetVitessDatabaseRequest(ctx context.Context) (*operations.GetVitessDatabaseRequest, diag.Diagnostics)
- type DatabasesDataSource
- func (r *DatabasesDataSource) Configure(ctx context.Context, req datasource.ConfigureRequest, ...)
- func (r *DatabasesDataSource) Metadata(ctx context.Context, req datasource.MetadataRequest, ...)
- func (r *DatabasesDataSource) Read(ctx context.Context, req datasource.ReadRequest, resp *datasource.ReadResponse)
- func (r *DatabasesDataSource) Schema(ctx context.Context, req datasource.SchemaRequest, ...)
- type DatabasesDataSourceModel
- func (r *DatabasesDataSourceModel) RefreshFromOperationsListDatabasesResponseBody(ctx context.Context, resp *operations.ListDatabasesResponseBody) diag.Diagnostics
- func (r *DatabasesDataSourceModel) ToOperationsListDatabasesRequest(ctx context.Context) (*operations.ListDatabasesRequest, diag.Diagnostics)
- type OrganizationDataSource
- func (r *OrganizationDataSource) Configure(ctx context.Context, req datasource.ConfigureRequest, ...)
- func (r *OrganizationDataSource) Metadata(ctx context.Context, req datasource.MetadataRequest, ...)
- func (r *OrganizationDataSource) Read(ctx context.Context, req datasource.ReadRequest, resp *datasource.ReadResponse)
- func (r *OrganizationDataSource) Schema(ctx context.Context, req datasource.SchemaRequest, ...)
- type OrganizationDataSourceModel
- func (r *OrganizationDataSourceModel) RefreshFromOperationsGetOrganizationResponseBody(ctx context.Context, resp *operations.GetOrganizationResponseBody) diag.Diagnostics
- func (r *OrganizationDataSourceModel) ToOperationsGetOrganizationRequest(ctx context.Context) (*operations.GetOrganizationRequest, diag.Diagnostics)
- type OrganizationsDataSource
- func (r *OrganizationsDataSource) Configure(ctx context.Context, req datasource.ConfigureRequest, ...)
- func (r *OrganizationsDataSource) Metadata(ctx context.Context, req datasource.MetadataRequest, ...)
- func (r *OrganizationsDataSource) Read(ctx context.Context, req datasource.ReadRequest, resp *datasource.ReadResponse)
- func (r *OrganizationsDataSource) Schema(ctx context.Context, req datasource.SchemaRequest, ...)
- type OrganizationsDataSourceModel
- func (r *OrganizationsDataSourceModel) RefreshFromOperationsListOrganizationsResponseBody(ctx context.Context, resp *operations.ListOrganizationsResponseBody) diag.Diagnostics
- func (r *OrganizationsDataSourceModel) ToOperationsListOrganizationsRequest(ctx context.Context) (*operations.ListOrganizationsRequest, diag.Diagnostics)
- type PlanetscaleProvider
- func (p *PlanetscaleProvider) Actions(_ context.Context) []func() action.Action
- func (p *PlanetscaleProvider) Configure(ctx context.Context, req provider.ConfigureRequest, ...)
- func (p *PlanetscaleProvider) DataSources(ctx context.Context) []func() datasource.DataSource
- func (p *PlanetscaleProvider) EphemeralResources(ctx context.Context) []func() ephemeral.EphemeralResource
- func (p *PlanetscaleProvider) Functions(_ context.Context) []func() function.Function
- func (p *PlanetscaleProvider) ListResources(ctx context.Context) []func() list.ListResource
- func (p *PlanetscaleProvider) Metadata(ctx context.Context, req provider.MetadataRequest, ...)
- func (p *PlanetscaleProvider) Resources(ctx context.Context) []func() resource.Resource
- func (p *PlanetscaleProvider) Schema(ctx context.Context, req provider.SchemaRequest, resp *provider.SchemaResponse)
- type PlanetscaleProviderModel
- type PostgresBranchDataSource
- func (r *PostgresBranchDataSource) Configure(ctx context.Context, req datasource.ConfigureRequest, ...)
- func (r *PostgresBranchDataSource) Metadata(ctx context.Context, req datasource.MetadataRequest, ...)
- func (r *PostgresBranchDataSource) Read(ctx context.Context, req datasource.ReadRequest, resp *datasource.ReadResponse)
- func (r *PostgresBranchDataSource) Schema(ctx context.Context, req datasource.SchemaRequest, ...)
- type PostgresBranchDataSourceModel
- func (r *PostgresBranchDataSourceModel) RefreshFromOperationsGetPostgresBranchResponseBody(ctx context.Context, resp *operations.GetPostgresBranchResponseBody) diag.Diagnostics
- func (r *PostgresBranchDataSourceModel) ToOperationsGetPostgresBranchRequest(ctx context.Context) (*operations.GetPostgresBranchRequest, diag.Diagnostics)
- type PostgresBranchResource
- func (r *PostgresBranchResource) Configure(ctx context.Context, req resource.ConfigureRequest, ...)
- func (r *PostgresBranchResource) Create(ctx context.Context, req resource.CreateRequest, resp *resource.CreateResponse)
- func (r *PostgresBranchResource) Delete(ctx context.Context, req resource.DeleteRequest, resp *resource.DeleteResponse)
- func (r *PostgresBranchResource) ImportState(ctx context.Context, req resource.ImportStateRequest, ...)
- func (r *PostgresBranchResource) Metadata(ctx context.Context, req resource.MetadataRequest, ...)
- func (r *PostgresBranchResource) Read(ctx context.Context, req resource.ReadRequest, resp *resource.ReadResponse)
- func (r *PostgresBranchResource) Schema(ctx context.Context, req resource.SchemaRequest, resp *resource.SchemaResponse)
- func (r *PostgresBranchResource) Update(ctx context.Context, req resource.UpdateRequest, resp *resource.UpdateResponse)
- type PostgresBranchResourceModel
- func (r *PostgresBranchResourceModel) RefreshFromOperationsCreatePostgresBranchResponseBody(ctx context.Context, resp *operations.CreatePostgresBranchResponseBody) diag.Diagnostics
- func (r *PostgresBranchResourceModel) RefreshFromOperationsGetBranchChangeRequestResponseBody(ctx context.Context, resp *operations.GetBranchChangeRequestResponseBody) diag.Diagnostics
- func (r *PostgresBranchResourceModel) RefreshFromOperationsGetPostgresBranchResponseBody(ctx context.Context, resp *operations.GetPostgresBranchResponseBody) diag.Diagnostics
- func (r *PostgresBranchResourceModel) RefreshFromOperationsUpdateBranchChangeRequestResponseBody(ctx context.Context, resp *operations.UpdateBranchChangeRequestResponseBody) diag.Diagnostics
- func (r *PostgresBranchResourceModel) RefreshFromOperationsUpdatePostgresBranchResponseBody(ctx context.Context, resp *operations.UpdatePostgresBranchResponseBody) diag.Diagnostics
- func (r *PostgresBranchResourceModel) ToOperationsCreatePostgresBranchRequest(ctx context.Context) (*operations.CreatePostgresBranchRequest, diag.Diagnostics)
- func (r *PostgresBranchResourceModel) ToOperationsCreatePostgresBranchRequestBody(ctx context.Context) (*operations.CreatePostgresBranchRequestBody, diag.Diagnostics)
- func (r *PostgresBranchResourceModel) ToOperationsDeletePostgresBranchRequest(ctx context.Context) (*operations.DeletePostgresBranchRequest, diag.Diagnostics)
- func (r *PostgresBranchResourceModel) ToOperationsGetBranchChangeRequestRequest(ctx context.Context) (*operations.GetBranchChangeRequestRequest, diag.Diagnostics)
- func (r *PostgresBranchResourceModel) ToOperationsGetPostgresBranchRequest(ctx context.Context) (*operations.GetPostgresBranchRequest, diag.Diagnostics)
- func (r *PostgresBranchResourceModel) ToOperationsUpdateBranchChangeRequestRequest(ctx context.Context) (*operations.UpdateBranchChangeRequestRequest, diag.Diagnostics)
- func (r *PostgresBranchResourceModel) ToOperationsUpdateBranchChangeRequestRequestBody(ctx context.Context) (*operations.UpdateBranchChangeRequestRequestBody, diag.Diagnostics)
- func (r *PostgresBranchResourceModel) ToOperationsUpdatePostgresBranchRequest(ctx context.Context) (*operations.UpdatePostgresBranchRequest, diag.Diagnostics)
- func (r *PostgresBranchResourceModel) ToOperationsUpdatePostgresBranchRequestBody(ctx context.Context) (*operations.UpdatePostgresBranchRequestBody, diag.Diagnostics)
- type PostgresBranchRoleDataSource
- func (r *PostgresBranchRoleDataSource) Configure(ctx context.Context, req datasource.ConfigureRequest, ...)
- func (r *PostgresBranchRoleDataSource) Metadata(ctx context.Context, req datasource.MetadataRequest, ...)
- func (r *PostgresBranchRoleDataSource) Read(ctx context.Context, req datasource.ReadRequest, resp *datasource.ReadResponse)
- func (r *PostgresBranchRoleDataSource) Schema(ctx context.Context, req datasource.SchemaRequest, ...)
- type PostgresBranchRoleDataSourceModel
- type PostgresBranchRoleResource
- func (r *PostgresBranchRoleResource) Configure(ctx context.Context, req resource.ConfigureRequest, ...)
- func (r *PostgresBranchRoleResource) Create(ctx context.Context, req resource.CreateRequest, resp *resource.CreateResponse)
- func (r *PostgresBranchRoleResource) Delete(ctx context.Context, req resource.DeleteRequest, resp *resource.DeleteResponse)
- func (r *PostgresBranchRoleResource) ImportState(ctx context.Context, req resource.ImportStateRequest, ...)
- func (r *PostgresBranchRoleResource) Metadata(ctx context.Context, req resource.MetadataRequest, ...)
- func (r *PostgresBranchRoleResource) Read(ctx context.Context, req resource.ReadRequest, resp *resource.ReadResponse)
- func (r *PostgresBranchRoleResource) Schema(ctx context.Context, req resource.SchemaRequest, resp *resource.SchemaResponse)
- func (r *PostgresBranchRoleResource) Update(ctx context.Context, req resource.UpdateRequest, resp *resource.UpdateResponse)
- type PostgresBranchRoleResourceModel
- func (r *PostgresBranchRoleResourceModel) RefreshFromOperationsCreateRoleResponseBody(ctx context.Context, resp *operations.CreateRoleResponseBody) diag.Diagnostics
- func (r *PostgresBranchRoleResourceModel) RefreshFromOperationsGetRoleResponseBody(ctx context.Context, resp *operations.GetRoleResponseBody) diag.Diagnostics
- func (r *PostgresBranchRoleResourceModel) RefreshFromOperationsUpdateRoleResponseBody(ctx context.Context, resp *operations.UpdateRoleResponseBody) diag.Diagnostics
- func (r *PostgresBranchRoleResourceModel) ToOperationsCreateRoleRequest(ctx context.Context) (*operations.CreateRoleRequest, diag.Diagnostics)
- func (r *PostgresBranchRoleResourceModel) ToOperationsCreateRoleRequestBody(ctx context.Context) (*operations.CreateRoleRequestBody, diag.Diagnostics)
- func (r *PostgresBranchRoleResourceModel) ToOperationsDeleteRoleRequest(ctx context.Context) (*operations.DeleteRoleRequest, diag.Diagnostics)
- func (r *PostgresBranchRoleResourceModel) ToOperationsDeleteRoleRequestBody(ctx context.Context) (*operations.DeleteRoleRequestBody, diag.Diagnostics)
- func (r *PostgresBranchRoleResourceModel) ToOperationsGetRoleRequest(ctx context.Context) (*operations.GetRoleRequest, diag.Diagnostics)
- func (r *PostgresBranchRoleResourceModel) ToOperationsUpdateRoleRequest(ctx context.Context) (*operations.UpdateRoleRequest, diag.Diagnostics)
- func (r *PostgresBranchRoleResourceModel) ToOperationsUpdateRoleRequestBody(ctx context.Context) (*operations.UpdateRoleRequestBody, diag.Diagnostics)
- type PostgresBranchRolesDataSource
- func (r *PostgresBranchRolesDataSource) Configure(ctx context.Context, req datasource.ConfigureRequest, ...)
- func (r *PostgresBranchRolesDataSource) Metadata(ctx context.Context, req datasource.MetadataRequest, ...)
- func (r *PostgresBranchRolesDataSource) Read(ctx context.Context, req datasource.ReadRequest, resp *datasource.ReadResponse)
- func (r *PostgresBranchRolesDataSource) Schema(ctx context.Context, req datasource.SchemaRequest, ...)
- type PostgresBranchRolesDataSourceModel
- func (r *PostgresBranchRolesDataSourceModel) RefreshFromOperationsListRolesResponseBody(ctx context.Context, resp *operations.ListRolesResponseBody) diag.Diagnostics
- func (r *PostgresBranchRolesDataSourceModel) ToOperationsListRolesRequest(ctx context.Context) (*operations.ListRolesRequest, diag.Diagnostics)
- type ProviderHTTPTransportOpts
- type VitessBranchDataSource
- func (r *VitessBranchDataSource) Configure(ctx context.Context, req datasource.ConfigureRequest, ...)
- func (r *VitessBranchDataSource) Metadata(ctx context.Context, req datasource.MetadataRequest, ...)
- func (r *VitessBranchDataSource) Read(ctx context.Context, req datasource.ReadRequest, resp *datasource.ReadResponse)
- func (r *VitessBranchDataSource) Schema(ctx context.Context, req datasource.SchemaRequest, ...)
- type VitessBranchDataSourceModel
- func (r *VitessBranchDataSourceModel) RefreshFromOperationsGetVitessBranchResponseBody(ctx context.Context, resp *operations.GetVitessBranchResponseBody) diag.Diagnostics
- func (r *VitessBranchDataSourceModel) ToOperationsGetVitessBranchRequest(ctx context.Context) (*operations.GetVitessBranchRequest, diag.Diagnostics)
- type VitessBranchPasswordDataSource
- func (r *VitessBranchPasswordDataSource) Configure(ctx context.Context, req datasource.ConfigureRequest, ...)
- func (r *VitessBranchPasswordDataSource) Metadata(ctx context.Context, req datasource.MetadataRequest, ...)
- func (r *VitessBranchPasswordDataSource) Read(ctx context.Context, req datasource.ReadRequest, resp *datasource.ReadResponse)
- func (r *VitessBranchPasswordDataSource) Schema(ctx context.Context, req datasource.SchemaRequest, ...)
- type VitessBranchPasswordDataSourceModel
- func (r *VitessBranchPasswordDataSourceModel) RefreshFromOperationsGetPasswordResponseBody(ctx context.Context, resp *operations.GetPasswordResponseBody) diag.Diagnostics
- func (r *VitessBranchPasswordDataSourceModel) ToOperationsGetPasswordRequest(ctx context.Context) (*operations.GetPasswordRequest, diag.Diagnostics)
- type VitessBranchPasswordResource
- func (r *VitessBranchPasswordResource) Configure(ctx context.Context, req resource.ConfigureRequest, ...)
- func (r *VitessBranchPasswordResource) Create(ctx context.Context, req resource.CreateRequest, resp *resource.CreateResponse)
- func (r *VitessBranchPasswordResource) Delete(ctx context.Context, req resource.DeleteRequest, resp *resource.DeleteResponse)
- func (r *VitessBranchPasswordResource) ImportState(ctx context.Context, req resource.ImportStateRequest, ...)
- func (r *VitessBranchPasswordResource) Metadata(ctx context.Context, req resource.MetadataRequest, ...)
- func (r *VitessBranchPasswordResource) Read(ctx context.Context, req resource.ReadRequest, resp *resource.ReadResponse)
- func (r *VitessBranchPasswordResource) Schema(ctx context.Context, req resource.SchemaRequest, resp *resource.SchemaResponse)
- func (r *VitessBranchPasswordResource) Update(ctx context.Context, req resource.UpdateRequest, resp *resource.UpdateResponse)
- type VitessBranchPasswordResourceModel
- func (r *VitessBranchPasswordResourceModel) RefreshFromOperationsCreatePasswordResponseBody(ctx context.Context, resp *operations.CreatePasswordResponseBody) diag.Diagnostics
- func (r *VitessBranchPasswordResourceModel) RefreshFromOperationsGetPasswordResponseBody(ctx context.Context, resp *operations.GetPasswordResponseBody) diag.Diagnostics
- func (r *VitessBranchPasswordResourceModel) RefreshFromOperationsUpdatePasswordResponseBody(ctx context.Context, resp *operations.UpdatePasswordResponseBody) diag.Diagnostics
- func (r *VitessBranchPasswordResourceModel) ToOperationsCreatePasswordRequest(ctx context.Context) (*operations.CreatePasswordRequest, diag.Diagnostics)
- func (r *VitessBranchPasswordResourceModel) ToOperationsCreatePasswordRequestBody(ctx context.Context) (*operations.CreatePasswordRequestBody, diag.Diagnostics)
- func (r *VitessBranchPasswordResourceModel) ToOperationsDeletePasswordRequest(ctx context.Context) (*operations.DeletePasswordRequest, diag.Diagnostics)
- func (r *VitessBranchPasswordResourceModel) ToOperationsGetPasswordRequest(ctx context.Context) (*operations.GetPasswordRequest, diag.Diagnostics)
- func (r *VitessBranchPasswordResourceModel) ToOperationsUpdatePasswordRequest(ctx context.Context) (*operations.UpdatePasswordRequest, diag.Diagnostics)
- func (r *VitessBranchPasswordResourceModel) ToOperationsUpdatePasswordRequestBody(ctx context.Context) (*operations.UpdatePasswordRequestBody, diag.Diagnostics)
- type VitessBranchPasswordsDataSource
- func (r *VitessBranchPasswordsDataSource) Configure(ctx context.Context, req datasource.ConfigureRequest, ...)
- func (r *VitessBranchPasswordsDataSource) Metadata(ctx context.Context, req datasource.MetadataRequest, ...)
- func (r *VitessBranchPasswordsDataSource) Read(ctx context.Context, req datasource.ReadRequest, resp *datasource.ReadResponse)
- func (r *VitessBranchPasswordsDataSource) Schema(ctx context.Context, req datasource.SchemaRequest, ...)
- type VitessBranchPasswordsDataSourceModel
- func (r *VitessBranchPasswordsDataSourceModel) RefreshFromOperationsListPasswordsResponseBody(ctx context.Context, resp *operations.ListPasswordsResponseBody) diag.Diagnostics
- func (r *VitessBranchPasswordsDataSourceModel) ToOperationsListPasswordsRequest(ctx context.Context) (*operations.ListPasswordsRequest, diag.Diagnostics)
- type VitessBranchResource
- func (r *VitessBranchResource) Configure(ctx context.Context, req resource.ConfigureRequest, ...)
- func (r *VitessBranchResource) Create(ctx context.Context, req resource.CreateRequest, resp *resource.CreateResponse)
- func (r *VitessBranchResource) Delete(ctx context.Context, req resource.DeleteRequest, resp *resource.DeleteResponse)
- func (r *VitessBranchResource) ImportState(ctx context.Context, req resource.ImportStateRequest, ...)
- func (r *VitessBranchResource) Metadata(ctx context.Context, req resource.MetadataRequest, ...)
- func (r *VitessBranchResource) Read(ctx context.Context, req resource.ReadRequest, resp *resource.ReadResponse)
- func (r *VitessBranchResource) Schema(ctx context.Context, req resource.SchemaRequest, resp *resource.SchemaResponse)
- func (r *VitessBranchResource) Update(ctx context.Context, req resource.UpdateRequest, resp *resource.UpdateResponse)
- type VitessBranchResourceModel
- func (r *VitessBranchResourceModel) RefreshFromOperationsCreateVitessBranchResponseBody(ctx context.Context, resp *operations.CreateVitessBranchResponseBody) diag.Diagnostics
- func (r *VitessBranchResourceModel) RefreshFromOperationsGetVitessBranchResponseBody(ctx context.Context, resp *operations.GetVitessBranchResponseBody) diag.Diagnostics
- func (r *VitessBranchResourceModel) RefreshFromOperationsUpdateVitessBranchResponseBody(ctx context.Context, resp *operations.UpdateVitessBranchResponseBody) diag.Diagnostics
- func (r *VitessBranchResourceModel) ToOperationsCreateVitessBranchRequest(ctx context.Context) (*operations.CreateVitessBranchRequest, diag.Diagnostics)
- func (r *VitessBranchResourceModel) ToOperationsCreateVitessBranchRequestBody(ctx context.Context) (*operations.CreateVitessBranchRequestBody, diag.Diagnostics)
- func (r *VitessBranchResourceModel) ToOperationsDeleteVitessBranchRequest(ctx context.Context) (*operations.DeleteVitessBranchRequest, diag.Diagnostics)
- func (r *VitessBranchResourceModel) ToOperationsGetVitessBranchRequest(ctx context.Context) (*operations.GetVitessBranchRequest, diag.Diagnostics)
- func (r *VitessBranchResourceModel) ToOperationsUpdateVitessBranchRequest(ctx context.Context) (*operations.UpdateVitessBranchRequest, diag.Diagnostics)
- func (r *VitessBranchResourceModel) ToOperationsUpdateVitessBranchRequestBody(ctx context.Context) (*operations.UpdateVitessBranchRequestBody, diag.Diagnostics)
Constants ¶
const ( FieldHttpOperationType = "tf_http_op_type" OperationHttpRequest = "request" OperationHttpResponse = "response" FieldHttpRequestMethod = "tf_http_req_method" FieldHttpRequestUri = "tf_http_req_uri" FieldHttpRequestProtoVersion = "tf_http_req_version" FieldHttpRequestBody = "tf_http_req_body" FieldHttpResponseProtoVersion = "tf_http_res_version" FieldHttpResponseStatusCode = "tf_http_res_status_code" FieldHttpResponseStatusReason = "tf_http_res_status_reason" FieldHttpResponseBody = "tf_http_res_body" FieldHttpTransactionId = "tf_http_trans_id" )
Variables ¶
This section is empty.
Functions ¶
func NewDatabasePostgresDataSource ¶ added in v1.0.0
func NewDatabasePostgresDataSource() datasource.DataSource
func NewDatabaseVitessDataSource ¶ added in v1.0.0
func NewDatabaseVitessDataSource() datasource.DataSource
func NewDatabasesDataSource ¶ added in v1.0.0
func NewDatabasesDataSource() datasource.DataSource
func NewOrganizationDataSource ¶ added in v1.0.0
func NewOrganizationDataSource() datasource.DataSource
func NewOrganizationsDataSource ¶ added in v1.0.0
func NewOrganizationsDataSource() datasource.DataSource
func NewPostgresBranchDataSource ¶ added in v1.0.0
func NewPostgresBranchDataSource() datasource.DataSource
func NewPostgresBranchResource ¶ added in v1.0.0
func NewPostgresBranchRoleDataSource ¶ added in v1.0.0
func NewPostgresBranchRoleDataSource() datasource.DataSource
func NewPostgresBranchRoleResource ¶ added in v1.0.0
func NewPostgresBranchRolesDataSource ¶ added in v1.0.0
func NewPostgresBranchRolesDataSource() datasource.DataSource
func NewProviderHTTPTransport ¶ added in v1.0.0
func NewProviderHTTPTransport(opts ProviderHTTPTransportOpts) *providerHttpTransport
Note: this is taken as a more minimal/specific version of https://github.com/hashicorp/terraform-plugin-sdk/blob/main/helper/logging/logging_http_transport.go
func NewVitessBranchDataSource ¶ added in v1.0.0
func NewVitessBranchDataSource() datasource.DataSource
func NewVitessBranchPasswordDataSource ¶ added in v1.0.0
func NewVitessBranchPasswordDataSource() datasource.DataSource
func NewVitessBranchPasswordResource ¶ added in v1.0.0
func NewVitessBranchPasswordsDataSource ¶ added in v1.0.0
func NewVitessBranchPasswordsDataSource() datasource.DataSource
func NewVitessBranchResource ¶ added in v1.0.0
Types ¶
type DatabasePostgresDataSource ¶ added in v1.0.0
type DatabasePostgresDataSource struct {
// contains filtered or unexported fields
}
DatabasePostgresDataSource is the data source implementation.
func (*DatabasePostgresDataSource) Configure ¶ added in v1.0.0
func (r *DatabasePostgresDataSource) Configure(ctx context.Context, req datasource.ConfigureRequest, resp *datasource.ConfigureResponse)
func (*DatabasePostgresDataSource) Metadata ¶ added in v1.0.0
func (r *DatabasePostgresDataSource) Metadata(ctx context.Context, req datasource.MetadataRequest, resp *datasource.MetadataResponse)
Metadata returns the data source type name.
func (*DatabasePostgresDataSource) Read ¶ added in v1.0.0
func (r *DatabasePostgresDataSource) Read(ctx context.Context, req datasource.ReadRequest, resp *datasource.ReadResponse)
func (*DatabasePostgresDataSource) Schema ¶ added in v1.0.0
func (r *DatabasePostgresDataSource) Schema(ctx context.Context, req datasource.SchemaRequest, resp *datasource.SchemaResponse)
Schema defines the schema for the data source.
type DatabasePostgresDataSourceModel ¶ added in v1.0.0
type DatabasePostgresDataSourceModel struct {
AtBackupRestoreBranchesLimit types.Bool `tfsdk:"at_backup_restore_branches_limit"`
AtDevelopmentBranchUsageLimit types.Bool `tfsdk:"at_development_branch_usage_limit"`
BranchesCount types.Int64 `tfsdk:"branches_count"`
BranchesURL types.String `tfsdk:"branches_url"`
CreatedAt types.String `tfsdk:"created_at"`
DataImport *tfTypes.GetPostgresDatabaseDataImport `tfsdk:"data_import"`
DefaultBranch types.String `tfsdk:"default_branch"`
DefaultBranchReadOnlyRegionsCount types.Int64 `tfsdk:"default_branch_read_only_regions_count"`
DefaultBranchShardCount types.Int64 `tfsdk:"default_branch_shard_count"`
DefaultBranchTableCount types.Int64 `tfsdk:"default_branch_table_count"`
DevelopmentBranchesCount types.Int64 `tfsdk:"development_branches_count"`
HTMLURL types.String `tfsdk:"html_url"`
ID types.String `tfsdk:"id"`
InsightsEnabled types.Bool `tfsdk:"insights_enabled"`
InsightsRawQueries types.Bool `tfsdk:"insights_raw_queries"`
IssuesCount types.Int64 `tfsdk:"issues_count"`
MultipleAdminsRequiredForDeletion types.Bool `tfsdk:"multiple_admins_required_for_deletion"`
Name types.String `tfsdk:"name"`
OpenSchemaRecommendationsCount types.Int64 `tfsdk:"open_schema_recommendations_count"`
Organization types.String `tfsdk:"organization"`
Plan types.String `tfsdk:"plan"`
ProductionBranchesCount types.Int64 `tfsdk:"production_branches_count"`
ProductionBranchWebConsole types.Bool `tfsdk:"production_branch_web_console"`
Ready types.Bool `tfsdk:"ready"`
RegionData *tfTypes.GetPostgresDatabaseRegionData `tfsdk:"region_data"`
RequireApprovalForDeploy types.Bool `tfsdk:"require_approval_for_deploy"`
ResizeQueued types.Bool `tfsdk:"resize_queued"`
Resizing types.Bool `tfsdk:"resizing"`
RestrictBranchRegion types.Bool `tfsdk:"restrict_branch_region"`
SchemaLastUpdatedAt types.String `tfsdk:"schema_last_updated_at"`
State types.String `tfsdk:"state"`
UpdatedAt types.String `tfsdk:"updated_at"`
URL types.String `tfsdk:"url"`
}
DatabasePostgresDataSourceModel describes the data model.
func (*DatabasePostgresDataSourceModel) RefreshFromOperationsGetPostgresDatabaseResponseBody ¶ added in v1.0.0
func (r *DatabasePostgresDataSourceModel) RefreshFromOperationsGetPostgresDatabaseResponseBody(ctx context.Context, resp *operations.GetPostgresDatabaseResponseBody) diag.Diagnostics
func (*DatabasePostgresDataSourceModel) ToOperationsGetPostgresDatabaseRequest ¶ added in v1.0.0
func (r *DatabasePostgresDataSourceModel) ToOperationsGetPostgresDatabaseRequest(ctx context.Context) (*operations.GetPostgresDatabaseRequest, diag.Diagnostics)
type DatabaseVitessDataSource ¶ added in v1.0.0
type DatabaseVitessDataSource struct {
// contains filtered or unexported fields
}
DatabaseVitessDataSource is the data source implementation.
func (*DatabaseVitessDataSource) Configure ¶ added in v1.0.0
func (r *DatabaseVitessDataSource) Configure(ctx context.Context, req datasource.ConfigureRequest, resp *datasource.ConfigureResponse)
func (*DatabaseVitessDataSource) Metadata ¶ added in v1.0.0
func (r *DatabaseVitessDataSource) Metadata(ctx context.Context, req datasource.MetadataRequest, resp *datasource.MetadataResponse)
Metadata returns the data source type name.
func (*DatabaseVitessDataSource) Read ¶ added in v1.0.0
func (r *DatabaseVitessDataSource) Read(ctx context.Context, req datasource.ReadRequest, resp *datasource.ReadResponse)
func (*DatabaseVitessDataSource) Schema ¶ added in v1.0.0
func (r *DatabaseVitessDataSource) Schema(ctx context.Context, req datasource.SchemaRequest, resp *datasource.SchemaResponse)
Schema defines the schema for the data source.
type DatabaseVitessDataSourceModel ¶ added in v1.0.0
type DatabaseVitessDataSourceModel struct {
AllowDataBranching types.Bool `tfsdk:"allow_data_branching"`
AtBackupRestoreBranchesLimit types.Bool `tfsdk:"at_backup_restore_branches_limit"`
AtDevelopmentBranchUsageLimit types.Bool `tfsdk:"at_development_branch_usage_limit"`
AutomaticMigrations types.Bool `tfsdk:"automatic_migrations"`
BranchesCount types.Int64 `tfsdk:"branches_count"`
BranchesURL types.String `tfsdk:"branches_url"`
CreatedAt types.String `tfsdk:"created_at"`
DataImport *tfTypes.GetVitessDatabaseDataImport `tfsdk:"data_import"`
DefaultBranch types.String `tfsdk:"default_branch"`
DefaultBranchReadOnlyRegionsCount types.Int64 `tfsdk:"default_branch_read_only_regions_count"`
DefaultBranchShardCount types.Int64 `tfsdk:"default_branch_shard_count"`
DefaultBranchTableCount types.Int64 `tfsdk:"default_branch_table_count"`
DevelopmentBranchesCount types.Int64 `tfsdk:"development_branches_count"`
ForeignKeysEnabled types.Bool `tfsdk:"foreign_keys_enabled"`
HTMLURL types.String `tfsdk:"html_url"`
ID types.String `tfsdk:"id"`
InsightsEnabled types.Bool `tfsdk:"insights_enabled"`
InsightsRawQueries types.Bool `tfsdk:"insights_raw_queries"`
IssuesCount types.Int64 `tfsdk:"issues_count"`
MigrationFramework types.String `tfsdk:"migration_framework"`
MigrationTableName types.String `tfsdk:"migration_table_name"`
MultipleAdminsRequiredForDeletion types.Bool `tfsdk:"multiple_admins_required_for_deletion"`
Name types.String `tfsdk:"name"`
OpenSchemaRecommendationsCount types.Int64 `tfsdk:"open_schema_recommendations_count"`
Organization types.String `tfsdk:"organization"`
Plan types.String `tfsdk:"plan"`
ProductionBranchesCount types.Int64 `tfsdk:"production_branches_count"`
ProductionBranchWebConsole types.Bool `tfsdk:"production_branch_web_console"`
Ready types.Bool `tfsdk:"ready"`
RegionData *tfTypes.GetVitessDatabaseRegionData `tfsdk:"region_data"`
RequireApprovalForDeploy types.Bool `tfsdk:"require_approval_for_deploy"`
ResizeQueued types.Bool `tfsdk:"resize_queued"`
Resizing types.Bool `tfsdk:"resizing"`
RestrictBranchRegion types.Bool `tfsdk:"restrict_branch_region"`
SchemaLastUpdatedAt types.String `tfsdk:"schema_last_updated_at"`
Sharded types.Bool `tfsdk:"sharded"`
State types.String `tfsdk:"state"`
UpdatedAt types.String `tfsdk:"updated_at"`
URL types.String `tfsdk:"url"`
}
DatabaseVitessDataSourceModel describes the data model.
func (*DatabaseVitessDataSourceModel) RefreshFromOperationsGetVitessDatabaseResponseBody ¶ added in v1.0.0
func (r *DatabaseVitessDataSourceModel) RefreshFromOperationsGetVitessDatabaseResponseBody(ctx context.Context, resp *operations.GetVitessDatabaseResponseBody) diag.Diagnostics
func (*DatabaseVitessDataSourceModel) ToOperationsGetVitessDatabaseRequest ¶ added in v1.0.0
func (r *DatabaseVitessDataSourceModel) ToOperationsGetVitessDatabaseRequest(ctx context.Context) (*operations.GetVitessDatabaseRequest, diag.Diagnostics)
type DatabasesDataSource ¶ added in v1.0.0
type DatabasesDataSource struct {
// contains filtered or unexported fields
}
DatabasesDataSource is the data source implementation.
func (*DatabasesDataSource) Configure ¶ added in v1.0.0
func (r *DatabasesDataSource) Configure(ctx context.Context, req datasource.ConfigureRequest, resp *datasource.ConfigureResponse)
func (*DatabasesDataSource) Metadata ¶ added in v1.0.0
func (r *DatabasesDataSource) Metadata(ctx context.Context, req datasource.MetadataRequest, resp *datasource.MetadataResponse)
Metadata returns the data source type name.
func (*DatabasesDataSource) Read ¶ added in v1.0.0
func (r *DatabasesDataSource) Read(ctx context.Context, req datasource.ReadRequest, resp *datasource.ReadResponse)
func (*DatabasesDataSource) Schema ¶ added in v1.0.0
func (r *DatabasesDataSource) Schema(ctx context.Context, req datasource.SchemaRequest, resp *datasource.SchemaResponse)
Schema defines the schema for the data source.
type DatabasesDataSourceModel ¶ added in v1.0.0
type DatabasesDataSourceModel struct {
Data []tfTypes.ListDatabasesData `tfsdk:"data"`
Organization types.String `tfsdk:"organization"`
Q types.String `queryParam:"style=form,explode=true,name=q" tfsdk:"q"`
}
DatabasesDataSourceModel describes the data model.
func (*DatabasesDataSourceModel) RefreshFromOperationsListDatabasesResponseBody ¶ added in v1.0.0
func (r *DatabasesDataSourceModel) RefreshFromOperationsListDatabasesResponseBody(ctx context.Context, resp *operations.ListDatabasesResponseBody) diag.Diagnostics
func (*DatabasesDataSourceModel) ToOperationsListDatabasesRequest ¶ added in v1.0.0
func (r *DatabasesDataSourceModel) ToOperationsListDatabasesRequest(ctx context.Context) (*operations.ListDatabasesRequest, diag.Diagnostics)
type OrganizationDataSource ¶ added in v1.0.0
type OrganizationDataSource struct {
// contains filtered or unexported fields
}
OrganizationDataSource is the data source implementation.
func (*OrganizationDataSource) Configure ¶ added in v1.0.0
func (r *OrganizationDataSource) Configure(ctx context.Context, req datasource.ConfigureRequest, resp *datasource.ConfigureResponse)
func (*OrganizationDataSource) Metadata ¶ added in v1.0.0
func (r *OrganizationDataSource) Metadata(ctx context.Context, req datasource.MetadataRequest, resp *datasource.MetadataResponse)
Metadata returns the data source type name.
func (*OrganizationDataSource) Read ¶ added in v1.0.0
func (r *OrganizationDataSource) Read(ctx context.Context, req datasource.ReadRequest, resp *datasource.ReadResponse)
func (*OrganizationDataSource) Schema ¶ added in v1.0.0
func (r *OrganizationDataSource) Schema(ctx context.Context, req datasource.SchemaRequest, resp *datasource.SchemaResponse)
Schema defines the schema for the data source.
type OrganizationDataSourceModel ¶ added in v1.0.0
type OrganizationDataSourceModel struct {
BillingEmail types.String `tfsdk:"billing_email"`
CreatedAt types.String `tfsdk:"created_at"`
DatabaseCount types.Int64 `tfsdk:"database_count"`
Features map[string]jsontypes.Normalized `tfsdk:"features"`
HasCard types.Bool `tfsdk:"has_card"`
HasPastDueInvoices types.Bool `tfsdk:"has_past_due_invoices"`
ID types.String `tfsdk:"id"`
IdpManagedRoles types.Bool `tfsdk:"idp_managed_roles"`
InvoiceBudgetAmount types.String `tfsdk:"invoice_budget_amount"`
KeyspaceShardLimit types.Int64 `tfsdk:"keyspace_shard_limit"`
ManagedTenancy types.Bool `tfsdk:"managed_tenancy"`
Name types.String `tfsdk:"name"`
Organization types.String `tfsdk:"organization"`
PaymentInfoRequired types.Bool `tfsdk:"payment_info_required"`
Plan types.String `tfsdk:"plan"`
SingleTenancy types.Bool `tfsdk:"single_tenancy"`
Sso types.Bool `tfsdk:"sso"`
SsoDirectory types.Bool `tfsdk:"sso_directory"`
SsoPortalURL types.String `tfsdk:"sso_portal_url"`
UpdatedAt types.String `tfsdk:"updated_at"`
ValidBillingInfo types.Bool `tfsdk:"valid_billing_info"`
}
OrganizationDataSourceModel describes the data model.
func (*OrganizationDataSourceModel) RefreshFromOperationsGetOrganizationResponseBody ¶ added in v1.0.0
func (r *OrganizationDataSourceModel) RefreshFromOperationsGetOrganizationResponseBody(ctx context.Context, resp *operations.GetOrganizationResponseBody) diag.Diagnostics
func (*OrganizationDataSourceModel) ToOperationsGetOrganizationRequest ¶ added in v1.0.0
func (r *OrganizationDataSourceModel) ToOperationsGetOrganizationRequest(ctx context.Context) (*operations.GetOrganizationRequest, diag.Diagnostics)
type OrganizationsDataSource ¶ added in v1.0.0
type OrganizationsDataSource struct {
// contains filtered or unexported fields
}
OrganizationsDataSource is the data source implementation.
func (*OrganizationsDataSource) Configure ¶ added in v1.0.0
func (r *OrganizationsDataSource) Configure(ctx context.Context, req datasource.ConfigureRequest, resp *datasource.ConfigureResponse)
func (*OrganizationsDataSource) Metadata ¶ added in v1.0.0
func (r *OrganizationsDataSource) Metadata(ctx context.Context, req datasource.MetadataRequest, resp *datasource.MetadataResponse)
Metadata returns the data source type name.
func (*OrganizationsDataSource) Read ¶ added in v1.0.0
func (r *OrganizationsDataSource) Read(ctx context.Context, req datasource.ReadRequest, resp *datasource.ReadResponse)
func (*OrganizationsDataSource) Schema ¶ added in v1.0.0
func (r *OrganizationsDataSource) Schema(ctx context.Context, req datasource.SchemaRequest, resp *datasource.SchemaResponse)
Schema defines the schema for the data source.
type OrganizationsDataSourceModel ¶ added in v1.0.0
type OrganizationsDataSourceModel struct {
Data []tfTypes.ListOrganizationsData `tfsdk:"data"`
}
OrganizationsDataSourceModel describes the data model.
func (*OrganizationsDataSourceModel) RefreshFromOperationsListOrganizationsResponseBody ¶ added in v1.0.0
func (r *OrganizationsDataSourceModel) RefreshFromOperationsListOrganizationsResponseBody(ctx context.Context, resp *operations.ListOrganizationsResponseBody) diag.Diagnostics
func (*OrganizationsDataSourceModel) ToOperationsListOrganizationsRequest ¶ added in v1.0.0
func (r *OrganizationsDataSourceModel) ToOperationsListOrganizationsRequest(ctx context.Context) (*operations.ListOrganizationsRequest, diag.Diagnostics)
type PlanetscaleProvider ¶ added in v1.0.0
type PlanetscaleProvider struct {
// contains filtered or unexported fields
}
func (*PlanetscaleProvider) Actions ¶ added in v1.0.0
func (p *PlanetscaleProvider) Actions(_ context.Context) []func() action.Action
func (*PlanetscaleProvider) Configure ¶ added in v1.0.0
func (p *PlanetscaleProvider) Configure(ctx context.Context, req provider.ConfigureRequest, resp *provider.ConfigureResponse)
func (*PlanetscaleProvider) DataSources ¶ added in v1.0.0
func (p *PlanetscaleProvider) DataSources(ctx context.Context) []func() datasource.DataSource
func (*PlanetscaleProvider) EphemeralResources ¶ added in v1.0.0
func (p *PlanetscaleProvider) EphemeralResources(ctx context.Context) []func() ephemeral.EphemeralResource
func (*PlanetscaleProvider) Functions ¶ added in v1.0.0
func (p *PlanetscaleProvider) Functions(_ context.Context) []func() function.Function
func (*PlanetscaleProvider) ListResources ¶ added in v1.0.0
func (p *PlanetscaleProvider) ListResources(ctx context.Context) []func() list.ListResource
func (*PlanetscaleProvider) Metadata ¶ added in v1.0.0
func (p *PlanetscaleProvider) Metadata(ctx context.Context, req provider.MetadataRequest, resp *provider.MetadataResponse)
func (*PlanetscaleProvider) Resources ¶ added in v1.0.0
func (p *PlanetscaleProvider) Resources(ctx context.Context) []func() resource.Resource
func (*PlanetscaleProvider) Schema ¶ added in v1.0.0
func (p *PlanetscaleProvider) Schema(ctx context.Context, req provider.SchemaRequest, resp *provider.SchemaResponse)
type PlanetscaleProviderModel ¶ added in v1.0.0
type PlanetscaleProviderModel struct {
ServerURL types.String `tfsdk:"server_url"`
ServiceToken types.String `tfsdk:"service_token"`
ServiceTokenID types.String `tfsdk:"service_token_id"`
}
PlanetscaleProviderModel describes the provider data model.
type PostgresBranchDataSource ¶ added in v1.0.0
type PostgresBranchDataSource struct {
// contains filtered or unexported fields
}
PostgresBranchDataSource is the data source implementation.
func (*PostgresBranchDataSource) Configure ¶ added in v1.0.0
func (r *PostgresBranchDataSource) Configure(ctx context.Context, req datasource.ConfigureRequest, resp *datasource.ConfigureResponse)
func (*PostgresBranchDataSource) Metadata ¶ added in v1.0.0
func (r *PostgresBranchDataSource) Metadata(ctx context.Context, req datasource.MetadataRequest, resp *datasource.MetadataResponse)
Metadata returns the data source type name.
func (*PostgresBranchDataSource) Read ¶ added in v1.0.0
func (r *PostgresBranchDataSource) Read(ctx context.Context, req datasource.ReadRequest, resp *datasource.ReadResponse)
func (*PostgresBranchDataSource) Schema ¶ added in v1.0.0
func (r *PostgresBranchDataSource) Schema(ctx context.Context, req datasource.SchemaRequest, resp *datasource.SchemaResponse)
Schema defines the schema for the data source.
type PostgresBranchDataSourceModel ¶ added in v1.0.0
type PostgresBranchDataSourceModel struct {
Actor *tfTypes.GetPostgresBranchActor `tfsdk:"actor"`
ClusterSize types.String `tfsdk:"cluster_size"`
Database types.String `tfsdk:"database"`
HTMLURL types.String `tfsdk:"html_url"`
ID types.String `tfsdk:"id"`
Name types.String `tfsdk:"name"`
Organization types.String `tfsdk:"organization"`
ParentBranch types.String `tfsdk:"parent_branch"`
Ready types.Bool `tfsdk:"ready"`
RegionData *tfTypes.GetPostgresBranchRegionData `tfsdk:"region_data"`
Replicas types.Int64 `tfsdk:"replicas"`
State types.String `tfsdk:"state"`
URL types.String `tfsdk:"url"`
}
PostgresBranchDataSourceModel describes the data model.
func (*PostgresBranchDataSourceModel) RefreshFromOperationsGetPostgresBranchResponseBody ¶ added in v1.0.0
func (r *PostgresBranchDataSourceModel) RefreshFromOperationsGetPostgresBranchResponseBody(ctx context.Context, resp *operations.GetPostgresBranchResponseBody) diag.Diagnostics
func (*PostgresBranchDataSourceModel) ToOperationsGetPostgresBranchRequest ¶ added in v1.0.0
func (r *PostgresBranchDataSourceModel) ToOperationsGetPostgresBranchRequest(ctx context.Context) (*operations.GetPostgresBranchRequest, diag.Diagnostics)
type PostgresBranchResource ¶ added in v1.0.0
type PostgresBranchResource struct {
// contains filtered or unexported fields
}
PostgresBranchResource defines the resource implementation.
func (*PostgresBranchResource) Configure ¶ added in v1.0.0
func (r *PostgresBranchResource) Configure(ctx context.Context, req resource.ConfigureRequest, resp *resource.ConfigureResponse)
func (*PostgresBranchResource) Create ¶ added in v1.0.0
func (r *PostgresBranchResource) Create(ctx context.Context, req resource.CreateRequest, resp *resource.CreateResponse)
func (*PostgresBranchResource) Delete ¶ added in v1.0.0
func (r *PostgresBranchResource) Delete(ctx context.Context, req resource.DeleteRequest, resp *resource.DeleteResponse)
func (*PostgresBranchResource) ImportState ¶ added in v1.0.0
func (r *PostgresBranchResource) ImportState(ctx context.Context, req resource.ImportStateRequest, resp *resource.ImportStateResponse)
func (*PostgresBranchResource) Metadata ¶ added in v1.0.0
func (r *PostgresBranchResource) Metadata(ctx context.Context, req resource.MetadataRequest, resp *resource.MetadataResponse)
func (*PostgresBranchResource) Read ¶ added in v1.0.0
func (r *PostgresBranchResource) Read(ctx context.Context, req resource.ReadRequest, resp *resource.ReadResponse)
func (*PostgresBranchResource) Schema ¶ added in v1.0.0
func (r *PostgresBranchResource) Schema(ctx context.Context, req resource.SchemaRequest, resp *resource.SchemaResponse)
func (*PostgresBranchResource) Update ¶ added in v1.0.0
func (r *PostgresBranchResource) Update(ctx context.Context, req resource.UpdateRequest, resp *resource.UpdateResponse)
type PostgresBranchResourceModel ¶ added in v1.0.0
type PostgresBranchResourceModel struct {
Actor *tfTypes.GetPostgresBranchActor `tfsdk:"actor"`
BackupID types.String `tfsdk:"backup_id"`
ChangeRequestID types.String `tfsdk:"-"`
ChangeRequestState types.String `tfsdk:"-"`
ClusterSize types.String `tfsdk:"cluster_size"`
Database types.String `tfsdk:"database"`
HTMLURL types.String `tfsdk:"html_url"`
ID types.String `tfsdk:"id"`
MajorVersion types.String `tfsdk:"major_version"`
Name types.String `tfsdk:"name"`
Organization types.String `tfsdk:"organization"`
ParentBranch types.String `tfsdk:"parent_branch"`
Ready types.Bool `tfsdk:"ready"`
Region types.String `tfsdk:"region"`
RegionData *tfTypes.GetPostgresBranchRegionData `tfsdk:"region_data"`
Replicas types.Int64 `tfsdk:"replicas"`
RestorePoint types.String `tfsdk:"restore_point"`
State types.String `tfsdk:"state"`
URL types.String `tfsdk:"url"`
}
PostgresBranchResourceModel describes the resource data model.
func (*PostgresBranchResourceModel) RefreshFromOperationsCreatePostgresBranchResponseBody ¶ added in v1.0.0
func (r *PostgresBranchResourceModel) RefreshFromOperationsCreatePostgresBranchResponseBody(ctx context.Context, resp *operations.CreatePostgresBranchResponseBody) diag.Diagnostics
func (*PostgresBranchResourceModel) RefreshFromOperationsGetBranchChangeRequestResponseBody ¶ added in v1.0.0
func (r *PostgresBranchResourceModel) RefreshFromOperationsGetBranchChangeRequestResponseBody(ctx context.Context, resp *operations.GetBranchChangeRequestResponseBody) diag.Diagnostics
func (*PostgresBranchResourceModel) RefreshFromOperationsGetPostgresBranchResponseBody ¶ added in v1.0.0
func (r *PostgresBranchResourceModel) RefreshFromOperationsGetPostgresBranchResponseBody(ctx context.Context, resp *operations.GetPostgresBranchResponseBody) diag.Diagnostics
func (*PostgresBranchResourceModel) RefreshFromOperationsUpdateBranchChangeRequestResponseBody ¶ added in v1.0.0
func (r *PostgresBranchResourceModel) RefreshFromOperationsUpdateBranchChangeRequestResponseBody(ctx context.Context, resp *operations.UpdateBranchChangeRequestResponseBody) diag.Diagnostics
func (*PostgresBranchResourceModel) RefreshFromOperationsUpdatePostgresBranchResponseBody ¶ added in v1.0.0
func (r *PostgresBranchResourceModel) RefreshFromOperationsUpdatePostgresBranchResponseBody(ctx context.Context, resp *operations.UpdatePostgresBranchResponseBody) diag.Diagnostics
func (*PostgresBranchResourceModel) ToOperationsCreatePostgresBranchRequest ¶ added in v1.0.0
func (r *PostgresBranchResourceModel) ToOperationsCreatePostgresBranchRequest(ctx context.Context) (*operations.CreatePostgresBranchRequest, diag.Diagnostics)
func (*PostgresBranchResourceModel) ToOperationsCreatePostgresBranchRequestBody ¶ added in v1.0.0
func (r *PostgresBranchResourceModel) ToOperationsCreatePostgresBranchRequestBody(ctx context.Context) (*operations.CreatePostgresBranchRequestBody, diag.Diagnostics)
func (*PostgresBranchResourceModel) ToOperationsDeletePostgresBranchRequest ¶ added in v1.0.0
func (r *PostgresBranchResourceModel) ToOperationsDeletePostgresBranchRequest(ctx context.Context) (*operations.DeletePostgresBranchRequest, diag.Diagnostics)
func (*PostgresBranchResourceModel) ToOperationsGetBranchChangeRequestRequest ¶ added in v1.0.0
func (r *PostgresBranchResourceModel) ToOperationsGetBranchChangeRequestRequest(ctx context.Context) (*operations.GetBranchChangeRequestRequest, diag.Diagnostics)
func (*PostgresBranchResourceModel) ToOperationsGetPostgresBranchRequest ¶ added in v1.0.0
func (r *PostgresBranchResourceModel) ToOperationsGetPostgresBranchRequest(ctx context.Context) (*operations.GetPostgresBranchRequest, diag.Diagnostics)
func (*PostgresBranchResourceModel) ToOperationsUpdateBranchChangeRequestRequest ¶ added in v1.0.0
func (r *PostgresBranchResourceModel) ToOperationsUpdateBranchChangeRequestRequest(ctx context.Context) (*operations.UpdateBranchChangeRequestRequest, diag.Diagnostics)
func (*PostgresBranchResourceModel) ToOperationsUpdateBranchChangeRequestRequestBody ¶ added in v1.0.0
func (r *PostgresBranchResourceModel) ToOperationsUpdateBranchChangeRequestRequestBody(ctx context.Context) (*operations.UpdateBranchChangeRequestRequestBody, diag.Diagnostics)
func (*PostgresBranchResourceModel) ToOperationsUpdatePostgresBranchRequest ¶ added in v1.0.0
func (r *PostgresBranchResourceModel) ToOperationsUpdatePostgresBranchRequest(ctx context.Context) (*operations.UpdatePostgresBranchRequest, diag.Diagnostics)
func (*PostgresBranchResourceModel) ToOperationsUpdatePostgresBranchRequestBody ¶ added in v1.0.0
func (r *PostgresBranchResourceModel) ToOperationsUpdatePostgresBranchRequestBody(ctx context.Context) (*operations.UpdatePostgresBranchRequestBody, diag.Diagnostics)
type PostgresBranchRoleDataSource ¶ added in v1.0.0
type PostgresBranchRoleDataSource struct {
// contains filtered or unexported fields
}
PostgresBranchRoleDataSource is the data source implementation.
func (*PostgresBranchRoleDataSource) Configure ¶ added in v1.0.0
func (r *PostgresBranchRoleDataSource) Configure(ctx context.Context, req datasource.ConfigureRequest, resp *datasource.ConfigureResponse)
func (*PostgresBranchRoleDataSource) Metadata ¶ added in v1.0.0
func (r *PostgresBranchRoleDataSource) Metadata(ctx context.Context, req datasource.MetadataRequest, resp *datasource.MetadataResponse)
Metadata returns the data source type name.
func (*PostgresBranchRoleDataSource) Read ¶ added in v1.0.0
func (r *PostgresBranchRoleDataSource) Read(ctx context.Context, req datasource.ReadRequest, resp *datasource.ReadResponse)
func (*PostgresBranchRoleDataSource) Schema ¶ added in v1.0.0
func (r *PostgresBranchRoleDataSource) Schema(ctx context.Context, req datasource.SchemaRequest, resp *datasource.SchemaResponse)
Schema defines the schema for the data source.
type PostgresBranchRoleDataSourceModel ¶ added in v1.0.0
type PostgresBranchRoleDataSourceModel struct {
AccessHostURL types.String `tfsdk:"access_host_url"`
ActorData *tfTypes.GetRoleActorData `tfsdk:"actor_data"`
Branch types.String `tfsdk:"branch"`
BranchData *tfTypes.GetRoleBranchData `tfsdk:"branch_data"`
CreatedAt types.String `tfsdk:"created_at"`
Database types.String `tfsdk:"database"`
DatabaseName types.String `tfsdk:"database_name"`
Default types.Bool `tfsdk:"default"`
DeletedAt types.String `tfsdk:"deleted_at"`
DisabledAt types.String `tfsdk:"disabled_at"`
DropFailed types.String `tfsdk:"drop_failed"`
DroppedAt types.String `tfsdk:"dropped_at"`
Expired types.Bool `tfsdk:"expired"`
ExpiresAt types.String `tfsdk:"expires_at"`
ID types.String `tfsdk:"id"`
InheritedRoles []types.String `tfsdk:"inherited_roles"`
Name types.String `tfsdk:"name"`
Organization types.String `tfsdk:"organization"`
PrivateAccessHostURL types.String `tfsdk:"private_access_host_url"`
PrivateConnectionServiceName types.String `tfsdk:"private_connection_service_name"`
QuerySafetySettings *tfTypes.GetRoleQuerySafetySettings `tfsdk:"query_safety_settings"`
TTL types.Int64 `tfsdk:"ttl"`
UpdatedAt types.String `tfsdk:"updated_at"`
Username types.String `tfsdk:"username"`
}
PostgresBranchRoleDataSourceModel describes the data model.
func (*PostgresBranchRoleDataSourceModel) RefreshFromOperationsGetRoleResponseBody ¶ added in v1.0.0
func (r *PostgresBranchRoleDataSourceModel) RefreshFromOperationsGetRoleResponseBody(ctx context.Context, resp *operations.GetRoleResponseBody) diag.Diagnostics
func (*PostgresBranchRoleDataSourceModel) ToOperationsGetRoleRequest ¶ added in v1.0.0
func (r *PostgresBranchRoleDataSourceModel) ToOperationsGetRoleRequest(ctx context.Context) (*operations.GetRoleRequest, diag.Diagnostics)
type PostgresBranchRoleResource ¶ added in v1.0.0
type PostgresBranchRoleResource struct {
// contains filtered or unexported fields
}
PostgresBranchRoleResource defines the resource implementation.
func (*PostgresBranchRoleResource) Configure ¶ added in v1.0.0
func (r *PostgresBranchRoleResource) Configure(ctx context.Context, req resource.ConfigureRequest, resp *resource.ConfigureResponse)
func (*PostgresBranchRoleResource) Create ¶ added in v1.0.0
func (r *PostgresBranchRoleResource) Create(ctx context.Context, req resource.CreateRequest, resp *resource.CreateResponse)
func (*PostgresBranchRoleResource) Delete ¶ added in v1.0.0
func (r *PostgresBranchRoleResource) Delete(ctx context.Context, req resource.DeleteRequest, resp *resource.DeleteResponse)
func (*PostgresBranchRoleResource) ImportState ¶ added in v1.0.0
func (r *PostgresBranchRoleResource) ImportState(ctx context.Context, req resource.ImportStateRequest, resp *resource.ImportStateResponse)
func (*PostgresBranchRoleResource) Metadata ¶ added in v1.0.0
func (r *PostgresBranchRoleResource) Metadata(ctx context.Context, req resource.MetadataRequest, resp *resource.MetadataResponse)
func (*PostgresBranchRoleResource) Read ¶ added in v1.0.0
func (r *PostgresBranchRoleResource) Read(ctx context.Context, req resource.ReadRequest, resp *resource.ReadResponse)
func (*PostgresBranchRoleResource) Schema ¶ added in v1.0.0
func (r *PostgresBranchRoleResource) Schema(ctx context.Context, req resource.SchemaRequest, resp *resource.SchemaResponse)
func (*PostgresBranchRoleResource) Update ¶ added in v1.0.0
func (r *PostgresBranchRoleResource) Update(ctx context.Context, req resource.UpdateRequest, resp *resource.UpdateResponse)
type PostgresBranchRoleResourceModel ¶ added in v1.0.0
type PostgresBranchRoleResourceModel struct {
AccessHostURL types.String `tfsdk:"access_host_url"`
ActorData *tfTypes.GetRoleActorData `tfsdk:"actor_data"`
Branch types.String `tfsdk:"branch"`
BranchData *tfTypes.GetRoleBranchData `tfsdk:"branch_data"`
CreatedAt types.String `tfsdk:"created_at"`
Database types.String `tfsdk:"database"`
DatabaseName types.String `tfsdk:"database_name"`
Default types.Bool `tfsdk:"default"`
DeletedAt types.String `tfsdk:"deleted_at"`
DisabledAt types.String `tfsdk:"disabled_at"`
DropFailed types.String `tfsdk:"drop_failed"`
DroppedAt types.String `tfsdk:"dropped_at"`
Expired types.Bool `tfsdk:"expired"`
ExpiresAt types.String `tfsdk:"expires_at"`
ID types.String `tfsdk:"id"`
InheritedRoles []types.String `tfsdk:"inherited_roles"`
Name types.String `tfsdk:"name"`
Organization types.String `tfsdk:"organization"`
Password types.String `tfsdk:"password"`
PrivateAccessHostURL types.String `tfsdk:"private_access_host_url"`
PrivateConnectionServiceName types.String `tfsdk:"private_connection_service_name"`
QuerySafetySettings *tfTypes.GetRoleQuerySafetySettings `tfsdk:"query_safety_settings"`
Successor types.String `tfsdk:"successor"`
TTL types.Int64 `tfsdk:"ttl"`
UpdatedAt types.String `tfsdk:"updated_at"`
Username types.String `tfsdk:"username"`
}
PostgresBranchRoleResourceModel describes the resource data model.
func (*PostgresBranchRoleResourceModel) RefreshFromOperationsCreateRoleResponseBody ¶ added in v1.0.0
func (r *PostgresBranchRoleResourceModel) RefreshFromOperationsCreateRoleResponseBody(ctx context.Context, resp *operations.CreateRoleResponseBody) diag.Diagnostics
func (*PostgresBranchRoleResourceModel) RefreshFromOperationsGetRoleResponseBody ¶ added in v1.0.0
func (r *PostgresBranchRoleResourceModel) RefreshFromOperationsGetRoleResponseBody(ctx context.Context, resp *operations.GetRoleResponseBody) diag.Diagnostics
func (*PostgresBranchRoleResourceModel) RefreshFromOperationsUpdateRoleResponseBody ¶ added in v1.0.0
func (r *PostgresBranchRoleResourceModel) RefreshFromOperationsUpdateRoleResponseBody(ctx context.Context, resp *operations.UpdateRoleResponseBody) diag.Diagnostics
func (*PostgresBranchRoleResourceModel) ToOperationsCreateRoleRequest ¶ added in v1.0.0
func (r *PostgresBranchRoleResourceModel) ToOperationsCreateRoleRequest(ctx context.Context) (*operations.CreateRoleRequest, diag.Diagnostics)
func (*PostgresBranchRoleResourceModel) ToOperationsCreateRoleRequestBody ¶ added in v1.0.0
func (r *PostgresBranchRoleResourceModel) ToOperationsCreateRoleRequestBody(ctx context.Context) (*operations.CreateRoleRequestBody, diag.Diagnostics)
func (*PostgresBranchRoleResourceModel) ToOperationsDeleteRoleRequest ¶ added in v1.0.0
func (r *PostgresBranchRoleResourceModel) ToOperationsDeleteRoleRequest(ctx context.Context) (*operations.DeleteRoleRequest, diag.Diagnostics)
func (*PostgresBranchRoleResourceModel) ToOperationsDeleteRoleRequestBody ¶ added in v1.0.0
func (r *PostgresBranchRoleResourceModel) ToOperationsDeleteRoleRequestBody(ctx context.Context) (*operations.DeleteRoleRequestBody, diag.Diagnostics)
func (*PostgresBranchRoleResourceModel) ToOperationsGetRoleRequest ¶ added in v1.0.0
func (r *PostgresBranchRoleResourceModel) ToOperationsGetRoleRequest(ctx context.Context) (*operations.GetRoleRequest, diag.Diagnostics)
func (*PostgresBranchRoleResourceModel) ToOperationsUpdateRoleRequest ¶ added in v1.0.0
func (r *PostgresBranchRoleResourceModel) ToOperationsUpdateRoleRequest(ctx context.Context) (*operations.UpdateRoleRequest, diag.Diagnostics)
func (*PostgresBranchRoleResourceModel) ToOperationsUpdateRoleRequestBody ¶ added in v1.0.0
func (r *PostgresBranchRoleResourceModel) ToOperationsUpdateRoleRequestBody(ctx context.Context) (*operations.UpdateRoleRequestBody, diag.Diagnostics)
type PostgresBranchRolesDataSource ¶ added in v1.0.0
type PostgresBranchRolesDataSource struct {
// contains filtered or unexported fields
}
PostgresBranchRolesDataSource is the data source implementation.
func (*PostgresBranchRolesDataSource) Configure ¶ added in v1.0.0
func (r *PostgresBranchRolesDataSource) Configure(ctx context.Context, req datasource.ConfigureRequest, resp *datasource.ConfigureResponse)
func (*PostgresBranchRolesDataSource) Metadata ¶ added in v1.0.0
func (r *PostgresBranchRolesDataSource) Metadata(ctx context.Context, req datasource.MetadataRequest, resp *datasource.MetadataResponse)
Metadata returns the data source type name.
func (*PostgresBranchRolesDataSource) Read ¶ added in v1.0.0
func (r *PostgresBranchRolesDataSource) Read(ctx context.Context, req datasource.ReadRequest, resp *datasource.ReadResponse)
func (*PostgresBranchRolesDataSource) Schema ¶ added in v1.0.0
func (r *PostgresBranchRolesDataSource) Schema(ctx context.Context, req datasource.SchemaRequest, resp *datasource.SchemaResponse)
Schema defines the schema for the data source.
type PostgresBranchRolesDataSourceModel ¶ added in v1.0.0
type PostgresBranchRolesDataSourceModel struct {
Branch types.String `tfsdk:"branch"`
Data []tfTypes.ListRolesData `tfsdk:"data"`
Database types.String `tfsdk:"database"`
Organization types.String `tfsdk:"organization"`
}
PostgresBranchRolesDataSourceModel describes the data model.
func (*PostgresBranchRolesDataSourceModel) RefreshFromOperationsListRolesResponseBody ¶ added in v1.0.0
func (r *PostgresBranchRolesDataSourceModel) RefreshFromOperationsListRolesResponseBody(ctx context.Context, resp *operations.ListRolesResponseBody) diag.Diagnostics
func (*PostgresBranchRolesDataSourceModel) ToOperationsListRolesRequest ¶ added in v1.0.0
func (r *PostgresBranchRolesDataSourceModel) ToOperationsListRolesRequest(ctx context.Context) (*operations.ListRolesRequest, diag.Diagnostics)
type ProviderHTTPTransportOpts ¶ added in v1.0.0
type ProviderHTTPTransportOpts struct {
// HTTP headers to set on all requests.
SetHeaders map[string]string
// Underlying HTTP transport.
Transport http.RoundTripper
}
Configurable options for the provider HTTP transport.
type VitessBranchDataSource ¶ added in v1.0.0
type VitessBranchDataSource struct {
// contains filtered or unexported fields
}
VitessBranchDataSource is the data source implementation.
func (*VitessBranchDataSource) Configure ¶ added in v1.0.0
func (r *VitessBranchDataSource) Configure(ctx context.Context, req datasource.ConfigureRequest, resp *datasource.ConfigureResponse)
func (*VitessBranchDataSource) Metadata ¶ added in v1.0.0
func (r *VitessBranchDataSource) Metadata(ctx context.Context, req datasource.MetadataRequest, resp *datasource.MetadataResponse)
Metadata returns the data source type name.
func (*VitessBranchDataSource) Read ¶ added in v1.0.0
func (r *VitessBranchDataSource) Read(ctx context.Context, req datasource.ReadRequest, resp *datasource.ReadResponse)
func (*VitessBranchDataSource) Schema ¶ added in v1.0.0
func (r *VitessBranchDataSource) Schema(ctx context.Context, req datasource.SchemaRequest, resp *datasource.SchemaResponse)
Schema defines the schema for the data source.
type VitessBranchDataSourceModel ¶ added in v1.0.0
type VitessBranchDataSourceModel struct {
Actor *tfTypes.GetVitessBranchActor `tfsdk:"actor"`
ClusterSize types.String `tfsdk:"cluster_size"`
Database types.String `tfsdk:"database"`
HTMLURL types.String `tfsdk:"html_url"`
ID types.String `tfsdk:"id"`
MysqlAddress types.String `tfsdk:"mysql_address"`
MysqlEdgeAddress types.String `tfsdk:"mysql_edge_address"`
Name types.String `tfsdk:"name"`
Organization types.String `tfsdk:"organization"`
ParentBranch types.String `tfsdk:"parent_branch"`
Ready types.Bool `tfsdk:"ready"`
RegionData *tfTypes.GetVitessBranchRegionData `tfsdk:"region_data"`
State types.String `tfsdk:"state"`
URL types.String `tfsdk:"url"`
}
VitessBranchDataSourceModel describes the data model.
func (*VitessBranchDataSourceModel) RefreshFromOperationsGetVitessBranchResponseBody ¶ added in v1.0.0
func (r *VitessBranchDataSourceModel) RefreshFromOperationsGetVitessBranchResponseBody(ctx context.Context, resp *operations.GetVitessBranchResponseBody) diag.Diagnostics
func (*VitessBranchDataSourceModel) ToOperationsGetVitessBranchRequest ¶ added in v1.0.0
func (r *VitessBranchDataSourceModel) ToOperationsGetVitessBranchRequest(ctx context.Context) (*operations.GetVitessBranchRequest, diag.Diagnostics)
type VitessBranchPasswordDataSource ¶ added in v1.0.0
type VitessBranchPasswordDataSource struct {
// contains filtered or unexported fields
}
VitessBranchPasswordDataSource is the data source implementation.
func (*VitessBranchPasswordDataSource) Configure ¶ added in v1.0.0
func (r *VitessBranchPasswordDataSource) Configure(ctx context.Context, req datasource.ConfigureRequest, resp *datasource.ConfigureResponse)
func (*VitessBranchPasswordDataSource) Metadata ¶ added in v1.0.0
func (r *VitessBranchPasswordDataSource) Metadata(ctx context.Context, req datasource.MetadataRequest, resp *datasource.MetadataResponse)
Metadata returns the data source type name.
func (*VitessBranchPasswordDataSource) Read ¶ added in v1.0.0
func (r *VitessBranchPasswordDataSource) Read(ctx context.Context, req datasource.ReadRequest, resp *datasource.ReadResponse)
func (*VitessBranchPasswordDataSource) Schema ¶ added in v1.0.0
func (r *VitessBranchPasswordDataSource) Schema(ctx context.Context, req datasource.SchemaRequest, resp *datasource.SchemaResponse)
Schema defines the schema for the data source.
type VitessBranchPasswordDataSourceModel ¶ added in v1.0.0
type VitessBranchPasswordDataSourceModel struct {
AccessHostRegionalURL types.String `tfsdk:"access_host_regional_url"`
AccessHostRegionalUrls []types.String `tfsdk:"access_host_regional_urls"`
AccessHostURL types.String `tfsdk:"access_host_url"`
Actor *tfTypes.GetPasswordActor `tfsdk:"actor"`
Branch types.String `tfsdk:"branch"`
Cidrs []types.String `tfsdk:"cidrs"`
CreatedAt types.String `tfsdk:"created_at"`
Database types.String `tfsdk:"database"`
DatabaseBranch *tfTypes.GetPasswordDatabaseBranch `tfsdk:"database_branch"`
DeletedAt types.String `tfsdk:"deleted_at"`
DirectVtgate types.Bool `tfsdk:"direct_vtgate"`
DirectVtgateAddresses []types.String `tfsdk:"direct_vtgate_addresses"`
Expired types.Bool `tfsdk:"expired"`
ExpiresAt types.String `tfsdk:"expires_at"`
ID types.String `tfsdk:"id"`
LastUsedAt types.String `tfsdk:"last_used_at"`
Name types.String `tfsdk:"name"`
Organization types.String `tfsdk:"organization"`
Region *tfTypes.GetPasswordRegion `tfsdk:"region"`
Renewable types.Bool `tfsdk:"renewable"`
Replica types.Bool `tfsdk:"replica"`
Role types.String `tfsdk:"role"`
TTLSeconds types.Int64 `tfsdk:"ttl_seconds"`
Username types.String `tfsdk:"username"`
}
VitessBranchPasswordDataSourceModel describes the data model.
func (*VitessBranchPasswordDataSourceModel) RefreshFromOperationsGetPasswordResponseBody ¶ added in v1.0.0
func (r *VitessBranchPasswordDataSourceModel) RefreshFromOperationsGetPasswordResponseBody(ctx context.Context, resp *operations.GetPasswordResponseBody) diag.Diagnostics
func (*VitessBranchPasswordDataSourceModel) ToOperationsGetPasswordRequest ¶ added in v1.0.0
func (r *VitessBranchPasswordDataSourceModel) ToOperationsGetPasswordRequest(ctx context.Context) (*operations.GetPasswordRequest, diag.Diagnostics)
type VitessBranchPasswordResource ¶ added in v1.0.0
type VitessBranchPasswordResource struct {
// contains filtered or unexported fields
}
VitessBranchPasswordResource defines the resource implementation.
func (*VitessBranchPasswordResource) Configure ¶ added in v1.0.0
func (r *VitessBranchPasswordResource) Configure(ctx context.Context, req resource.ConfigureRequest, resp *resource.ConfigureResponse)
func (*VitessBranchPasswordResource) Create ¶ added in v1.0.0
func (r *VitessBranchPasswordResource) Create(ctx context.Context, req resource.CreateRequest, resp *resource.CreateResponse)
func (*VitessBranchPasswordResource) Delete ¶ added in v1.0.0
func (r *VitessBranchPasswordResource) Delete(ctx context.Context, req resource.DeleteRequest, resp *resource.DeleteResponse)
func (*VitessBranchPasswordResource) ImportState ¶ added in v1.0.0
func (r *VitessBranchPasswordResource) ImportState(ctx context.Context, req resource.ImportStateRequest, resp *resource.ImportStateResponse)
func (*VitessBranchPasswordResource) Metadata ¶ added in v1.0.0
func (r *VitessBranchPasswordResource) Metadata(ctx context.Context, req resource.MetadataRequest, resp *resource.MetadataResponse)
func (*VitessBranchPasswordResource) Read ¶ added in v1.0.0
func (r *VitessBranchPasswordResource) Read(ctx context.Context, req resource.ReadRequest, resp *resource.ReadResponse)
func (*VitessBranchPasswordResource) Schema ¶ added in v1.0.0
func (r *VitessBranchPasswordResource) Schema(ctx context.Context, req resource.SchemaRequest, resp *resource.SchemaResponse)
func (*VitessBranchPasswordResource) Update ¶ added in v1.0.0
func (r *VitessBranchPasswordResource) Update(ctx context.Context, req resource.UpdateRequest, resp *resource.UpdateResponse)
type VitessBranchPasswordResourceModel ¶ added in v1.0.0
type VitessBranchPasswordResourceModel struct {
AccessHostRegionalURL types.String `tfsdk:"access_host_regional_url"`
AccessHostRegionalUrls []types.String `tfsdk:"access_host_regional_urls"`
AccessHostURL types.String `tfsdk:"access_host_url"`
Actor *tfTypes.GetPasswordActor `tfsdk:"actor"`
Branch types.String `tfsdk:"branch"`
Cidrs []types.String `tfsdk:"cidrs"`
CreatedAt types.String `tfsdk:"created_at"`
Database types.String `tfsdk:"database"`
DatabaseBranch *tfTypes.GetPasswordDatabaseBranch `tfsdk:"database_branch"`
DeletedAt types.String `tfsdk:"deleted_at"`
DirectVtgate types.Bool `tfsdk:"direct_vtgate"`
DirectVtgateAddresses []types.String `tfsdk:"direct_vtgate_addresses"`
Expired types.Bool `tfsdk:"expired"`
ExpiresAt types.String `tfsdk:"expires_at"`
ID types.String `tfsdk:"id"`
LastUsedAt types.String `tfsdk:"last_used_at"`
Name types.String `tfsdk:"name"`
Organization types.String `tfsdk:"organization"`
PlainText types.String `tfsdk:"plain_text"`
Region *tfTypes.GetPasswordRegion `tfsdk:"region"`
Renewable types.Bool `tfsdk:"renewable"`
Replica types.Bool `tfsdk:"replica"`
Role types.String `tfsdk:"role"`
TTL types.Int64 `tfsdk:"ttl"`
TTLSeconds types.Int64 `tfsdk:"ttl_seconds"`
Username types.String `tfsdk:"username"`
}
VitessBranchPasswordResourceModel describes the resource data model.
func (*VitessBranchPasswordResourceModel) RefreshFromOperationsCreatePasswordResponseBody ¶ added in v1.0.0
func (r *VitessBranchPasswordResourceModel) RefreshFromOperationsCreatePasswordResponseBody(ctx context.Context, resp *operations.CreatePasswordResponseBody) diag.Diagnostics
func (*VitessBranchPasswordResourceModel) RefreshFromOperationsGetPasswordResponseBody ¶ added in v1.0.0
func (r *VitessBranchPasswordResourceModel) RefreshFromOperationsGetPasswordResponseBody(ctx context.Context, resp *operations.GetPasswordResponseBody) diag.Diagnostics
func (*VitessBranchPasswordResourceModel) RefreshFromOperationsUpdatePasswordResponseBody ¶ added in v1.0.0
func (r *VitessBranchPasswordResourceModel) RefreshFromOperationsUpdatePasswordResponseBody(ctx context.Context, resp *operations.UpdatePasswordResponseBody) diag.Diagnostics
func (*VitessBranchPasswordResourceModel) ToOperationsCreatePasswordRequest ¶ added in v1.0.0
func (r *VitessBranchPasswordResourceModel) ToOperationsCreatePasswordRequest(ctx context.Context) (*operations.CreatePasswordRequest, diag.Diagnostics)
func (*VitessBranchPasswordResourceModel) ToOperationsCreatePasswordRequestBody ¶ added in v1.0.0
func (r *VitessBranchPasswordResourceModel) ToOperationsCreatePasswordRequestBody(ctx context.Context) (*operations.CreatePasswordRequestBody, diag.Diagnostics)
func (*VitessBranchPasswordResourceModel) ToOperationsDeletePasswordRequest ¶ added in v1.0.0
func (r *VitessBranchPasswordResourceModel) ToOperationsDeletePasswordRequest(ctx context.Context) (*operations.DeletePasswordRequest, diag.Diagnostics)
func (*VitessBranchPasswordResourceModel) ToOperationsGetPasswordRequest ¶ added in v1.0.0
func (r *VitessBranchPasswordResourceModel) ToOperationsGetPasswordRequest(ctx context.Context) (*operations.GetPasswordRequest, diag.Diagnostics)
func (*VitessBranchPasswordResourceModel) ToOperationsUpdatePasswordRequest ¶ added in v1.0.0
func (r *VitessBranchPasswordResourceModel) ToOperationsUpdatePasswordRequest(ctx context.Context) (*operations.UpdatePasswordRequest, diag.Diagnostics)
func (*VitessBranchPasswordResourceModel) ToOperationsUpdatePasswordRequestBody ¶ added in v1.0.0
func (r *VitessBranchPasswordResourceModel) ToOperationsUpdatePasswordRequestBody(ctx context.Context) (*operations.UpdatePasswordRequestBody, diag.Diagnostics)
type VitessBranchPasswordsDataSource ¶ added in v1.0.0
type VitessBranchPasswordsDataSource struct {
// contains filtered or unexported fields
}
VitessBranchPasswordsDataSource is the data source implementation.
func (*VitessBranchPasswordsDataSource) Configure ¶ added in v1.0.0
func (r *VitessBranchPasswordsDataSource) Configure(ctx context.Context, req datasource.ConfigureRequest, resp *datasource.ConfigureResponse)
func (*VitessBranchPasswordsDataSource) Metadata ¶ added in v1.0.0
func (r *VitessBranchPasswordsDataSource) Metadata(ctx context.Context, req datasource.MetadataRequest, resp *datasource.MetadataResponse)
Metadata returns the data source type name.
func (*VitessBranchPasswordsDataSource) Read ¶ added in v1.0.0
func (r *VitessBranchPasswordsDataSource) Read(ctx context.Context, req datasource.ReadRequest, resp *datasource.ReadResponse)
func (*VitessBranchPasswordsDataSource) Schema ¶ added in v1.0.0
func (r *VitessBranchPasswordsDataSource) Schema(ctx context.Context, req datasource.SchemaRequest, resp *datasource.SchemaResponse)
Schema defines the schema for the data source.
type VitessBranchPasswordsDataSourceModel ¶ added in v1.0.0
type VitessBranchPasswordsDataSourceModel struct {
Branch types.String `tfsdk:"branch"`
Data []tfTypes.ListPasswordsData `tfsdk:"data"`
Database types.String `tfsdk:"database"`
Organization types.String `tfsdk:"organization"`
ReadOnlyRegionID types.String `queryParam:"style=form,explode=true,name=read_only_region_id" tfsdk:"read_only_region_id"`
}
VitessBranchPasswordsDataSourceModel describes the data model.
func (*VitessBranchPasswordsDataSourceModel) RefreshFromOperationsListPasswordsResponseBody ¶ added in v1.0.0
func (r *VitessBranchPasswordsDataSourceModel) RefreshFromOperationsListPasswordsResponseBody(ctx context.Context, resp *operations.ListPasswordsResponseBody) diag.Diagnostics
func (*VitessBranchPasswordsDataSourceModel) ToOperationsListPasswordsRequest ¶ added in v1.0.0
func (r *VitessBranchPasswordsDataSourceModel) ToOperationsListPasswordsRequest(ctx context.Context) (*operations.ListPasswordsRequest, diag.Diagnostics)
type VitessBranchResource ¶ added in v1.0.0
type VitessBranchResource struct {
// contains filtered or unexported fields
}
VitessBranchResource defines the resource implementation.
func (*VitessBranchResource) Configure ¶ added in v1.0.0
func (r *VitessBranchResource) Configure(ctx context.Context, req resource.ConfigureRequest, resp *resource.ConfigureResponse)
func (*VitessBranchResource) Create ¶ added in v1.0.0
func (r *VitessBranchResource) Create(ctx context.Context, req resource.CreateRequest, resp *resource.CreateResponse)
func (*VitessBranchResource) Delete ¶ added in v1.0.0
func (r *VitessBranchResource) Delete(ctx context.Context, req resource.DeleteRequest, resp *resource.DeleteResponse)
func (*VitessBranchResource) ImportState ¶ added in v1.0.0
func (r *VitessBranchResource) ImportState(ctx context.Context, req resource.ImportStateRequest, resp *resource.ImportStateResponse)
func (*VitessBranchResource) Metadata ¶ added in v1.0.0
func (r *VitessBranchResource) Metadata(ctx context.Context, req resource.MetadataRequest, resp *resource.MetadataResponse)
func (*VitessBranchResource) Read ¶ added in v1.0.0
func (r *VitessBranchResource) Read(ctx context.Context, req resource.ReadRequest, resp *resource.ReadResponse)
func (*VitessBranchResource) Schema ¶ added in v1.0.0
func (r *VitessBranchResource) Schema(ctx context.Context, req resource.SchemaRequest, resp *resource.SchemaResponse)
func (*VitessBranchResource) Update ¶ added in v1.0.0
func (r *VitessBranchResource) Update(ctx context.Context, req resource.UpdateRequest, resp *resource.UpdateResponse)
type VitessBranchResourceModel ¶ added in v1.0.0
type VitessBranchResourceModel struct {
Actor *tfTypes.GetVitessBranchActor `tfsdk:"actor"`
BackupID types.String `tfsdk:"backup_id"`
ClusterSize types.String `tfsdk:"cluster_size"`
Database types.String `tfsdk:"database"`
HTMLURL types.String `tfsdk:"html_url"`
ID types.String `tfsdk:"id"`
MysqlAddress types.String `tfsdk:"mysql_address"`
MysqlEdgeAddress types.String `tfsdk:"mysql_edge_address"`
Name types.String `tfsdk:"name"`
Organization types.String `tfsdk:"organization"`
ParentBranch types.String `tfsdk:"parent_branch"`
Ready types.Bool `tfsdk:"ready"`
Region types.String `tfsdk:"region"`
RegionData *tfTypes.GetVitessBranchRegionData `tfsdk:"region_data"`
SeedData types.String `tfsdk:"seed_data"`
State types.String `tfsdk:"state"`
URL types.String `tfsdk:"url"`
}
VitessBranchResourceModel describes the resource data model.
func (*VitessBranchResourceModel) RefreshFromOperationsCreateVitessBranchResponseBody ¶ added in v1.0.0
func (r *VitessBranchResourceModel) RefreshFromOperationsCreateVitessBranchResponseBody(ctx context.Context, resp *operations.CreateVitessBranchResponseBody) diag.Diagnostics
func (*VitessBranchResourceModel) RefreshFromOperationsGetVitessBranchResponseBody ¶ added in v1.0.0
func (r *VitessBranchResourceModel) RefreshFromOperationsGetVitessBranchResponseBody(ctx context.Context, resp *operations.GetVitessBranchResponseBody) diag.Diagnostics
func (*VitessBranchResourceModel) RefreshFromOperationsUpdateVitessBranchResponseBody ¶ added in v1.0.0
func (r *VitessBranchResourceModel) RefreshFromOperationsUpdateVitessBranchResponseBody(ctx context.Context, resp *operations.UpdateVitessBranchResponseBody) diag.Diagnostics
func (*VitessBranchResourceModel) ToOperationsCreateVitessBranchRequest ¶ added in v1.0.0
func (r *VitessBranchResourceModel) ToOperationsCreateVitessBranchRequest(ctx context.Context) (*operations.CreateVitessBranchRequest, diag.Diagnostics)
func (*VitessBranchResourceModel) ToOperationsCreateVitessBranchRequestBody ¶ added in v1.0.0
func (r *VitessBranchResourceModel) ToOperationsCreateVitessBranchRequestBody(ctx context.Context) (*operations.CreateVitessBranchRequestBody, diag.Diagnostics)
func (*VitessBranchResourceModel) ToOperationsDeleteVitessBranchRequest ¶ added in v1.0.0
func (r *VitessBranchResourceModel) ToOperationsDeleteVitessBranchRequest(ctx context.Context) (*operations.DeleteVitessBranchRequest, diag.Diagnostics)
func (*VitessBranchResourceModel) ToOperationsGetVitessBranchRequest ¶ added in v1.0.0
func (r *VitessBranchResourceModel) ToOperationsGetVitessBranchRequest(ctx context.Context) (*operations.GetVitessBranchRequest, diag.Diagnostics)
func (*VitessBranchResourceModel) ToOperationsUpdateVitessBranchRequest ¶ added in v1.0.0
func (r *VitessBranchResourceModel) ToOperationsUpdateVitessBranchRequest(ctx context.Context) (*operations.UpdateVitessBranchRequest, diag.Diagnostics)
func (*VitessBranchResourceModel) ToOperationsUpdateVitessBranchRequestBody ¶ added in v1.0.0
func (r *VitessBranchResourceModel) ToOperationsUpdateVitessBranchRequestBody(ctx context.Context) (*operations.UpdateVitessBranchRequestBody, diag.Diagnostics)
Source Files
¶
- databasepostgres_data_source.go
- databasepostgres_data_source_sdk.go
- databases_data_source.go
- databases_data_source_sdk.go
- databasevitess_data_source.go
- databasevitess_data_source_sdk.go
- organization_data_source.go
- organization_data_source_sdk.go
- organizations_data_source.go
- organizations_data_source_sdk.go
- postgresbranch_data_source.go
- postgresbranch_data_source_sdk.go
- postgresbranch_resource.go
- postgresbranch_resource_sdk.go
- postgresbranchrole_data_source.go
- postgresbranchrole_data_source_sdk.go
- postgresbranchrole_resource.go
- postgresbranchrole_resource_sdk.go
- postgresbranchroles_data_source.go
- postgresbranchroles_data_source_sdk.go
- provider.go
- utils.go
- vitessbranch_data_source.go
- vitessbranch_data_source_sdk.go
- vitessbranch_resource.go
- vitessbranch_resource_sdk.go
- vitessbranchpassword_data_source.go
- vitessbranchpassword_data_source_sdk.go
- vitessbranchpassword_resource.go
- vitessbranchpassword_resource_sdk.go
- vitessbranchpasswords_data_source.go
- vitessbranchpasswords_data_source_sdk.go
Directories
¶
| Path | Synopsis |
|---|---|
|
Package reflect is a forked version of https://github.com/hashicorp/terraform-plugin-framework/tree/main/internal/reflect that has been modified to support speakeasy's terraform generator.
|
Package reflect is a forked version of https://github.com/hashicorp/terraform-plugin-framework/tree/main/internal/reflect that has been modified to support speakeasy's terraform generator. |