Skip to content

Commit 40c2bc7

Browse files
authored
Fix protocol.GlobalAddressRelease (#31)
- Remove "IPv" - Fix URI
1 parent 685a163 commit 40c2bc7

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

protocol/GlobalAddressRelease.go

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,11 @@ type GlobalAddressRelease struct {
1010
GisServiceCode string `json:"-"` // P2契約のサービスコード(gis########)
1111
IvmServiceCode string `json:"-"` // 仮想サーバのサービスコード(ivm########)
1212
IPv4Address string `json:"-"` // IPv4アドレス
13-
IPv string `json:"-"` // IPv
1413
}
1514

16-
// URI /{{.GisServiceCode}}/virtual-servers/{{.IvmServiceCode}}/global-ipaddresses/{{.IPv}}4Address.json
15+
// URI /{{.GisServiceCode}}/virtual-servers/{{.IvmServiceCode}}/global-ipaddresses/{{.IPv4Address}}.json
1716
func (t GlobalAddressRelease) URI() string {
18-
return "/{{.GisServiceCode}}/virtual-servers/{{.IvmServiceCode}}/global-ipaddresses/{{.IPv}}4Address.json"
17+
return "/{{.GisServiceCode}}/virtual-servers/{{.IvmServiceCode}}/global-ipaddresses/{{.IPv4Address}}.json"
1918
}
2019

2120
// APIName GlobalAddressRelease

0 commit comments

Comments
 (0)