Skip to content

Commit

Permalink
add as paramer
Browse files Browse the repository at this point in the history
  • Loading branch information
hellertang committed Jan 9, 2025
1 parent dee9ff4 commit 676d27d
Show file tree
Hide file tree
Showing 8 changed files with 27 additions and 56 deletions.
4 changes: 2 additions & 2 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ require (
github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/api v1.0.285
github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/apigateway v1.0.763
github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/apm v1.0.825
github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/as v1.0.1071
github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/as v1.0.1078
github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/bi v1.0.824
github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/cam v1.0.1071
github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/cat v1.0.825
Expand All @@ -46,7 +46,7 @@ require (
github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/clb v1.0.1034
github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/cloudaudit v1.0.1033
github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/cls v1.0.1046
github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/common v1.0.1073
github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/common v1.0.1078
github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/cvm v1.0.1053
github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/cwp v1.0.762
github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/cynosdb v1.0.1058
Expand Down
54 changes: 4 additions & 50 deletions go.sum

Large diffs are not rendered by default.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ resource "tencentcloud_as_start_instance_refresh" "example" {
batch_number = 1
batch_pause = "AUTOMATIC"
max_surge = 1
fail_process = "AUTO_PAUSE"
}
}
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions vendor/modules.txt
Original file line number Diff line number Diff line change
Expand Up @@ -1108,7 +1108,7 @@ github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/apigateway/v20180808
# github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/apm v1.0.825
## explicit; go 1.14
github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/apm/v20210622
# github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/as v1.0.1071
# github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/as v1.0.1078
## explicit; go 1.14
github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/as/v20180419
# github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/bi v1.0.824
Expand Down Expand Up @@ -1165,7 +1165,7 @@ github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/cloudaudit/v20190319
# github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/cls v1.0.1046
## explicit; go 1.14
github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/cls/v20201016
# github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/common v1.0.1073
# github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/common v1.0.1078
## explicit; go 1.11
github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/common
github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/common/errors
Expand Down
2 changes: 2 additions & 0 deletions website/docs/r/as_start_instance_refresh.html.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ resource "tencentcloud_as_start_instance_refresh" "example" {
batch_number = 1
batch_pause = "AUTOMATIC"
max_surge = 1
fail_process = "AUTO_PAUSE"
}
}
Expand All @@ -49,6 +50,7 @@ The `rolling_update_settings` object of `refresh_settings` supports the followin

* `batch_number` - (Required, Int) Batch quantity. The batch quantity should be a positive integer greater than 0, but cannot exceed the total number of instances pending refresh.
* `batch_pause` - (Optional, String) Pause policy between batches. Default value: Automatic. Valid values: <br><li>FIRST_BATCH_PAUSE: Pause after the first batch update completes.</li> <li>BATCH_INTERVAL_PAUSE: Pause between each batch update.</li> <li>AUTOMATIC: No pauses.
* `fail_process` - (Optional, String) Failure Handling Policy. The default value is `AUTO_PAUSE`. The values are as follows, `AUTO_PAUSE`: Pause after refresh fails; `AUTO_ROLLBACK`: Roll back after refresh fails; `AUTO_CANCEL`: Cancel after refresh fails.
* `max_surge` - (Optional, Int) Maximum Extra Quantity. After setting this parameter, a batch of pay-as-you-go extra instances will be created according to the launch configuration before the rolling update starts, and the extra instances will be destroyed after the rolling update is completed.

## Attributes Reference
Expand Down

0 comments on commit 676d27d

Please sign in to comment.