- 
                Notifications
    
You must be signed in to change notification settings  - Fork 61
 
          Remove bad project_ prefix from silo-scoped IP pool endpoints
          #8894
        
          New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | 
|---|---|---|
| 
          
            
          
           | 
    @@ -669,12 +669,14 @@ pub trait NexusExternalApi { | |
| // IP Pools | ||
| 
     | 
||
| /// List IP pools | ||
| /// | ||
| /// For the current silo. | ||
| #[endpoint { | ||
| method = GET, | ||
| path = "/v1/ip-pools", | ||
| tags = ["projects"], | ||
| }] | ||
| async fn project_ip_pool_list( | ||
| async fn ip_pool_list( | ||
| rqctx: RequestContext<Self::Context>, | ||
| query_params: Query<PaginatedByNameOrId>, | ||
| ) -> Result<HttpResponseOk<ResultsPage<views::SiloIpPool>>, HttpError>; | ||
| 
        
          
        
         | 
    @@ -685,18 +687,20 @@ pub trait NexusExternalApi { | |
| path = "/v1/ip-pools/{pool}", | ||
| tags = ["projects"], | ||
| }] | ||
| async fn project_ip_pool_view( | ||
| async fn ip_pool_view( | ||
| rqctx: RequestContext<Self::Context>, | ||
| path_params: Path<params::IpPoolPath>, | ||
| ) -> Result<HttpResponseOk<views::SiloIpPool>, HttpError>; | ||
| 
     | 
||
| /// List IP pools | ||
| /// | ||
| /// List all IP pools regardless of silo links. | ||
| 
         There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I think "across all silos" is clearer to me, but I'll leave this one up to you!  | 
||
| #[endpoint { | ||
| method = GET, | ||
| path = "/v1/system/ip-pools", | ||
| tags = ["system/ip-pools"], | ||
| }] | ||
| async fn ip_pool_list( | ||
| async fn system_ip_pool_list( | ||
| rqctx: RequestContext<Self::Context>, | ||
| query_params: Query<PaginatedByNameOrId>, | ||
| ) -> Result<HttpResponseOk<ResultsPage<views::IpPool>>, HttpError>; | ||
| 
        
          
        
         | 
    @@ -718,7 +722,7 @@ pub trait NexusExternalApi { | |
| path = "/v1/system/ip-pools/{pool}", | ||
| tags = ["system/ip-pools"], | ||
| }] | ||
| async fn ip_pool_view( | ||
| async fn system_ip_pool_view( | ||
| 
         There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This one should have a description as well no? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Mostly to know how it differs from the other fetch IP pool endpoint, otherwise it's not too obvious?  | 
||
| rqctx: RequestContext<Self::Context>, | ||
| path_params: Path<params::IpPoolPath>, | ||
| ) -> Result<HttpResponseOk<views::IpPool>, HttpError>; | ||
| 
          
            
          
           | 
    ||
Uh oh!
There was an error while loading. Please reload this page.