_switch

package
v0.12.1 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DataSources

func DataSources() []func() datasource.DataSource

func NewDevicesSwitchPortResource

func NewDevicesSwitchPortResource() resource.Resource

func NewDevicesSwitchPortsCycleResource

func NewDevicesSwitchPortsCycleResource() resource.Resource

func NewDevicesSwitchPortsStatusesDataSource

func NewDevicesSwitchPortsStatusesDataSource() datasource.DataSource

func NewNetworksSwitchDscpToCosMappingsResource

func NewNetworksSwitchDscpToCosMappingsResource() resource.Resource

func NewNetworksSwitchMtuDataSource

func NewNetworksSwitchMtuDataSource() datasource.DataSource

func NewNetworksSwitchMtuResource

func NewNetworksSwitchMtuResource() resource.Resource

func NewNetworksSwitchQosRuleResource

func NewNetworksSwitchQosRuleResource() resource.Resource

func NewNetworksSwitchQosRulesDataSource

func NewNetworksSwitchQosRulesDataSource() datasource.DataSource

func NewNetworksSwitchSettingsResource

func NewNetworksSwitchSettingsResource() resource.Resource

func Resources

func Resources() []func() resource.Resource

Types

type DevicesSwitchPortResource

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

DevicesSwitchPortResource struct defines the structure for this resource.

func (*DevicesSwitchPortResource) Configure

Configure is a method of the Resource interface that Terraform calls to provide the configured provider instance to the resource.

func (*DevicesSwitchPortResource) Create

Create method is responsible for creating a new resource.

func (*DevicesSwitchPortResource) Delete

Delete function is responsible for deleting a resource.

func (*DevicesSwitchPortResource) ImportState

ImportState function is used to import an existing resource into Terraform.

func (*DevicesSwitchPortResource) Metadata

Metadata provides a way to define information about the resource.

func (*DevicesSwitchPortResource) Read

Read method is responsible for reading an existing resource's state.

func (*DevicesSwitchPortResource) Schema

Schema provides a way to define the structure of the resource data.

func (*DevicesSwitchPortResource) Update

Update function is responsible for updating the state of an existing resource.

type DevicesSwitchPortResourceModel

type DevicesSwitchPortResourceModel struct {
	Id                          types.String `tfsdk:"id"`
	Serial                      types.String `tfsdk:"serial" json:"serial"`
	PortId                      types.String `tfsdk:"port_id" json:"portId"`
	Name                        types.String `tfsdk:"name" json:"name"`
	Tags                        types.Set    `tfsdk:"tags" json:"tags"`
	Enabled                     types.Bool   `tfsdk:"enabled" json:"enabled"`
	PoeEnabled                  types.Bool   `tfsdk:"poe_enabled" json:"poeEnabled"`
	Type                        types.String `tfsdk:"type" json:"type"`
	Vlan                        types.Int64  `tfsdk:"vlan" json:"vlan"`
	VoiceVlan                   types.Int64  `tfsdk:"voice_vlan" json:"voiceVlan"`
	AllowedVlans                types.String `tfsdk:"allowed_vlans" json:"allowedVlans"`
	AccessPolicyNumber          types.Int64  `tfsdk:"access_policy_number" json:"accessPolicyNumber"`
	AccessPolicyType            types.String `tfsdk:"access_policy_type" json:"accessPolicyType"`
	PortScheduleId              types.String `tfsdk:"port_schedule_id" json:"portScheduleId"`
	StickyMacAllowListLimit     types.Int64  `tfsdk:"sticky_mac_allow_list_limit" json:"stickyMacWhitelistLimit"`
	MacAllowList                types.Set    `tfsdk:"mac_allow_list" json:"macWhitelist"`
	StickyMacAllowList          types.Set    `tfsdk:"sticky_mac_allow_list" json:"stickyMacWhitelist"`
	StormControlEnabled         types.Bool   `tfsdk:"storm_control_enabled" json:"stormControlEnabled"`
	AdaptivePolicyGroupId       types.String `tfsdk:"adaptive_policy_group_id" json:"adaptivePolicyGroupId"`
	PeerSgtCapable              types.Bool   `tfsdk:"peer_sgt_capable" json:"peerSgtCapable"`
	FlexibleStackingEnabled     types.Bool   `tfsdk:"flexible_stacking_enabled" json:"flexibleStackingEnabled"`
	DaiTrusted                  types.Bool   `tfsdk:"dai_trusted" json:"daiTrusted"`
	IsolationEnabled            types.Bool   `tfsdk:"isolation_enabled" json:"isolationEnabled"`
	RstpEnabled                 types.Bool   `tfsdk:"rstp_enabled" json:"rstpEnabled"`
	StpGuard                    types.String `tfsdk:"stp_guard" json:"stpGuard"`
	LinkNegotiation             types.String `tfsdk:"link_negotiation" json:"linkNegotiation"`
	LinkNegotiationCapabilities types.List   `tfsdk:"link_negotiation_capabilities" json:"linkNegotiationCapabilities"`
	Udld                        types.String `tfsdk:"udld" json:"udld"`
	Profile                     types.Object `tfsdk:"profile" json:"profile"`
}

The DevicesSwitchPortResourceModel structure describes the data model.

type DevicesSwitchPortResourceModelProfile

type DevicesSwitchPortResourceModelProfile struct {
	Enabled types.Bool   `tfsdk:"enabled" json:"enabled"`
	Id      types.String `tfsdk:"id" json:"id"`
	Iname   types.String `tfsdk:"iname" json:"iname"`
}

type DevicesSwitchPortsCycleResource

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

DevicesSwitchPortsCycleResource defines the resource implementation.

func (*DevicesSwitchPortsCycleResource) Configure

func (*DevicesSwitchPortsCycleResource) Create

func (*DevicesSwitchPortsCycleResource) Delete

func (*DevicesSwitchPortsCycleResource) Metadata

func (*DevicesSwitchPortsCycleResource) Read

func (*DevicesSwitchPortsCycleResource) Schema

func (*DevicesSwitchPortsCycleResource) Update

type DevicesSwitchPortsCycleResourceModel

type DevicesSwitchPortsCycleResourceModel struct {
	Id     jsontypes2.String   `tfsdk:"id"`
	Serial jsontypes2.String   `tfsdk:"serial"`
	Ports  []jsontypes2.String `tfsdk:"ports" json:"ports"`
}

DevicesSwitchPortsCycleResourceModel describes the resource data model.

type DevicesSwitchPortsStatusesDataSource

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

DevicesSwitchPortsStatusesDataSource struct defines the structure for this data source. It includes an APIClient field for making requests to the Meraki API.

func (*DevicesSwitchPortsStatusesDataSource) Configure

Configure is a method of the data source interface that Terraform calls to provide the configured provider instance to the data source. It passes the DataSourceData that's been stored by the provider's ConfigureFunc.

func (*DevicesSwitchPortsStatusesDataSource) Metadata

func (*DevicesSwitchPortsStatusesDataSource) Read

Read method is responsible for reading an existing data source's state.

func (*DevicesSwitchPortsStatusesDataSource) Schema

Schema provides a way to define the structure of the data source data. It is called by the framework to get the schema of the data source.

type DevicesSwitchPortsStatusesDataSourceModel

type DevicesSwitchPortsStatusesDataSourceModel struct {
	Id     jsontypes2.String                               `tfsdk:"id"`
	Serial jsontypes2.String                               `tfsdk:"serial"`
	List   []DevicesSwitchPortsStatusesDataSourceModelList `tfsdk:"list"`
}

The DevicesSwitchPortsStatusesDataSourceModel structure describes the data model. This struct is where you define all the attributes that are part of this data source's state.

type DevicesSwitchPortsStatusesDataSourceModelList

type DevicesSwitchPortsStatusesDataSourceModelList struct {
	PortId                  jsontypes2.String                                `tfsdk:"port_id"`
	Name                    jsontypes2.String                                `tfsdk:"name"`
	Tags                    []jsontypes2.String                              `tfsdk:"tags"`
	Enabled                 jsontypes2.Bool                                  `tfsdk:"enabled"`
	PoeEnabled              jsontypes2.Bool                                  `tfsdk:"poe_enabled"`
	Type                    jsontypes2.String                                `tfsdk:"type"`
	Vlan                    jsontypes2.Int64                                 `tfsdk:"vlan"`
	VoiceVlan               jsontypes2.Int64                                 `tfsdk:"voice_vlan"`
	AllowedVlans            jsontypes2.String                                `tfsdk:"allowed_vlans"`
	IsolationEnabled        jsontypes2.Bool                                  `tfsdk:"isolation_enabled"`
	RstpEnabled             jsontypes2.Bool                                  `tfsdk:"rstp_enabled"`
	StpGuard                jsontypes2.String                                `tfsdk:"stp_guard"`
	AccessPolicyNumber      jsontypes2.Int64                                 `tfsdk:"access_policy_number"`
	AccessPolicyType        jsontypes2.String                                `tfsdk:"access_policy_type"`
	LinkNegotiation         jsontypes2.String                                `tfsdk:"link_negotiation"`
	PortScheduleId          jsontypes2.String                                `tfsdk:"port_schedule_id"`
	Udld                    jsontypes2.String                                `tfsdk:"udld"`
	StickyMacWhitelistLimit jsontypes2.Int64                                 `tfsdk:"sticky_mac_white_list_limit"`
	StormControlEnabled     jsontypes2.Bool                                  `tfsdk:"storm_control_enabled"`
	MacWhitelist            []jsontypes2.String                              `tfsdk:"mac_white_list"`
	StickyMacWhitelist      []jsontypes2.String                              `tfsdk:"sticky_mac_white_list"`
	AdaptivePolicyGroupId   jsontypes2.String                                `tfsdk:"adaptive_policy_group_id"`
	PeerSgtCapable          jsontypes2.Bool                                  `tfsdk:"peer_sgt_capable"`
	FlexibleStackingEnabled jsontypes2.Bool                                  `tfsdk:"flexible_stacking_enabled"`
	DaiTrusted              jsontypes2.Bool                                  `tfsdk:"dai_trusted"`
	Profile                 DevicesSwitchPortsStatusesDataSourceModelProfile `tfsdk:"profile"`
}

type DevicesSwitchPortsStatusesDataSourceModelProfile

type DevicesSwitchPortsStatusesDataSourceModelProfile struct {
	Enabled jsontypes2.Bool   `tfsdk:"enabled"`
	Id      jsontypes2.String `tfsdk:"id"`
	Iname   jsontypes2.String `tfsdk:"iname"`
}

type NetworksSwitchDscpToCosMappingsResource

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

NetworksSwitchDscpToCosMappingsResource defines the resource implementation.

func (*NetworksSwitchDscpToCosMappingsResource) Configure

func (*NetworksSwitchDscpToCosMappingsResource) Create

func (*NetworksSwitchDscpToCosMappingsResource) Delete

func (*NetworksSwitchDscpToCosMappingsResource) ImportState

func (*NetworksSwitchDscpToCosMappingsResource) Metadata

func (*NetworksSwitchDscpToCosMappingsResource) Read

func (*NetworksSwitchDscpToCosMappingsResource) Schema

func (*NetworksSwitchDscpToCosMappingsResource) Update

type NetworksSwitchDscpToCosMappingsResourceModel

type NetworksSwitchDscpToCosMappingsResourceModel struct {
	Id        jsontypes2.String                                     `tfsdk:"id"`
	NetworkId jsontypes2.String                                     `tfsdk:"network_id"`
	Mappings  []NetworksSwitchDscpToCosMappingsResourceModelMapping `tfsdk:"mappings" json:"mappings"`
}

NetworksSwitchDscpToCosMappingsResourceModel describes the resource data model.

type NetworksSwitchDscpToCosMappingsResourceModelMapping

type NetworksSwitchDscpToCosMappingsResourceModelMapping struct {
	Dscp jsontypes2.Int64 `tfsdk:"dscp" json:"dscp"`
	Cos  jsontypes2.Int64 `tfsdk:"cos" json:"cos"`
}

type NetworksSwitchMtuDataSource

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

NetworksSwitchMtuDataSource defines the resource implementation.

func (*NetworksSwitchMtuDataSource) Configure

func (*NetworksSwitchMtuDataSource) Metadata

func (*NetworksSwitchMtuDataSource) Read

func (*NetworksSwitchMtuDataSource) Schema

type NetworksSwitchMtuDataSourceModel

type NetworksSwitchMtuDataSourceModel struct {
	Id             jsontypes2.String                          `tfsdk:"id"`
	NetworkId      jsontypes2.String                          `tfsdk:"network_id" json:"network_id"`
	DefaultMtuSize jsontypes2.Int64                           `tfsdk:"default_mtu_size" json:"defaultMtuSize"`
	Overrides      []NetworksSwitchMtuDataSourceModelOverride `tfsdk:"overrides" json:"overrides"`
}

NetworksSwitchMtuDataSourceModel describes the resource data model.

type NetworksSwitchMtuDataSourceModelOverride

type NetworksSwitchMtuDataSourceModelOverride struct {
	Switches       []string         `tfsdk:"switches" json:"switches"`
	SwitchProfiles []string         `tfsdk:"switch_profiles" json:"switchProfiles"`
	MtuSize        jsontypes2.Int64 `tfsdk:"mtu_size" json:"mtuSize"`
}

type NetworksSwitchMtuResource

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

NetworksSwitchMtuResource defines the resource implementation.

func (*NetworksSwitchMtuResource) Configure

func (*NetworksSwitchMtuResource) Create

func (*NetworksSwitchMtuResource) Delete

func (*NetworksSwitchMtuResource) ImportState

func (*NetworksSwitchMtuResource) Metadata

func (*NetworksSwitchMtuResource) Read

func (*NetworksSwitchMtuResource) Schema

func (*NetworksSwitchMtuResource) Update

type NetworksSwitchMtuResourceModel

type NetworksSwitchMtuResourceModel struct {
	Id             jsontypes2.String                        `tfsdk:"id"`
	NetworkId      jsontypes2.String                        `tfsdk:"network_id" json:"network_id"`
	DefaultMtuSize jsontypes2.Int64                         `tfsdk:"default_mtu_size" json:"defaultMtuSize"`
	Overrides      []NetworksSwitchMtuResourceModelOverride `tfsdk:"overrides" json:"overrides"`
}

NetworksSwitchMtuResourceModel describes the resource data model.

type NetworksSwitchMtuResourceModelOverride

type NetworksSwitchMtuResourceModelOverride struct {
	Switches       []string         `tfsdk:"switches" json:"switches"`
	SwitchProfiles []string         `tfsdk:"switch_profiles" json:"switchProfiles"`
	MtuSize        jsontypes2.Int64 `tfsdk:"mtu_size" json:"mtuSize"`
}

type NetworksSwitchQosRuleResource

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

NetworksSwitchQosRuleResource defines the resource implementation.

func (*NetworksSwitchQosRuleResource) Configure

func (*NetworksSwitchQosRuleResource) Create

func (*NetworksSwitchQosRuleResource) Delete

func (*NetworksSwitchQosRuleResource) ImportState

func (*NetworksSwitchQosRuleResource) Metadata

func (*NetworksSwitchQosRuleResource) Read

func (*NetworksSwitchQosRuleResource) Schema

func (*NetworksSwitchQosRuleResource) Update

type NetworksSwitchQosRuleResourceModel

type NetworksSwitchQosRuleResourceModel struct {
	Id           jsontypes2.String  `tfsdk:"id" json:"-"`
	NetworkId    jsontypes2.String  `tfsdk:"network_id" json:"network_id"`
	QosRulesId   jsontypes2.String  `tfsdk:"qos_rule_id" json:"id"`
	Vlan         jsontypes2.Int64   `tfsdk:"vlan" json:"vlan"`
	Dscp         jsontypes2.Int64   `tfsdk:"dscp" json:"dscp"`
	DstPort      jsontypes2.Float64 `tfsdk:"dst_port" json:"dstPort"`
	SrcPort      jsontypes2.Float64 `tfsdk:"src_port" json:"srcPort"`
	DstPortRange jsontypes2.String  `tfsdk:"dst_port_range" json:"dstPortRange"`
	Protocol     jsontypes2.String  `tfsdk:"protocol" json:"protocol"`
	SrcPortRange jsontypes2.String  `tfsdk:"src_port_range" json:"srcPortRange"`
}

NetworksSwitchQosRuleResourceModel describes the resource data model.

type NetworksSwitchQosRulesDataSource

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

NetworksSwitchQosRulesDataSource defines the resource implementation.

func (*NetworksSwitchQosRulesDataSource) Configure

func (*NetworksSwitchQosRulesDataSource) Metadata

func (*NetworksSwitchQosRulesDataSource) Read

func (*NetworksSwitchQosRulesDataSource) Schema

type NetworksSwitchQosRulesDataSourceModel

type NetworksSwitchQosRulesDataSourceModel struct {
	Id        jsontypes2.String                            `tfsdk:"id" json:"-"`
	NetworkId jsontypes2.String                            `tfsdk:"network_id" json:"network_id"`
	List      []NetworksSwitchQosRulesDataSourceModelRules `tfsdk:"list"`
}

NetworksSwitchQosRulesDataSourceModel describes the resource data model.

type NetworksSwitchQosRulesDataSourceModelRules

type NetworksSwitchQosRulesDataSourceModelRules struct {
	QosRulesId   jsontypes2.String  `tfsdk:"qos_rule_id" json:"id"`
	Vlan         jsontypes2.Int64   `tfsdk:"vlan" json:"vlan"`
	Dscp         jsontypes2.Int64   `tfsdk:"dscp" json:"dscp"`
	DstPort      jsontypes2.Float64 `tfsdk:"dst_port" json:"dstPort"`
	SrcPort      jsontypes2.Float64 `tfsdk:"src_port" json:"srcPort"`
	DstPortRange jsontypes2.String  `tfsdk:"dst_port_range" json:"dstPortRange"`
	Protocol     jsontypes2.String  `tfsdk:"protocol" json:"protocol"`
	SrcPortRange jsontypes2.String  `tfsdk:"src_port_range" json:"srcPortRange"`
}

NetworksSwitchQosRulesDataSourceModelRules describes the resource data model.

type NetworksSwitchSettingsResource

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

NetworksSwitchSettingsResource defines the resource implementation.

func (*NetworksSwitchSettingsResource) Configure

func (*NetworksSwitchSettingsResource) Create

func (*NetworksSwitchSettingsResource) Delete

func (*NetworksSwitchSettingsResource) ImportState

func (*NetworksSwitchSettingsResource) Metadata

func (*NetworksSwitchSettingsResource) Read

func (*NetworksSwitchSettingsResource) Schema

func (*NetworksSwitchSettingsResource) Update

type NetworksSwitchSettingsResourceModel

type NetworksSwitchSettingsResourceModel struct {
	Id               jsontypes2.String                                    `tfsdk:"id"`
	NetworkId        jsontypes2.String                                    `tfsdk:"network_id" json:"network_id"`
	Vlan             jsontypes2.Float64                                   `tfsdk:"vlan" json:"vlan"`
	UseCombinedPower jsontypes2.Bool                                      `tfsdk:"use_combined_power" json:"useCombinedPower"`
	PowerExceptions  []NetworksSwitchSettingsResourceModelPowerExceptions `tfsdk:"power_exceptions" json:"powerExceptions"`
}

NetworksSwitchSettingsResourceModel describes the resource data model.

type NetworksSwitchSettingsResourceModelPowerExceptions

type NetworksSwitchSettingsResourceModelPowerExceptions struct {
	Serial    jsontypes2.String `tfsdk:"serial" json:"serial"`
	PowerType jsontypes2.String `tfsdk:"power_type" json:"powerType"`
}

Jump to

Keyboard shortcuts

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