Documentation ¶
Index ¶
- func DataSources() []func() datasource.DataSource
- func DevicesSwitchPortResourcePayload(ctx context.Context, plan *DevicesSwitchPortResourceModel) (openApiClient.UpdateDeviceSwitchPortRequest, diag.Diagnostics)
- func NewDevicesSwitchPortResource() resource.Resource
- func NewDevicesSwitchPortsCycleResource() resource.Resource
- func NewDevicesSwitchPortsStatusesDataSource() datasource.DataSource
- func NewNetworksSwitchDscpToCosMappingsResource() resource.Resource
- func NewNetworksSwitchMtuDataSource() datasource.DataSource
- func NewNetworksSwitchMtuResource() resource.Resource
- func NewNetworksSwitchQosRuleResource() resource.Resource
- func NewNetworksSwitchQosRulesDataSource() datasource.DataSource
- func NewNetworksSwitchSettingsResource() resource.Resource
- func Resources() []func() resource.Resource
- type DevicesSwitchPortResource
- func (r *DevicesSwitchPortResource) Configure(ctx context.Context, req resource.ConfigureRequest, ...)
- func (r *DevicesSwitchPortResource) Create(ctx context.Context, req resource.CreateRequest, resp *resource.CreateResponse)
- func (r *DevicesSwitchPortResource) Delete(ctx context.Context, req resource.DeleteRequest, resp *resource.DeleteResponse)
- func (r *DevicesSwitchPortResource) ImportState(ctx context.Context, req resource.ImportStateRequest, ...)
- func (r *DevicesSwitchPortResource) Metadata(ctx context.Context, req resource.MetadataRequest, ...)
- func (r *DevicesSwitchPortResource) Read(ctx context.Context, req resource.ReadRequest, resp *resource.ReadResponse)
- func (r *DevicesSwitchPortResource) Schema(ctx context.Context, req resource.SchemaRequest, resp *resource.SchemaResponse)
- func (r *DevicesSwitchPortResource) Update(ctx context.Context, req resource.UpdateRequest, resp *resource.UpdateResponse)
- type DevicesSwitchPortResourceModel
- type DevicesSwitchPortResourceModelProfile
- type DevicesSwitchPortsCycleResource
- func (r *DevicesSwitchPortsCycleResource) Configure(ctx context.Context, req resource.ConfigureRequest, ...)
- func (r *DevicesSwitchPortsCycleResource) Create(ctx context.Context, req resource.CreateRequest, resp *resource.CreateResponse)
- func (r *DevicesSwitchPortsCycleResource) Delete(ctx context.Context, req resource.DeleteRequest, resp *resource.DeleteResponse)
- func (r *DevicesSwitchPortsCycleResource) Metadata(ctx context.Context, req resource.MetadataRequest, ...)
- func (r *DevicesSwitchPortsCycleResource) Read(ctx context.Context, req resource.ReadRequest, resp *resource.ReadResponse)
- func (r *DevicesSwitchPortsCycleResource) Schema(ctx context.Context, req resource.SchemaRequest, resp *resource.SchemaResponse)
- func (r *DevicesSwitchPortsCycleResource) Update(ctx context.Context, req resource.UpdateRequest, resp *resource.UpdateResponse)
- type DevicesSwitchPortsCycleResourceModel
- type DevicesSwitchPortsStatusesDataSource
- func (d *DevicesSwitchPortsStatusesDataSource) Configure(ctx context.Context, req datasource.ConfigureRequest, ...)
- func (d *DevicesSwitchPortsStatusesDataSource) Metadata(ctx context.Context, req datasource.MetadataRequest, ...)
- func (d *DevicesSwitchPortsStatusesDataSource) Read(ctx context.Context, req datasource.ReadRequest, resp *datasource.ReadResponse)
- func (d *DevicesSwitchPortsStatusesDataSource) Schema(ctx context.Context, req datasource.SchemaRequest, ...)
- type DevicesSwitchPortsStatusesDataSourceModel
- type DevicesSwitchPortsStatusesDataSourceModelList
- type DevicesSwitchPortsStatusesDataSourceModelProfile
- type NetworksSwitchDscpToCosMappingsResource
- func (r *NetworksSwitchDscpToCosMappingsResource) Configure(ctx context.Context, req resource.ConfigureRequest, ...)
- func (r *NetworksSwitchDscpToCosMappingsResource) Create(ctx context.Context, req resource.CreateRequest, resp *resource.CreateResponse)
- func (r *NetworksSwitchDscpToCosMappingsResource) Delete(ctx context.Context, req resource.DeleteRequest, resp *resource.DeleteResponse)
- func (r *NetworksSwitchDscpToCosMappingsResource) ImportState(ctx context.Context, req resource.ImportStateRequest, ...)
- func (r *NetworksSwitchDscpToCosMappingsResource) Metadata(ctx context.Context, req resource.MetadataRequest, ...)
- func (r *NetworksSwitchDscpToCosMappingsResource) Read(ctx context.Context, req resource.ReadRequest, resp *resource.ReadResponse)
- func (r *NetworksSwitchDscpToCosMappingsResource) Schema(ctx context.Context, req resource.SchemaRequest, resp *resource.SchemaResponse)
- func (r *NetworksSwitchDscpToCosMappingsResource) Update(ctx context.Context, req resource.UpdateRequest, resp *resource.UpdateResponse)
- type NetworksSwitchDscpToCosMappingsResourceModel
- type NetworksSwitchDscpToCosMappingsResourceModelMapping
- type NetworksSwitchMtuDataSource
- func (r *NetworksSwitchMtuDataSource) Configure(ctx context.Context, req datasource.ConfigureRequest, ...)
- func (r *NetworksSwitchMtuDataSource) Metadata(ctx context.Context, req datasource.MetadataRequest, ...)
- func (r *NetworksSwitchMtuDataSource) Read(ctx context.Context, req datasource.ReadRequest, resp *datasource.ReadResponse)
- func (r *NetworksSwitchMtuDataSource) Schema(ctx context.Context, req datasource.SchemaRequest, ...)
- type NetworksSwitchMtuDataSourceModel
- type NetworksSwitchMtuDataSourceModelOverride
- type NetworksSwitchMtuResource
- func (r *NetworksSwitchMtuResource) Configure(ctx context.Context, req resource.ConfigureRequest, ...)
- func (r *NetworksSwitchMtuResource) Create(ctx context.Context, req resource.CreateRequest, resp *resource.CreateResponse)
- func (r *NetworksSwitchMtuResource) Delete(ctx context.Context, req resource.DeleteRequest, resp *resource.DeleteResponse)
- func (r *NetworksSwitchMtuResource) ImportState(ctx context.Context, req resource.ImportStateRequest, ...)
- func (r *NetworksSwitchMtuResource) Metadata(ctx context.Context, req resource.MetadataRequest, ...)
- func (r *NetworksSwitchMtuResource) Read(ctx context.Context, req resource.ReadRequest, resp *resource.ReadResponse)
- func (r *NetworksSwitchMtuResource) Schema(ctx context.Context, req resource.SchemaRequest, resp *resource.SchemaResponse)
- func (r *NetworksSwitchMtuResource) Update(ctx context.Context, req resource.UpdateRequest, resp *resource.UpdateResponse)
- type NetworksSwitchMtuResourceModel
- type NetworksSwitchMtuResourceModelOverride
- type NetworksSwitchQosRuleResource
- func (r *NetworksSwitchQosRuleResource) Configure(ctx context.Context, req resource.ConfigureRequest, ...)
- func (r *NetworksSwitchQosRuleResource) Create(ctx context.Context, req resource.CreateRequest, resp *resource.CreateResponse)
- func (r *NetworksSwitchQosRuleResource) Delete(ctx context.Context, req resource.DeleteRequest, resp *resource.DeleteResponse)
- func (r *NetworksSwitchQosRuleResource) ImportState(ctx context.Context, req resource.ImportStateRequest, ...)
- func (r *NetworksSwitchQosRuleResource) Metadata(ctx context.Context, req resource.MetadataRequest, ...)
- func (r *NetworksSwitchQosRuleResource) Read(ctx context.Context, req resource.ReadRequest, resp *resource.ReadResponse)
- func (r *NetworksSwitchQosRuleResource) Schema(ctx context.Context, req resource.SchemaRequest, resp *resource.SchemaResponse)
- func (r *NetworksSwitchQosRuleResource) Update(ctx context.Context, req resource.UpdateRequest, resp *resource.UpdateResponse)
- type NetworksSwitchQosRuleResourceModel
- type NetworksSwitchQosRulesDataSource
- func (r *NetworksSwitchQosRulesDataSource) Configure(ctx context.Context, req datasource.ConfigureRequest, ...)
- func (r *NetworksSwitchQosRulesDataSource) Metadata(ctx context.Context, req datasource.MetadataRequest, ...)
- func (r *NetworksSwitchQosRulesDataSource) Read(ctx context.Context, req datasource.ReadRequest, resp *datasource.ReadResponse)
- func (r *NetworksSwitchQosRulesDataSource) Schema(ctx context.Context, req datasource.SchemaRequest, ...)
- type NetworksSwitchQosRulesDataSourceModel
- type NetworksSwitchQosRulesDataSourceModelRules
- type NetworksSwitchSettingsResource
- func (r *NetworksSwitchSettingsResource) Configure(ctx context.Context, req resource.ConfigureRequest, ...)
- func (r *NetworksSwitchSettingsResource) Create(ctx context.Context, req resource.CreateRequest, resp *resource.CreateResponse)
- func (r *NetworksSwitchSettingsResource) Delete(ctx context.Context, req resource.DeleteRequest, resp *resource.DeleteResponse)
- func (r *NetworksSwitchSettingsResource) ImportState(ctx context.Context, req resource.ImportStateRequest, ...)
- func (r *NetworksSwitchSettingsResource) Metadata(ctx context.Context, req resource.MetadataRequest, ...)
- func (r *NetworksSwitchSettingsResource) Read(ctx context.Context, req resource.ReadRequest, resp *resource.ReadResponse)
- func (r *NetworksSwitchSettingsResource) Schema(ctx context.Context, req resource.SchemaRequest, resp *resource.SchemaResponse)
- func (r *NetworksSwitchSettingsResource) Update(ctx context.Context, req resource.UpdateRequest, resp *resource.UpdateResponse)
- type NetworksSwitchSettingsResourceModel
- type NetworksSwitchSettingsResourceModelPowerExceptions
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DataSources ¶
func DataSources() []func() datasource.DataSource
func DevicesSwitchPortResourcePayload ¶
func DevicesSwitchPortResourcePayload(ctx context.Context, plan *DevicesSwitchPortResourceModel) (openApiClient.UpdateDeviceSwitchPortRequest, diag.Diagnostics)
func NewDevicesSwitchPortsStatusesDataSource ¶
func NewDevicesSwitchPortsStatusesDataSource() datasource.DataSource
func NewNetworksSwitchMtuDataSource ¶
func NewNetworksSwitchMtuDataSource() datasource.DataSource
func NewNetworksSwitchQosRulesDataSource ¶
func NewNetworksSwitchQosRulesDataSource() datasource.DataSource
Types ¶
type DevicesSwitchPortResource ¶
type DevicesSwitchPortResource struct {
// contains filtered or unexported fields
}
DevicesSwitchPortResource struct defines the structure for this resource.
func (*DevicesSwitchPortResource) Configure ¶
func (r *DevicesSwitchPortResource) Configure(ctx context.Context, req resource.ConfigureRequest, resp *resource.ConfigureResponse)
Configure is a method of the Resource interface that Terraform calls to provide the configured provider instance to the resource.
func (*DevicesSwitchPortResource) Create ¶
func (r *DevicesSwitchPortResource) Create(ctx context.Context, req resource.CreateRequest, resp *resource.CreateResponse)
Create method is responsible for creating a new resource.
func (*DevicesSwitchPortResource) Delete ¶
func (r *DevicesSwitchPortResource) Delete(ctx context.Context, req resource.DeleteRequest, resp *resource.DeleteResponse)
Delete function is responsible for deleting a resource.
func (*DevicesSwitchPortResource) ImportState ¶
func (r *DevicesSwitchPortResource) ImportState(ctx context.Context, req resource.ImportStateRequest, resp *resource.ImportStateResponse)
ImportState function is used to import an existing resource into Terraform.
func (*DevicesSwitchPortResource) Metadata ¶
func (r *DevicesSwitchPortResource) Metadata(ctx context.Context, req resource.MetadataRequest, resp *resource.MetadataResponse)
Metadata provides a way to define information about the resource.
func (*DevicesSwitchPortResource) Read ¶
func (r *DevicesSwitchPortResource) Read(ctx context.Context, req resource.ReadRequest, resp *resource.ReadResponse)
Read method is responsible for reading an existing resource's state.
func (*DevicesSwitchPortResource) Schema ¶
func (r *DevicesSwitchPortResource) Schema(ctx context.Context, req resource.SchemaRequest, resp *resource.SchemaResponse)
Schema provides a way to define the structure of the resource data.
func (*DevicesSwitchPortResource) Update ¶
func (r *DevicesSwitchPortResource) Update(ctx context.Context, req resource.UpdateRequest, resp *resource.UpdateResponse)
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.
func DevicesSwitchPortResourceResponse ¶
func DevicesSwitchPortResourceResponse(ctx context.Context, response *openApiClient.GetDeviceSwitchPorts200ResponseInner, state *DevicesSwitchPortResourceModel) (*DevicesSwitchPortResourceModel, diag.Diagnostics)
type DevicesSwitchPortsCycleResource ¶
type DevicesSwitchPortsCycleResource struct {
// contains filtered or unexported fields
}
DevicesSwitchPortsCycleResource defines the resource implementation.
func (*DevicesSwitchPortsCycleResource) Configure ¶
func (r *DevicesSwitchPortsCycleResource) Configure(ctx context.Context, req resource.ConfigureRequest, resp *resource.ConfigureResponse)
func (*DevicesSwitchPortsCycleResource) Create ¶
func (r *DevicesSwitchPortsCycleResource) Create(ctx context.Context, req resource.CreateRequest, resp *resource.CreateResponse)
func (*DevicesSwitchPortsCycleResource) Delete ¶
func (r *DevicesSwitchPortsCycleResource) Delete(ctx context.Context, req resource.DeleteRequest, resp *resource.DeleteResponse)
func (*DevicesSwitchPortsCycleResource) Metadata ¶
func (r *DevicesSwitchPortsCycleResource) Metadata(ctx context.Context, req resource.MetadataRequest, resp *resource.MetadataResponse)
func (*DevicesSwitchPortsCycleResource) Read ¶
func (r *DevicesSwitchPortsCycleResource) Read(ctx context.Context, req resource.ReadRequest, resp *resource.ReadResponse)
func (*DevicesSwitchPortsCycleResource) Schema ¶
func (r *DevicesSwitchPortsCycleResource) Schema(ctx context.Context, req resource.SchemaRequest, resp *resource.SchemaResponse)
func (*DevicesSwitchPortsCycleResource) Update ¶
func (r *DevicesSwitchPortsCycleResource) Update(ctx context.Context, req resource.UpdateRequest, resp *resource.UpdateResponse)
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 ¶
func (d *DevicesSwitchPortsStatusesDataSource) Configure(ctx context.Context, req datasource.ConfigureRequest, resp *datasource.ConfigureResponse)
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 (d *DevicesSwitchPortsStatusesDataSource) Metadata(ctx context.Context, req datasource.MetadataRequest, resp *datasource.MetadataResponse)
func (*DevicesSwitchPortsStatusesDataSource) Read ¶
func (d *DevicesSwitchPortsStatusesDataSource) Read(ctx context.Context, req datasource.ReadRequest, resp *datasource.ReadResponse)
Read method is responsible for reading an existing data source's state.
func (*DevicesSwitchPortsStatusesDataSource) Schema ¶
func (d *DevicesSwitchPortsStatusesDataSource) Schema(ctx context.Context, req datasource.SchemaRequest, resp *datasource.SchemaResponse)
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 (r *NetworksSwitchDscpToCosMappingsResource) Configure(ctx context.Context, req resource.ConfigureRequest, resp *resource.ConfigureResponse)
func (*NetworksSwitchDscpToCosMappingsResource) Create ¶
func (r *NetworksSwitchDscpToCosMappingsResource) Create(ctx context.Context, req resource.CreateRequest, resp *resource.CreateResponse)
func (*NetworksSwitchDscpToCosMappingsResource) Delete ¶
func (r *NetworksSwitchDscpToCosMappingsResource) Delete(ctx context.Context, req resource.DeleteRequest, resp *resource.DeleteResponse)
func (*NetworksSwitchDscpToCosMappingsResource) ImportState ¶
func (r *NetworksSwitchDscpToCosMappingsResource) ImportState(ctx context.Context, req resource.ImportStateRequest, resp *resource.ImportStateResponse)
func (*NetworksSwitchDscpToCosMappingsResource) Metadata ¶
func (r *NetworksSwitchDscpToCosMappingsResource) Metadata(ctx context.Context, req resource.MetadataRequest, resp *resource.MetadataResponse)
func (*NetworksSwitchDscpToCosMappingsResource) Read ¶
func (r *NetworksSwitchDscpToCosMappingsResource) Read(ctx context.Context, req resource.ReadRequest, resp *resource.ReadResponse)
func (*NetworksSwitchDscpToCosMappingsResource) Schema ¶
func (r *NetworksSwitchDscpToCosMappingsResource) Schema(ctx context.Context, req resource.SchemaRequest, resp *resource.SchemaResponse)
func (*NetworksSwitchDscpToCosMappingsResource) Update ¶
func (r *NetworksSwitchDscpToCosMappingsResource) Update(ctx context.Context, req resource.UpdateRequest, resp *resource.UpdateResponse)
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 (r *NetworksSwitchMtuDataSource) Configure(ctx context.Context, req datasource.ConfigureRequest, resp *datasource.ConfigureResponse)
func (*NetworksSwitchMtuDataSource) Metadata ¶
func (r *NetworksSwitchMtuDataSource) Metadata(ctx context.Context, req datasource.MetadataRequest, resp *datasource.MetadataResponse)
func (*NetworksSwitchMtuDataSource) Read ¶
func (r *NetworksSwitchMtuDataSource) Read(ctx context.Context, req datasource.ReadRequest, resp *datasource.ReadResponse)
func (*NetworksSwitchMtuDataSource) Schema ¶
func (r *NetworksSwitchMtuDataSource) Schema(ctx context.Context, req datasource.SchemaRequest, resp *datasource.SchemaResponse)
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 (r *NetworksSwitchMtuResource) Configure(ctx context.Context, req resource.ConfigureRequest, resp *resource.ConfigureResponse)
func (*NetworksSwitchMtuResource) Create ¶
func (r *NetworksSwitchMtuResource) Create(ctx context.Context, req resource.CreateRequest, resp *resource.CreateResponse)
func (*NetworksSwitchMtuResource) Delete ¶
func (r *NetworksSwitchMtuResource) Delete(ctx context.Context, req resource.DeleteRequest, resp *resource.DeleteResponse)
func (*NetworksSwitchMtuResource) ImportState ¶
func (r *NetworksSwitchMtuResource) ImportState(ctx context.Context, req resource.ImportStateRequest, resp *resource.ImportStateResponse)
func (*NetworksSwitchMtuResource) Metadata ¶
func (r *NetworksSwitchMtuResource) Metadata(ctx context.Context, req resource.MetadataRequest, resp *resource.MetadataResponse)
func (*NetworksSwitchMtuResource) Read ¶
func (r *NetworksSwitchMtuResource) Read(ctx context.Context, req resource.ReadRequest, resp *resource.ReadResponse)
func (*NetworksSwitchMtuResource) Schema ¶
func (r *NetworksSwitchMtuResource) Schema(ctx context.Context, req resource.SchemaRequest, resp *resource.SchemaResponse)
func (*NetworksSwitchMtuResource) Update ¶
func (r *NetworksSwitchMtuResource) Update(ctx context.Context, req resource.UpdateRequest, resp *resource.UpdateResponse)
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 (r *NetworksSwitchQosRuleResource) Configure(ctx context.Context, req resource.ConfigureRequest, resp *resource.ConfigureResponse)
func (*NetworksSwitchQosRuleResource) Create ¶
func (r *NetworksSwitchQosRuleResource) Create(ctx context.Context, req resource.CreateRequest, resp *resource.CreateResponse)
func (*NetworksSwitchQosRuleResource) Delete ¶
func (r *NetworksSwitchQosRuleResource) Delete(ctx context.Context, req resource.DeleteRequest, resp *resource.DeleteResponse)
func (*NetworksSwitchQosRuleResource) ImportState ¶
func (r *NetworksSwitchQosRuleResource) ImportState(ctx context.Context, req resource.ImportStateRequest, resp *resource.ImportStateResponse)
func (*NetworksSwitchQosRuleResource) Metadata ¶
func (r *NetworksSwitchQosRuleResource) Metadata(ctx context.Context, req resource.MetadataRequest, resp *resource.MetadataResponse)
func (*NetworksSwitchQosRuleResource) Read ¶
func (r *NetworksSwitchQosRuleResource) Read(ctx context.Context, req resource.ReadRequest, resp *resource.ReadResponse)
func (*NetworksSwitchQosRuleResource) Schema ¶
func (r *NetworksSwitchQosRuleResource) Schema(ctx context.Context, req resource.SchemaRequest, resp *resource.SchemaResponse)
func (*NetworksSwitchQosRuleResource) Update ¶
func (r *NetworksSwitchQosRuleResource) Update(ctx context.Context, req resource.UpdateRequest, resp *resource.UpdateResponse)
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 (r *NetworksSwitchQosRulesDataSource) Configure(ctx context.Context, req datasource.ConfigureRequest, resp *datasource.ConfigureResponse)
func (*NetworksSwitchQosRulesDataSource) Metadata ¶
func (r *NetworksSwitchQosRulesDataSource) Metadata(ctx context.Context, req datasource.MetadataRequest, resp *datasource.MetadataResponse)
func (*NetworksSwitchQosRulesDataSource) Read ¶
func (r *NetworksSwitchQosRulesDataSource) Read(ctx context.Context, req datasource.ReadRequest, resp *datasource.ReadResponse)
func (*NetworksSwitchQosRulesDataSource) Schema ¶
func (r *NetworksSwitchQosRulesDataSource) Schema(ctx context.Context, req datasource.SchemaRequest, resp *datasource.SchemaResponse)
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 (r *NetworksSwitchSettingsResource) Configure(ctx context.Context, req resource.ConfigureRequest, resp *resource.ConfigureResponse)
func (*NetworksSwitchSettingsResource) Create ¶
func (r *NetworksSwitchSettingsResource) Create(ctx context.Context, req resource.CreateRequest, resp *resource.CreateResponse)
func (*NetworksSwitchSettingsResource) Delete ¶
func (r *NetworksSwitchSettingsResource) Delete(ctx context.Context, req resource.DeleteRequest, resp *resource.DeleteResponse)
func (*NetworksSwitchSettingsResource) ImportState ¶
func (r *NetworksSwitchSettingsResource) ImportState(ctx context.Context, req resource.ImportStateRequest, resp *resource.ImportStateResponse)
func (*NetworksSwitchSettingsResource) Metadata ¶
func (r *NetworksSwitchSettingsResource) Metadata(ctx context.Context, req resource.MetadataRequest, resp *resource.MetadataResponse)
func (*NetworksSwitchSettingsResource) Read ¶
func (r *NetworksSwitchSettingsResource) Read(ctx context.Context, req resource.ReadRequest, resp *resource.ReadResponse)
func (*NetworksSwitchSettingsResource) Schema ¶
func (r *NetworksSwitchSettingsResource) Schema(ctx context.Context, req resource.SchemaRequest, resp *resource.SchemaResponse)
func (*NetworksSwitchSettingsResource) Update ¶
func (r *NetworksSwitchSettingsResource) Update(ctx context.Context, req resource.UpdateRequest, resp *resource.UpdateResponse)
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"` }