Skip to content

Commit

Permalink
Merge pull request #46 from Jason-Zhang9309/dev-reference
Browse files Browse the repository at this point in the history
refactor(reference): update reference packages
  • Loading branch information
Jason-Zhang9309 authored Jan 27, 2022
2 parents d8aac59 + d13869e commit 9cc76a1
Show file tree
Hide file tree
Showing 3 changed files with 72 additions and 90 deletions.
33 changes: 22 additions & 11 deletions g42cloud/provider.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,15 @@ import (
"github.com/huaweicloud/terraform-provider-huaweicloud/huaweicloud/config"
"github.com/huaweicloud/terraform-provider-huaweicloud/huaweicloud/helper/mutexkv"
"github.com/huaweicloud/terraform-provider-huaweicloud/huaweicloud/services/dcs"
"github.com/huaweicloud/terraform-provider-huaweicloud/huaweicloud/services/dds"
"github.com/huaweicloud/terraform-provider-huaweicloud/huaweicloud/services/deprecated"
"github.com/huaweicloud/terraform-provider-huaweicloud/huaweicloud/services/dli"
"github.com/huaweicloud/terraform-provider-huaweicloud/huaweicloud/services/dms"
"github.com/huaweicloud/terraform-provider-huaweicloud/huaweicloud/services/eip"
"github.com/huaweicloud/terraform-provider-huaweicloud/huaweicloud/services/evs"
"github.com/huaweicloud/terraform-provider-huaweicloud/huaweicloud/services/fgs"
"github.com/huaweicloud/terraform-provider-huaweicloud/huaweicloud/services/iam"
"github.com/huaweicloud/terraform-provider-huaweicloud/huaweicloud/services/rds"
"github.com/huaweicloud/terraform-provider-huaweicloud/huaweicloud/services/vpc"
)

Expand Down Expand Up @@ -146,14 +151,14 @@ func Provider() *schema.Provider {
"g42cloud_cce_addon_template": huaweicloud.DataSourceCCEAddonTemplateV3(),
"g42cloud_cce_node_pool": huaweicloud.DataSourceCCENodePoolV3(),
"g42cloud_compute_flavors": huaweicloud.DataSourceEcsFlavors(),
"g42cloud_dds_flavors": huaweicloud.DataSourceDDSFlavorV3(),
"g42cloud_dds_flavors": dds.DataSourceDDSFlavorV3(),
"g42cloud_dcs_az": deprecated.DataSourceDcsAZV1(),
"g42cloud_dcs_flavors": dcs.DataSourceDcsFlavorsV2(),
"g42cloud_dcs_maintainwindow": dcs.DataSourceDcsMaintainWindow(),
"g42cloud_dcs_product": deprecated.DataSourceDcsProductV1(),
"g42cloud_dms_az": huaweicloud.DataSourceDmsAZV1(),
"g42cloud_dms_product": huaweicloud.DataSourceDmsProductV1(),
"g42cloud_dms_maintainwindow": huaweicloud.DataSourceDmsMaintainWindowV1(),
"g42cloud_dms_az": deprecated.DataSourceDmsAZ(),
"g42cloud_dms_product": dms.DataSourceDmsProduct(),
"g42cloud_dms_maintainwindow": dms.DataSourceDmsMaintainWindow(),
"g42cloud_identity_role": iam.DataSourceIdentityRoleV3(),
"g42cloud_images_image": huaweicloud.DataSourceImagesImageV2(),
"g42cloud_kms_key": huaweicloud.DataSourceKmsKeyV1(),
Expand All @@ -162,9 +167,11 @@ func Provider() *schema.Provider {
"g42cloud_networking_port": huaweicloud.DataSourceNetworkingPortV2(),
"g42cloud_networking_secgroup": huaweicloud.DataSourceNetworkingSecGroupV2(),
"g42cloud_obs_bucket_object": huaweicloud.DataSourceObsBucketObject(),
"g42cloud_rds_flavors": huaweicloud.DataSourceRdsFlavorV3(),
"g42cloud_rds_flavors": rds.DataSourceRdsFlavor(),
"g42cloud_vpc_bandwidth": eip.DataSourceBandWidth(),
"g42cloud_vpc_eip": eip.DataSourceVpcEip(),
"g42cloud_vpc_eips": eip.DataSourceVpcEips(),
"g42cloud_vpc": vpc.DataSourceVpcV1(),
"g42cloud_vpc_bandwidth": vpc.DataSourceBandWidth(),
"g42cloud_vpc_subnet": vpc.DataSourceVpcSubnetV1(),
"g42cloud_vpc_subnet_ids": vpc.DataSourceVpcSubnetIdsV1(),
"g42cloud_vpc_route": vpc.DataSourceVpcRouteV2(),
Expand All @@ -188,13 +195,16 @@ func Provider() *schema.Provider {
"g42cloud_compute_eip_associate": huaweicloud.ResourceComputeFloatingIPAssociateV2(),
"g42cloud_compute_volume_attach": huaweicloud.ResourceComputeVolumeAttachV2(),
"g42cloud_dcs_instance": dcs.ResourceDcsInstance(),
"g42cloud_dds_instance": huaweicloud.ResourceDdsInstanceV3(),
"g42cloud_dds_instance": dds.ResourceDdsInstanceV3(),
"g42cloud_dli_queue": dli.ResourceDliQueue(),
"g42cloud_dms_instance": ResourceDmsInstancesV1(),
"g42cloud_dms_instance": deprecated.ResourceDmsInstancesV1(),
"g42cloud_dms_kafka_instance": dms.ResourceDmsKafkaInstance(),
"g42cloud_dms_kafka_topic": dms.ResourceDmsKafkaTopic(),
"g42cloud_dms_rabbitmq_instance": dms.ResourceDmsRabbitmqInstance(),
"g42cloud_dns_recordset": huaweicloud.ResourceDNSRecordSetV2(),
"g42cloud_dns_zone": huaweicloud.ResourceDNSZoneV2(),
"g42cloud_evs_snapshot": huaweicloud.ResourceEvsSnapshotV2(),
"g42cloud_evs_volume": huaweicloud.ResourceEvsStorageVolumeV3(),
"g42cloud_evs_volume": evs.ResourceEvsVolume(),
"g42cloud_fgs_function": fgs.ResourceFgsFunctionV2(),
"g42cloud_identity_role_assignment": iam.ResourceIdentityRoleAssignmentV3(),
"g42cloud_identity_user": iam.ResourceIdentityUserV3(),
Expand Down Expand Up @@ -229,9 +239,10 @@ func Provider() *schema.Provider {
"g42cloud_sfs_turbo": huaweicloud.ResourceSFSTurbo(),
"g42cloud_smn_subscription": huaweicloud.ResourceSubscription(),
"g42cloud_smn_topic": huaweicloud.ResourceTopic(),
"g42cloud_vpc_bandwidth": eip.ResourceVpcBandWidthV2(),
"g42cloud_vpc_eip": eip.ResourceVpcEIPV1(),
"g42cloud_vpc_eip_associate": eip.ResourceEIPAssociate(),
"g42cloud_vpc": vpc.ResourceVirtualPrivateCloudV1(),
"g42cloud_vpc_bandwidth": vpc.ResourceVpcBandWidthV2(),
"g42cloud_vpc_eip": vpc.ResourceVpcEIPV1(),
"g42cloud_vpc_route": vpc.ResourceVPCRouteV2(),
"g42cloud_vpc_peering_connection": vpc.ResourceVpcPeeringConnectionV2(),
"g42cloud_vpc_subnet": vpc.ResourceVpcSubnetV1(),
Expand Down
6 changes: 3 additions & 3 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ module github.com/g42cloud-terraform/terraform-provider-g42cloud
go 1.12

require (
github.com/chnsz/golangsdk v0.0.0-20211011034408-8066461493b8
github.com/hashicorp/terraform-plugin-sdk/v2 v2.7.0
github.com/huaweicloud/terraform-provider-huaweicloud v1.29.3-0.20211015071732-c7abffb08678
github.com/chnsz/golangsdk v0.0.0-20220120023609-36c388c02c1b
github.com/hashicorp/terraform-plugin-sdk/v2 v2.10.0
github.com/huaweicloud/terraform-provider-huaweicloud v1.32.2-0.20220126100113-0c733421e413
)
Loading

0 comments on commit 9cc76a1

Please sign in to comment.