本文整理匯總了Golang中github.com/whitepages/terraform-provider-stingray/Godeps/_workspace/src/github.com/hashicorp/terraform/helper/schema.ResourceData.Id方法的典型用法代碼示例。如果您正苦於以下問題:Golang ResourceData.Id方法的具體用法?Golang ResourceData.Id怎麽用?Golang ResourceData.Id使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類github.com/whitepages/terraform-provider-stingray/Godeps/_workspace/src/github.com/hashicorp/terraform/helper/schema.Res
的用法示例。
在下文中一共展示了ResourceData.Id方法的4個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Golang代碼示例。
示例1: resourceMonitorScriptDelete
func resourceMonitorScriptDelete(d *schema.ResourceData, meta interface{}) error {
c := meta.(*providerConfig).client
r := stingray.NewMonitorScript(d.Id())
_, err := c.Delete(r)
if err != nil {
return err
}
return nil
}
示例2: resourceTrafficIPGroupDelete
func resourceTrafficIPGroupDelete(d *schema.ResourceData, meta interface{}) error {
c := meta.(*providerConfig).client
r := stingray.NewTrafficIPGroup(d.Id())
_, err := c.Delete(r)
if err != nil {
return err
}
return nil
}
示例3: resourceVirtualServerDelete
func resourceVirtualServerDelete(d *schema.ResourceData, meta interface{}) error {
c := meta.(*providerConfig).client
r := stingray.NewVirtualServer(d.Id())
_, err := c.Delete(r)
if err != nil {
return err
}
return nil
}
示例4: resourceActionProgramDelete
func resourceActionProgramDelete(d *schema.ResourceData, meta interface{}) error {
c := meta.(*providerConfig).client
r := stingray.NewActionProgram(d.Id())
_, err := c.Delete(r)
if err != nil {
return err
}
return nil
}