Documentation ¶
Index ¶
- Variables
- func NewRoutingRules() resource.Resource
- type ApprovalModel
- type ApprovalOptionsModel
- type RequestorModel
- type ResourceFilterModel
- type ResourceModel
- type RoutingRuleModel
- type RoutingRules
- func (r *RoutingRules) Configure(ctx context.Context, req resource.ConfigureRequest, ...)
- func (r *RoutingRules) Create(ctx context.Context, req resource.CreateRequest, resp *resource.CreateResponse)
- func (r *RoutingRules) Delete(ctx context.Context, req resource.DeleteRequest, resp *resource.DeleteResponse)
- func (r *RoutingRules) ImportState(ctx context.Context, req resource.ImportStateRequest, ...)
- func (r *RoutingRules) Metadata(ctx context.Context, req resource.MetadataRequest, ...)
- func (r *RoutingRules) Read(ctx context.Context, req resource.ReadRequest, resp *resource.ReadResponse)
- func (r *RoutingRules) Schema(ctx context.Context, req resource.SchemaRequest, resp *resource.SchemaResponse)
- func (r *RoutingRules) Update(ctx context.Context, req resource.UpdateRequest, resp *resource.UpdateResponse)
- type RoutingRulesModel
- type RoutingRulesRepr
- type WorkflowLatestApi
Constants ¶
This section is empty.
Variables ¶
View Source
var DefaultRoutingRules = RoutingRulesRepr{ Rule: []RoutingRuleModel{{ Requestor: RequestorModel{Type: "any"}, Resource: ResourceModel{Type: "any"}, Approval: []ApprovalModel{{ Type: "p0", Options: &ApprovalOptionsModel{AllowOneParty: &False, RequireReason: &False}}}, }}, }
View Source
var False = false
Functions ¶
func NewRoutingRules ¶
Types ¶
type ApprovalModel ¶
type ApprovalModel struct { Directory *string `json:"directory" tfsdk:"directory"` Id *string `json:"id" tfsdk:"id"` Integration *string `json:"integration" tfsdk:"integration"` Label *string `json:"label" tfsdk:"label"` Options *ApprovalOptionsModel `json:"options" tfsdk:"options"` Services *[]string `json:"services" tfsdk:"services"` Type string `json:"type" tfsdk:"type"` }
type ApprovalOptionsModel ¶
type RequestorModel ¶
type ResourceFilterModel ¶
type ResourceModel ¶
type ResourceModel struct { Filters *map[string]ResourceFilterModel `json:"filters" tfsdk:"filters"` Service *string `json:"service" tfsdk:"service"` Type string `json:"type" tfsdk:"type"` }
type RoutingRuleModel ¶
type RoutingRuleModel struct { Requestor RequestorModel `json:"requestor" tfsdk:"requestor"` Resource ResourceModel `json:"resource" tfsdk:"resource"` Approval []ApprovalModel `json:"approval" tfsdk:"approval"` }
type RoutingRules ¶
type RoutingRules struct {
// contains filtered or unexported fields
}
func (*RoutingRules) Configure ¶
func (r *RoutingRules) Configure(ctx context.Context, req resource.ConfigureRequest, resp *resource.ConfigureResponse)
func (*RoutingRules) Create ¶
func (r *RoutingRules) Create(ctx context.Context, req resource.CreateRequest, resp *resource.CreateResponse)
func (*RoutingRules) Delete ¶
func (r *RoutingRules) Delete(ctx context.Context, req resource.DeleteRequest, resp *resource.DeleteResponse)
func (*RoutingRules) ImportState ¶
func (r *RoutingRules) ImportState(ctx context.Context, req resource.ImportStateRequest, resp *resource.ImportStateResponse)
func (*RoutingRules) Metadata ¶
func (r *RoutingRules) Metadata(ctx context.Context, req resource.MetadataRequest, resp *resource.MetadataResponse)
func (*RoutingRules) Read ¶
func (r *RoutingRules) Read(ctx context.Context, req resource.ReadRequest, resp *resource.ReadResponse)
func (*RoutingRules) Schema ¶
func (r *RoutingRules) Schema(ctx context.Context, req resource.SchemaRequest, resp *resource.SchemaResponse)
func (*RoutingRules) Update ¶
func (r *RoutingRules) Update(ctx context.Context, req resource.UpdateRequest, resp *resource.UpdateResponse)
type RoutingRulesModel ¶
type RoutingRulesModel struct { Rule []RoutingRuleModel `tfsdk:"rule"` Version types.String `tfsdk:"version"` }
type RoutingRulesRepr ¶
type RoutingRulesRepr struct { Rule []RoutingRuleModel `json:"rules"` Version *string `json:"version"` }
Need a separate representation for JSON data as version handling is different: - In TF state, it may be present, unknown (during update), or null - In JSON state, it is either present or null.
type WorkflowLatestApi ¶
type WorkflowLatestApi struct {
Workflow RoutingRulesRepr `json:"workflow"`
}
Click to show internal directories.
Click to hide internal directories.