Skip to content

Commit e95256c

Browse files
authored
Merge pull request #2445 from boyvinall/port-updated-at
Add UpdatedAt to ports.Port
2 parents 4509f75 + 5e6cb9e commit e95256c

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

openstack/networking/v2/ports/results.go

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
package ports
22

33
import (
4+
"time"
5+
46
"github.com/gophercloud/gophercloud"
57
"github.com/gophercloud/gophercloud/pagination"
68
)
@@ -110,6 +112,12 @@ type Port struct {
110112

111113
// RevisionNumber optionally set via extensions/standard-attr-revisions
112114
RevisionNumber int `json:"revision_number"`
115+
116+
// Timestamp when the port was created
117+
CreatedAt time.Time `json:"created_at"`
118+
119+
// Timestamp when the port was last updated
120+
UpdatedAt time.Time `json:"updated_at"`
113121
}
114122

115123
// PortPage is the page returned by a pager when traversing over a collection

0 commit comments

Comments
 (0)