Documentation ¶
Index ¶
- func New(version string) func() provider.Provider
- func NewDeviceDataSource() datasource.DataSource
- func NewDeviceSwitchDataSource() datasource.DataSource
- func NewDeviceSwitchResource() resource.Resource
- func NewExampleFunction() function.Function
- type DeviceDataSource
- func (d *DeviceDataSource) Configure(ctx context.Context, req datasource.ConfigureRequest, ...)
- func (d *DeviceDataSource) Metadata(ctx context.Context, req datasource.MetadataRequest, ...)
- func (d *DeviceDataSource) Read(ctx context.Context, req datasource.ReadRequest, resp *datasource.ReadResponse)
- func (d *DeviceDataSource) Schema(ctx context.Context, req datasource.SchemaRequest, ...)
- type DeviceDataSourceModel
- type DevicePortOverrideDataSourceModel
- type DeviceSwitchConfigNetworkDataSourceModel
- type DeviceSwitchDataSource
- func (d *DeviceSwitchDataSource) Configure(ctx context.Context, req datasource.ConfigureRequest, ...)
- func (d *DeviceSwitchDataSource) Metadata(ctx context.Context, req datasource.MetadataRequest, ...)
- func (d *DeviceSwitchDataSource) Read(ctx context.Context, req datasource.ReadRequest, resp *datasource.ReadResponse)
- func (d *DeviceSwitchDataSource) Schema(ctx context.Context, req datasource.SchemaRequest, ...)
- type DeviceSwitchDataSourceModel
- type DeviceSwitchLEDSettingsResourceModel
- type DeviceSwitchPortOverrideDataSourceModel
- type DeviceSwitchPortOverrideQOSMarkingDataSourceModel
- type DeviceSwitchPortOverrideQOSMatchingDataSourceModel
- type DeviceSwitchPortOverrideQOSPolicyDataSourceModel
- type DeviceSwitchPortOverrideQOSProfileDataSourceModel
- type DeviceSwitchPortOverrideResourceModel
- type DeviceSwitchResource
- func (r *DeviceSwitchResource) Configure(ctx context.Context, req resource.ConfigureRequest, ...)
- func (r *DeviceSwitchResource) Create(ctx context.Context, req resource.CreateRequest, resp *resource.CreateResponse)
- func (r *DeviceSwitchResource) Delete(ctx context.Context, req resource.DeleteRequest, resp *resource.DeleteResponse)
- func (r *DeviceSwitchResource) ImportState(ctx context.Context, req resource.ImportStateRequest, ...)
- func (r *DeviceSwitchResource) Metadata(ctx context.Context, req resource.MetadataRequest, ...)
- func (r *DeviceSwitchResource) Read(ctx context.Context, req resource.ReadRequest, resp *resource.ReadResponse)
- func (r *DeviceSwitchResource) Schema(ctx context.Context, req resource.SchemaRequest, resp *resource.SchemaResponse)
- func (r *DeviceSwitchResource) Update(ctx context.Context, req resource.UpdateRequest, resp *resource.UpdateResponse)
- type DeviceSwitchResourceModel
- type DeviceSwitchStaticIPSettingResourceModel
- type ExampleFunction
- type UnifiProvider
- func (p *UnifiProvider) Configure(ctx context.Context, req provider.ConfigureRequest, ...)
- func (p *UnifiProvider) DataSources(ctx context.Context) []func() datasource.DataSource
- func (p *UnifiProvider) Functions(ctx context.Context) []func() function.Function
- func (p *UnifiProvider) Metadata(ctx context.Context, req provider.MetadataRequest, ...)
- func (p *UnifiProvider) Resources(ctx context.Context) []func() resource.Resource
- func (p *UnifiProvider) Schema(ctx context.Context, req provider.SchemaRequest, resp *provider.SchemaResponse)
- type UnifiProviderModel
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewDeviceDataSource ¶
func NewDeviceDataSource() datasource.DataSource
func NewDeviceSwitchDataSource ¶
func NewDeviceSwitchDataSource() datasource.DataSource
func NewDeviceSwitchResource ¶
func NewExampleFunction ¶
Types ¶
type DeviceDataSource ¶
type DeviceDataSource struct {
// contains filtered or unexported fields
}
DeviceDataSource defines the data source implementation.
func (*DeviceDataSource) Configure ¶
func (d *DeviceDataSource) Configure(ctx context.Context, req datasource.ConfigureRequest, resp *datasource.ConfigureResponse)
func (*DeviceDataSource) Metadata ¶
func (d *DeviceDataSource) Metadata(ctx context.Context, req datasource.MetadataRequest, resp *datasource.MetadataResponse)
func (*DeviceDataSource) Read ¶
func (d *DeviceDataSource) Read(ctx context.Context, req datasource.ReadRequest, resp *datasource.ReadResponse)
func (*DeviceDataSource) Schema ¶
func (d *DeviceDataSource) Schema(ctx context.Context, req datasource.SchemaRequest, resp *datasource.SchemaResponse)
type DeviceDataSourceModel ¶
type DeviceDataSourceModel struct { Mac types.String `tfsdk:"mac"` Site types.String `tfsdk:"site"` // Read Only ID types.String `tfsdk:"id"` Adopted types.Bool `tfsdk:"adopted"` Disabled types.Bool `tfsdk:"disabled"` Model types.String `tfsdk:"model"` Name types.String `tfsdk:"name"` PortOverrides map[string]DevicePortOverrideDataSourceModel `tfsdk:"port_overrides"` State types.String `tfsdk:"state"` Type types.String `tfsdk:"type"` }
DeviceDataSourceModel describes the data source data model.
type DevicePortOverrideDataSourceModel ¶
type DevicePortOverrideDataSourceModel struct { AggregateNumPorts types.Int32 `tfsdk:"aggregate_num_ports"` ExcludedNetworkIDs types.List `tfsdk:"excluded_network_ids"` Name types.String `tfsdk:"name"` NativeNetworkID types.String `tfsdk:"native_network_id"` OpMode types.String `tfsdk:"op_mode"` POEMode types.String `tfsdk:"poe_mode"` PortProfileID types.String `tfsdk:"port_profile_id"` PortSecurityEnabled types.Bool `tfsdk:"port_security_enabled"` PortSecurityMACAddresses types.List `tfsdk:"port_security_mac_addresses"` }
type DeviceSwitchConfigNetworkDataSourceModel ¶
type DeviceSwitchConfigNetworkDataSourceModel struct { AlternativeDNS iptypes.IPv4Address `tfsdk:"alternative_dns"` BondingEnabled types.Bool `tfsdk:"bonding_enabled"` DNSSuffix types.String `tfsdk:"dns_suffix"` Gateway iptypes.IPv4Address `tfsdk:"gateway"` IP iptypes.IPv4Address `tfsdk:"ip"` Netmask iptypes.IPv4Address `tfsdk:"netmask"` PreferredDNS iptypes.IPv4Address `tfsdk:"preferred_dns"` Type types.String `tfsdk:"type"` }
type DeviceSwitchDataSource ¶
type DeviceSwitchDataSource struct {
// contains filtered or unexported fields
}
DeviceSwitchDataSource defines the data source implementation.
func (*DeviceSwitchDataSource) Configure ¶
func (d *DeviceSwitchDataSource) Configure(ctx context.Context, req datasource.ConfigureRequest, resp *datasource.ConfigureResponse)
func (*DeviceSwitchDataSource) Metadata ¶
func (d *DeviceSwitchDataSource) Metadata(ctx context.Context, req datasource.MetadataRequest, resp *datasource.MetadataResponse)
func (*DeviceSwitchDataSource) Read ¶
func (d *DeviceSwitchDataSource) Read(ctx context.Context, req datasource.ReadRequest, resp *datasource.ReadResponse)
func (*DeviceSwitchDataSource) Schema ¶
func (d *DeviceSwitchDataSource) Schema(ctx context.Context, req datasource.SchemaRequest, resp *datasource.SchemaResponse)
type DeviceSwitchDataSourceModel ¶
type DeviceSwitchDataSourceModel struct { Mac types.String `tfsdk:"mac"` Site types.String `tfsdk:"site"` // Read Only ID types.String `tfsdk:"id"` Adopted types.Bool `tfsdk:"adopted"` ConfigNetwork *DeviceSwitchConfigNetworkDataSourceModel `tfsdk:"config_network"` Disabled types.Bool `tfsdk:"disabled"` Dot1XFallbackNetworkID types.String `tfsdk:"dot1x_fallback_networkconf_id"` Dot1XPortctrlEnabled types.Bool `tfsdk:"dot1x_portctrl_enabled"` FlowctrlEnabled types.Bool `tfsdk:"flowctrl_enabled"` IP types.String `tfsdk:"ip"` JumboframeEnabled types.Bool `tfsdk:"jumboframe_enabled"` LEDOverride types.String `tfsdk:"led_override"` LEDOverrideColor types.String `tfsdk:"led_override_color"` LEDOverrideColorBrightness types.Int32 `tfsdk:"led_override_color_brightness"` MgmtNetworkID types.String `tfsdk:"mgmt_network_id"` Model types.String `tfsdk:"model"` Name types.String `tfsdk:"name"` PortOverrides map[string]DeviceSwitchPortOverrideDataSourceModel `tfsdk:"port_overrides"` SnmpContact types.String `tfsdk:"snmp_contact"` SnmpLocation types.String `tfsdk:"snmp_location"` State types.String `tfsdk:"state"` StpPriority types.String `tfsdk:"stp_priority"` StpVersion types.String `tfsdk:"stp_version"` Type types.String `tfsdk:"type"` }
DeviceSwitchDataSourceModel describes the data source data model.
type DeviceSwitchLEDSettingsResourceModel ¶
type DeviceSwitchLEDSettingsResourceModel struct { Brightness types.Int32 `tfsdk:"brightness"` Color types.String `tfsdk:"color"` Enabled types.Bool `tfsdk:"enabled"` }
func (*DeviceSwitchLEDSettingsResourceModel) GetOverrideState ¶
func (m *DeviceSwitchLEDSettingsResourceModel) GetOverrideState() types.String
type DeviceSwitchPortOverrideDataSourceModel ¶
type DeviceSwitchPortOverrideDataSourceModel struct { AggregateNumPorts types.Int32 `tfsdk:"aggregate_num_ports"` AutoNegotiate types.Bool `tfsdk:"auto_negotiate"` Dot1XCtrl types.String `tfsdk:"dot1x_ctrl"` Dot1XIDleTimeout types.Int32 `tfsdk:"dot1x_idle_timeout"` EgressRateLimitKbps types.Int32 `tfsdk:"egress_rate_limit_kbps"` EgressRateLimitKbpsEnabled types.Bool `tfsdk:"egress_rate_limit_kbps_enabled"` ExcludedNetworkIDs types.List `tfsdk:"excluded_network_ids"` FECMode types.String `tfsdk:"fec_mode"` Forward types.String `tfsdk:"forward"` FullDuplex types.Bool `tfsdk:"full_duplex"` Isolation types.Bool `tfsdk:"isolation"` LLPMEDEnabled types.Bool `tfsdk:"lldp_med_enabled"` LLPMEDNotifyEnabled types.Bool `tfsdk:"lldp_med_notify_enabled"` MirrorPortIDX types.Int32 `tfsdk:"mirror_port_idx"` Name types.String `tfsdk:"name"` NativeNetworkID types.String `tfsdk:"native_network_id"` Operation types.String `tfsdk:"operation"` PriorityQueue1Level types.Int32 `tfsdk:"priority_queue1_level"` PriorityQueue2Level types.Int32 `tfsdk:"priority_queue2_level"` PriorityQueue3Level types.Int32 `tfsdk:"priority_queue3_level"` PriorityQueue4Level types.Int32 `tfsdk:"priority_queue4_level"` POEMode types.String `tfsdk:"poe_mode"` PortKeepaliveEnabled types.Bool `tfsdk:"port_keepalive_enabled"` PortProfileID types.String `tfsdk:"port_profile_id"` PortSecurityEnabled types.Bool `tfsdk:"port_security_enabled"` PortSecurityMACAddresses types.List `tfsdk:"port_security_mac_addresses"` QOSProfile *DeviceSwitchPortOverrideQOSProfileDataSourceModel `tfsdk:"qos_profile"` SettingPreference types.String `tfsdk:"setting_preference"` Speed types.Int32 `tfsdk:"speed"` StormControlBroadcastEnabled types.Bool `tfsdk:"storm_control_broadcast_enabled"` StormControlBroadcastLevel types.Int32 `tfsdk:"storm_control_broadcast_level"` StormControlBroadcastRate types.Int32 `tfsdk:"storm_control_broadcast_rate"` StormControlMulticastEnabled types.Bool `tfsdk:"storm_control_multicast_enabled"` StormControlMulticastLevel types.Int32 `tfsdk:"storm_control_multicast_level"` StormControlMulticastRate types.Int32 `tfsdk:"storm_control_mulitcast_rate"` StormControlType types.String `tfsdk:"storm_control_type"` StormControlUnicastEnabled types.Bool `tfsdk:"storm_control_unicast_enabled"` StormControlUnicastLevel types.Int32 `tfsdk:"storm_control_unicast_level"` StormControlUnicastRate types.Int32 `tfsdk:"storm_control_unicast_rate"` STPPortMode types.Bool `tfsdk:"stp_port_mode"` TaggedVLANMgmt types.String `tfsdk:"tagged_vlan_mgmt"` VoiceNetworkID types.String `tfsdk:"voice_networkconf_id"` }
type DeviceSwitchPortOverrideQOSMatchingDataSourceModel ¶
type DeviceSwitchPortOverrideQOSMatchingDataSourceModel struct { CosCode types.Int32 `tfsdk:"cos_code"` DscpCode types.Int32 `tfsdk:"dscp_code"` DstPort types.Int32 `tfsdk:"dst_port"` IPPrecedenceCode types.Int32 `tfsdk:"ip_precedence_code"` Protocol types.String `tfsdk:"protocol"` SrcPort types.Int32 `tfsdk:"src_port"` }
type DeviceSwitchPortOverrideQOSPolicyDataSourceModel ¶
type DeviceSwitchPortOverrideQOSPolicyDataSourceModel struct { QOSMarking DeviceSwitchPortOverrideQOSMarkingDataSourceModel `tfsdk:"qos_marking"` QOSMatching DeviceSwitchPortOverrideQOSMatchingDataSourceModel `tfsdk:"qos_matching"` }
type DeviceSwitchPortOverrideQOSProfileDataSourceModel ¶
type DeviceSwitchPortOverrideQOSProfileDataSourceModel struct { QOSPolicies []DeviceSwitchPortOverrideQOSPolicyDataSourceModel `tfsdk:"qos_policies"` QOSProfileMode types.String `tfsdk:"qos_profile_mode"` }
type DeviceSwitchPortOverrideResourceModel ¶
type DeviceSwitchPortOverrideResourceModel struct { // Configurable Values Disabled types.Bool `tfsdk:"disabled"` AggregateNumPorts types.Int32 `tfsdk:"aggregate_num_ports"` ExcludedTaggedNetworkIds types.List `tfsdk:"excluded_tagged_network_ids"` FullDuplex types.Bool `tfsdk:"full_duplex"` LinkSpeed types.Int32 `tfsdk:"link_speed"` MirrorPortIndex types.Int32 `tfsdk:"mirror_port_index"` Name types.String `tfsdk:"name"` NativeNetworkID types.String `tfsdk:"native_network_id"` Operation types.String `tfsdk:"operation"` POEMode types.String `tfsdk:"poe_mode"` PortProfileID types.String `tfsdk:"port_profile_id"` TaggedVLANManagement types.String `tfsdk:"tagged_vlan_management"` }
type DeviceSwitchResource ¶
type DeviceSwitchResource struct {
// contains filtered or unexported fields
}
DeviceSwitchResource defines the resource implementation.
func (*DeviceSwitchResource) Configure ¶
func (r *DeviceSwitchResource) Configure(ctx context.Context, req resource.ConfigureRequest, resp *resource.ConfigureResponse)
func (*DeviceSwitchResource) Create ¶
func (r *DeviceSwitchResource) Create(ctx context.Context, req resource.CreateRequest, resp *resource.CreateResponse)
func (*DeviceSwitchResource) Delete ¶
func (r *DeviceSwitchResource) Delete(ctx context.Context, req resource.DeleteRequest, resp *resource.DeleteResponse)
func (*DeviceSwitchResource) ImportState ¶
func (r *DeviceSwitchResource) ImportState(ctx context.Context, req resource.ImportStateRequest, resp *resource.ImportStateResponse)
func (*DeviceSwitchResource) Metadata ¶
func (r *DeviceSwitchResource) Metadata(ctx context.Context, req resource.MetadataRequest, resp *resource.MetadataResponse)
func (*DeviceSwitchResource) Read ¶
func (r *DeviceSwitchResource) Read(ctx context.Context, req resource.ReadRequest, resp *resource.ReadResponse)
func (*DeviceSwitchResource) Schema ¶
func (r *DeviceSwitchResource) Schema(ctx context.Context, req resource.SchemaRequest, resp *resource.SchemaResponse)
func (*DeviceSwitchResource) Update ¶
func (r *DeviceSwitchResource) Update(ctx context.Context, req resource.UpdateRequest, resp *resource.UpdateResponse)
type DeviceSwitchResourceModel ¶
type DeviceSwitchResourceModel struct { // Computed Values ID types.String `tfsdk:"id"` Model types.String `tfsdk:"model"` SiteID types.String `tfsdk:"site_id"` // Configurable Values Adopt types.Bool `tfsdk:"adopt"` Disabled types.Bool `tfsdk:"disabled"` LEDSettings *DeviceSwitchLEDSettingsResourceModel `tfsdk:"led_settings"` Mac customtype.Mac `tfsdk:"mac"` ManagementNetworkID types.String `tfsdk:"management_network_id"` Name types.String `tfsdk:"name"` PortOverrides map[string]DeviceSwitchPortOverrideResourceModel `tfsdk:"port_overrides"` RemoveOnDestroy types.Bool `tfsdk:"remove_on_destroy"` Site types.String `tfsdk:"site"` SNMPContact types.String `tfsdk:"snmp_contact"` SNMPLocation types.String `tfsdk:"snmp_location"` StaticIPSettings *DeviceSwitchStaticIPSettingResourceModel `tfsdk:"static_ip_settings"` }
type DeviceSwitchStaticIPSettingResourceModel ¶
type DeviceSwitchStaticIPSettingResourceModel struct { AlternativeDNS iptypes.IPv4Address `tfsdk:"alternative_dns"` BondingEnabled types.Bool `tfsdk:"bonding_enabled"` DNSSuffix types.String `tfsdk:"dns_suffix"` Gateway iptypes.IPv4Address `tfsdk:"gateway"` IP iptypes.IPv4Address `tfsdk:"ip"` Netmask iptypes.IPv4Address `tfsdk:"netmask"` PreferredDNS iptypes.IPv4Address `tfsdk:"preferred_dns"` }
type ExampleFunction ¶
type ExampleFunction struct{}
func (ExampleFunction) Definition ¶
func (r ExampleFunction) Definition(_ context.Context, _ function.DefinitionRequest, resp *function.DefinitionResponse)
func (ExampleFunction) Metadata ¶
func (r ExampleFunction) Metadata(_ context.Context, req function.MetadataRequest, resp *function.MetadataResponse)
func (ExampleFunction) Run ¶
func (r ExampleFunction) Run(ctx context.Context, req function.RunRequest, resp *function.RunResponse)
type UnifiProvider ¶
type UnifiProvider struct {
// contains filtered or unexported fields
}
UnifiProvider defines the provider implementation.
func (*UnifiProvider) Configure ¶
func (p *UnifiProvider) Configure(ctx context.Context, req provider.ConfigureRequest, resp *provider.ConfigureResponse)
func (*UnifiProvider) DataSources ¶
func (p *UnifiProvider) DataSources(ctx context.Context) []func() datasource.DataSource
func (*UnifiProvider) Functions ¶
func (p *UnifiProvider) Functions(ctx context.Context) []func() function.Function
func (*UnifiProvider) Metadata ¶
func (p *UnifiProvider) Metadata(ctx context.Context, req provider.MetadataRequest, resp *provider.MetadataResponse)
func (*UnifiProvider) Resources ¶
func (p *UnifiProvider) Resources(ctx context.Context) []func() resource.Resource
func (*UnifiProvider) Schema ¶
func (p *UnifiProvider) Schema(ctx context.Context, req provider.SchemaRequest, resp *provider.SchemaResponse)
Source Files ¶
Click to show internal directories.
Click to hide internal directories.