Documentation ¶
Index ¶
- Variables
- func ExpandRedirectCustomRedirect(ctx context.Context, o types.Object, diags *diag.Diagnostics) *redirect.CustomRedirect
- func FlattenRedirectCustomRedirect(ctx context.Context, from *redirect.CustomRedirect, diags *diag.Diagnostics) types.Object
- func NewCustomRedirectResource() resource.Resource
- func NewCustomRedirectsDataSource() datasource.DataSource
- type CustomRedirectModelWithFilter
- type CustomRedirectResource
- func (r *CustomRedirectResource) Configure(ctx context.Context, req resource.ConfigureRequest, ...)
- func (r *CustomRedirectResource) Create(ctx context.Context, req resource.CreateRequest, resp *resource.CreateResponse)
- func (r *CustomRedirectResource) Delete(ctx context.Context, req resource.DeleteRequest, resp *resource.DeleteResponse)
- func (r *CustomRedirectResource) ImportState(ctx context.Context, req resource.ImportStateRequest, ...)
- func (r *CustomRedirectResource) Metadata(ctx context.Context, req resource.MetadataRequest, ...)
- func (r *CustomRedirectResource) Read(ctx context.Context, req resource.ReadRequest, resp *resource.ReadResponse)
- func (r *CustomRedirectResource) Schema(ctx context.Context, req resource.SchemaRequest, resp *resource.SchemaResponse)
- func (r *CustomRedirectResource) Update(ctx context.Context, req resource.UpdateRequest, resp *resource.UpdateResponse)
- type CustomRedirectsDataSource
- func (d *CustomRedirectsDataSource) Configure(ctx context.Context, req datasource.ConfigureRequest, ...)
- func (d *CustomRedirectsDataSource) Metadata(ctx context.Context, req datasource.MetadataRequest, ...)
- func (d *CustomRedirectsDataSource) Read(ctx context.Context, req datasource.ReadRequest, resp *datasource.ReadResponse)
- func (d *CustomRedirectsDataSource) Schema(ctx context.Context, req datasource.SchemaRequest, ...)
- type RedirectCustomRedirectModel
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 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 (r *CustomRedirectResource) Configure(ctx context.Context, req resource.ConfigureRequest, resp *resource.ConfigureResponse)
func (*CustomRedirectResource) Create ¶
func (r *CustomRedirectResource) Create(ctx context.Context, req resource.CreateRequest, resp *resource.CreateResponse)
func (*CustomRedirectResource) Delete ¶
func (r *CustomRedirectResource) Delete(ctx context.Context, req resource.DeleteRequest, resp *resource.DeleteResponse)
func (*CustomRedirectResource) ImportState ¶
func (r *CustomRedirectResource) ImportState(ctx context.Context, req resource.ImportStateRequest, resp *resource.ImportStateResponse)
func (*CustomRedirectResource) Metadata ¶
func (r *CustomRedirectResource) Metadata(ctx context.Context, req resource.MetadataRequest, resp *resource.MetadataResponse)
func (*CustomRedirectResource) Read ¶
func (r *CustomRedirectResource) Read(ctx context.Context, req resource.ReadRequest, resp *resource.ReadResponse)
func (*CustomRedirectResource) Schema ¶
func (r *CustomRedirectResource) Schema(ctx context.Context, req resource.SchemaRequest, resp *resource.SchemaResponse)
func (*CustomRedirectResource) Update ¶
func (r *CustomRedirectResource) Update(ctx context.Context, req resource.UpdateRequest, resp *resource.UpdateResponse)
type CustomRedirectsDataSource ¶
type CustomRedirectsDataSource struct {
// contains filtered or unexported fields
}
CustomRedirectsDataSource defines the data source implementation.
func (*CustomRedirectsDataSource) Configure ¶
func (d *CustomRedirectsDataSource) Configure(ctx context.Context, req datasource.ConfigureRequest, resp *datasource.ConfigureResponse)
func (*CustomRedirectsDataSource) Metadata ¶
func (d *CustomRedirectsDataSource) Metadata(ctx context.Context, req datasource.MetadataRequest, resp *datasource.MetadataResponse)
func (*CustomRedirectsDataSource) Read ¶
func (d *CustomRedirectsDataSource) Read(ctx context.Context, req datasource.ReadRequest, resp *datasource.ReadResponse)
func (*CustomRedirectsDataSource) Schema ¶
func (d *CustomRedirectsDataSource) Schema(ctx context.Context, req datasource.SchemaRequest, resp *datasource.SchemaResponse)
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 (m *RedirectCustomRedirectModel) Expand(ctx context.Context, diags *diag.Diagnostics) *redirect.CustomRedirect
func (*RedirectCustomRedirectModel) Flatten ¶
func (m *RedirectCustomRedirectModel) Flatten(ctx context.Context, from *redirect.CustomRedirect, diags *diag.Diagnostics)
Click to show internal directories.
Click to hide internal directories.