Documentation
¶
Index ¶
- Variables
- func ExpandDNSProtocol(ctx context.Context, tfList internaltypes.UnorderedListValue, ...) []dfp.DNSProtocol
- func ExpandDfp(ctx context.Context, o types.Object, diags *diag.Diagnostics) *dfp.Dfp
- func ExpandDfpHost(ctx context.Context, o types.Object, diags *diag.Diagnostics) *dfp.DfpHost
- func ExpandNetAddrPolicyAssignment(ctx context.Context, o types.Object, diags *diag.Diagnostics) *dfp.NetAddrPolicyAssignment
- func ExpandResolver(ctx context.Context, o types.Object, diags *diag.Diagnostics) *dfp.Resolver
- func FlattenDfp(ctx context.Context, from *dfp.Dfp, diags *diag.Diagnostics) types.Object
- func FlattenDfpHost(ctx context.Context, from *dfp.DfpHost, diags *diag.Diagnostics) types.Object
- func FlattenNetAddrPolicyAssignment(ctx context.Context, from *dfp.NetAddrPolicyAssignment, ...) types.Object
- func FlattenResolver(ctx context.Context, from *dfp.Resolver, diags *diag.Diagnostics) types.Object
- func NewDfpDataSource() datasource.DataSource
- func NewDfpResource() resource.Resource
- type DfpDataSource
- func (d *DfpDataSource) Configure(ctx context.Context, req datasource.ConfigureRequest, ...)
- func (d *DfpDataSource) Metadata(ctx context.Context, req datasource.MetadataRequest, ...)
- func (d *DfpDataSource) Read(ctx context.Context, req datasource.ReadRequest, resp *datasource.ReadResponse)
- func (d *DfpDataSource) Schema(ctx context.Context, req datasource.SchemaRequest, ...)
- type DfpHostModel
- type DfpModel
- type DfpResource
- func (r *DfpResource) Configure(ctx context.Context, req resource.ConfigureRequest, ...)
- func (r *DfpResource) Create(ctx context.Context, req resource.CreateRequest, resp *resource.CreateResponse)
- func (r *DfpResource) Delete(ctx context.Context, req resource.DeleteRequest, resp *resource.DeleteResponse)
- func (r *DfpResource) ImportState(ctx context.Context, req resource.ImportStateRequest, ...)
- func (r *DfpResource) Metadata(ctx context.Context, req resource.MetadataRequest, ...)
- func (r *DfpResource) Read(ctx context.Context, req resource.ReadRequest, resp *resource.ReadResponse)
- func (r *DfpResource) Schema(ctx context.Context, req resource.SchemaRequest, resp *resource.SchemaResponse)
- func (r *DfpResource) Update(ctx context.Context, req resource.UpdateRequest, resp *resource.UpdateResponse)
- type DfpServicesModelWithFilter
- type NetAddrPolicyAssignmentModel
- type ResolverModel
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.Int32Type, "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.Int32Type, "pop_region_id": types.Int32Type, "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.Int32Attribute{ 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.Int32Attribute{ Computed: true, PlanModifiers: []planmodifier.Int32{ int32planmodifier.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.Int32Attribute{ Computed: true, MarkdownDescription: "The identifier of the security policy with which the DNS Forwarding Proxy is associated.", }, "pop_region_id": schema.Int32Attribute{ 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.Int32Type, }
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.Int32Attribute{ 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 ExpandDfpHost ¶
func ExpandNetAddrPolicyAssignment ¶
func ExpandNetAddrPolicyAssignment(ctx context.Context, o types.Object, diags *diag.Diagnostics) *dfp.NetAddrPolicyAssignment
func ExpandResolver ¶
func FlattenDfp ¶
func FlattenDfpHost ¶
func FlattenNetAddrPolicyAssignment ¶
func FlattenNetAddrPolicyAssignment(ctx context.Context, from *dfp.NetAddrPolicyAssignment, diags *diag.Diagnostics) types.Object
func FlattenResolver ¶
func NewDfpDataSource ¶
func NewDfpDataSource() datasource.DataSource
func NewDfpResource ¶
Types ¶
type DfpDataSource ¶
type DfpDataSource struct {
// contains filtered or unexported fields
}
DfpDataSource defines the data source implementation.
func (*DfpDataSource) Configure ¶
func (d *DfpDataSource) Configure(ctx context.Context, req datasource.ConfigureRequest, resp *datasource.ConfigureResponse)
func (*DfpDataSource) Metadata ¶
func (d *DfpDataSource) Metadata(ctx context.Context, req datasource.MetadataRequest, resp *datasource.MetadataResponse)
func (*DfpDataSource) Read ¶
func (d *DfpDataSource) Read(ctx context.Context, req datasource.ReadRequest, resp *datasource.ReadResponse)
func (*DfpDataSource) Schema ¶
func (d *DfpDataSource) Schema(ctx context.Context, req datasource.SchemaRequest, resp *datasource.SchemaResponse)
type DfpHostModel ¶
type DfpHostModel struct { LegacyHostId types.Int32 `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.Int32 `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.Int32 `tfsdk:"policy_id"` PopRegionId types.Int32 `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) ExpandCreateOrUpdatePayload ¶
func (m *DfpModel) ExpandCreateOrUpdatePayload(ctx context.Context, diags *diag.Diagnostics) *dfp.DfpCreateOrUpdatePayload
type DfpResource ¶
type DfpResource struct {
// contains filtered or unexported fields
}
DfpResource defines the resource implementation.
func (*DfpResource) Configure ¶
func (r *DfpResource) Configure(ctx context.Context, req resource.ConfigureRequest, resp *resource.ConfigureResponse)
func (*DfpResource) Create ¶
func (r *DfpResource) Create(ctx context.Context, req resource.CreateRequest, resp *resource.CreateResponse)
func (*DfpResource) Delete ¶
func (r *DfpResource) Delete(ctx context.Context, req resource.DeleteRequest, resp *resource.DeleteResponse)
func (*DfpResource) ImportState ¶
func (r *DfpResource) ImportState(ctx context.Context, req resource.ImportStateRequest, resp *resource.ImportStateResponse)
func (*DfpResource) Metadata ¶
func (r *DfpResource) Metadata(ctx context.Context, req resource.MetadataRequest, resp *resource.MetadataResponse)
func (*DfpResource) Read ¶
func (r *DfpResource) Read(ctx context.Context, req resource.ReadRequest, resp *resource.ReadResponse)
func (*DfpResource) Schema ¶
func (r *DfpResource) Schema(ctx context.Context, req resource.SchemaRequest, resp *resource.SchemaResponse)
func (*DfpResource) Update ¶
func (r *DfpResource) Update(ctx context.Context, req resource.UpdateRequest, resp *resource.UpdateResponse)
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.Int32 `tfsdk:"policy_id"` }
func (*NetAddrPolicyAssignmentModel) Expand ¶
func (m *NetAddrPolicyAssignmentModel) Expand(ctx context.Context, diags *diag.Diagnostics) *dfp.NetAddrPolicyAssignment
func (*NetAddrPolicyAssignmentModel) Flatten ¶
func (m *NetAddrPolicyAssignmentModel) Flatten(ctx context.Context, from *dfp.NetAddrPolicyAssignment, diags *diag.Diagnostics)
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)
Click to show internal directories.
Click to hide internal directories.