Skip to content

Commit

Permalink
Merge pull request #128 from volcengine/feat/project
Browse files Browse the repository at this point in the history
Feat/project
  • Loading branch information
zpp12354321 authored Sep 18, 2023
2 parents 54167c2 + b3d28b5 commit d3fa835
Show file tree
Hide file tree
Showing 15 changed files with 20 additions and 9 deletions.
2 changes: 1 addition & 1 deletion common/common_volcengine_version.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@ package common

const (
TerraformProviderName = "terraform-provider-volcengine"
TerraformProviderVersion = "0.0.109"
TerraformProviderVersion = "0.0.110"
)
Original file line number Diff line number Diff line change
Expand Up @@ -141,6 +141,7 @@ func ResourceVolcengineScalingGroup() *schema.Resource {
"project_name": {
Type: schema.TypeString,
Optional: true,
Computed: true,
Description: "The ProjectName of the scaling group.",
},
"tags": ve.TagsSchema(),
Expand Down
6 changes: 3 additions & 3 deletions volcengine/clb/acl/resource_volcengine_acl.go
Original file line number Diff line number Diff line change
Expand Up @@ -66,9 +66,9 @@ func ResourceVolcengineAcl() *schema.Resource {
},
},
"project_name": {
Type: schema.TypeString,
Optional: true,
//ForceNew: true,
Type: schema.TypeString,
Optional: true,
Computed: true,
Description: "The ProjectName of the Acl.",
},
"create_time": {
Expand Down
1 change: 1 addition & 0 deletions volcengine/clb/clb/resource_volcengine_clb.go
Original file line number Diff line number Diff line change
Expand Up @@ -173,6 +173,7 @@ func ResourceVolcengineClb() *schema.Resource {
"project_name": {
Type: schema.TypeString,
Optional: true,
Computed: true,
Description: "The ProjectName of the CLB.",
},
"tags": ve.TagsSchema(),
Expand Down
1 change: 1 addition & 0 deletions volcengine/ebs/volume/resource_volcengine_volume.go
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,7 @@ func ResourceVolcengineVolume() *schema.Resource {
"project_name": {
Type: schema.TypeString,
Optional: true,
Computed: true,
Description: "The ProjectName of the Volume.",
},
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,7 @@ func ResourceVolcengineEipAddress() *schema.Resource {
"project_name": {
Type: schema.TypeString,
Optional: true,
Computed: true,
Description: "The ProjectName of the EIP.",
},
"tags": ve.TagsSchema(),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -164,6 +164,7 @@ func ResourceVolcengineESCloudInstance() *schema.Resource {
"project_name": {
Type: schema.TypeString,
Optional: true,
Computed: true,
Description: "The project name to which the ESCloud instance belongs.",
},
"maintenance_time": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,7 @@ func ResourceVolcengineNatGateway() *schema.Resource {
"project_name": {
Type: schema.TypeString,
Optional: true,
Computed: true,
Description: "The ProjectName of the NatGateway.",
},
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,8 @@ func ResourceVolcengineTlsAlarmNotifyGroup() *schema.Resource {
},
},
"iam_project_name": {
Type: schema.TypeString,
//ForceNew: true,
Type: schema.TypeString,
Computed: true,
Optional: true,
Description: "The name of the iam project.",
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -178,6 +178,7 @@ func ResourceVolcengineNetworkAcl() *schema.Resource {
"project_name": {
Type: schema.TypeString,
Optional: true,
Computed: true,
Description: "The project name of the network acl.",
},
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -92,9 +92,9 @@ func ResourceVolcengineNetworkInterface() *schema.Resource {
Description: "The list of private ip address. This field conflicts with `secondary_private_ip_address_count`.",
},
"project_name": {
Type: schema.TypeString,
Optional: true,
//ForceNew: true,
Type: schema.TypeString,
Optional: true,
Computed: true,
Description: "The ProjectName of the ENI.",
},
"tags": ve.TagsSchema(),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ func ResourceVolcengineRouteTable() *schema.Resource {
"project_name": {
Type: schema.TypeString,
Optional: true,
Computed: true,
Description: "The ProjectName of the route table.",
},
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ func ResourceVolcengineCustomerGateway() *schema.Resource {
"project_name": {
Type: schema.TypeString,
Optional: true,
Computed: true,
Description: "The project name of the VPN customer gateway.",
},
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -195,6 +195,7 @@ func ResourceVolcengineVpnConnection() *schema.Resource {
"project_name": {
Type: schema.TypeString,
Optional: true,
Computed: true,
Description: "The project name of the VPN connection.",
},
"attach_type": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,7 @@ func ResourceVolcengineVpnGateway() *schema.Resource {
"project_name": {
Type: schema.TypeString,
Optional: true,
Computed: true,
Description: "The project name of the VPN gateway.",
},
"tags": ve.TagsSchema(),
Expand Down

0 comments on commit d3fa835

Please sign in to comment.