Documentation ¶
Index ¶
- func DecodeTo(oldValues, newValues []interface{}) ([]ionoscloud.FirewallruleProperties, []ionoscloud.FirewallruleProperties, ...)
- func ExtractOrderedFirewallIds(foundRules, sentRules []ionoscloud.FirewallRule) []string
- func PropUnsetSetFieldIfNotSetInSchema(fwProp *ionoscloud.FirewallruleProperties, path string, d *schema.ResourceData)
- func SetFwRuleIdsInSchemaInCaseOfProviderUpdate(d *schema.ResourceData) error
- func SetIdsInSchema(d *schema.ResourceData, firewallRuleIds []string) error
- func SetNullableFields(prop ionoscloud.FirewallruleProperties) ionoscloud.FirewallruleProperties
- func SetProperties(firewall ionoscloud.FirewallRule) map[string]interface{}
- type Service
- func (fs *Service) AddToMapIfRuleExists(ctx context.Context, datacenterId, serverId, nicId, ruleId string) (map[string]interface{}, error)
- func (fs *Service) Create(ctx context.Context, datacenterId, serverId, nicId string, ...) (*ionoscloud.FirewallRule, *ionoscloud.APIResponse, error)
- func (fs *Service) Delete(ctx context.Context, datacenterId, serverId, nicId, firewallId string) (*ionoscloud.APIResponse, error)
- func (fs *Service) FindById(ctx context.Context, datacenterId, serverId, nicId, firewallId string) (*ionoscloud.FirewallRule, *ionoscloud.APIResponse, error)
- func (fs *Service) Get(ctx context.Context, datacenterId, serverId, nicId string, depth int32) ([]ionoscloud.FirewallRule, error)
- func (fs *Service) GetAndUpdateFirewalls(ctx context.Context, dcId, serverId, nicId, path string) (firewallRules []ionoscloud.FirewallRule, firewallRuleIds []string, ...)
- func (fs *Service) Update(ctx context.Context, datacenterId, serverId, nicId, id string, ...) (*ionoscloud.FirewallRule, *ionoscloud.APIResponse, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DecodeTo ¶
func DecodeTo(oldValues, newValues []interface{}) ([]ionoscloud.FirewallruleProperties, []ionoscloud.FirewallruleProperties, error)
DecodeTo - receives old and new values as slice of interfaces from schema, decodes and returns firewall properties
func ExtractOrderedFirewallIds ¶
func ExtractOrderedFirewallIds(foundRules, sentRules []ionoscloud.FirewallRule) []string
func PropUnsetSetFieldIfNotSetInSchema ¶
func PropUnsetSetFieldIfNotSetInSchema(fwProp *ionoscloud.FirewallruleProperties, path string, d *schema.ResourceData)
PropUnsetSetFieldIfNotSetInSchema will only set the in32 types if they actually exist in the schema used to unset the fields that are set during the decode process mutates fwProp
func SetFwRuleIdsInSchemaInCaseOfProviderUpdate ¶
func SetFwRuleIdsInSchemaInCaseOfProviderUpdate(d *schema.ResourceData) error
func SetIdsInSchema ¶
func SetIdsInSchema(d *schema.ResourceData, firewallRuleIds []string) error
func SetNullableFields ¶
func SetNullableFields(prop ionoscloud.FirewallruleProperties) ionoscloud.FirewallruleProperties
func SetProperties ¶
func SetProperties(firewall ionoscloud.FirewallRule) map[string]interface{}
Types ¶
type Service ¶
type Service struct { Client *ionoscloud.APIClient Meta interface{} D *schema.ResourceData }
func (*Service) AddToMapIfRuleExists ¶
func (*Service) Create ¶
func (fs *Service) Create(ctx context.Context, datacenterId, serverId, nicId string, firewallrule ionoscloud.FirewallRule) (*ionoscloud.FirewallRule, *ionoscloud.APIResponse, error)
func (*Service) Delete ¶
func (fs *Service) Delete(ctx context.Context, datacenterId, serverId, nicId, firewallId string) (*ionoscloud.APIResponse, error)
func (*Service) FindById ¶
func (fs *Service) FindById(ctx context.Context, datacenterId, serverId, nicId, firewallId string) (*ionoscloud.FirewallRule, *ionoscloud.APIResponse, error)
func (*Service) Get ¶
func (fs *Service) Get(ctx context.Context, datacenterId, serverId, nicId string, depth int32) ([]ionoscloud.FirewallRule, error)
func (*Service) GetAndUpdateFirewalls ¶
func (fs *Service) GetAndUpdateFirewalls(ctx context.Context, dcId, serverId, nicId, path string) (firewallRules []ionoscloud.FirewallRule, firewallRuleIds []string, diags diag.Diagnostics)
GetAndUpdateFirewalls - checks in schema and returns modified firewall rules as a slice of ionoscloud.FirewallRule and also returns a slice of firewall rule ids
func (*Service) Update ¶
func (fs *Service) Update(ctx context.Context, datacenterId, serverId, nicId, id string, firewallrule ionoscloud.FirewallRule) (*ionoscloud.FirewallRule, *ionoscloud.APIResponse, error)
Click to show internal directories.
Click to hide internal directories.