diff --git a/openstack/dns/v2/ptrrecords/requests.go b/openstack/dns/v2/ptrrecords/requests.go index 41e8f773e..343d96515 100644 --- a/openstack/dns/v2/ptrrecords/requests.go +++ b/openstack/dns/v2/ptrrecords/requests.go @@ -29,6 +29,9 @@ type CreateOpts struct { // Tags of the ptr. Tags []Tag `json:"tags,omitempty"` + + // Enterprise project id + EnterpriseProjectID string `json:"enterprise_project_id,omitempty"` } // Tag is a structure of key value pair. diff --git a/openstack/dns/v2/ptrrecords/results.go b/openstack/dns/v2/ptrrecords/results.go index 1cdc805c3..8842c29bf 100644 --- a/openstack/dns/v2/ptrrecords/results.go +++ b/openstack/dns/v2/ptrrecords/results.go @@ -53,4 +53,7 @@ type Ptr struct { // Status of the PTR. Status string `json:"status"` + + // Enterprise project id + EnterpriseProjectID string `json:"enterprise_project_id"` } diff --git a/openstack/dns/v2/zones/requests.go b/openstack/dns/v2/zones/requests.go index a3aa557c1..09be71a67 100644 --- a/openstack/dns/v2/zones/requests.go +++ b/openstack/dns/v2/zones/requests.go @@ -87,6 +87,9 @@ type CreateOpts struct { // Type specifies if this is a primary or secondary zone. Type string `json:"type,omitempty"` + + // Enterprise project id + EnterpriseProjectID string `json:"enterprise_project_id,omitempty"` } // ToZoneCreateMap formats an CreateOpts structure into a request body. diff --git a/openstack/dns/v2/zones/results.go b/openstack/dns/v2/zones/results.go index dbfb97c29..7c7631759 100644 --- a/openstack/dns/v2/zones/results.go +++ b/openstack/dns/v2/zones/results.go @@ -129,6 +129,9 @@ type Zone struct { // Routers associate with the Zone Routers []RouterResult `json:"routers"` + + // Enterprise project id + EnterpriseProjectID string `json:"enterprise_project_id"` } type RouterResult struct {