Skip to content

Commit

Permalink
Add EIM resources and data_sources to provider
Browse files Browse the repository at this point in the history
  • Loading branch information
outscale-toa committed Dec 19, 2024
1 parent b6bcfb9 commit b06f49c
Showing 1 changed file with 89 additions and 75 deletions.
164 changes: 89 additions & 75 deletions outscale/provider.go
Original file line number Diff line number Diff line change
Expand Up @@ -130,83 +130,97 @@ func Provider() *schema.Provider {
"outscale_api_access_rule": ResourceOutscaleApiAccessRule(),
"outscale_api_access_policy": ResourceOutscaleApiAccessPolicy(),
"outscale_main_route_table_link": resourceLinkMainRouteTable(),
"outscale_user": ResourceOutscaleUser(),
"outscale_user_group": ResourceUserGroup(),
"outscale_policy": ResourceOutscalePolicy(),
"outscale_policy_version": ResourcePolicyVersion(),
},
DataSourcesMap: map[string]*schema.Resource{
"outscale_vm": DataSourceOutscaleVM(),
"outscale_vms": DataSourceOutscaleVMS(),
"outscale_security_group": DataSourceOutscaleSecurityGroup(),
"outscale_security_groups": DataSourceOutscaleSecurityGroups(),
"outscale_image": DataSourceOutscaleImage(),
"outscale_images": DataSourceOutscaleImages(),
"outscale_tag": DataSourceOutscaleTag(),
"outscale_tags": DataSourceOutscaleTags(),
"outscale_public_ip": DataSourceOutscalePublicIP(),
"outscale_public_ips": DataSourceOutscalePublicIPS(),
"outscale_volume": DataSourceOutscaleVolume(),
"outscale_volumes": DataSourceOutscaleVolumes(),
"outscale_nat_service": DataSourceOutscaleNatService(),
"outscale_nat_services": DataSourceOutscaleNatServices(),
"outscale_keypair": DataSourceOutscaleKeyPair(),
"outscale_keypairs": DataSourceOutscaleKeyPairs(),
"outscale_vm_state": DataSourceOutscaleVMState(),
"outscale_vm_states": DataSourceOutscaleVMStates(),
"outscale_internet_service": DataSourceOutscaleInternetService(),
"outscale_internet_services": DataSourceOutscaleInternetServices(),
"outscale_subnet": DataSourceOutscaleSubnet(),
"outscale_subnets": DataSourceOutscaleSubnets(),
"outscale_net": DataSourceOutscaleVpc(),
"outscale_nets": DataSourceOutscaleVpcs(),
"outscale_net_attributes": DataSourceOutscaleVpcAttr(),
"outscale_route_table": DataSourceOutscaleRouteTable(),
"outscale_route_tables": DataSourceOutscaleRouteTables(),
"outscale_snapshot": DataSourceOutscaleSnapshot(),
"outscale_snapshots": DataSourceOutscaleSnapshots(),
"outscale_net_peering": DataSourceOutscaleLinPeeringConnection(),
"outscale_net_peerings": DataSourceOutscaleLinPeeringsConnection(),
"outscale_nics": DataSourceOutscaleNics(),
"outscale_nic": DataSourceOutscaleNic(),
"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_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_balancers": DataSourceOutscaleLoadBalancers(),
"outscale_vm_types": DataSourceOutscaleVMTypes(),
"outscale_net_access_point": DataSourceOutscaleNetAccessPoint(),
"outscale_net_access_points": DataSourceOutscaleNetAccessPoints(),
"outscale_flexible_gpu": DataSourceOutscaleFlexibleGpu(),
"outscale_flexible_gpus": DataSourceOutscaleFlexibleGpus(),
"outscale_subregions": DataSourceOutscaleSubregions(),
"outscale_regions": DataSourceOutscaleRegions(),
"outscale_net_access_point_services": DataSourceOutscaleNetAccessPointServices(),
"outscale_flexible_gpu_catalog": DataSourceOutscaleFlexibleGpuCatalog(),
"outscale_product_type": DataSourceOutscaleProductType(),
"outscale_product_types": DataSourceOutscaleProductTypes(),
"outscale_quotas": DataSourceOutscaleQuotas(),
"outscale_image_export_task": DataSourceOutscaleImageExportTask(),
"outscale_image_export_tasks": DataSourceOutscaleImageExportTasks(),
"outscale_server_certificate": DataSourceOutscaleServerCertificate(),
"outscale_server_certificates": DataSourceOutscaleServerCertificates(),
"outscale_snapshot_export_task": DataSourceOutscaleSnapshotExportTask(),
"outscale_snapshot_export_tasks": DataSourceOutscaleSnapshotExportTasks(),
"outscale_ca": DataSourceOutscaleCa(),
"outscale_cas": DataSourceOutscaleCas(),
"outscale_api_access_rule": DataSourceOutscaleApiAccessRule(),
"outscale_api_access_rules": DataSourceOutscaleApiAccessRules(),
"outscale_api_access_policy": DataSourceOutscaleApiAccessPolicy(),
"outscale_public_catalog": DataSourceOutscalePublicCatalog(),
"outscale_account": DataSourceAccount(),
"outscale_accounts": DataSourceAccounts(),
"outscale_vm": DataSourceOutscaleVM(),
"outscale_vms": DataSourceOutscaleVMS(),
"outscale_security_group": DataSourceOutscaleSecurityGroup(),
"outscale_security_groups": DataSourceOutscaleSecurityGroups(),
"outscale_image": DataSourceOutscaleImage(),
"outscale_images": DataSourceOutscaleImages(),
"outscale_tag": DataSourceOutscaleTag(),
"outscale_tags": DataSourceOutscaleTags(),
"outscale_public_ip": DataSourceOutscalePublicIP(),
"outscale_public_ips": DataSourceOutscalePublicIPS(),
"outscale_volume": DataSourceOutscaleVolume(),
"outscale_volumes": DataSourceOutscaleVolumes(),
"outscale_nat_service": DataSourceOutscaleNatService(),
"outscale_nat_services": DataSourceOutscaleNatServices(),
"outscale_keypair": DataSourceOutscaleKeyPair(),
"outscale_keypairs": DataSourceOutscaleKeyPairs(),
"outscale_vm_state": DataSourceOutscaleVMState(),
"outscale_vm_states": DataSourceOutscaleVMStates(),
"outscale_internet_service": DataSourceOutscaleInternetService(),
"outscale_internet_services": DataSourceOutscaleInternetServices(),
"outscale_subnet": DataSourceOutscaleSubnet(),
"outscale_subnets": DataSourceOutscaleSubnets(),
"outscale_net": DataSourceOutscaleVpc(),
"outscale_nets": DataSourceOutscaleVpcs(),
"outscale_net_attributes": DataSourceOutscaleVpcAttr(),
"outscale_route_table": DataSourceOutscaleRouteTable(),
"outscale_route_tables": DataSourceOutscaleRouteTables(),
"outscale_snapshot": DataSourceOutscaleSnapshot(),
"outscale_snapshots": DataSourceOutscaleSnapshots(),
"outscale_net_peering": DataSourceOutscaleLinPeeringConnection(),
"outscale_net_peerings": DataSourceOutscaleLinPeeringsConnection(),
"outscale_nics": DataSourceOutscaleNics(),
"outscale_nic": DataSourceOutscaleNic(),
"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_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_balancers": DataSourceOutscaleLoadBalancers(),
"outscale_vm_types": DataSourceOutscaleVMTypes(),
"outscale_net_access_point": DataSourceOutscaleNetAccessPoint(),
"outscale_net_access_points": DataSourceOutscaleNetAccessPoints(),
"outscale_flexible_gpu": DataSourceOutscaleFlexibleGpu(),
"outscale_flexible_gpus": DataSourceOutscaleFlexibleGpus(),
"outscale_subregions": DataSourceOutscaleSubregions(),
"outscale_regions": DataSourceOutscaleRegions(),
"outscale_net_access_point_services": DataSourceOutscaleNetAccessPointServices(),
"outscale_flexible_gpu_catalog": DataSourceOutscaleFlexibleGpuCatalog(),
"outscale_product_type": DataSourceOutscaleProductType(),
"outscale_product_types": DataSourceOutscaleProductTypes(),
"outscale_quotas": DataSourceOutscaleQuotas(),
"outscale_image_export_task": DataSourceOutscaleImageExportTask(),
"outscale_image_export_tasks": DataSourceOutscaleImageExportTasks(),
"outscale_server_certificate": DataSourceOutscaleServerCertificate(),
"outscale_server_certificates": DataSourceOutscaleServerCertificates(),
"outscale_snapshot_export_task": DataSourceOutscaleSnapshotExportTask(),
"outscale_snapshot_export_tasks": DataSourceOutscaleSnapshotExportTasks(),
"outscale_ca": DataSourceOutscaleCa(),
"outscale_cas": DataSourceOutscaleCas(),
"outscale_api_access_rule": DataSourceOutscaleApiAccessRule(),
"outscale_api_access_rules": DataSourceOutscaleApiAccessRules(),
"outscale_api_access_policy": DataSourceOutscaleApiAccessPolicy(),
"outscale_public_catalog": DataSourceOutscalePublicCatalog(),
"outscale_account": DataSourceAccount(),
"outscale_accounts": DataSourceAccounts(),
"outscale_users": DataSourceUsers(),
"outscale_user": DataSourceUser(),
"outscale_user_groups": DataSourceUserGroups(),
"outscale_user_groups_per_user": DataSourceUserGroupsPerUser(),
"outscale_user_group": DataSourceUserGroup(),
"outscale_policy": DataSourcePolicy(),
"outscale_policies": DataSourcePolicies(),
"outscale_policies_linked_to_user": DataSourcePoliciesLinkedToUser(),
"outscale_entities_linked_to_policy": DataSourceEntitiesLinkedToPolicy(),
"outscale_policies_linked_to_user_group": DataSourcePoliciesLinkedToUserGroup(),
},

ConfigureFunc: providerConfigureClient,
Expand Down

0 comments on commit b06f49c

Please sign in to comment.