fix: update lego.
This commit is contained in:
parent
b8b0c8f3e5
commit
8d848c3d60
169 changed files with 12224 additions and 605 deletions
24
vendor/github.com/sacloud/libsacloud/api/interface.go
generated
vendored
24
vendor/github.com/sacloud/libsacloud/api/interface.go
generated
vendored
|
@ -2,6 +2,7 @@ package api
|
|||
|
||||
import (
|
||||
"fmt"
|
||||
|
||||
"github.com/sacloud/libsacloud/sacloud"
|
||||
)
|
||||
|
||||
|
@ -81,3 +82,26 @@ func (api *InterfaceAPI) DisconnectFromPacketFilter(interfaceID int64) (bool, er
|
|||
)
|
||||
return api.modify(method, uri, nil)
|
||||
}
|
||||
|
||||
// SetDisplayIPAddress 表示用IPアドレス 設定
|
||||
func (api *InterfaceAPI) SetDisplayIPAddress(interfaceID int64, ipaddress string) (bool, error) {
|
||||
var (
|
||||
method = "PUT"
|
||||
uri = fmt.Sprintf("/%s/%d", api.getResourceURL(), interfaceID)
|
||||
)
|
||||
body := map[string]interface{}{
|
||||
"Interface": map[string]string{
|
||||
"UserIPAddress": ipaddress,
|
||||
},
|
||||
}
|
||||
return api.modify(method, uri, body)
|
||||
}
|
||||
|
||||
// DeleteDisplayIPAddress 表示用IPアドレス 削除
|
||||
func (api *InterfaceAPI) DeleteDisplayIPAddress(interfaceID int64) (bool, error) {
|
||||
var (
|
||||
method = "DELETE"
|
||||
uri = fmt.Sprintf("/%s/%d", api.getResourceURL(), interfaceID)
|
||||
)
|
||||
return api.modify(method, uri, nil)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue