Documentation ¶
Index ¶
- func NewIntegrationDataSource() datasource.DataSource
- func NewIntegrationResource() resource.Resource
- type IntegrationDataSource
- func (d *IntegrationDataSource) Configure(ctx context.Context, req datasource.ConfigureRequest, ...)
- func (d *IntegrationDataSource) Metadata(ctx context.Context, req datasource.MetadataRequest, ...)
- func (d *IntegrationDataSource) Read(ctx context.Context, req datasource.ReadRequest, resp *datasource.ReadResponse)
- func (d *IntegrationDataSource) Schema(ctx context.Context, req datasource.SchemaRequest, ...)
- type IntegrationDataSourceModel
- type IntegrationResource
- func (r *IntegrationResource) Configure(ctx context.Context, req resource.ConfigureRequest, ...)
- func (r *IntegrationResource) Create(ctx context.Context, req resource.CreateRequest, resp *resource.CreateResponse)
- func (r *IntegrationResource) Delete(ctx context.Context, req resource.DeleteRequest, resp *resource.DeleteResponse)
- func (r *IntegrationResource) ImportState(ctx context.Context, req resource.ImportStateRequest, ...)
- func (r *IntegrationResource) Metadata(ctx context.Context, req resource.MetadataRequest, ...)
- func (r *IntegrationResource) Read(ctx context.Context, req resource.ReadRequest, resp *resource.ReadResponse)
- func (r *IntegrationResource) Schema(ctx context.Context, req resource.SchemaRequest, resp *resource.SchemaResponse)
- func (r *IntegrationResource) Update(ctx context.Context, req resource.UpdateRequest, resp *resource.UpdateResponse)
- type IntegrationResourceModel
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewIntegrationDataSource ¶
func NewIntegrationDataSource() datasource.DataSource
NewIntegrationDataSource creates a new instance of IntegrationDataSource.
func NewIntegrationResource ¶
Types ¶
type IntegrationDataSource ¶
type IntegrationDataSource struct {
// contains filtered or unexported fields
}
IntegrationDataSource defines the data source implementation.
func (*IntegrationDataSource) Configure ¶
func (d *IntegrationDataSource) Configure( ctx context.Context, req datasource.ConfigureRequest, resp *datasource.ConfigureResponse, )
Configure configures the data source with the provided client.
func (*IntegrationDataSource) Metadata ¶
func (d *IntegrationDataSource) Metadata(ctx context.Context, req datasource.MetadataRequest, resp *datasource.MetadataResponse)
Metadata sets the metadata for the data source.
func (*IntegrationDataSource) Read ¶
func (d *IntegrationDataSource) Read(ctx context.Context, req datasource.ReadRequest, resp *datasource.ReadResponse)
Read retrieves data from the provider and populates the data source model.
func (*IntegrationDataSource) Schema ¶
func (d *IntegrationDataSource) Schema(ctx context.Context, req datasource.SchemaRequest, resp *datasource.SchemaResponse)
Schema defines the data source schema.
type IntegrationDataSourceModel ¶
type IntegrationDataSourceModel struct { Id types.String `tfsdk:"id"` Name types.String `tfsdk:"name"` AllowedDurations types.List `tfsdk:"allowed_durations"` AllowChangingAccountPermissions types.Bool `tfsdk:"allow_changing_account_permissions"` AllowCreatingAccounts types.Bool `tfsdk:"allow_creating_accounts"` Readonly types.Bool `tfsdk:"readonly"` AllowRequests types.Bool `tfsdk:"allow_requests"` AllowRequestsByDefault types.Bool `tfsdk:"allow_requests_by_default"` AllowAsGrantMethod types.Bool `tfsdk:"allow_as_grant_method"` AllowAsGrantMethodByDefault types.Bool `tfsdk:"allow_as_grant_method_by_default"` AutoAssignRecommendedMaintainers types.Bool `tfsdk:"auto_assign_recommended_maintainers"` AutoAssignRecommendedOwners types.Bool `tfsdk:"auto_assign_recommended_owners"` NotifyAboutExternalPermissionChanges types.Bool `tfsdk:"notify_about_external_permission_changes"` Owner *utils.IdEmailModel `tfsdk:"owner"` Application *utils.NameModel `tfsdk:"application"` Workflow *utils.IdNameModel `tfsdk:"workflow"` Maintainers []*utils.MaintainerModel `tfsdk:"maintainers"` }
IntegrationDataSourceModel describes the data source data model.
type IntegrationResource ¶
type IntegrationResource struct {
// contains filtered or unexported fields
}
IntegrationResource defines the resource implementation.
func (*IntegrationResource) Configure ¶
func (r *IntegrationResource) Configure(ctx context.Context, req resource.ConfigureRequest, resp *resource.ConfigureResponse)
func (*IntegrationResource) Create ¶
func (r *IntegrationResource) Create(ctx context.Context, req resource.CreateRequest, resp *resource.CreateResponse)
Create this function is responsible for creating a new resource of type Entitle Integration.
Its reads the Terraform plan data provided in req.Plan and maps it to the IntegrationResourceModel. And 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 (*IntegrationResource) Delete ¶
func (r *IntegrationResource) Delete(ctx context.Context, req resource.DeleteRequest, resp *resource.DeleteResponse)
Delete this function is responsible for deleting an existing resource of type
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 (*IntegrationResource) ImportState ¶
func (r *IntegrationResource) ImportState(ctx context.Context, req resource.ImportStateRequest, resp *resource.ImportStateResponse)
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 (*IntegrationResource) Metadata ¶
func (r *IntegrationResource) Metadata(ctx context.Context, req resource.MetadataRequest, resp *resource.MetadataResponse)
func (*IntegrationResource) Read ¶
func (r *IntegrationResource) Read(ctx context.Context, req resource.ReadRequest, resp *resource.ReadResponse)
Read this function is used to read an existing resource of type Entitle Integration.
It retrieves the resource's data from the provider API requests. The retrieved data is then mapped to the IntegrationResourceModel, and the data is saved to Terraform state.
func (*IntegrationResource) Schema ¶
func (r *IntegrationResource) Schema(ctx context.Context, req resource.SchemaRequest, resp *resource.SchemaResponse)
func (*IntegrationResource) Update ¶
func (r *IntegrationResource) Update(ctx context.Context, req resource.UpdateRequest, resp *resource.UpdateResponse)
Update this function handles updates to an existing resource of type Entitle Integration.
It reads the updated Terraform plan data provided in req.Plan and maps it to the IntegrationResourceModel. And 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 IntegrationResourceModel ¶
type IntegrationResourceModel struct { ID types.String `tfsdk:"id"` Name types.String `tfsdk:"name"` AllowedDurations types.List `tfsdk:"allowed_durations"` AllowChangingAccountPermissions types.Bool `tfsdk:"allow_changing_account_permissions"` AllowCreatingAccounts types.Bool `tfsdk:"allow_creating_accounts"` Readonly types.Bool `tfsdk:"readonly"` AllowRequests types.Bool `tfsdk:"allow_requests"` AllowRequestsByDefault types.Bool `tfsdk:"allow_requests_by_default"` AllowAsGrantMethod types.Bool `tfsdk:"allow_as_grant_method"` AllowAsGrantMethodByDefault types.Bool `tfsdk:"allow_as_grant_method_by_default"` AutoAssignRecommendedMaintainers types.Bool `tfsdk:"auto_assign_recommended_maintainers"` AutoAssignRecommendedOwners types.Bool `tfsdk:"auto_assign_recommended_owners"` NotifyAboutExternalPermissionChanges types.Bool `tfsdk:"notify_about_external_permission_changes"` Owner *utils.IdEmailModel `tfsdk:"owner"` Application *utils.NameModel `tfsdk:"application"` AgentToken *utils.NameModel `tfsdk:"agent_token"` Workflow *utils.IdNameModel `tfsdk:"workflow"` Maintainers []*utils.MaintainerModel `tfsdk:"maintainers"` ConnectionJson types.String `tfsdk:"connection_json"` }
IntegrationResourceModel describes the resource data model.