github.com/cloudfoundry-community/cloudfoundry-cli@v6.44.1-0.20240130060226-cda5ed8e89a5+incompatible/api/cloudcontroller/ccv2/internal/api_routes.go (about) 1 package internal 2 3 import ( 4 "net/http" 5 6 "github.com/tedsuo/rata" 7 ) 8 9 // Naming convention: 10 // 11 // Method + non-parameter parts of the path 12 // 13 // If the request returns a single entity by GUID, use the singular (for example 14 // /v2/organizations/:organization_guid is GetOrganization). 15 // 16 // The const name should always be the const value + Request. 17 const ( 18 DeleteAppRequest = "DeleteApp" 19 DeleteBuildpackRequest = "DeleteBuildpackSpace" 20 DeleteConfigRunningSecurityGroupRequest = "DeleteConfigRunningSecurityGroup" 21 DeleteConfigStagingSecurityGroupRequest = "DeleteConfigStagingSecurityGroup" 22 DeleteOrganizationRequest = "DeleteOrganization" 23 DeleteOrganizationPrivateDomainRequest = "DeleteOrganizationPrivateDomain" 24 DeleteOrganizationQuotaDefinitionRequest = "DeleteOrganizationQuotaDefinition" 25 DeleteOrganizationManagerRequest = "DeleteOrganizationManager" 26 DeleteOrganizationBillingManagerRequest = "DeleteOrganizationBillingManager" 27 DeleteOrganizationAuditorRequest = "DeleteOrganizationAuditorRequest" 28 DeleteOrganizationUserRequest = "DeleteOrganizationUser" 29 DeletePrivateDomainRequest = "DeletePrivateDomain" 30 DeleteRouteAppRequest = "DeleteRouteApp" 31 DeleteRouteRequest = "DeleteRoute" 32 DeleteRouteMappingRequest = "DeleteRouteMapping" 33 DeleteSecurityGroupRequest = "DeleteSecurityGroup" 34 DeleteSecurityGroupSpaceRequest = "DeleteSecurityGroupSpace" 35 DeleteSecurityGroupStagingSpaceRequest = "DeleteSecurityGroupStagingSpace" 36 DeleteServiceBrokerRequest = "DeleteServiceBroker" 37 DeleteServiceBindingRequest = "DeleteServiceBinding" 38 DeleteServiceInstanceRequest = "DeleteServiceInstance" 39 DeleteServicePlanRequest = "DeleteServicePlan" 40 DeleteServicePlanVisibilityRequest = "DeleteServicePlanVisibility" 41 DeleteServiceRequest = "DeleteService" 42 DeleteServiceBindingRouteRequest = "DeleteServiceBindingRoute" 43 DeleteServiceKeyRequest = "DeleteServiceKey" 44 DeleteSpaceRequest = "DeleteSpace" 45 DeleteSpaceAuditorRequest = "DeleteSpaceAuditor" 46 DeleteSpaceDeveloperRequest = "DeleteSpaceDeveloper" 47 DeleteSpaceManagerRequest = "DeleteSpaceManager" 48 DeleteSpaceQuotaRequest = "DeleteSpaceQuota" 49 DeleteSpaceQuotaDefinitionRequest = "DeleteSpaceQuotaDefinition" 50 DeleteSharedDomainRequest = "DeleteSharedDomain" 51 DeleteSpaceUnmappedRoutesRequest = "DeleteUnmappedRoutes" 52 DeleteUserProvidedServiceInstanceRequest = "DeleteUserProvidedServiceInstance" 53 DeleteUserProvidedServiceInstanceRoutesRequest = "DeleteUserProvidedServiceInstanceRoutes" 54 GetAppInstancesRequest = "GetAppInstances" 55 GetAppRequest = "GetApp" 56 GetAppRoutesRequest = "GetAppRoutes" 57 GetAppsRequest = "GetApps" 58 GetAppStatsRequest = "GetAppStats" 59 GetBuildpacksRequest = "GetBuildpacks" 60 GetBuildpackRequest = "GetBuildpack" 61 GetConfigFeatureFlagsRequest = "GetConfigFeatureFlags" 62 GetConfigEnvVarGroupRunningRequest = "GetConfigEnvVarGroupRunning" 63 GetConfigEnvVarGroupStagingRequest = "GetConfigEnvVarGroupStaging" 64 GetConfigRunningSecurityGroupsRequest = "GetConfigRunningSecurityGroups" 65 GetConfigStagingSecurityGroupsRequest = "GetConfigStagingSecurityGroups" 66 GetEventsRequest = "GetEvents" 67 GetInfoRequest = "GetInfo" 68 GetJobRequest = "GetJob" 69 GetOrganizationPrivateDomainsRequest = "GetOrganizationPrivateDomains" 70 GetOrganizationQuotaDefinitionsRequest = "GetOrganizationQuotaDefinitions" 71 GetOrganizationQuotaDefinitionRequest = "GetOrganizationQuotaDefinition" 72 GetOrganizationAuditorsRequest = "GetOrganizationAuditors" 73 GetOrganizationManagersRequest = "GetOrganizationManagers" 74 GetOrganizationBillingManagersRequest = "GetOrganizationBillingManagers" 75 GetOrganizationUsersRequest = "GetOrganizationUsers" 76 GetOrganizationRequest = "GetOrganization" 77 GetOrganizationsRequest = "GetOrganizations" 78 GetPrivateDomainRequest = "GetPrivateDomain" 79 GetPrivateDomainsRequest = "GetPrivateDomains" 80 GetRouteAppsRequest = "GetRouteApps" 81 GetRouteMappingRequest = "GetRouteMapping" 82 GetRouteMappingsRequest = "GetRouteMappings" 83 GetRouteRequest = "GetRoute" 84 GetRouteReservedDeprecatedRequest = "GetRouteReservedDeprecated" 85 GetRouteReservedRequest = "GetRouteReserved" 86 GetRouteRouteMappingsRequest = "GetRouteRouteMappings" 87 GetRoutesRequest = "GetRoutes" 88 GetSecurityGroupSpacesRequest = "GetSecurityGroupSpaces" 89 GetSecurityGroupsRequest = "GetSecurityGroups" 90 GetSecurityGroupStagingSpacesRequest = "GetSecurityGroupStagingSpaces" 91 GetServiceBindingRequest = "GetServiceBinding" 92 GetServiceBindingsRequest = "GetServiceBindings" 93 GetServiceBindingRouteRequest = "GetServiceBindingRoute" 94 GetServiceBindingRoutesRequest = "GetServiceBindingRoutes" 95 GetServiceBrokersRequest = "GetServiceBrokers" 96 GetServiceInstanceRequest = "GetServiceInstance" 97 GetServiceInstanceServiceBindingsRequest = "GetServiceInstanceServiceBindings" 98 GetServiceInstanceSharedFromRequest = "GetServiceInstanceSharedFrom" 99 GetServiceInstanceSharedToRequest = "GetServiceInstanceSharedTo" 100 GetServiceInstancesRequest = "GetServiceInstances" 101 GetServicePlanRequest = "GetServicePlan" 102 GetServicePlansRequest = "GetServicePlans" 103 GetServicePlanVisibilitiesRequest = "GetServicePlanVisibilities" 104 GetServiceRequest = "GetService" 105 GetServicesRequest = "GetServices" 106 GetServiceKeyRequest = "GetServiceKey" 107 GetSharedDomainRequest = "GetSharedDomain" 108 GetSharedDomainsRequest = "GetSharedDomains" 109 GetSpaceRequest = "GetSpace" 110 GetSpaceQuotaDefinitionsRequest = "GetSpaceQuotaDefinitions" 111 GetOrganizationSpaceQuotasRequest = "GetOrganizationSpaceQuotas" 112 GetSecurityGroupRequest = "GetSecurityGroup" 113 GetServiceBrokerRequest = "GetServiceBroker" 114 GetServicePlanVisibilityRequest = "GetServicePlanVisibility" 115 GetSpaceAuditorsRequest = "GetSpaceAuditors" 116 GetSpaceManagersRequest = "GetSpaceManagers" 117 GetSpaceDevelopersRequest = "GetSpaceDevelopers" 118 GetSpaceQuotaDefinitionRequest = "GetSpaceQuotaDefinition" 119 GetSpaceRoutesRequest = "GetSpaceRoutes" 120 GetSpaceSecurityGroupsRequest = "GetSpaceSecurityGroups" 121 GetSpaceServicesRequest = "GetSpaceServices" 122 GetSpaceServiceInstancesRequest = "GetSpaceServiceInstances" 123 GetSpaceSummaryRequest = "GetSpaceSummary" 124 GetSpacesRequest = "GetSpaces" 125 GetSpaceStagingSecurityGroupsRequest = "GetSpaceStagingSecurityGroups" 126 PostSpaceQuotaDefinitionsRequest = "PostSpaceQuotaDefinitions" 127 GetStackRequest = "GetStack" 128 GetStacksRequest = "GetStacks" 129 GetUserProvidedServiceInstanceServiceBindingsRequest = "GetUserProvidedServiceInstanceServiceBindings" 130 GetUserProvidedServiceInstanceRequest = "GetUserProvidedServiceInstance" 131 GetUserProvidedServiceInstancesRequest = "GetUserProvidedServiceInstances" 132 GetUsersRequest = "GetUsers" 133 GetUserOrganizationsRequest = "GetUserOrganizations" 134 GetUserProvidedServiceInstanceRoutesRequest = "GetUserProvidedServiceInstanceRoutes" 135 GetUserSpacesRequest = "GetUserSpaces" 136 PostAppRequest = "PostApp" 137 PostAppRestageRequest = "PostAppRestage" 138 PostBuildpackRequest = "PostBuildpack" 139 PutConfigFeatureFlagsRequest = "PutConfigFeatureFlags" 140 PostOrganizationRequest = "PostOrganization" 141 PostOrganizationQuotaDefinitionsRequest = "PostOrganizationQuotaDefinitions" 142 PostPrivateDomainRequest = "PostPrivateDomain" 143 PostRouteRequest = "PostRoute" 144 PostRouteMappingsRequest = "PostRouteMappings" 145 PostSecurityGroupsRequest = "PostSecurityGroups" 146 PostSecurityGroupRequest = "PostSecurityGroup" 147 PostServiceBindingRequest = "PostServiceBinding" 148 PostServiceInstancesRequest = "PostServiceInstance" 149 PostSharedDomainRequest = "PostSharedDomain" 150 PostServicesRequest = "PostServicesRequest" 151 PostServiceBrokerRequest = "PostServiceBroker" 152 PostServiceKeyRequest = "PostServiceKey" 153 GetServiceKeysRequest = "GetServiceKeys" 154 PostServicePlanVisibilityRequest = "PostServicePlanVisibility" 155 PostSpaceRequest = "PostSpace" 156 PostUserRequest = "PostUser" 157 PostUserProvidedServiceInstancesRequest = "PostUserProvidedServiceInstances" 158 PutAppBitsRequest = "PutAppBits" 159 PutAppRequest = "PutApp" 160 PutBuildpackRequest = "PutBuildpack" 161 PutBuildpackBitsRequest = "PutBuildpackBits" 162 PutConfigRunningSecurityGroupRequest = "PutConfigRunningSecurityGroup" 163 PutConfigEnvVarGroupRunningRequest = "PutConfigEnvVarGroupRunning" 164 PutConfigEnvVarGroupStagingRequest = "PutConfigEnvVarGroupStaging" 165 PutConfigStagingSecurityGroupRequest = "PutConfigStagingSecurityGroup" 166 PutDropletRequest = "PutDroplet" 167 PutOrganizationBillingManagerByUsernameRequest = "PutOrganizationBillingManagerByUsername" 168 DeleteOrganizationBillingManagerByUsernameRequest = "DeleteOrganizationBillingManagerByUsername" 169 PutOrganizationAuditorByUsernameRequest = "PutOrganizationAuditorByUsername" 170 DeleteOrganizationAuditorByUsernameRequest = "DeleteOrganizationAuditorByUsername" 171 PutOrganizationManagerByUsernameRequest = "PutOrganizationManagerByUsername" 172 DeleteOrganizationManagerByUsernameRequest = "DeleteOrganizationManagerByUsername" 173 PutOrganizationManagerRequest = "PutOrganizationManager" 174 PutOrganizationUserRequest = "PutOrganizationUser" 175 PutOrganizationAuditorRequest = "PutOrganizationAuditorRequest" 176 PutOrganizationBillingManagerRequest = "PutOrganizationBillingManager" 177 PutOrganizationRequest = "PutOrganizationRequest" 178 PutOrganizationUserByUsernameRequest = "PutOrganizationUserByUsername" 179 DeleteOrganizationUserByUsernameRequest = "DeleteOrganizationUserByUsername" 180 PutOrganizationPrivateDomainRequest = "PutOrganizationPrivateDomain" 181 PutOrganizationQuotaDefinitionRequest = "PutOrganizationQuotaDefinition" 182 PutResourceMatchRequest = "PutResourceMatch" 183 PutRouteAppRequest = "PutRouteApp" 184 PutRouteRequest = "PutRoute" 185 PutServiceRequest = "PutServiceRequest" 186 PutServiceBrokerRequest = "PutServiceBroker" 187 PutServiceBindingRoutesRequest = "PutServiceBindingRoutes" 188 PutServiceInstanceRequest = "PutServiceInstance" 189 PutServicePlanRequest = "PutServicePlan" 190 PutServicePlanVisibilityRequest = "PutServicePlanVisibility" 191 PutSpaceRequest = "PutSpace" 192 PutSpaceQuotaRequest = "PutSpaceQuotaRequest" 193 PutSpaceAuditorByUsernameRequest = "PutSpaceAuditorByUsername" 194 DeleteSpaceAuditorByUsernameRequest = "DeleteSpaceAuditorByUsername" 195 PutSpaceDeveloperRequest = "PutSpaceDeveloper" 196 PutSpaceDeveloperByUsernameRequest = "PutSpaceDeveloperByUsername" 197 DeleteSpaceDeveloperByUsernameRequest = "DeleteSpaceDeveloperByUsername" 198 PutSpaceManagerRequest = "PutSpaceManager" 199 PutSpaceAuditorRequest = "PutSpaceAuditor" 200 PutSpaceManagerByUsernameRequest = "PutSpaceManagerByUsername" 201 DeleteSpaceManagerByUsernameRequest = "DeleteSpaceManagerByUsername" 202 PutSpaceQuotaDefinitionRequest = "PutSpaceQuotaDefinition" 203 PutSecurityGroupSpaceRequest = "PutSecurityGroupSpace" 204 PutSecurityGroupStagingSpaceRequest = "PutSecurityGroupStagingSpace" 205 PutUserProvidedServiceInstanceRequest = "PutUserProvidedServiceInstance" 206 ) 207 208 // APIRoutes is a list of routes used by the rata library to construct request 209 // URLs. 210 var APIRoutes = rata.Routes{ 211 {Path: "/v2/apps", Method: http.MethodGet, Name: GetAppsRequest}, 212 {Path: "/v2/apps", Method: http.MethodPost, Name: PostAppRequest}, 213 {Path: "/v2/apps/:app_guid", Method: http.MethodGet, Name: GetAppRequest}, 214 {Path: "/v2/apps/:app_guid", Method: http.MethodDelete, Name: DeleteAppRequest}, 215 {Path: "/v2/apps/:app_guid", Method: http.MethodPut, Name: PutAppRequest}, 216 {Path: "/v2/apps/:app_guid/bits", Method: http.MethodPut, Name: PutAppBitsRequest}, 217 {Path: "/v2/apps/:app_guid/droplet/upload", Method: http.MethodPut, Name: PutDropletRequest}, 218 {Path: "/v2/apps/:app_guid/instances", Method: http.MethodGet, Name: GetAppInstancesRequest}, 219 {Path: "/v2/apps/:app_guid/restage", Method: http.MethodPost, Name: PostAppRestageRequest}, 220 {Path: "/v2/apps/:app_guid/routes", Method: http.MethodGet, Name: GetAppRoutesRequest}, 221 {Path: "/v2/apps/:app_guid/stats", Method: http.MethodGet, Name: GetAppStatsRequest}, 222 {Path: "/v2/buildpacks", Method: http.MethodPost, Name: PostBuildpackRequest}, 223 {Path: "/v2/buildpacks", Method: http.MethodGet, Name: GetBuildpacksRequest}, 224 {Path: "/v2/buildpacks/:buildpack_guid", Method: http.MethodGet, Name: GetBuildpackRequest}, 225 {Path: "/v2/buildpacks/:buildpack_guid", Method: http.MethodDelete, Name: DeleteBuildpackRequest}, 226 {Path: "/v2/buildpacks/:buildpack_guid", Method: http.MethodPut, Name: PutBuildpackRequest}, 227 {Path: "/v2/buildpacks/:buildpack_guid/bits", Method: http.MethodPut, Name: PutBuildpackBitsRequest}, 228 {Path: "/v2/config/feature_flags", Method: http.MethodGet, Name: GetConfigFeatureFlagsRequest}, 229 {Path: "/v2/config/feature_flags/:name", Method: http.MethodPut, Name: PutConfigFeatureFlagsRequest}, 230 {Path: "/v2/config/running_security_groups", Method: http.MethodGet, Name: GetConfigRunningSecurityGroupsRequest}, 231 {Path: "/v2/config/running_security_groups/:security_group_guid", Method: http.MethodPut, Name: PutConfigRunningSecurityGroupRequest}, 232 {Path: "/v2/config/running_security_groups/:security_group_guid", Method: http.MethodDelete, Name: DeleteConfigRunningSecurityGroupRequest}, 233 {Path: "/v2/config/staging_security_groups", Method: http.MethodGet, Name: GetConfigStagingSecurityGroupsRequest}, 234 {Path: "/v2/config/staging_security_groups/:security_group_guid", Method: http.MethodPut, Name: PutConfigStagingSecurityGroupRequest}, 235 {Path: "/v2/config/staging_security_groups/:security_group_guid", Method: http.MethodDelete, Name: DeleteConfigStagingSecurityGroupRequest}, 236 {Path: "/v2/config/environment_variable_groups/running", Method: http.MethodGet, Name: GetConfigEnvVarGroupRunningRequest}, 237 {Path: "/v2/config/environment_variable_groups/running", Method: http.MethodPut, Name: PutConfigEnvVarGroupRunningRequest}, 238 {Path: "/v2/config/environment_variable_groups/staging", Method: http.MethodGet, Name: GetConfigEnvVarGroupStagingRequest}, 239 {Path: "/v2/config/environment_variable_groups/staging", Method: http.MethodPut, Name: PutConfigEnvVarGroupStagingRequest}, 240 {Path: "/v2/events", Method: http.MethodGet, Name: GetEventsRequest}, 241 {Path: "/v2/info", Method: http.MethodGet, Name: GetInfoRequest}, 242 {Path: "/v2/jobs/:job_guid", Method: http.MethodGet, Name: GetJobRequest}, 243 {Path: "/v2/organizations", Method: http.MethodGet, Name: GetOrganizationsRequest}, 244 {Path: "/v2/organizations", Method: http.MethodPost, Name: PostOrganizationRequest}, 245 {Path: "/v2/organizations/:organization_guid", Method: http.MethodDelete, Name: DeleteOrganizationRequest}, 246 {Path: "/v2/organizations/:organization_guid", Method: http.MethodGet, Name: GetOrganizationRequest}, 247 {Path: "/v2/organizations/:organization_guid", Method: http.MethodPut, Name: PutOrganizationRequest}, 248 {Path: "/v2/organizations/:organization_guid/billing_managers", Method: http.MethodPut, Name: PutOrganizationBillingManagerByUsernameRequest}, 249 {Path: "/v2/organizations/:organization_guid/billing_managers/remove", Method: http.MethodPost, Name: DeleteOrganizationBillingManagerByUsernameRequest}, 250 {Path: "/v2/organizations/:organization_guid/auditors", Method: http.MethodPut, Name: PutOrganizationAuditorByUsernameRequest}, 251 {Path: "/v2/organizations/:organization_guid/auditors/remove", Method: http.MethodPost, Name: DeleteOrganizationAuditorByUsernameRequest}, 252 {Path: "/v2/organizations/:organization_guid/managers", Method: http.MethodPut, Name: PutOrganizationManagerByUsernameRequest}, 253 {Path: "/v2/organizations/:organization_guid/managers/remove", Method: http.MethodPost, Name: DeleteOrganizationManagerByUsernameRequest}, 254 {Path: "/v2/organizations/:organization_guid/managers", Method: http.MethodGet, Name: GetOrganizationManagersRequest}, 255 {Path: "/v2/organizations/:organization_guid/users", Method: http.MethodGet, Name: GetOrganizationUsersRequest}, 256 {Path: "/v2/organizations/:organization_guid/auditors", Method: http.MethodGet, Name: GetOrganizationAuditorsRequest}, 257 {Path: "/v2/organizations/:organization_guid/billing_managers", Method: http.MethodGet, Name: GetOrganizationBillingManagersRequest}, 258 {Path: "/v2/organizations/:organization_guid/managers/:manager_guid", Method: http.MethodPut, Name: PutOrganizationManagerRequest}, 259 {Path: "/v2/organizations/:organization_guid/billing_managers/:billing_manager_guid", Method: http.MethodPut, Name: PutOrganizationBillingManagerRequest}, 260 {Path: "/v2/organizations/:organization_guid/auditors/:auditor_guid", Method: http.MethodPut, Name: PutOrganizationAuditorRequest}, 261 {Path: "/v2/organizations/:organization_guid/managers/:manager_guid", Method: http.MethodDelete, Name: DeleteOrganizationManagerRequest}, 262 {Path: "/v2/organizations/:organization_guid/billing_managers/:billing_manager_guid", Method: http.MethodDelete, Name: DeleteOrganizationBillingManagerRequest}, 263 {Path: "/v2/organizations/:organization_guid/auditors/:auditor_guid", Method: http.MethodDelete, Name: DeleteOrganizationAuditorRequest}, 264 {Path: "/v2/organizations/:organization_guid/private_domains", Method: http.MethodGet, Name: GetOrganizationPrivateDomainsRequest}, 265 {Path: "/v2/organizations/:organization_guid/private_domains/:private_domain_guid", Method: http.MethodPut, Name: PutOrganizationPrivateDomainRequest}, 266 {Path: "/v2/organizations/:organization_guid/private_domains/:private_domain_guid", Method: http.MethodDelete, Name: DeleteOrganizationPrivateDomainRequest}, 267 {Path: "/v2/organizations/:organization_guid/users", Method: http.MethodPut, Name: PutOrganizationUserByUsernameRequest}, 268 {Path: "/v2/organizations/:organization_guid/users/remove", Method: http.MethodPost, Name: DeleteOrganizationUserByUsernameRequest}, 269 {Path: "/v2/organizations/:organization_guid/users/:user_guid", Method: http.MethodPut, Name: PutOrganizationUserRequest}, 270 {Path: "/v2/organizations/:organization_guid/users/:user_guid", Method: http.MethodDelete, Name: DeleteOrganizationUserRequest}, 271 {Path: "/v2/private_domains", Method: http.MethodGet, Name: GetPrivateDomainsRequest}, 272 {Path: "/v2/private_domains", Method: http.MethodPost, Name: PostPrivateDomainRequest}, 273 {Path: "/v2/private_domains/:private_domain_guid", Method: http.MethodGet, Name: GetPrivateDomainRequest}, 274 {Path: "/v2/private_domains/:private_domain_guid", Method: http.MethodDelete, Name: DeletePrivateDomainRequest}, 275 {Path: "/v2/quota_definitions/:organization_quota_guid", Method: http.MethodGet, Name: GetOrganizationQuotaDefinitionRequest}, 276 {Path: "/v2/quota_definitions/:organization_quota_guid", Method: http.MethodPut, Name: PutOrganizationQuotaDefinitionRequest}, 277 {Path: "/v2/quota_definitions/:organization_quota_guid", Method: http.MethodDelete, Name: DeleteOrganizationQuotaDefinitionRequest}, 278 {Path: "/v2/quota_definitions", Method: http.MethodGet, Name: GetOrganizationQuotaDefinitionsRequest}, 279 {Path: "/v2/quota_definitions", Method: http.MethodPost, Name: PostOrganizationQuotaDefinitionsRequest}, 280 {Path: "/v2/resource_match", Method: http.MethodPut, Name: PutResourceMatchRequest}, 281 {Path: "/v2/route_mappings", Method: http.MethodGet, Name: GetRouteMappingsRequest}, 282 {Path: "/v2/route_mappings", Method: http.MethodPost, Name: PostRouteMappingsRequest}, 283 {Path: "/v2/route_mappings/:route_mapping_guid", Method: http.MethodGet, Name: GetRouteMappingRequest}, 284 {Path: "/v2/route_mappings/:route_mapping_guid", Method: http.MethodDelete, Name: DeleteRouteMappingRequest}, 285 {Path: "/v2/routes", Method: http.MethodGet, Name: GetRoutesRequest}, 286 {Path: "/v2/routes", Method: http.MethodPost, Name: PostRouteRequest}, 287 {Path: "/v2/routes/:route_guid", Method: http.MethodDelete, Name: DeleteRouteRequest}, 288 {Path: "/v2/routes/:route_guid", Method: http.MethodGet, Name: GetRouteRequest}, 289 {Path: "/v2/routes/:route_guid", Method: http.MethodPut, Name: PutRouteRequest}, 290 {Path: "/v2/routes/:route_guid/apps", Method: http.MethodGet, Name: GetRouteAppsRequest}, 291 {Path: "/v2/routes/:route_guid/apps/:app_guid", Method: http.MethodDelete, Name: DeleteRouteAppRequest}, 292 {Path: "/v2/routes/:route_guid/apps/:app_guid", Method: http.MethodPut, Name: PutRouteAppRequest}, 293 {Path: "/v2/routes/:route_guid/route_mappings", Method: http.MethodGet, Name: GetRouteRouteMappingsRequest}, 294 {Path: "/v2/routes/reserved/domain/:domain_guid", Method: http.MethodGet, Name: GetRouteReservedRequest}, 295 {Path: "/v2/routes/reserved/domain/:domain_guid/host/:host", Method: http.MethodGet, Name: GetRouteReservedDeprecatedRequest}, 296 {Path: "/v2/security_groups", Method: http.MethodGet, Name: GetSecurityGroupsRequest}, 297 {Path: "/v2/security_groups", Method: http.MethodPost, Name: PostSecurityGroupsRequest}, 298 {Path: "/v2/security_groups/:security_group_guid", Method: http.MethodPut, Name: PostSecurityGroupRequest}, 299 {Path: "/v2/security_groups/:security_group_guid", Method: http.MethodGet, Name: GetSecurityGroupRequest}, 300 {Path: "/v2/security_groups/:security_group_guid", Method: http.MethodDelete, Name: DeleteSecurityGroupRequest}, 301 {Path: "/v2/security_groups/:security_group_guid/spaces", Method: http.MethodGet, Name: GetSecurityGroupSpacesRequest}, 302 {Path: "/v2/security_groups/:security_group_guid/spaces/:space_guid", Method: http.MethodDelete, Name: DeleteSecurityGroupSpaceRequest}, 303 {Path: "/v2/security_groups/:security_group_guid/spaces/:space_guid", Method: http.MethodPut, Name: PutSecurityGroupSpaceRequest}, 304 {Path: "/v2/security_groups/:security_group_guid/staging_spaces", Method: http.MethodGet, Name: GetSecurityGroupStagingSpacesRequest}, 305 {Path: "/v2/security_groups/:security_group_guid/staging_spaces/:space_guid", Method: http.MethodDelete, Name: DeleteSecurityGroupStagingSpaceRequest}, 306 {Path: "/v2/security_groups/:security_group_guid/staging_spaces/:space_guid", Method: http.MethodPut, Name: PutSecurityGroupStagingSpaceRequest}, 307 {Path: "/v2/service_bindings", Method: http.MethodGet, Name: GetServiceBindingsRequest}, 308 {Path: "/v2/service_bindings", Method: http.MethodPost, Name: PostServiceBindingRequest}, 309 {Path: "/v2/service_bindings/:service_binding_guid", Method: http.MethodDelete, Name: DeleteServiceBindingRequest}, 310 {Path: "/v2/service_bindings/:service_binding_guid", Method: http.MethodGet, Name: GetServiceBindingRequest}, 311 {Path: "/v2/service_instances/:service_guid/routes", Method: http.MethodGet, Name: GetServiceBindingRoutesRequest}, 312 {Path: "/v2/service_instances/:service_guid/routes/:route_guid", Method: http.MethodPut, Name: PutServiceBindingRoutesRequest}, 313 {Path: "/v2/service_instances/:service_guid/routes/:route_guid", Method: http.MethodGet, Name: GetServiceBindingRouteRequest}, 314 {Path: "/v2/service_instances/:service_guid/routes/:route_guid", Method: http.MethodDelete, Name: DeleteServiceBindingRouteRequest}, 315 {Path: "/v2/service_brokers", Method: http.MethodGet, Name: GetServiceBrokersRequest}, 316 {Path: "/v2/service_brokers", Method: http.MethodPost, Name: PostServiceBrokerRequest}, 317 {Path: "/v2/service_brokers/:service_broker_guid", Method: http.MethodPut, Name: PutServiceBrokerRequest}, 318 {Path: "/v2/service_brokers/:service_broker_guid", Method: http.MethodDelete, Name: DeleteServiceBrokerRequest}, 319 {Path: "/v2/service_brokers/:service_broker_guid", Method: http.MethodGet, Name: GetServiceBrokerRequest}, 320 {Path: "/v2/service_instances", Method: http.MethodGet, Name: GetServiceInstancesRequest}, 321 {Path: "/v2/service_instances", Method: http.MethodPost, Name: PostServiceInstancesRequest}, 322 {Path: "/v2/service_instances/:service_instance_guid", Method: http.MethodGet, Name: GetServiceInstanceRequest}, 323 {Path: "/v2/service_instances/:service_instance_guid", Method: http.MethodPut, Name: PutServiceInstanceRequest}, 324 {Path: "/v2/service_instances/:service_instance_guid", Method: http.MethodDelete, Name: DeleteServiceInstanceRequest}, 325 {Path: "/v2/service_instances/:service_instance_guid/service_bindings", Method: http.MethodGet, Name: GetServiceInstanceServiceBindingsRequest}, 326 {Path: "/v2/service_instances/:service_instance_guid/shared_from", Method: http.MethodGet, Name: GetServiceInstanceSharedFromRequest}, 327 {Path: "/v2/service_instances/:service_instance_guid/shared_to", Method: http.MethodGet, Name: GetServiceInstanceSharedToRequest}, 328 {Path: "/v2/service_keys", Method: http.MethodPost, Name: PostServiceKeyRequest}, 329 {Path: "/v2/service_keys", Method: http.MethodGet, Name: GetServiceKeysRequest}, 330 {Path: "/v2/service_keys/:service_key_guid", Method: http.MethodGet, Name: GetServiceKeyRequest}, 331 {Path: "/v2/service_keys/:service_key_guid", Method: http.MethodDelete, Name: DeleteServiceKeyRequest}, 332 {Path: "/v2/service_plan_visibilities", Method: http.MethodGet, Name: GetServicePlanVisibilitiesRequest}, 333 {Path: "/v2/service_plan_visibilities", Method: http.MethodPost, Name: PostServicePlanVisibilityRequest}, 334 {Path: "/v2/service_plan_visibilities/:service_plan_visibility_guid", Method: http.MethodDelete, Name: DeleteServicePlanVisibilityRequest}, 335 {Path: "/v2/service_plan_visibilities/:service_plan_visibility_guid", Method: http.MethodGet, Name: GetServicePlanVisibilityRequest}, 336 {Path: "/v2/service_plan_visibilities/:service_plan_visibility_guid", Method: http.MethodPut, Name: PutServicePlanVisibilityRequest}, 337 {Path: "/v2/service_plans", Method: http.MethodGet, Name: GetServicePlansRequest}, 338 {Path: "/v2/service_plans/:service_plan_guid", Method: http.MethodPut, Name: PutServicePlanRequest}, 339 {Path: "/v2/service_plans/:service_plan_guid", Method: http.MethodDelete, Name: DeleteServicePlanRequest}, 340 {Path: "/v2/service_plans/:service_plan_guid", Method: http.MethodGet, Name: GetServicePlanRequest}, 341 {Path: "/v2/services", Method: http.MethodGet, Name: GetServicesRequest}, 342 {Path: "/v2/services", Method: http.MethodPost, Name: PostServicesRequest}, 343 {Path: "/v2/services/:service_guid", Method: http.MethodGet, Name: GetServiceRequest}, 344 {Path: "/v2/services/:service_guid", Method: http.MethodPut, Name: PutServiceRequest}, 345 {Path: "/v2/services/:service_guid", Method: http.MethodDelete, Name: DeleteServiceRequest}, 346 {Path: "/v2/shared_domains", Method: http.MethodGet, Name: GetSharedDomainsRequest}, 347 {Path: "/v2/shared_domains", Method: http.MethodPost, Name: PostSharedDomainRequest}, 348 {Path: "/v2/shared_domains/:shared_domain_guid", Method: http.MethodGet, Name: GetSharedDomainRequest}, 349 {Path: "/v2/shared_domains/:shared_domain_guid", Method: http.MethodDelete, Name: DeleteSharedDomainRequest}, 350 {Path: "/v2/organizations/:space_guid/space_quota_definitions", Method: http.MethodGet, Name: GetOrganizationSpaceQuotasRequest}, 351 {Path: "/v2/space_quota_definitions/:space_quota_guid/spaces/:space_guid", Method: http.MethodPut, Name: PutSpaceQuotaRequest}, 352 {Path: "/v2/space_quota_definitions/:space_quota_guid/spaces/:space_guid", Method: http.MethodDelete, Name: DeleteSpaceQuotaRequest}, 353 {Path: "/v2/space_quota_definitions", Method: http.MethodGet, Name: GetSpaceQuotaDefinitionsRequest}, 354 {Path: "/v2/space_quota_definitions", Method: http.MethodPost, Name: PostSpaceQuotaDefinitionsRequest}, 355 {Path: "/v2/space_quota_definitions/:space_quota_guid", Method: http.MethodGet, Name: GetSpaceQuotaDefinitionRequest}, 356 {Path: "/v2/space_quota_definitions/:space_quota_guid", Method: http.MethodDelete, Name: DeleteSpaceQuotaDefinitionRequest}, 357 {Path: "/v2/space_quota_definitions/:space_quota_guid", Method: http.MethodPut, Name: PutSpaceQuotaDefinitionRequest}, 358 {Path: "/v2/spaces/:space_guid/summary", Method: http.MethodGet, Name: GetSpaceSummaryRequest}, 359 {Path: "/v2/spaces", Method: http.MethodGet, Name: GetSpacesRequest}, 360 {Path: "/v2/spaces", Method: http.MethodPost, Name: PostSpaceRequest}, 361 {Path: "/v2/spaces/:space_guid/developers", Method: http.MethodPut, Name: PutSpaceDeveloperByUsernameRequest}, 362 {Path: "/v2/spaces/:space_guid/developers/remove", Method: http.MethodPost, Name: DeleteSpaceDeveloperByUsernameRequest}, 363 {Path: "/v2/spaces/:space_guid/developers", Method: http.MethodGet, Name: GetSpaceDevelopersRequest}, 364 {Path: "/v2/spaces/:space_guid/auditors", Method: http.MethodPut, Name: PutSpaceAuditorByUsernameRequest}, 365 {Path: "/v2/spaces/:space_guid/auditors/remove", Method: http.MethodPost, Name: DeleteSpaceAuditorByUsernameRequest}, 366 {Path: "/v2/spaces/:space_guid/auditors", Method: http.MethodGet, Name: GetSpaceAuditorsRequest}, 367 {Path: "/v2/spaces/:space_guid/managers", Method: http.MethodGet, Name: GetSpaceManagersRequest}, 368 {Path: "/v2/spaces/:space_guid/developers/:developer_guid", Method: http.MethodPut, Name: PutSpaceDeveloperRequest}, 369 {Path: "/v2/spaces/:space_guid/auditors/:auditor_guid", Method: http.MethodPut, Name: PutSpaceAuditorRequest}, 370 {Path: "/v2/spaces/:space_guid/developers/:developer_guid", Method: http.MethodDelete, Name: DeleteSpaceDeveloperRequest}, 371 {Path: "/v2/spaces/:space_guid/auditors/:auditor_guid", Method: http.MethodDelete, Name: DeleteSpaceAuditorRequest}, 372 {Path: "/v2/spaces/:guid/service_instances", Method: http.MethodGet, Name: GetSpaceServiceInstancesRequest}, 373 {Path: "/v2/spaces/:space_guid/services", Method: http.MethodGet, Name: GetSpaceServicesRequest}, 374 {Path: "/v2/spaces/:space_guid", Method: http.MethodDelete, Name: DeleteSpaceRequest}, 375 {Path: "/v2/spaces/:space_guid", Method: http.MethodGet, Name: GetSpaceRequest}, 376 {Path: "/v2/spaces/:space_guid", Method: http.MethodPut, Name: PutSpaceRequest}, 377 {Path: "/v2/spaces/:space_guid/routes", Method: http.MethodGet, Name: GetSpaceRoutesRequest}, 378 {Path: "/v2/spaces/:space_guid/security_groups", Method: http.MethodGet, Name: GetSpaceSecurityGroupsRequest}, 379 {Path: "/v2/spaces/:space_guid/staging_security_groups", Method: http.MethodGet, Name: GetSpaceStagingSecurityGroupsRequest}, 380 {Path: "/v2/spaces/:space_guid/managers", Method: http.MethodPut, Name: PutSpaceManagerByUsernameRequest}, 381 {Path: "/v2/spaces/:space_guid/managers/remove", Method: http.MethodPost, Name: DeleteSpaceManagerByUsernameRequest}, 382 {Path: "/v2/spaces/:space_guid/managers/:manager_guid", Method: http.MethodPut, Name: PutSpaceManagerRequest}, 383 {Path: "/v2/spaces/:space_guid/managers/:manager_guid", Method: http.MethodDelete, Name: DeleteSpaceManagerRequest}, 384 {Path: "/v2/spaces/:space_guid/unmapped_routes", Method: http.MethodDelete, Name: DeleteSpaceUnmappedRoutesRequest}, 385 {Path: "/v2/stacks", Method: http.MethodGet, Name: GetStacksRequest}, 386 {Path: "/v2/stacks/:stack_guid", Method: http.MethodGet, Name: GetStackRequest}, 387 {Path: "/v2/user_provided_service_instances", Method: http.MethodGet, Name: GetUserProvidedServiceInstancesRequest}, 388 {Path: "/v2/user_provided_service_instances", Method: http.MethodPost, Name: PostUserProvidedServiceInstancesRequest}, 389 {Path: "/v2/user_provided_service_instances/:user_provided_service_instance_guid", Method: http.MethodPut, Name: PutUserProvidedServiceInstanceRequest}, 390 {Path: "/v2/user_provided_service_instances/:user_provided_service_instance_guid", Method: http.MethodGet, Name: GetUserProvidedServiceInstanceRequest}, 391 {Path: "/v2/user_provided_service_instances/:user_provided_service_instance_guid", Method: http.MethodDelete, Name: DeleteUserProvidedServiceInstanceRequest}, 392 {Path: "/v2/user_provided_service_instances/:user_provided_service_instance_guid/service_bindings", Method: http.MethodGet, Name: GetUserProvidedServiceInstanceServiceBindingsRequest}, 393 {Path: "/v2/user_provided_service_instances/:service_guid/routes", Method: http.MethodGet, Name: GetUserProvidedServiceInstanceRoutesRequest}, 394 {Path: "/v2/user_provided_service_instances/:service_guid/routes/:route_guid", Method: http.MethodDelete, Name: DeleteUserProvidedServiceInstanceRoutesRequest}, 395 {Path: "/v2/users", Method: http.MethodPost, Name: PostUserRequest}, 396 {Path: "/v2/users", Method: http.MethodGet, Name: GetUsersRequest}, 397 {Path: "/v2/users/:user_guid/organizations", Method: http.MethodGet, Name: GetUserOrganizationsRequest}, 398 {Path: "/v2/users/:user_guid/spaces", Method: http.MethodGet, Name: GetUserSpacesRequest}, 399 }