-
Notifications
You must be signed in to change notification settings - Fork 537
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
resource/alicloud_common_bandwidth_package: Renames the name to bandwidth_package_name; Adds new field status; Upgrades its dependence sdk #3376
Conversation
Type: schema.TypeString, | ||
Optional: true, | ||
Computed: true, | ||
Deprecated: "Field 'name' has been deprecated from provider version 1.120.0. New field 'bandwidth_package_name' instead.", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
1.119.1
Default: PayByTraffic, | ||
ValidateFunc: validation.StringInSlice([]string{"PayByBandwidth", "PayBy95", "PayByTraffic"}, false), | ||
ValidateFunc: validation.StringInSlice([]string{"PayBy95", "PayByBandwidth", "PayByTraffic"}, false), | ||
Default: "PayByBandwidth", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
这个默认值进行替换了么
@@ -36,6 +36,10 @@ The following arguments are supported: | |||
* `name_regex` - (Optional) A regex string to filter results by name. | |||
* `output_file` - (Optional) File name where to save data source results (after running `terraform plan`). | |||
* `resource_group_id` - (Optional, ForceNew, Available in 1.58.0+) The Id of resource group which the common bandwidth package belongs. | |||
* `bandwidth_package_name` - (Optional, ForceNew, Available in 1.120.0+) The name of bandwidth package. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
版本
* `internet_charge_type` - (Optional, ForceNew) The billing method of the common bandwidth package. Valid values are "PayByBandwidth" and "PayBy95" and "PayByTraffic". "PayBy95" is pay by classic 95th percentile pricing. International Account doesn't supports "PayByBandwidth" and "PayBy95". Default to "PayByTraffic". | ||
* `ratio` - (Optional, ForceNew Available in 1.55.3+) Ratio of the common bandwidth package. It is valid when `internet_charge_type` is `PayBy95`. Default to 100. Valid values: [10-100]. | ||
* `name` - (Optional) The name of the common bandwidth package. | ||
* `internet_charge_type` - (Optional, ForceNew) The billing method of the common bandwidth package. Valid values are `PayByBandwidth` and `PayBy95` and `PayByTraffic`. `PayBy95` is pay by classic 95th percentile pricing. International Account doesn't supports `PayByBandwidth` and `PayBy95`. Default to `PayByTraffic`. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
这个默认值也看下
|
||
if d.HasChange("name") { | ||
request.Name = d.Get("name").(string) | ||
if !d.IsNewResource() && d.HasChange("bandwidth") { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
所有变更属性都添加了 d.IsNewResource() 应该在 create 之后走 read 方法
16d04fe
to
8baf44f
Compare
No description provided.