Skip to content
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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

SanfordLuo
Copy link
Contributor

No description provided.

@@ -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.
Copy link
Contributor

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 {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

这个两个参数没有支持更新的 update 方法,所以这两个参数应该是 forcenew 的吧,如果是在文档中也要标记下

@SanfordLuo SanfordLuo force-pushed the cen_bandwidth_package branch from eef8bdd to 45bc5db Compare July 29, 2020 07:01
@ghost ghost added size/S and removed size/XS labels Jul 29, 2020
@SanfordLuo SanfordLuo force-pushed the cen_bandwidth_package branch from 45bc5db to 7ffd2df Compare August 6, 2020 06:10
@CLAassistant
Copy link

CLAassistant commented Aug 11, 2020

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.


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
Copy link
Member

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants