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

     1  package gateways
     2  
     3  type createResp struct {
     4  	// The gateway detail.
     5  	Gateway Gateway `json:"nat_gateway"`
     6  }
     7  
     8  // Gateway is the structure that represents the detail of the NAT gateway.
     9  type Gateway struct {
    10  	// The gateway ID.
    11  	ID string `json:"id"`
    12  	// The project ID to which the gateway belongs.
    13  	TenantId string `json:"tenant_id"`
    14  	// The gateway name.
    15  	Name string `json:"name"`
    16  	// The gateway description.
    17  	Description string `json:"description"`
    18  	// The gateway specification.
    19  	Spec string `json:"spec"`
    20  	// The gateway status.
    21  	// The valid values are as follows:
    22  	// + ACTIVE
    23  	// + PENDING_CREATE
    24  	// + PENDING_UPDATE
    25  	// + PENDING_DELETE
    26  	// + INACTIVE
    27  	Status string `json:"status"`
    28  	// The frozen status.
    29  	AdminStateUp bool `json:"admin_state_up"`
    30  	// The creation time.
    31  	CreatedAt string `json:"created_at"`
    32  	// The ID of the VPC to which the gateway belongs.
    33  	RouterId string `json:"router_id"`
    34  	// The network ID that VPC have.
    35  	InternalNetworkId string `json:"internal_network_id"`
    36  	// The private IP address of the public NAT gateway.
    37  	// The IP address is assigned by the VPC subnet.
    38  	NgportIpAddress string `json:"ngport_ip_address"`
    39  	// The enterprise project ID to which the gateway belongs.
    40  	EnterpriseProjectId string `json:"enterprise_project_id"`
    41  }
    42  
    43  type queryResp struct {
    44  	// The gateway detail.
    45  	Gateway Gateway `json:"nat_gateway"`
    46  }
    47  
    48  type updateResp struct {
    49  	// The gateway detail.
    50  	Gateway Gateway `json:"nat_gateway"`
    51  }
    52  
    53  type listResp struct {
    54  	// The list of the gateway details.
    55  	Gateways []Gateway `json:"nat_gateways"`
    56  }