streaminstance

package
v0.1.0-test Latest Latest
Warning

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

Go to latest
Published: Mar 22, 2024 License: MPL-2.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ProcessRegionObjectType = types.ObjectType{AttrTypes: map[string]attr.Type{
	"cloud_provider": types.StringType,
	"region":         types.StringType,
}}
View Source
var StreamConfigObjectType = types.ObjectType{AttrTypes: map[string]attr.Type{
	"tier": types.StringType,
}}

Functions

func DSAttributes

func DSAttributes(withArguments bool) map[string]schema.Attribute

DSAttributes returns the attribute definitions for a single stream instance. `withArguments` marks certain attributes as required (for singular data source) or as computed (for plural data source)

func DataSource

func DataSource() datasource.DataSource

func PluralDataSource

func PluralDataSource() datasource.DataSource

func Resource

func Resource() resource.Resource

Types

type TFInstanceProcessRegionSpecModel

type TFInstanceProcessRegionSpecModel struct {
	CloudProvider types.String `tfsdk:"cloud_provider"`
	Region        types.String `tfsdk:"region"`
}

type TFInstanceStreamConfigSpecModel added in v1.15.2

type TFInstanceStreamConfigSpecModel struct {
	Tier types.String `tfsdk:"tier"`
}

type TFStreamInstanceModel

type TFStreamInstanceModel struct {
	ID                types.String `tfsdk:"id"`
	InstanceName      types.String `tfsdk:"instance_name"`
	ProjectID         types.String `tfsdk:"project_id"`
	DataProcessRegion types.Object `tfsdk:"data_process_region"`
	StreamConfig      types.Object `tfsdk:"stream_config"`
	Hostnames         types.List   `tfsdk:"hostnames"`
}

type TFStreamInstancesModel

type TFStreamInstancesModel struct {
	ID           types.String            `tfsdk:"id"`
	ProjectID    types.String            `tfsdk:"project_id"`
	Results      []TFStreamInstanceModel `tfsdk:"results"`
	PageNum      types.Int64             `tfsdk:"page_num"`
	ItemsPerPage types.Int64             `tfsdk:"items_per_page"`
	TotalCount   types.Int64             `tfsdk:"total_count"`
}

func NewTFStreamInstances

func NewTFStreamInstances(ctx context.Context, streamInstancesConfig *TFStreamInstancesModel, paginatedResult *admin.PaginatedApiStreamsTenant) (*TFStreamInstancesModel, diag.Diagnostics)

Jump to

Keyboard shortcuts

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