github.com/chnsz/golangsdk@v0.0.0-20240506093406-85a3fbfa605b/openstack/nat/v3/transitips/results.go (about)

     1  package transitips
     2  
     3  import "github.com/chnsz/golangsdk/openstack/common/tags"
     4  
     5  // TransitIp is the structure that represents the detail of the transit IP for private NAT.
     6  type TransitIp struct {
     7  	// The transit IP ID.
     8  	ID string `json:"id"`
     9  	// The project ID to which the transit IP (private NAT) belongs.
    10  	ProjectId string `json:"project_id"`
    11  	// The network interface ID of the transit IP for private NAT.
    12  	NetworkInterfaceId string `json:"network_interface_id"`
    13  	// The IP address of the transit IP.
    14  	IpAddress string `json:"ip_address"`
    15  	// The creation time.
    16  	CreatedAt string `json:"created_at"`
    17  	// The latest update time.
    18  	UpdatedAt string `json:"updated_at"`
    19  	// The ID of the subnet to which the transit IP belongs.
    20  	SubnetId string `json:"virsubnet_id"`
    21  	// The key/value pairs to associate with the transit IP.
    22  	Tags []tags.ResourceTag `json:"tags"`
    23  	// The ID of the private NAT gateway to which the transit IP belongs.
    24  	GatewayId string `json:"gateway_id"`
    25  	// The ID of the enterprise project to which the transit IP belongs.
    26  	EnterpriseProjectId string `json:"enterprise_project_id"`
    27  }
    28  
    29  type createResp struct {
    30  	// The transit IP detail.
    31  	TransitIp TransitIp `json:"transit_ip"`
    32  	// Request ID.
    33  	RequestId string `json:"request_id"`
    34  }
    35  
    36  type queryResp struct {
    37  	// The transit IP detail.
    38  	TransitIp TransitIp `json:"transit_ip"`
    39  	// Request ID.
    40  	RequestId string `json:"request_id"`
    41  }