accessRequestForwards

package
v1.1.5 Latest Latest
Warning

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

Go to latest
Published: Sep 30, 2025 License: MPL-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewAccessRequestForwardDataSource

func NewAccessRequestForwardDataSource() datasource.DataSource

NewAccessRequestForwardDataSource creates a new instance of the AccessRequestForwardDataSource.

func NewAccessRequestForwardResource

func NewAccessRequestForwardResource() resource.Resource

Types

type AccessRequestForwardDataSource

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

AccessRequestForwardDataSource defines the data source implementation for the Terraform provider.

func (*AccessRequestForwardDataSource) Configure

Configure configures the data source with the provider's client.

func (*AccessRequestForwardDataSource) Metadata

Metadata sets the data source's metadata, such as its type name.

func (*AccessRequestForwardDataSource) Read

Read reads data from the external source and sets it in Terraform state. It retrieves the configuration data from Terraform, sends a request to the Entitle API to get the access request forward data, converts the API response to the data source model, and saves it into Terraform state.

func (*AccessRequestForwardDataSource) Schema

Schema defines the expected structure of the data source.

type AccessRequestForwardDataSourceModel

type AccessRequestForwardDataSourceModel struct {
	ID        types.String        `tfsdk:"id" json:"id"`
	Forwarder *utils.IdEmailModel `tfsdk:"forwarder" json:"forwarder"`
	Target    *utils.IdEmailModel `tfsdk:"target" json:"target"`
}

AccessRequestForwardDataSourceModel defines the data model.

type AccessRequestForwardResource

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

AccessRequestForwardResource defines the resource implementation.

func (*AccessRequestForwardResource) Configure

Configure is a function to set the client configuration for the AccessRequestForwardResource.

func (*AccessRequestForwardResource) Create

Create is responsible for creating a new resource of type Entitle Access Request Forward.

It reads the Terraform plan data provided in req.Plan and maps it to the AccessRequestForwardResourceModel. Then, it sends a request to the Entitle API to create the resource using API requests. If the creation is successful, it saves the resource's data into Terraform state.

func (*AccessRequestForwardResource) Delete

Delete is responsible for deleting an existing resource of type Entitle Access Request Forward.

It reads the resource's data from Terraform state, extracts the unique identifier, and sends a request to delete the resource using API requests. If the deletion is successful, it removes the resource from Terraform state.

func (*AccessRequestForwardResource) ImportState

ImportState this function is used to import an existing resource's state into Terraform.

It extracts the resource's identifier from the import request and sets it in Terraform state using resource.ImportStatePassthroughID.

func (*AccessRequestForwardResource) Metadata

Metadata is a function to set the TypeName for the Entitle Access Request Forward resource.

func (*AccessRequestForwardResource) Read

Read is used to read an existing resource of type Entitle Access Request Forward.

It retrieves the resource's data from the provider API requests. The retrieved data is then mapped to the AccessRequestForwardResourceModel, and the data is saved to Terraform state.

func (*AccessRequestForwardResource) Schema

func (*AccessRequestForwardResource) Update

Update handles updates to an existing resource of type Entitle Access Request Forward.

It reads the updated Terraform plan data provided in req.Plan and maps it to the AccessRequestForwardResourceModel. Then, it sends a request to the Entitle API to update the resource using API requests. If the update is successful, it saves the updated resource data into Terraform state.

type AccessRequestForwardResourceModel

type AccessRequestForwardResourceModel struct {
	ID        types.String        `tfsdk:"id" json:"id"`
	Forwarder *utils.IdEmailModel `tfsdk:"forwarder" json:"forwarder"`
	Target    *utils.IdEmailModel `tfsdk:"target" json:"target"`
}

AccessRequestForwardResourceModel describes the resource data model.

Jump to

Keyboard shortcuts

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