provider

package
v1.3.0 Latest Latest
Warning

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

Go to latest
Published: Jun 23, 2023 License: MPL-2.0 Imports: 28 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AtoiNoError

func AtoiNoError(strToConv string, resp *resource.ReadResponse) int32

func Client added in v0.7.0

func Client(APIToken string, userAgent string) *apiClient

func DnsDelegationSigner

func DnsDelegationSigner() map[string]schema.Attribute

func DnsDelegationSignerDS

func DnsDelegationSignerDS() map[string]schema.Attribute

func DnsDelegationSignerDigestTypeScheme

func DnsDelegationSignerDigestTypeScheme() map[string]schema.Attribute

func New

func New(version string) provider.Provider

func NewDnssecResource

func NewDnssecResource() resource.Resource

func NewDomainResource added in v0.13.0

func NewDomainResource() resource.Resource

func NewEdgeFunctionResource added in v1.2.0

func NewEdgeFunctionResource() resource.Resource

func NewRecordResource

func NewRecordResource() resource.Resource

func NewZoneResource

func NewZoneResource() resource.Resource

Types

type AlgorithmTypeDS

type AlgorithmTypeDS struct {
	Id   types.Int64  `tfsdk:"id"`
	Slug types.String `tfsdk:"slug"`
}

type ApplicationOrigins added in v1.3.0

type ApplicationOrigins struct {
	Name       types.String `tfsdk:"name"`
	OriginType types.String `tfsdk:"origin_type"`
	OriginID   types.String `tfsdk:"origin_id"`
}

func GetOrigins added in v1.3.0

func GetOrigins(EdgeOrigins []edgeapplications.ApplicationOrigins) []ApplicationOrigins

type AzionProviderModel

type AzionProviderModel struct {
	APIToken types.String `tfsdk:"api_token"`
}

type DigestTypeDS

type DigestTypeDS struct {
	Id   types.Int64  `tfsdk:"id"`
	Slug types.String `tfsdk:"slug"`
}

type DnsDelegationSignerDSModel

type DnsDelegationSignerDSModel struct {
	DigestType    *DigestTypeDS    `tfsdk:"digesttype"`
	AlgorithmType *AlgorithmTypeDS `tfsdk:"algorithmtype"`
	Digest        types.String     `tfsdk:"digest"`
	KeyTag        types.Int64      `tfsdk:"keytag"`
}

type DnsDelegationSignerDigestType

type DnsDelegationSignerDigestType struct {
	Id   types.Int64  `tfsdk:"id"`
	Slug types.String `tfsdk:"slug"`
}

type DnsDelegationSignerModel

type DnsDelegationSignerModel struct {
	DigestType    *DnsDelegationSignerDigestType `tfsdk:"digesttype"`
	AlgorithmType *DnsDelegationSignerDigestType `tfsdk:"algorithmtype"`
	Digest        types.String                   `tfsdk:"digest"`
	KeyTag        types.Int64                    `tfsdk:"keytag"`
}

type DomainDataSource added in v0.9.0

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

func (*DomainDataSource) Configure added in v0.9.0

func (*DomainDataSource) Metadata added in v0.9.0

func (*DomainDataSource) Read added in v0.9.0

func (*DomainDataSource) Schema added in v0.9.0

type DomainDataSourceModel added in v0.9.0

type DomainDataSourceModel struct {
	SchemaVersion types.Int64   `tfsdk:"schema_version"`
	Results       DomainResults `tfsdk:"results"`
	ID            types.String  `tfsdk:"id"`
}

type DomainResourceModel added in v0.13.0

type DomainResourceModel struct {
	SchemaVersion types.Int64            `tfsdk:"schema_version"`
	Domain        *DomainResourceResults `tfsdk:"domain"`
	ID            types.String           `tfsdk:"id"`
	LastUpdated   types.String           `tfsdk:"last_updated"`
}

type DomainResourceResults added in v0.13.0

type DomainResourceResults struct {
	ID                   types.Int64  `tfsdk:"id"`
	Name                 types.String `tfsdk:"name"`
	Cnames               types.Set    `tfsdk:"cnames"`
	CnameAccessOnly      types.Bool   `tfsdk:"cname_access_only"`
	IsActive             types.Bool   `tfsdk:"is_active"`
	EdgeApplicationId    types.Int64  `tfsdk:"edge_application_id"`
	DigitalCertificateId types.Int64  `tfsdk:"digital_certificate_id"`
	DomainName           types.String `tfsdk:"domain_name"`
	Environment          types.String `tfsdk:"environment"`
}

type DomainResults added in v0.7.0

type DomainResults struct {
	DomainId             types.Int64  `tfsdk:"domain_id"`
	Name                 types.String `tfsdk:"name"`
	Cnames               types.List   `tfsdk:"cnames"`
	CnameAccessOnly      types.Bool   `tfsdk:"cname_access_only"`
	IsActive             types.Bool   `tfsdk:"is_active"`
	EdgeApplicationId    types.Int64  `tfsdk:"edge_application_id"`
	DigitalCertificateId types.Int64  `tfsdk:"digital_certificate_id"`
	DomainName           types.String `tfsdk:"domain_name"`
	Environment          types.String `tfsdk:"environment"`
}

type DomainsDataSource added in v0.7.0

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

func (*DomainsDataSource) Configure added in v0.7.0

func (*DomainsDataSource) Metadata added in v0.7.0

func (*DomainsDataSource) Read added in v0.7.0

func (*DomainsDataSource) Schema added in v0.7.0

type DomainsDataSourceModel added in v0.7.0

type DomainsDataSourceModel struct {
	SchemaVersion types.Int64              `tfsdk:"schema_version"`
	Counter       types.Int64              `tfsdk:"counter"`
	TotalPages    types.Int64              `tfsdk:"total_pages"`
	Links         *GetDomainsResponseLinks `tfsdk:"links"`
	Results       []DomainsResults         `tfsdk:"results"`
	ID            types.String             `tfsdk:"id"`
}

type DomainsResults added in v0.9.0

type DomainsResults struct {
	ID                   types.Int64  `tfsdk:"id"`
	Name                 types.String `tfsdk:"name"`
	Cnames               types.List   `tfsdk:"cnames"`
	CnameAccessOnly      types.Bool   `tfsdk:"cname_access_only"`
	IsActive             types.Bool   `tfsdk:"is_active"`
	EdgeApplicationId    types.Int64  `tfsdk:"edge_application_id"`
	DigitalCertificateId types.Int64  `tfsdk:"digital_certificate_id"`
	DomainName           types.String `tfsdk:"domain_name"`
	Environment          types.String `tfsdk:"environment"`
}

type EdgeApplicationDataSource added in v1.3.0

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

func (*EdgeApplicationDataSource) Configure added in v1.3.0

func (*EdgeApplicationDataSource) Metadata added in v1.3.0

func (*EdgeApplicationDataSource) Read added in v1.3.0

func (*EdgeApplicationDataSource) Schema added in v1.3.0

type EdgeApplicationDataSourceModel added in v1.3.0

type EdgeApplicationDataSourceModel struct {
	SchemaVersion types.Int64            `tfsdk:"schema_version"`
	Results       *EdgeApplicationResult `tfsdk:"results"`
	ID            types.String           `tfsdk:"id"`
}

type EdgeApplicationResult added in v1.3.0

type EdgeApplicationResult struct {
	ApplicationID           types.Int64  `tfsdk:"application_id"`
	Name                    types.String `tfsdk:"name"`
	DeliveryProtocol        types.String `tfsdk:"delivery_protocol"`
	HTTPPort                types.List   `tfsdk:"http_port"`
	HTTPSPort               types.List   `tfsdk:"https_port"`
	MinimumTLSVersion       types.String `tfsdk:"minimum_tls_version"`
	Active                  types.Bool   `tfsdk:"active"`
	DebugRules              types.Bool   `tfsdk:"debug_rules"`
	HTTP3                   types.Bool   `tfsdk:"http3"`
	SupportedCiphers        types.String `tfsdk:"supported_ciphers"`
	ApplicationAcceleration types.Bool   `tfsdk:"application_acceleration"`
	Caching                 types.Bool   `tfsdk:"caching"`
	DeviceDetection         types.Bool   `tfsdk:"device_detection"`
	EdgeFirewall            types.Bool   `tfsdk:"edge_firewall"`
	EdgeFunctions           types.Bool   `tfsdk:"edge_functions"`
	ImageOptimization       types.Bool   `tfsdk:"image_optimization"`
	LoadBalancer            types.Bool   `tfsdk:"load_balancer"`
	RawLogs                 types.Bool   `tfsdk:"raw_logs"`
	WebApplicationFirewall  types.Bool   `tfsdk:"web_application_firewall"`
}

type EdgeApplicationsDataSource added in v1.3.0

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

func (*EdgeApplicationsDataSource) Configure added in v1.3.0

func (*EdgeApplicationsDataSource) Metadata added in v1.3.0

func (*EdgeApplicationsDataSource) Read added in v1.3.0

func (*EdgeApplicationsDataSource) Schema added in v1.3.0

type EdgeApplicationsDataSourceModel added in v1.3.0

type EdgeApplicationsDataSourceModel struct {
	SchemaVersion types.Int64                      `tfsdk:"schema_version"`
	Counter       types.Int64                      `tfsdk:"counter"`
	TotalPages    types.Int64                      `tfsdk:"total_pages"`
	Page          types.Int64                      `tfsdk:"page"`
	PageSize      types.Int64                      `tfsdk:"page_size"`
	Links         *GetEdgeAplicationsResponseLinks `tfsdk:"links"`
	Results       []EdgeApplicationsResult         `tfsdk:"results"`
	ID            types.String                     `tfsdk:"id"`
}

type EdgeApplicationsResult added in v1.3.0

type EdgeApplicationsResult struct {
	ApplicationID types.Int64          `tfsdk:"application_id"`
	Name          types.String         `tfsdk:"name"`
	Active        types.Bool           `tfsdk:"active"`
	DebugRules    types.Bool           `tfsdk:"debug_rules"`
	LastEditor    types.String         `tfsdk:"last_editor"`
	LastModified  types.String         `tfsdk:"last_modified"`
	Origins       []ApplicationOrigins `tfsdk:"origins"`
}

type EdgeFunctionDataSource added in v1.2.0

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

func (*EdgeFunctionDataSource) Configure added in v1.2.0

func (*EdgeFunctionDataSource) Metadata added in v1.2.0

func (*EdgeFunctionDataSource) Read added in v1.2.0

func (*EdgeFunctionDataSource) Schema added in v1.2.0

type EdgeFunctionDataSourceModel added in v1.2.0

type EdgeFunctionDataSourceModel struct {
	SchemaVersion types.Int64         `tfsdk:"schema_version"`
	Results       EdgeFunctionResults `tfsdk:"results"`
	ID            types.String        `tfsdk:"id"`
}

type EdgeFunctionResults added in v1.2.0

type EdgeFunctionResults struct {
	FunctionID     types.Int64  `tfsdk:"function_id"`
	Name           types.String `tfsdk:"name"`
	Language       types.String `tfsdk:"language"`
	Code           types.String `tfsdk:"code"`
	JSONArgs       types.String `tfsdk:"json_args"`
	FunctionToRun  types.String `tfsdk:"function_to_run"`
	InitiatorType  types.String `tfsdk:"initiator_type"`
	IsActive       types.Bool   `tfsdk:"active"`
	LastEditor     types.String `tfsdk:"last_editor"`
	Modified       types.String `tfsdk:"modified"`
	ReferenceCount types.Int64  `tfsdk:"reference_count"`
	Version        types.String `tfsdk:"version"`
}

type EdgeFunctionsDataSource added in v1.2.0

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

func (*EdgeFunctionsDataSource) Configure added in v1.2.0

func (*EdgeFunctionsDataSource) Metadata added in v1.2.0

func (*EdgeFunctionsDataSource) Read added in v1.2.0

func (*EdgeFunctionsDataSource) Schema added in v1.2.0

type EdgeFunctionsDataSourceModel added in v1.2.0

type EdgeFunctionsDataSourceModel struct {
	SchemaVersion types.Int64                    `tfsdk:"schema_version"`
	Counter       types.Int64                    `tfsdk:"counter"`
	TotalPages    types.Int64                    `tfsdk:"total_pages"`
	Links         *GetEdgeFunctionsResponseLinks `tfsdk:"links"`
	Results       []EdgeFunctionsResults         `tfsdk:"results"`
	ID            types.String                   `tfsdk:"id"`
}

type EdgeFunctionsResults added in v1.2.0

type EdgeFunctionsResults struct {
	FunctionID     types.Int64  `tfsdk:"function_id"`
	Name           types.String `tfsdk:"name"`
	Language       types.String `tfsdk:"language"`
	Code           types.String `tfsdk:"code"`
	JSONArgs       types.String `tfsdk:"json_args"`
	FunctionToRun  types.String `tfsdk:"function_to_run"`
	InitiatorType  types.String `tfsdk:"initiator_type"`
	IsActive       types.Bool   `tfsdk:"active"`
	LastEditor     types.String `tfsdk:"last_editor"`
	Modified       types.String `tfsdk:"modified"`
	ReferenceCount types.Int64  `tfsdk:"reference_count"`
	Version        types.String `tfsdk:"version"`
}
type GetDomainsResponseLinks struct {
	Previous types.String `tfsdk:"previous"`
	Next     types.String `tfsdk:"next"`
}
type GetEdgeAplicationsResponseLinks struct {
	Previous types.String `tfsdk:"previous"`
	Next     types.String `tfsdk:"next"`
}
type GetEdgeFunctionResponseLinks struct {
	Previous types.String `tfsdk:"previous"`
	Next     types.String `tfsdk:"next"`
}
type GetEdgeFunctionsResponseLinks struct {
	Previous types.String `tfsdk:"previous"`
	Next     types.String `tfsdk:"next"`
}
type GetRecordsResponseLinks struct {
	Previous types.String `tfsdk:"previous"`
	Next     types.String `tfsdk:"next"`
}

type GetRecordsResponseResults

type GetRecordsResponseResults struct {
	ZoneId  types.Int64  `tfsdk:"zone_id"`
	Domain  types.String `tfsdk:"domain"`
	Records []Record     `tfsdk:"records"`
}
type GetZonesResponseLinks struct {
	Previous types.String `tfsdk:"previous"`
	Next     types.String `tfsdk:"next"`
}

type Record

type Record struct {
	RecordId    types.Int64    `tfsdk:"record_id"`
	Entry       types.String   `tfsdk:"entry"`
	Description types.String   `tfsdk:"description"`
	AnswersList []types.String `tfsdk:"answers_list"`
	Policy      types.String   `tfsdk:"policy"`
	RecordType  types.String   `tfsdk:"record_type"`
	Ttl         types.Int64    `tfsdk:"ttl"`
}

type RecordsDataSource

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

func (*RecordsDataSource) Configure

func (*RecordsDataSource) Metadata

func (*RecordsDataSource) Read

func (*RecordsDataSource) Schema

type RecordsDataSourceModel

type RecordsDataSourceModel struct {
	ZoneId        types.Int64                `tfsdk:"zone_id"`
	SchemaVersion types.Int64                `tfsdk:"schema_version"`
	TotalPages    types.Int64                `tfsdk:"total_pages"`
	Counter       types.Int64                `tfsdk:"counter"`
	Links         *GetRecordsResponseLinks   `tfsdk:"links"`
	Results       *GetRecordsResponseResults `tfsdk:"results"`
	Id            types.String               `tfsdk:"id"`
}

type Zone

type Zone struct {
	ZoneID      types.Int64  `tfsdk:"zone_id"`
	Name        types.String `tfsdk:"name"`
	Domain      types.String `tfsdk:"domain"`
	IsActive    types.Bool   `tfsdk:"is_active"`
	Retry       types.Int64  `tfsdk:"retry"`
	NxTtl       types.Int64  `tfsdk:"nxttl"`
	SoaTtl      types.Int64  `tfsdk:"soattl"`
	Refresh     types.Int64  `tfsdk:"refresh"`
	Expiry      types.Int64  `tfsdk:"expiry"`
	Nameservers types.List   `tfsdk:"nameservers"`
}

type ZoneDataSource

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

func (*ZoneDataSource) Configure

func (*ZoneDataSource) Metadata

func (*ZoneDataSource) Read

func (*ZoneDataSource) Schema

type ZoneDataSourceModel

type ZoneDataSourceModel struct {
	SchemaVersion types.Int64  `tfsdk:"schema_version"`
	Results       Zone         `tfsdk:"results"`
	ID            types.String `tfsdk:"id"`
}

type Zones

type Zones struct {
	ZoneId   types.Int64  `tfsdk:"zone_id"`
	Name     types.String `tfsdk:"name"`
	Domain   types.String `tfsdk:"domain"`
	IsActive types.Bool   `tfsdk:"is_active"`
}

type ZonesDataSource

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

func (*ZonesDataSource) Configure

func (*ZonesDataSource) Metadata

func (*ZonesDataSource) Read

func (*ZonesDataSource) Schema

type ZonesDataSourceModel

type ZonesDataSourceModel struct {
	SchemaVersion types.Int64            `tfsdk:"schema_version"`
	Counter       types.Int64            `tfsdk:"counter"`
	TotalPages    types.Int64            `tfsdk:"total_pages"`
	Links         *GetZonesResponseLinks `tfsdk:"links"`
	Results       []Zones                `tfsdk:"results"`
	ID            types.String           `tfsdk:"id"`
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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