provider

package
v0.2.7 Latest Latest
Warning

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

Go to latest
Published: Dec 16, 2024 License: Apache-2.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(version string) func() provider.Provider

func NewRestobjectDataSource

func NewRestobjectDataSource() datasource.DataSource

func NewRestobjectResource

func NewRestobjectResource() resource.Resource

Types

type OAuthClientCredentials

type OAuthClientCredentials struct {
	ClientID       types.String `tfsdk:"client_id"`
	ClientSecret   types.String `tfsdk:"client_secret"`
	TokenEndpoint  types.String `tfsdk:"token_endpoint"`
	EndpointParams types.Map    `tfsdk:"endpoint_params"`
	Scopes         types.List   `tfsdk:"scopes"`
}

type ReadSearch

type ReadSearch struct {
	SearchKey   types.String `tfsdk:"search_key"`
	SearchValue types.String `tfsdk:"search_value"`
	ResultKey   types.String `tfsdk:"result_key"`
	QueryString types.String `tfsdk:"query_string"`
}

type ResponseFilter

type ResponseFilter struct {
	Keys    types.List `tfsdk:"keys"`
	Include types.Bool `tfsdk:"include"`
}

type RestapiProvider

type RestapiProvider struct {
	// contains filtered or unexported fields
}

RestapiProvider defines the provider implementation.

func (*RestapiProvider) Configure

func (*RestapiProvider) DataSources

func (p *RestapiProvider) DataSources(_ context.Context) []func() datasource.DataSource

func (*RestapiProvider) Metadata

func (*RestapiProvider) Resources

func (p *RestapiProvider) Resources(_ context.Context) []func() resource.Resource

func (*RestapiProvider) Schema

type RestapiProviderModel

type RestapiProviderModel struct {
	Endpoint               types.String  `tfsdk:"endpoint"`
	Insecure               types.Bool    `tfsdk:"insecure"`
	Username               types.String  `tfsdk:"username"`
	Password               types.String  `tfsdk:"password"`
	Headers                types.Map     `tfsdk:"headers"`
	UseCookies             types.Bool    `tfsdk:"use_cookies"`
	Timeout                types.Int64   `tfsdk:"timeout"`
	IDAttribute            types.String  `tfsdk:"id_attribute"`
	CreateMethod           types.String  `tfsdk:"create_method"`
	ReadMethod             types.String  `tfsdk:"read_method"`
	UpdateMethod           types.String  `tfsdk:"update_method"`
	DestroyMethod          types.String  `tfsdk:"destroy_method"`
	CopyKeys               types.List    `tfsdk:"copy_keys"`
	ResponseFilter         types.Object  `tfsdk:"response_filter"`
	DriftDetection         types.Bool    `tfsdk:"drift_detection"`
	WriteReturnsObject     types.Bool    `tfsdk:"write_returns_object"`
	CreateReturnsObject    types.Bool    `tfsdk:"create_returns_object"`
	XSSIPrefix             types.String  `tfsdk:"xssi_prefix"`
	RateLimit              types.Float64 `tfsdk:"rate_limit"`
	TestPath               types.String  `tfsdk:"test_path"`
	OAuthClientCredentials types.Object  `tfsdk:"oauth_client_credentials"`
	CertString             types.String  `tfsdk:"cert_string"`
	KeyString              types.String  `tfsdk:"key_string"`
	CertFile               types.String  `tfsdk:"cert_file"`
	KeyFile                types.String  `tfsdk:"key_file"`
}

type RestobjectDataSource

type RestobjectDataSource struct {
	// contains filtered or unexported fields
}

RestobjectDataSource defines the data source implementation.

func (*RestobjectDataSource) Configure

func (*RestobjectDataSource) Metadata

func (*RestobjectDataSource) Read

func (*RestobjectDataSource) Schema

type RestobjectResource

type RestobjectResource struct {
	// contains filtered or unexported fields
}

APIObject is the state holding struct for a restapi_object resource.

func (*RestobjectResource) Configure

func (*RestobjectResource) Create

func (*RestobjectResource) Delete

func (*RestobjectResource) ImportState

func (*RestobjectResource) Metadata

func (*RestobjectResource) Read

func (*RestobjectResource) Schema

func (*RestobjectResource) Update

type RestobjectResourceModel

type RestobjectResourceModel struct {
	Path       types.String `tfsdk:"path"`
	PostPath   types.String `tfsdk:"create_path"`
	GetPath    types.String `tfsdk:"read_path"`
	PutPath    types.String `tfsdk:"update_path"`
	DeletePath types.String `tfsdk:"destroy_path"`

	CreateMethod types.String `tfsdk:"create_method"`
	ReadMethod   types.String `tfsdk:"read_method"`
	UpdateMethod types.String `tfsdk:"update_method"`
	DeleteMethod types.String `tfsdk:"destroy_method"`

	QueryString types.String `tfsdk:"query_string"`
	ReadSearch  types.Object `tfsdk:"read_search"`

	ID          types.String `tfsdk:"id"`
	IDAttribute types.String `tfsdk:"id_attribute"`
	ObjectID    types.String `tfsdk:"object_id"`

	Data              types.String `tfsdk:"data"`
	UpdateData        types.String `tfsdk:"update_data"`
	DestroyData       types.String `tfsdk:"destroy_data"`
	APIResponse       types.Map    `tfsdk:"api_response"`
	APIResponseRaw    types.String `tfsdk:"api_response_raw"`
	CreateResponseRaw types.String `tfsdk:"create_response_raw"`
}

Jump to

Keyboard shortcuts

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