redirect

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: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var RedirectCustomRedirectAttrTypes = map[string]attr.Type{
	"created_time": timetypes.RFC3339Type{},
	"data":         types.StringType,
	"id":           types.Int64Type,
	"name":         types.StringType,
	"policy_ids":   types.ListType{ElemType: types.Int64Type},
	"policy_names": types.ListType{ElemType: types.StringType},
	"updated_time": timetypes.RFC3339Type{},
}
View Source
var RedirectCustomRedirectResourceSchemaAttributes = map[string]schema.Attribute{
	"created_time": schema.StringAttribute{
		CustomType:          timetypes.RFC3339Type{},
		Computed:            true,
		MarkdownDescription: "The time when this Custom Redirect object was created.",
	},
	"data": schema.StringAttribute{
		Required:            true,
		MarkdownDescription: "The list of csv custom IPv4/IPv6 or a single domain redirect address.",
	},
	"id": schema.Int64Attribute{
		Computed: true,
		PlanModifiers: []planmodifier.Int64{
			int64planmodifier.UseStateForUnknown(),
		},
		MarkdownDescription: "The Custom Redirect object identifier.",
	},
	"name": schema.StringAttribute{
		Required:            true,
		MarkdownDescription: "The name of the custom redirect.",
	},
	"policy_ids": schema.ListAttribute{
		ElementType:         types.Int64Type,
		Computed:            true,
		MarkdownDescription: "The list of the security policy identifiers with which the named list is associated.",
	},
	"policy_names": schema.ListAttribute{
		ElementType:         types.StringType,
		Computed:            true,
		MarkdownDescription: "The list of the security policy names with which the custom redirect is associated.",
	},
	"updated_time": schema.StringAttribute{
		CustomType:          timetypes.RFC3339Type{},
		Computed:            true,
		MarkdownDescription: "The time when this Custom Redirect object was last updated.",
	},
}

Functions

func ExpandRedirectCustomRedirect

func ExpandRedirectCustomRedirect(ctx context.Context, o types.Object, diags *diag.Diagnostics) *redirect.CustomRedirect

func FlattenRedirectCustomRedirect

func FlattenRedirectCustomRedirect(ctx context.Context, from *redirect.CustomRedirect, diags *diag.Diagnostics) types.Object

func NewCustomRedirectResource

func NewCustomRedirectResource() resource.Resource

func NewCustomRedirectsDataSource

func NewCustomRedirectsDataSource() datasource.DataSource

Types

type CustomRedirectModelWithFilter

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

func (*CustomRedirectModelWithFilter) FlattenResults

func (m *CustomRedirectModelWithFilter) FlattenResults(ctx context.Context, from []redirect.CustomRedirect, diags *diag.Diagnostics)

type CustomRedirectResource

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

CustomRedirectResource defines the resource implementation.

func (*CustomRedirectResource) Configure

func (*CustomRedirectResource) Create

func (*CustomRedirectResource) Delete

func (*CustomRedirectResource) ImportState

func (*CustomRedirectResource) Metadata

func (*CustomRedirectResource) Read

func (*CustomRedirectResource) Schema

func (*CustomRedirectResource) Update

type CustomRedirectsDataSource

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

CustomRedirectsDataSource defines the data source implementation.

func (*CustomRedirectsDataSource) Configure

func (*CustomRedirectsDataSource) Metadata

func (*CustomRedirectsDataSource) Read

func (*CustomRedirectsDataSource) Schema

type RedirectCustomRedirectModel

type RedirectCustomRedirectModel struct {
	CreatedTime timetypes.RFC3339 `tfsdk:"created_time"`
	Data        types.String      `tfsdk:"data"`
	Id          types.Int64       `tfsdk:"id"`
	Name        types.String      `tfsdk:"name"`
	PolicyIds   types.List        `tfsdk:"policy_ids"`
	PolicyNames types.List        `tfsdk:"policy_names"`
	UpdatedTime timetypes.RFC3339 `tfsdk:"updated_time"`
}

func (*RedirectCustomRedirectModel) Expand

func (*RedirectCustomRedirectModel) Flatten

Jump to

Keyboard shortcuts

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