Skip to content

Commit

Permalink
continue renaming
Browse files Browse the repository at this point in the history
Signed-off-by: Matthias Gatto <[email protected]>
  • Loading branch information
outscale-mgo committed Apr 4, 2024
1 parent 0cad81e commit 4558f05
Show file tree
Hide file tree
Showing 17 changed files with 72 additions and 72 deletions.
6 changes: 3 additions & 3 deletions outscale/data_source_outscale_access_key.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@ import (
"github.com/hashicorp/terraform-plugin-sdk/v2/helper/validation"
)

func dataSourceOutscaleAccessKey() *schema.Resource {
func DataSourceOutscaleAccessKey() *schema.Resource {
return &schema.Resource{
Read: dataSourceOutscaleAccessKeyRead,
Read: DataSourceOutscaleAccessKeyRead,
Schema: map[string]*schema.Schema{
"filter": dataSourceFiltersSchema(),
"access_key_id": {
Expand Down Expand Up @@ -48,7 +48,7 @@ func dataSourceOutscaleAccessKey() *schema.Resource {
}
}

func dataSourceOutscaleAccessKeyRead(d *schema.ResourceData, meta interface{}) error {
func DataSourceOutscaleAccessKeyRead(d *schema.ResourceData, meta interface{}) error {
conn := meta.(*OutscaleClient).OSCAPI

filters, filtersOk := d.GetOk("filter")
Expand Down
6 changes: 3 additions & 3 deletions outscale/data_source_outscale_access_keys.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@ import (
"github.com/hashicorp/terraform-plugin-sdk/v2/helper/validation"
)

func dataSourceOutscaleAccessKeys() *schema.Resource {
func DataSourceOutscaleAccessKeys() *schema.Resource {
return &schema.Resource{
Read: dataSourceOutscaleAccessKeysRead,
Read: DataSourceOutscaleAccessKeysRead,
Schema: map[string]*schema.Schema{
"filter": dataSourceFiltersSchema(),
"access_key_ids": {
Expand Down Expand Up @@ -67,7 +67,7 @@ func dataSourceOutscaleAccessKeys() *schema.Resource {
}
}

func dataSourceOutscaleAccessKeysRead(d *schema.ResourceData, meta interface{}) error {
func DataSourceOutscaleAccessKeysRead(d *schema.ResourceData, meta interface{}) error {
conn := meta.(*OutscaleClient).OSCAPI

filters, filtersOk := d.GetOk("filter")
Expand Down
6 changes: 3 additions & 3 deletions outscale/data_source_outscale_client_gateway.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@ import (
"github.com/outscale/terraform-provider-outscale/utils"
)

func dataSourceOutscaleClientGateway() *schema.Resource {
func DataSourceOutscaleClientGateway() *schema.Resource {
return &schema.Resource{
Read: dataSourceOutscaleClientGatewayRead,
Read: DataSourceOutscaleClientGatewayRead,
Schema: map[string]*schema.Schema{
"filter": dataSourceFiltersSchema(),
"bgp_asn": {
Expand Down Expand Up @@ -47,7 +47,7 @@ func dataSourceOutscaleClientGateway() *schema.Resource {
}
}

func dataSourceOutscaleClientGatewayRead(d *schema.ResourceData, meta interface{}) error {
func DataSourceOutscaleClientGatewayRead(d *schema.ResourceData, meta interface{}) error {
conn := meta.(*OutscaleClient).OSCAPI

filters, filtersOk := d.GetOk("filter")
Expand Down
6 changes: 3 additions & 3 deletions outscale/data_source_outscale_client_gateways.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@ import (
"github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema"
)

func dataSourceOutscaleClientGateways() *schema.Resource {
func DataSourceOutscaleClientGateways() *schema.Resource {
return &schema.Resource{
Read: dataSourceOutscaleClientGatewaysRead,
Read: DataSourceOutscaleClientGatewaysRead,
Schema: map[string]*schema.Schema{
"filter": dataSourceFiltersSchema(),
"client_gateway_ids": {
Expand Down Expand Up @@ -61,7 +61,7 @@ func dataSourceOutscaleClientGateways() *schema.Resource {
}
}

func dataSourceOutscaleClientGatewaysRead(d *schema.ResourceData, meta interface{}) error {
func DataSourceOutscaleClientGatewaysRead(d *schema.ResourceData, meta interface{}) error {
conn := meta.(*OutscaleClient).OSCAPI

filters, filtersOk := d.GetOk("filter")
Expand Down
6 changes: 3 additions & 3 deletions outscale/data_source_outscale_dhcp_option.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@ import (
"github.com/spf13/cast"
)

func dataSourceOutscaleDHCPOption() *schema.Resource {
func DataSourceOutscaleDHCPOption() *schema.Resource {
return &schema.Resource{
Read: dataSourceOutscaleDHCPOptionRead,
Read: DataSourceOutscaleDHCPOptionRead,

Schema: map[string]*schema.Schema{
"filter": dataSourceFiltersSchema(),
Expand Down Expand Up @@ -61,7 +61,7 @@ func dataSourceOutscaleDHCPOption() *schema.Resource {
}
}

func dataSourceOutscaleDHCPOptionRead(d *schema.ResourceData, meta interface{}) error {
func DataSourceOutscaleDHCPOptionRead(d *schema.ResourceData, meta interface{}) error {
conn := meta.(*OutscaleClient).OSCAPI

filters, filtersOk := d.GetOk("filter")
Expand Down
6 changes: 3 additions & 3 deletions outscale/data_source_outscale_dhcp_options.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@ import (
"github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema"
)

func dataSourceOutscaleDHCPOptions() *schema.Resource {
func DataSourceOutscaleDHCPOptions() *schema.Resource {
return &schema.Resource{
Read: dataSourceOutscaleDHCPOptionsRead,
Read: DataSourceOutscaleDHCPOptionsRead,

Schema: map[string]*schema.Schema{
"filter": dataSourceFiltersSchema(),
Expand Down Expand Up @@ -75,7 +75,7 @@ func dataSourceOutscaleDHCPOptions() *schema.Resource {
}
}

func dataSourceOutscaleDHCPOptionsRead(d *schema.ResourceData, meta interface{}) error {
func DataSourceOutscaleDHCPOptionsRead(d *schema.ResourceData, meta interface{}) error {
conn := meta.(*OutscaleClient).OSCAPI

filters, filtersOk := d.GetOk("filter")
Expand Down
6 changes: 3 additions & 3 deletions outscale/data_source_outscale_load_balancer_vm_health.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@ import (
"github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema"
)

func dataSourceOutscaleLoadBalancerVmsHeals() *schema.Resource {
func DataSourceOutscaleLoadBalancerVmsHeals() *schema.Resource {
return &schema.Resource{
Read: dataSourceOutscaleLoadBalancerVmsHealRead,
Read: DataSourceOutscaleLoadBalancerVmsHealRead,
Schema: getDataSourceSchemas(map[string]*schema.Schema{
"load_balancer_name": {
Type: schema.TypeString,
Expand Down Expand Up @@ -63,7 +63,7 @@ func dataSourceOutscaleLoadBalancerVmsHeals() *schema.Resource {
}
}

func dataSourceOutscaleLoadBalancerVmsHealRead(d *schema.ResourceData,
func DataSourceOutscaleLoadBalancerVmsHealRead(d *schema.ResourceData,
meta interface{}) error {
conn := meta.(*OutscaleClient).OSCAPI

Expand Down
6 changes: 3 additions & 3 deletions outscale/data_source_outscale_load_balancer_vms.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@ import (
"github.com/outscale/terraform-provider-outscale/utils"
)

func dataSourceOutscaleLoadBalancerVms() *schema.Resource {
func DataSourceOutscaleLoadBalancerVms() *schema.Resource {
return &schema.Resource{
Read: dataSourceOutscaleLoadBalancerVmsRead,
Read: DataSourceOutscaleLoadBalancerVmsRead,
Schema: getDataSourceSchemas(map[string]*schema.Schema{
"load_balancer_name": {
Type: schema.TypeString,
Expand All @@ -29,7 +29,7 @@ func dataSourceOutscaleLoadBalancerVms() *schema.Resource {
}
}

func dataSourceOutscaleLoadBalancerVmsRead(d *schema.ResourceData,
func DataSourceOutscaleLoadBalancerVmsRead(d *schema.ResourceData,
meta interface{}) error {
conn := meta.(*OutscaleClient).OSCAPI

Expand Down
6 changes: 3 additions & 3 deletions outscale/data_source_outscale_net_access_point.go
Original file line number Diff line number Diff line change
Expand Up @@ -44,15 +44,15 @@ func napdSchema() map[string]*schema.Schema {
}
}

func dataSourceOutscaleNetAccessPoint() *schema.Resource {
func DataSourceOutscaleNetAccessPoint() *schema.Resource {
return &schema.Resource{
Read: dataSourceOutscaleNetAccessPointRead,
Read: DataSourceOutscaleNetAccessPointRead,

Schema: getDataSourceSchemas(napdSchema()),
}
}

func dataSourceOutscaleNetAccessPointRead(d *schema.ResourceData, meta interface{}) error {
func DataSourceOutscaleNetAccessPointRead(d *schema.ResourceData, meta interface{}) error {
conn := meta.(*OutscaleClient).OSCAPI

filters, filtersOk := d.GetOk("filter")
Expand Down
6 changes: 3 additions & 3 deletions outscale/data_source_outscale_net_access_points.go
Original file line number Diff line number Diff line change
Expand Up @@ -53,9 +53,9 @@ func napSchema() map[string]*schema.Schema {
}
}

func dataSourceOutscaleNetAccessPoints() *schema.Resource {
func DataSourceOutscaleNetAccessPoints() *schema.Resource {
return &schema.Resource{
Read: dataSourceOutscaleNetAccessPointsRead,
Read: DataSourceOutscaleNetAccessPointsRead,

Schema: getDataSourceSchemas(napSchema()),
}
Expand Down Expand Up @@ -94,7 +94,7 @@ func buildOutscaleDataSourcesNAPFilters(set *schema.Set) oscgo.FiltersNetAccessP
return filters
}

func dataSourceOutscaleNetAccessPointsRead(d *schema.ResourceData, meta interface{}) error {
func DataSourceOutscaleNetAccessPointsRead(d *schema.ResourceData, meta interface{}) error {
conn := meta.(*OutscaleClient).OSCAPI

filters, filtersOk := d.GetOk("filter")
Expand Down
4 changes: 2 additions & 2 deletions outscale/data_source_outscale_public_ips.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import (

func DataSourceOutscalePublicIPS() *schema.Resource {
return &schema.Resource{
Read: dataSourceOutscalePublicIPSRead,
Read: DataSourceOutscalePublicIPSRead,
Schema: oapiGetPublicIPSDataSourceSchema(),
}
}
Expand Down Expand Up @@ -68,7 +68,7 @@ func oapiGetPublicIPSDataSourceSchema() map[string]*schema.Schema {
}
}

func dataSourceOutscalePublicIPSRead(d *schema.ResourceData, meta interface{}) error {
func DataSourceOutscalePublicIPSRead(d *schema.ResourceData, meta interface{}) error {
conn := meta.(*OutscaleClient).OSCAPI

req := oscgo.ReadPublicIpsRequest{}
Expand Down
4 changes: 2 additions & 2 deletions outscale/data_source_outscale_vms.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import (

func DataSourceOutscaleVMS() *schema.Resource {
return &schema.Resource{
Read: dataSourceOutscaleVMSRead,
Read: DataSourceOutscaleVMSRead,

Schema: DataSourceOutscaleVMSSchema(),
}
Expand Down Expand Up @@ -62,7 +62,7 @@ func DataSourceOutscaleVMSSchema() map[string]*schema.Schema {
return wholeSchema
}

func dataSourceOutscaleVMSRead(d *schema.ResourceData, meta interface{}) error {
func DataSourceOutscaleVMSRead(d *schema.ResourceData, meta interface{}) error {
client := meta.(*OutscaleClient).OSCAPI

filters, filtersOk := d.GetOk("filter")
Expand Down
6 changes: 3 additions & 3 deletions outscale/data_source_outscale_vpn_connection.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@ import (
"github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema"
)

func dataSourceOutscaleVPNConnection() *schema.Resource {
func DataSourceOutscaleVPNConnection() *schema.Resource {
return &schema.Resource{
Read: dataSourceOutscaleVPNConnectionRead,
Read: DataSourceOutscaleVPNConnectionRead,
Schema: map[string]*schema.Schema{
"filter": dataSourceFiltersSchema(),
"vpn_connection_id": {
Expand Down Expand Up @@ -104,7 +104,7 @@ func dataSourceOutscaleVPNConnection() *schema.Resource {
}
}

func dataSourceOutscaleVPNConnectionRead(d *schema.ResourceData, meta interface{}) error {
func DataSourceOutscaleVPNConnectionRead(d *schema.ResourceData, meta interface{}) error {
conn := meta.(*OutscaleClient).OSCAPI

filters, filtersOk := d.GetOk("filter")
Expand Down
6 changes: 3 additions & 3 deletions outscale/data_source_outscale_vpn_connections.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@ import (
"github.com/outscale/terraform-provider-outscale/utils"
)

func dataSourceOutscaleVPNConnections() *schema.Resource {
func DataSourceOutscaleVPNConnections() *schema.Resource {
return &schema.Resource{
Read: dataSourceOutscaleVPNConnectionsRead,
Read: DataSourceOutscaleVPNConnectionsRead,

Schema: map[string]*schema.Schema{
"filter": dataSourceFiltersSchema(),
Expand Down Expand Up @@ -116,7 +116,7 @@ func dataSourceOutscaleVPNConnections() *schema.Resource {
}
}

func dataSourceOutscaleVPNConnectionsRead(d *schema.ResourceData, meta interface{}) error {
func DataSourceOutscaleVPNConnectionsRead(d *schema.ResourceData, meta interface{}) error {
conn := meta.(*OutscaleClient).OSCAPI

filters, filtersOk := d.GetOk("filter")
Expand Down
26 changes: 13 additions & 13 deletions outscale/provider.go
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ func Provider() *schema.Provider {
"outscale_net_access_point": ResourceOutscaleNetAccessPoint(),
"outscale_nic_link": ResourceOutscaleNetworkInterfaceAttachment(),
"outscale_nic_private_ip": ResourceOutscaleNetworkInterfacePrivateIP(),
"outscale_snapshot_attributes": resourcedOutscaleSnapshotAttributes(),
"outscale_snapshot_attributes": ResourcedOutscaleSnapshotAttributes(),
"outscale_dhcp_option": ResourceOutscaleDHCPOption(),
"outscale_client_gateway": ResourceOutscaleClientGateway(),
"outscale_virtual_gateway": ResourceOutscaleVirtualGateway(),
Expand All @@ -91,7 +91,7 @@ func Provider() *schema.Provider {
"outscale_access_key": ResourceOutscaleAccessKey(),
"outscale_load_balancer": ResourceOutscaleLoadBalancer(),
"outscale_load_balancer_policy": ResourceOutscaleAppCookieStickinessPolicy(),
"outscale_load_balancer_vms": resourceLBUAttachment(),
"outscale_load_balancer_vms": ResourceLBUAttachment(),
"outscale_load_balancer_attributes": ResourceOutscaleLoadBalancerAttributes(),
"outscale_load_balancer_listener_rule": ResourceOutscaleLoadBalancerListenerRule(),
"outscale_flexible_gpu": ResourceOutscaleFlexibleGpu(),
Expand Down Expand Up @@ -138,25 +138,25 @@ func Provider() *schema.Provider {
"outscale_net_peerings": DataSourceOutscaleLinPeeringsConnection(),
"outscale_nics": DataSourceOutscaleNics(),
"outscale_nic": DataSourceOutscaleNic(),
"outscale_client_gateway": dataSourceOutscaleClientGateway(),
"outscale_client_gateways": dataSourceOutscaleClientGateways(),
"outscale_client_gateway": DataSourceOutscaleClientGateway(),
"outscale_client_gateways": DataSourceOutscaleClientGateways(),
"outscale_virtual_gateway": DataSourceOutscaleVirtualGateway(),
"outscale_virtual_gateways": DataSourceOutscaleVirtualGateways(),
"outscale_vpn_connection": dataSourceOutscaleVPNConnection(),
"outscale_vpn_connections": dataSourceOutscaleVPNConnections(),
"outscale_access_key": dataSourceOutscaleAccessKey(),
"outscale_access_keys": dataSourceOutscaleAccessKeys(),
"outscale_dhcp_option": dataSourceOutscaleDHCPOption(),
"outscale_dhcp_options": dataSourceOutscaleDHCPOptions(),
"outscale_vpn_connection": DataSourceOutscaleVPNConnection(),
"outscale_vpn_connections": DataSourceOutscaleVPNConnections(),
"outscale_access_key": DataSourceOutscaleAccessKey(),
"outscale_access_keys": DataSourceOutscaleAccessKeys(),
"outscale_dhcp_option": DataSourceOutscaleDHCPOption(),
"outscale_dhcp_options": DataSourceOutscaleDHCPOptions(),
"outscale_load_balancer": DataSourceOutscaleLoadBalancer(),
"outscale_load_balancer_listener_rule": DataSourceOutscaleLoadBalancerLDRule(),
"outscale_load_balancer_listener_rules": DataSourceOutscaleLoadBalancerLDRules(),
"outscale_load_balancer_tags": DataSourceOutscaleLBUTags(),
"outscale_load_balancer_vm_health": dataSourceOutscaleLoadBalancerVmsHeals(),
"outscale_load_balancer_vm_health": DataSourceOutscaleLoadBalancerVmsHeals(),
"outscale_load_balancers": DataSourceOutscaleLoadBalancers(),
"outscale_vm_types": DataSourceOutscaleVMTypes(),
"outscale_net_access_point": dataSourceOutscaleNetAccessPoint(),
"outscale_net_access_points": dataSourceOutscaleNetAccessPoints(),
"outscale_net_access_point": DataSourceOutscaleNetAccessPoint(),
"outscale_net_access_points": DataSourceOutscaleNetAccessPoints(),
"outscale_flexible_gpu": DataSourceOutscaleFlexibleGpu(),
"outscale_flexible_gpus": DataSourceOutscaleFlexibleGpus(),
"outscale_subregions": DataSourceOutscaleSubregions(),
Expand Down
Loading

0 comments on commit 4558f05

Please sign in to comment.