dfp

package
v1.4.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DfpAttrTypes = map[string]attr.Type{
	"created_time":          timetypes.RFC3339Type{},
	"elb_ip_list":           types.ListType{ElemType: types.StringType},
	"forwarding_policy":     types.StringType,
	"host":                  types.ListType{ElemType: types.ObjectType{AttrTypes: DfpHostAttrTypes}},
	"id":                    types.Int64Type,
	"internal_domain_lists": types.ListType{ElemType: types.Int64Type},
	"name":                  types.StringType,
	"net_addr_policy_ids":   types.ListType{ElemType: types.ObjectType{AttrTypes: NetAddrPolicyAssignmentAttrTypes}},
	"ophid":                 types.StringType,
	"policy_id":             types.Int64Type,
	"pop_region_id":         types.Int64Type,
	"resolvers_all":         types.ListType{ElemType: types.ObjectType{AttrTypes: ResolverAttrTypes}},
	"service_id":            types.StringType,
	"service_name":          types.StringType,
	"site_id":               types.StringType,
	"updated_time":          timetypes.RFC3339Type{},
}
View Source
var DfpHostAttrTypes = map[string]attr.Type{
	"legacy_host_id": types.Int64Type,
	"name":           types.StringType,
	"ophid":          types.StringType,
	"site_id":        types.StringType,
}
View Source
var DfpHostResourceSchemaAttributes = map[string]schema.Attribute{
	"legacy_host_id": schema.Int64Attribute{
		Optional:            true,
		Computed:            true,
		MarkdownDescription: "The DNS Forwarding Proxy legacy ID object identifier.",
	},
	"name": schema.StringAttribute{
		Computed:            true,
		MarkdownDescription: "The name of the DNS Forwarding Proxy.",
	},
	"ophid": schema.StringAttribute{
		Computed:            true,
		MarkdownDescription: "The On-Prem Host identifier.",
	},
	"site_id": schema.StringAttribute{
		Computed:            true,
		MarkdownDescription: "The DNS Forwarding Proxy site identifier that is appended to DNS queries originating from this DNS Forwarding Proxy and subsequently used for policy lookup purposes.",
	},
}
View Source
var DfpResourceSchemaAttributes = map[string]schema.Attribute{
	"created_time": schema.StringAttribute{
		CustomType:          timetypes.RFC3339Type{},
		Computed:            true,
		MarkdownDescription: "The time when this DNS Forwarding Proxy object was created.",
	},
	"elb_ip_list": schema.ListAttribute{
		ElementType:         types.StringType,
		Computed:            true,
		MarkdownDescription: "The list of internal or local DNS servers' IPv4 or IPv6 addresses that are used as ELB IPs.",
	},
	"forwarding_policy": schema.StringAttribute{
		Optional:            true,
		Computed:            true,
		MarkdownDescription: "Policy Identifier for DNS Forwarding Proxy.",
	},
	"host": schema.ListNestedAttribute{
		NestedObject: schema.NestedAttributeObject{
			Attributes: DfpHostResourceSchemaAttributes,
		},
		Computed:            true,
		MarkdownDescription: "host information. For internal Use only.",
	},
	"id": schema.Int64Attribute{
		Computed: true,
		PlanModifiers: []planmodifier.Int64{
			int64planmodifier.UseStateForUnknown(),
		},
		MarkdownDescription: "The DNS Forwarding Proxy object identifier.",
	},
	"internal_domain_lists": schema.ListAttribute{
		ElementType:         types.Int64Type,
		Optional:            true,
		MarkdownDescription: "The list of internal domains list IDs that are associated with this DFP",
	},
	"name": schema.StringAttribute{
		Computed:            true,
		MarkdownDescription: "The name of the DNS Forwarding Proxy.",
	},
	"net_addr_policy_ids": schema.ListNestedAttribute{
		NestedObject: schema.NestedAttributeObject{
			Attributes: NetAddrPolicyAssignmentResourceSchemaAttributes,
		},
		Optional:            true,
		MarkdownDescription: "List of network-address-scoped security policy assignments",
	},
	"ophid": schema.StringAttribute{
		Computed:            true,
		MarkdownDescription: "The On-Prem Host identifier.",
	},
	"policy_id": schema.Int64Attribute{
		Computed:            true,
		MarkdownDescription: "The identifier of the security policy with which the DNS Forwarding Proxy is associated.",
	},
	"pop_region_id": schema.Int64Attribute{
		Computed:            true,
		MarkdownDescription: "Point of Presence (PoP) region",
	},
	"resolvers_all": schema.ListNestedAttribute{
		NestedObject: schema.NestedAttributeObject{
			Attributes: ResolverResourceSchemaAttributes,
		},
		Optional:            true,
		MarkdownDescription: "List of DNS resolvers",
	},
	"service_id": schema.StringAttribute{
		Required:            true,
		MarkdownDescription: "The On-Prem Application Service identifier. For internal Use only",
	},
	"service_name": schema.StringAttribute{
		Computed:            true,
		MarkdownDescription: "The On-Prem Application Service name. For internal Use only",
	},
	"site_id": schema.StringAttribute{
		Computed:            true,
		MarkdownDescription: "The DNS Forwarding Proxy site identifier that is appended to DNS queries originating from this DNS Forwarding Proxy and subsequently used for policy lookup purposes.",
	},
	"updated_time": schema.StringAttribute{
		CustomType:          timetypes.RFC3339Type{},
		Computed:            true,
		MarkdownDescription: "The time when this DNS Forwarding Proxy object was last updated.",
	},
}
View Source
var NetAddrPolicyAssignmentAttrTypes = map[string]attr.Type{
	"addr_net":  types.StringType,
	"policy_id": types.Int64Type,
}
View Source
var NetAddrPolicyAssignmentResourceSchemaAttributes = map[string]schema.Attribute{
	"addr_net": schema.StringAttribute{
		Optional:            true,
		MarkdownDescription: "Network address in IPv4 CIDR (address/bitmask length) string format",
	},
	"policy_id": schema.Int64Attribute{
		Optional:            true,
		MarkdownDescription: "Identifier of the security policy associated with this address block",
	},
}
View Source
var ResolverAttrTypes = map[string]attr.Type{
	"address":     types.StringType,
	"is_fallback": types.BoolType,
	"is_local":    types.BoolType,
	"protocols":   internaltypes.UnorderedListOfStringType,
}
View Source
var ResolverResourceSchemaAttributes = map[string]schema.Attribute{
	"address": schema.StringAttribute{
		Optional:            true,
		MarkdownDescription: "Address that can be used as resolver",
	},
	"is_fallback": schema.BoolAttribute{
		Optional:            true,
		MarkdownDescription: "Mark it true to set default DNS resolvers that will be used in case if the BloxOne Cloud is unreachable.",
	},
	"is_local": schema.BoolAttribute{
		Optional:            true,
		MarkdownDescription: "Mark it true to set internal or local DNS servers' IPv4 or IPv6 addresses that are used as DNS resolvers",
	},
	"protocols": schema.ListAttribute{
		CustomType:          internaltypes.UnorderedListOfStringType,
		ElementType:         types.StringType,
		Optional:            true,
		MarkdownDescription: "The list of DNS resolver communication protocols.",
	},
}

Functions

func ExpandDNSProtocol

func ExpandDNSProtocol(ctx context.Context, tfList internaltypes.UnorderedListValue, diags *diag.Diagnostics) []dfp.DNSProtocol

func ExpandDfp

func ExpandDfp(ctx context.Context, o types.Object, diags *diag.Diagnostics) *dfp.Dfp

func ExpandDfpHost

func ExpandDfpHost(ctx context.Context, o types.Object, diags *diag.Diagnostics) *dfp.DfpHost

func ExpandNetAddrPolicyAssignment

func ExpandNetAddrPolicyAssignment(ctx context.Context, o types.Object, diags *diag.Diagnostics) *dfp.NetAddrPolicyAssignment

func ExpandResolver

func ExpandResolver(ctx context.Context, o types.Object, diags *diag.Diagnostics) *dfp.Resolver

func FlattenDfp

func FlattenDfp(ctx context.Context, from *dfp.Dfp, diags *diag.Diagnostics) types.Object

func FlattenDfpHost

func FlattenDfpHost(ctx context.Context, from *dfp.DfpHost, diags *diag.Diagnostics) types.Object

func FlattenNetAddrPolicyAssignment

func FlattenNetAddrPolicyAssignment(ctx context.Context, from *dfp.NetAddrPolicyAssignment, diags *diag.Diagnostics) types.Object

func FlattenResolver

func FlattenResolver(ctx context.Context, from *dfp.Resolver, diags *diag.Diagnostics) types.Object

func NewDfpDataSource

func NewDfpDataSource() datasource.DataSource

func NewDfpResource

func NewDfpResource() resource.Resource

Types

type DfpDataSource

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

DfpDataSource defines the data source implementation.

func (*DfpDataSource) Configure

func (*DfpDataSource) Metadata

func (*DfpDataSource) Read

func (*DfpDataSource) Schema

type DfpHostModel

type DfpHostModel struct {
	LegacyHostId types.Int64  `tfsdk:"legacy_host_id"`
	Name         types.String `tfsdk:"name"`
	Ophid        types.String `tfsdk:"ophid"`
	SiteId       types.String `tfsdk:"site_id"`
}

func (*DfpHostModel) Expand

func (m *DfpHostModel) Expand(ctx context.Context, diags *diag.Diagnostics) *dfp.DfpHost

func (*DfpHostModel) Flatten

func (m *DfpHostModel) Flatten(ctx context.Context, from *dfp.DfpHost, diags *diag.Diagnostics)

type DfpModel

type DfpModel struct {
	CreatedTime         timetypes.RFC3339 `tfsdk:"created_time"`
	ElbIpList           types.List        `tfsdk:"elb_ip_list"`
	ForwardingPolicy    types.String      `tfsdk:"forwarding_policy"`
	Host                types.List        `tfsdk:"host"`
	Id                  types.Int64       `tfsdk:"id"`
	InternalDomainLists types.List        `tfsdk:"internal_domain_lists"`
	Name                types.String      `tfsdk:"name"`
	NetAddrPolicyIds    types.List        `tfsdk:"net_addr_policy_ids"`
	Ophid               types.String      `tfsdk:"ophid"`
	PolicyId            types.Int64       `tfsdk:"policy_id"`
	PopRegionId         types.Int64       `tfsdk:"pop_region_id"`
	ResolversAll        types.List        `tfsdk:"resolvers_all"`
	ServiceId           types.String      `tfsdk:"service_id"`
	ServiceName         types.String      `tfsdk:"service_name"`
	SiteId              types.String      `tfsdk:"site_id"`
	UpdatedTime         timetypes.RFC3339 `tfsdk:"updated_time"`
}

func (*DfpModel) Expand

func (m *DfpModel) Expand(ctx context.Context, diags *diag.Diagnostics) *dfp.Dfp

func (*DfpModel) ExpandCreateOrUpdatePayload

func (m *DfpModel) ExpandCreateOrUpdatePayload(ctx context.Context, diags *diag.Diagnostics) *dfp.DfpCreateOrUpdatePayload

func (*DfpModel) Flatten

func (m *DfpModel) Flatten(ctx context.Context, from *dfp.Dfp, diags *diag.Diagnostics)

type DfpResource

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

DfpResource defines the resource implementation.

func (*DfpResource) Configure

func (*DfpResource) Create

func (*DfpResource) Delete

func (*DfpResource) ImportState

func (*DfpResource) Metadata

func (*DfpResource) Read

func (*DfpResource) Schema

func (*DfpResource) Update

type DfpServicesModelWithFilter

type DfpServicesModelWithFilter struct {
	Filters types.Map  `tfsdk:"filters"`
	Results types.List `tfsdk:"results"`
}

func (*DfpServicesModelWithFilter) FlattenResults

func (m *DfpServicesModelWithFilter) FlattenResults(ctx context.Context, from []dfp.Dfp, diags *diag.Diagnostics)

type NetAddrPolicyAssignmentModel

type NetAddrPolicyAssignmentModel struct {
	AddrNet  types.String `tfsdk:"addr_net"`
	PolicyId types.Int64  `tfsdk:"policy_id"`
}

func (*NetAddrPolicyAssignmentModel) Expand

func (*NetAddrPolicyAssignmentModel) Flatten

type ResolverModel

type ResolverModel struct {
	Address    types.String                     `tfsdk:"address"`
	IsFallback types.Bool                       `tfsdk:"is_fallback"`
	IsLocal    types.Bool                       `tfsdk:"is_local"`
	Protocols  internaltypes.UnorderedListValue `tfsdk:"protocols"`
}

func (*ResolverModel) Expand

func (m *ResolverModel) Expand(ctx context.Context, diags *diag.Diagnostics) *dfp.Resolver

func (*ResolverModel) Flatten

func (m *ResolverModel) Flatten(ctx context.Context, from *dfp.Resolver, diags *diag.Diagnostics)

Jump to

Keyboard shortcuts

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