Skip to content

Commit

Permalink
Merge pull request #137 from volcengine/feat/opt
Browse files Browse the repository at this point in the history
Feat/opt
  • Loading branch information
zpp12354321 authored Oct 27, 2023
2 parents 6edce6f + f8fb99a commit 009b556
Show file tree
Hide file tree
Showing 10 changed files with 48 additions and 48 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.118"
TerraformProviderVersion = "0.0.119"
)
2 changes: 1 addition & 1 deletion example/transitRouterGrantRule/main.tf
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
resource "volcengine_transit_router_grant_rule" "foo" {
transit_router_id = "tr-2bzy39uy6u3282dx0efxiqyq0"
grant_account_id = "2000005141"
grant_account_id = "200000xxxx"
description = "tf-test"
}
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import (
Import
SharedTransitRouterState can be imported using the id, e.g.
```
$ terraform import volcengine_shared_transit_router_state.default state:transitRouterId
$ terraform import volcengine_transit_router_shared_transit_router_state.default state:transitRouterId
```
*/
Expand Down Expand Up @@ -59,7 +59,7 @@ func resourceVolcengineSharedTransitRouterStateCreate(d *schema.ResourceData, me
service := NewSharedTransitRouterStateService(meta.(*ve.SdkClient))
err = service.Dispatcher.Create(service, d, ResourceVolcengineSharedTransitRouterState())
if err != nil {
return fmt.Errorf("error on creating shared_transit_router_state %q, %s", d.Id(), err)
return fmt.Errorf("error on creating volcengine_transit_router_shared_transit_router_state %q, %s", d.Id(), err)
}
return resourceVolcengineSharedTransitRouterStateRead(d, meta)
}
Expand All @@ -68,7 +68,7 @@ func resourceVolcengineSharedTransitRouterStateRead(d *schema.ResourceData, meta
service := NewSharedTransitRouterStateService(meta.(*ve.SdkClient))
err = service.Dispatcher.Read(service, d, ResourceVolcengineSharedTransitRouterState())
if err != nil {
return fmt.Errorf("error on reading shared_transit_router_state %q, %s", d.Id(), err)
return fmt.Errorf("error on reading volcengine_transit_router_shared_transit_router_state %q, %s", d.Id(), err)
}
return err
}
Expand All @@ -77,7 +77,7 @@ func resourceVolcengineSharedTransitRouterStateUpdate(d *schema.ResourceData, me
service := NewSharedTransitRouterStateService(meta.(*ve.SdkClient))
err = service.Dispatcher.Update(service, d, ResourceVolcengineSharedTransitRouterState())
if err != nil {
return fmt.Errorf("error on update shared_transit_router_state %q, %s", d.Id(), err)
return fmt.Errorf("error on update volcengine_transit_router_shared_transit_router_state %q, %s", d.Id(), err)
}
return err
}
Expand All @@ -86,7 +86,7 @@ func resourceVolcengineSharedTransitRouterStateDelete(d *schema.ResourceData, me
service := NewSharedTransitRouterStateService(meta.(*ve.SdkClient))
err = service.Dispatcher.Delete(service, d, ResourceVolcengineSharedTransitRouterState())
if err != nil {
return fmt.Errorf("error on deleting shared_transit_router_state %q, %s", d.Id(), err)
return fmt.Errorf("error on deleting volcengine_transit_router_shared_transit_router_state %q, %s", d.Id(), err)
}
return err
}
Expand Down
39 changes: 0 additions & 39 deletions website/docs/d/available_resources.html.markdown

This file was deleted.

4 changes: 3 additions & 1 deletion website/docs/d/transit_router_peer_attachments.html.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,9 @@ description: |-
Use this data source to query detailed information of transit router peer attachments
## Example Usage
```hcl
data "volcengine_transit_router_peer_attachments" "foo" {
ids = ["tr-attach-12be67d0yh2io17q7y1au****"]
}
```
## Argument Reference
The following arguments are supported:
Expand Down
2 changes: 1 addition & 1 deletion website/docs/r/transit_router_grant_rule.html.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ Provides a resource to manage transit router grant rule
```hcl
resource "volcengine_transit_router_grant_rule" "foo" {
transit_router_id = "tr-2bzy39uy6u3282dx0efxiqyq0"
grant_account_id = "2000005141"
grant_account_id = "200000xxxx"
description = "tf-test"
}
```
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
---
subcategory: "TRANSIT_ROUTER"
layout: "volcengine"
page_title: "Volcengine: volcengine_transit_router_shared_transit_router_state"
sidebar_current: "docs-volcengine-resource-transit_router_shared_transit_router_state"
description: |-
Provides a resource to manage transit router shared transit router state
---
# volcengine_transit_router_shared_transit_router_state
Provides a resource to manage transit router shared transit router state
## Example Usage
```hcl
resource "volcengine_transit_router_shared_transit_router_state" "foo" {
transit_router_id = "tr-2bzy39uy6u3282dx0efxiqyq0"
action = "Reject"
}
```
## Argument Reference
The following arguments are supported:
* `action` - (Required) `Accept` or `Reject` the shared transit router.
* `transit_router_id` - (Required, ForceNew) The id of the transit router.

## Attributes Reference
In addition to all arguments above, the following attributes are exported:
* `id` - ID of the resource.



## Import
SharedTransitRouterState can be imported using the id, e.g.
```
$ terraform import volcengine_transit_router_shared_transit_router_state.default state:transitRouterId
```

3 changes: 3 additions & 0 deletions website/volcengine.erb
Original file line number Diff line number Diff line change
Expand Up @@ -1020,6 +1020,9 @@
<li>
<a href="/docs/providers/volcengine/r/transit_router_route_table_propagation.html">transit_router_route_table_propagation</a>
</li>
<li>
<a href="/docs/providers/volcengine/r/transit_router_shared_transit_router_state.html">transit_router_shared_transit_router_state</a>
</li>
<li>
<a href="/docs/providers/volcengine/r/transit_router.html">transit_router</a>
</li>
Expand Down

0 comments on commit 009b556

Please sign in to comment.