cloudapifirewall

package
v6.6.3 Latest Latest
Warning

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

Go to latest
Published: Nov 22, 2024 License: MPL-2.0 Imports: 12 Imported by: 0

Documentation

Index

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 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 (fs *Service) AddToMapIfRuleExists(ctx context.Context, datacenterId, serverId, nicId, ruleId string) (map[string]interface{}, error)

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)

Jump to

Keyboard shortcuts

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