-
Notifications
You must be signed in to change notification settings - Fork 565
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
modify cen_bandwidth_package #2677
base: master
Are you sure you want to change the base?
Conversation
4da47a8
to
eef8bdd
Compare
@@ -36,6 +36,8 @@ The following arguments are supported: | |||
* `description` - (Optional) The description of the bandwidth package. Default to null. | |||
* `charge_type` - (Optional) The billing method. Valid value: PostPaid | PrePaid. Default to PostPaid. If set to PrePaid, the bandwidth package can't be deleted before expired time. | |||
* `period` - (Optional) The purchase period in month. Valid value: 1, 2, 3, 6, 12. Default to 1. | |||
* `auto_renew` - (Optional) Whether to renew a bandwidth package automatically or not. It is valid when `charge_type` is PrePaid. Valid value: true, false. Default to false. |
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.
(Optional, Available in 1.92.0+) default 的值使用反引号特殊标记下,下面也是一样
Type: schema.TypeBool, | ||
Optional: true, | ||
Default: false, | ||
DiffSuppressFunc: func(k, old, new string, d *schema.ResourceData) bool { |
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.
这个两个参数没有支持更新的 update 方法,所以这两个参数应该是 forcenew 的吧,如果是在文档中也要标记下
eef8bdd
to
45bc5db
Compare
45bc5db
to
7ffd2df
Compare
SanfordLuo seems not to be a GitHub user. You need a GitHub account to be able to sign the CLA. If you have already a GitHub account, please add the email address used for this commit to your account. You have signed the CLA already but the status is still pending? Let us recheck it. |
Default: false, | ||
ForceNew: true, | ||
DiffSuppressFunc: func(k, old, new string, d *schema.ResourceData) bool { | ||
return PayType(d.Get("charge_type").(string)) == PrePaid |
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.
I think the line 89 should be PayType(d.Get("charge_type").(string)) == PostPaid
No description provided.