{"modulePath":"code.cloudfoundry.org/cli","version":"v7.1.0+incompatible","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package internal\n\n## Constants\n\n```go\nconst (\n\tAppsResource                      = \"apps\"\n\tBuildpacksResource                = \"buildpacks\"\n\tBuildsResource                    = \"builds\"\n\tDeploymentsResource               = \"deployments\"\n\tDomainsResource                   = \"domains\"\n\tDropletsResource                  = \"droplets\"\n\tEventsResource                    = \"audit_events\"\n\tEnvironmentVariableGroupsResource = \"environment_variable_groups\"\n\tFeatureFlagsResource              = \"feature_flags\"\n\tIsolationSegmentsResource         = \"isolation_segments\"\n\tOrgsResource                      = \"organizations\"\n\tOrgQuotasResource                 = \"organization_quotas\"\n\tPackagesResource                  = \"packages\"\n\tProcessesResource                 = \"processes\"\n\tResourceMatches                   = \"resource_matches\"\n\tSecurityGroupsResource            = \"security_groups\"\n\tServiceBrokersResource            = \"service_brokers\"\n\tRolesResource                     = \"roles\"\n\tRoutesResource                    = \"routes\"\n\tServiceInstancesResource          = \"service_instances\"\n\tServiceOfferingsResource          = \"service_offerings\"\n\tServicePlansResource              = \"service_plans\"\n\tSpaceQuotasResource               = \"space_quotas\"\n\tSpacesResource                    = \"spaces\"\n\tStacksResource                    = \"stacks\"\n\tTasksResource                     = \"tasks\"\n\tUsersResource                     = \"users\"\n)\n```\nWhen adding a resource, also add it to the api/cloudcontroller/ccv3/ccv3\\_suite\\_test.go resources response\n\n```go\nconst (\n\tDeleteApplicationProcessInstanceRequest                     = \"DeleteApplicationProcessInstance\"\n\tDeleteApplicationRequest                                    = \"DeleteApplication\"\n\tDeleteBuildpackRequest                                      = \"DeleteBuildpack\"\n\tDeleteDomainRequest                                         = \"DeleteDomainRequest\"\n\tDeleteIsolationSegmentRelationshipOrganizationRequest       = \"DeleteIsolationSegmentRelationshipOrganization\"\n\tDeleteIsolationSegmentRequest                               = \"DeleteIsolationSegment\"\n\tDeleteOrganizationRequest                                   = \"DeleteOrganization\"\n\tDeleteOrganizationQuotaRequest                              = \"DeleteOrganizationQuota\"\n\tDeleteOrphanedRoutesRequest                                 = \"DeleteOrphanedRoutes\"\n\tDeleteRouteRequest                                          = \"DeleteRouteRequest\"\n\tDeleteRoleRequest                                           = \"DeleteRoleRequest\"\n\tDeleteSecurityGroupRequest                                  = \"DeleteSecurityGroup\"\n\tDeleteSecurityGroupStagingSpaceRequest                      = \"DeleteSecurityGroupStagingSpace\"\n\tDeleteSecurityGroupRunningSpaceRequest                      = \"DeleteSecurityGroupRunningSpace\"\n\tDeleteServiceBrokerRequest                                  = \"DeleteServiceBrokerRequest\"\n\tDeleteServiceInstanceRelationshipsSharedSpaceRequest        = \"DeleteServiceInstanceRelationshipsSharedSpace\"\n\tDeleteServiceOfferingRequest                                = \"DeleteServiceOffering\"\n\tDeleteServicePlanVisibilityRequest                          = \"DeleteServicePlanVisibility\"\n\tDeleteSharedOrgFromDomainRequest                            = \"DeleteSharedOrgFromDomain\"\n\tDeleteSpaceQuotaRequest                                     = \"DeleteSpaceQuota\"\n\tDeleteSpaceRequest                                          = \"DeleteSpace\"\n\tDeleteSpaceQuotaFromSpaceRequest                            = \"DeleteSpaceQuotaFromSpace\"\n\tDeleteUserRequest                                           = \"DeleteUser\"\n\tGetApplicationDropletCurrentRequest                         = \"GetApplicationDropletCurrent\"\n\tGetApplicationEnvRequest                                    = \"GetApplicationEnv\"\n\tGetApplicationFeaturesRequest                               = \"GetApplicationFeatures\"\n\tGetApplicationManifestRequest                               = \"GetApplicationManifest\"\n\tGetApplicationProcessRequest                                = \"GetApplicationProcess\"\n\tGetApplicationProcessesRequest                              = \"GetApplicationProcesses\"\n\tGetApplicationRevisionsRequest                              = \"GetApplicationRevisions\"\n\tGetApplicationRoutesRequest                                 = \"GetApplicationRoutes\"\n\tGetApplicationTasksRequest                                  = \"GetApplicationTasks\"\n\tGetApplicationsRequest                                      = \"GetApplications\"\n\tGetBuildRequest                                             = \"GetBuild\"\n\tGetBuildpacksRequest                                        = \"GetBuildpacks\"\n\tGetDefaultDomainRequest                                     = \"GetDefaultDomain\"\n\tGetDeploymentRequest                                        = \"GetDeployment\"\n\tGetDeploymentsRequest                                       = \"GetDeployments\"\n\tGetDomainRequest                                            = \"GetDomain\"\n\tGetDomainRouteReservationsRequest                           = \"GetDomainRouteReservations\"\n\tGetDomainsRequest                                           = \"GetDomains\"\n\tGetDropletRequest                                           = \"GetDroplet\"\n\tGetDropletsRequest                                          = \"GetDroplets\"\n\tGetDropletBitsRequest                                       = \"GetDropletBits\"\n\tGetEnvironmentVariableGroupRequest                          = \"GetEnvironmentVariableGroup\"\n\tGetEventsRequest                                            = \"GetEvents\"\n\tGetFeatureFlagRequest                                       = \"GetFeatureFlag\"\n\tGetFeatureFlagsRequest                                      = \"GetFeatureFlags\"\n\tGetIsolationSegmentOrganizationsRequest                     = \"GetIsolationSegmentOrganizations\"\n\tGetIsolationSegmentRequest                                  = \"GetIsolationSegment\"\n\tGetIsolationSegmentsRequest                                 = \"GetIsolationSegments\"\n\tGetOrganizationDomainsRequest                               = \"GetOrganizationDomains\"\n\tGetOrganizationQuotasRequest                                = \"GetOrganizationQuotas\"\n\tGetOrganizationQuotaRequest                                 = \"GetOrganizationQuota\"\n\tGetOrganizationRelationshipDefaultIsolationSegmentRequest   = \"GetOrganizationRelationshipDefaultIsolationSegment\"\n\tGetOrganizationRequest                                      = \"GetOrganization\"\n\tGetOrganizationsRequest                                     = \"GetOrganizations\"\n\tGetPackageRequest                                           = \"GetPackage\"\n\tGetPackagesRequest                                          = \"GetPackages\"\n\tGetPackageDropletsRequest                                   = \"GetPackageDroplets\"\n\tGetProcessRequest                                           = \"GetProcess\"\n\tGetProcessesRequest                                         = \"GetProcesses\"\n\tGetProcessStatsRequest                                      = \"GetProcessStats\"\n\tGetProcessSidecarsRequest                                   = \"GetProcessSidecars\"\n\tGetRolesRequest                                             = \"GetRoles\"\n\tGetRouteDestinationsRequest                                 = \"GetRouteDestinations\"\n\tGetRoutesRequest                                            = \"GetRoutes\"\n\tGetSecurityGroupsRequest                                    = \"GetSecurityGroups\"\n\tGetServiceBrokersRequest                                    = \"GetServiceBrokers\"\n\tGetServiceInstancesRequest                                  = \"GetServiceInstances\"\n\tGetServiceOfferingsRequest                                  = \"GetServiceOfferings\"\n\tGetServicePlansRequest                                      = \"GetServicePlans\"\n\tGetServicePlanVisibilityRequest                             = \"GetServicePlanVisibility\"\n\tGetSpaceFeatureRequest                                      = \"GetSpaceFeatureRequest\"\n\tGetSpaceRelationshipIsolationSegmentRequest                 = \"GetSpaceRelationshipIsolationSegment\"\n\tGetSpaceRunningSecurityGroupsRequest                        = \"GetSpaceRunningSecurityGroups\"\n\tGetSpacesRequest                                            = \"GetSpaces\"\n\tGetSpaceQuotaRequest                                        = \"GetSpaceQuota\"\n\tGetSpaceQuotasRequest                                       = \"GetSpaceQuotas\"\n\tGetSpaceStagingSecurityGroupsRequest                        = \"GetSpaceStagingSecurityGroups\"\n\tGetSSHEnabled                                               = \"GetSSHEnabled\"\n\tGetStacksRequest                                            = \"GetStacks\"\n\tGetUserRequest                                              = \"GetUser\"\n\tGetUsersRequest                                             = \"GetUsers\"\n\tMapRouteRequest                                             = \"MapRoute\"\n\tPatchApplicationCurrentDropletRequest                       = \"PatchApplicationCurrentDroplet\"\n\tPatchApplicationEnvironmentVariablesRequest                 = \"PatchApplicationEnvironmentVariables\"\n\tPatchApplicationRequest                                     = \"PatchApplication\"\n\tPatchApplicationFeaturesRequest                             = \"PatchApplicationFeatures\"\n\tPatchEnvironmentVariableGroupRequest                        = \"PatchEnvironmentVariableGroup\"\n\tPatchBuildpackRequest                                       = \"PatchBuildpack\"\n\tPatchDomainRequest                                          = \"PatchDomain\"\n\tPatchFeatureFlagRequest                                     = \"PatchFeatureFlag\"\n\tPatchOrganizationRelationshipDefaultIsolationSegmentRequest = \"PatchOrganizationRelationshipDefaultIsolationSegment\"\n\tPatchOrganizationRequest                                    = \"PatchOrganization\"\n\tPatchOrganizationQuotaRequest                               = \"PatchOrganizationQuota\"\n\tPatchProcessRequest                                         = \"PatchProcess\"\n\tPatchRouteRequest                                           = \"PatchRoute\"\n\tPatchSecurityGroupRequest                                   = \"PatchSecurityGroup\"\n\tPatchServiceBrokerRequest                                   = \"PatchServiceBrokerRequest\"\n\tPatchServiceOfferingRequest                                 = \"PatchServiceOfferingRequest\"\n\tPatchServicePlanRequest                                     = \"PatchServicePlanRequest\"\n\tPatchSpaceRelationshipIsolationSegmentRequest               = \"PatchSpaceRelationshipIsolationSegment\"\n\tPatchSpaceRequest                                           = \"PatchSpace\"\n\tPatchSpaceFeaturesRequest                                   = \"PatchSpaceFeatures\"\n\tPatchSpaceQuotaRequest                                      = \"PatchSpaceQuota\"\n\tPatchStackRequest                                           = \"PatchStack\"\n\tPostApplicationActionApplyManifest                          = \"PostApplicationActionApplyM\"\n\tPostApplicationActionRestartRequest                         = \"PostApplicationActionRestart\"\n\tPostApplicationActionStartRequest                           = \"PostApplicationActionStart\"\n\tPostApplicationActionStopRequest                            = \"PostApplicationActionStop\"\n\tPostApplicationDeploymentActionCancelRequest                = \"PostApplicationDeploymentActionCancel\"\n\tPostApplicationDeploymentRequest                            = \"PostApplicationDeployment\"\n\tPostApplicationProcessActionScaleRequest                    = \"PostApplicationProcessActionScale\"\n\tPostApplicationRequest                                      = \"PostApplication\"\n\tPostApplicationTasksRequest                                 = \"PostApplicationTasks\"\n\tPostBuildRequest                                            = \"PostBuild\"\n\tPostBuildpackBitsRequest                                    = \"PostBuildpackBits\"\n\tPostBuildpackRequest                                        = \"PostBuildpack\"\n\tPostDomainRequest                                           = \"PostDomain\"\n\tPostDropletBitsRequest                                      = \"PostDropletBits\"\n\tPostDropletRequest                                          = \"PostDroplet\"\n\tPostIsolationSegmentRelationshipOrganizationsRequest        = \"PostIsolationSegmentRelationshipOrganizations\"\n\tPostIsolationSegmentsRequest                                = \"PostIsolationSegments\"\n\tPostOrganizationRequest                                     = \"PostOrganization\"\n\tPostOrganizationQuotaRequest                                = \"PostOrganizationQuota\"\n\tPostOrganizationQuotaApplyRequest                           = \"PostOrganizationQuotaApply\"\n\tPostPackageRequest                                          = \"PostPackage\"\n\tPostPackageBitsRequest                                      = \"PostPackageBits\"\n\tPostResourceMatchesRequest                                  = \"PostResourceMatches\"\n\tPostRoleRequest                                             = \"PostRole\"\n\tPostRouteRequest                                            = \"PostRoute\"\n\tPostSecurityGroupRequest                                    = \"PostSecurityGroup\"\n\tPostSecurityGroupStagingSpaceRequest                        = \"PostSecurityGroupStagingSpace\"\n\tPostSecurityGroupRunningSpaceRequest                        = \"PostSecurityGroupRunningSpace\"\n\tPostServiceBrokerRequest                                    = \"PostServiceBroker\"\n\tPostServiceInstanceRelationshipsSharedSpacesRequest         = \"PostServiceInstanceRelationshipsSharedSpaces\"\n\tPostServicePlanVisibilityRequest                            = \"PostServicePlanVisibility\"\n\tPostSpaceActionApplyManifestRequest                         = \"PostSpaceActionApplyManifest\"\n\tPostSpaceRequest                                            = \"PostSpace\"\n\tPostSpaceQuotaRequest                                       = \"PostSpaceQuota\"\n\tPostSpaceQuotaRelationshipsRequest                          = \"PostSpaceQuotaRelationships\"\n\tPostUserRequest                                             = \"PostUser\"\n\tPutTaskCancelRequest                                        = \"PutTaskCancel\"\n\tSharePrivateDomainRequest                                   = \"SharePrivateDomainRequest\"\n\tUnmapRouteRequest                                           = \"UnmapRoute\"\n)\n```\nNaming convention:\n\nHTTP method + non-parameter parts of the path + \"Request\"\n\nIf the request returns a single entity by GUID, use the singular (for example /v3/organizations/:organization\\_guid is GetOrganization).\n\n## Variables\n\n```go\nvar APIRoutes = []Route{\n\t{Resource: AppsResource, Path: \"/\", Method: http.MethodGet, Name: GetApplicationsRequest},\n\t{Resource: AppsResource, Path: \"/\", Method: http.MethodPost, Name: PostApplicationRequest},\n\t{Resource: AppsResource, Path: \"/:app_guid\", Method: http.MethodDelete, Name: DeleteApplicationRequest},\n\t{Resource: AppsResource, Path: \"/:app_guid\", Method: http.MethodPatch, Name: PatchApplicationRequest},\n\t{Resource: AppsResource, Path: \"/:app_guid/features/:name\", Method: http.MethodPatch, Name: PatchApplicationFeaturesRequest},\n\t{Resource: AppsResource, Path: \"/:app_guid/features/:name\", Method: http.MethodGet, Name: GetApplicationFeaturesRequest},\n\t{Resource: AppsResource, Path: \"/:app_guid/actions/apply_manifest\", Method: http.MethodPost, Name: PostApplicationActionApplyManifest},\n\t{Resource: AppsResource, Path: \"/:app_guid/actions/restart\", Method: http.MethodPost, Name: PostApplicationActionRestartRequest},\n\t{Resource: AppsResource, Path: \"/:app_guid/actions/start\", Method: http.MethodPost, Name: PostApplicationActionStartRequest},\n\t{Resource: AppsResource, Path: \"/:app_guid/actions/stop\", Method: http.MethodPost, Name: PostApplicationActionStopRequest},\n\t{Resource: AppsResource, Path: \"/:app_guid/droplets/current\", Method: http.MethodGet, Name: GetApplicationDropletCurrentRequest},\n\t{Resource: AppsResource, Path: \"/:app_guid/env\", Method: http.MethodGet, Name: GetApplicationEnvRequest},\n\t{Resource: AppsResource, Path: \"/:app_guid/environment_variables\", Method: http.MethodPatch, Name: PatchApplicationEnvironmentVariablesRequest},\n\t{Resource: AppsResource, Path: \"/:app_guid/manifest\", Method: http.MethodGet, Name: GetApplicationManifestRequest},\n\t{Resource: AppsResource, Path: \"/:app_guid/processes\", Method: http.MethodGet, Name: GetApplicationProcessesRequest},\n\t{Resource: AppsResource, Path: \"/:app_guid/processes/:type\", Method: http.MethodGet, Name: GetApplicationProcessRequest},\n\t{Resource: AppsResource, Path: \"/:app_guid/processes/:type/actions/scale\", Method: http.MethodPost, Name: PostApplicationProcessActionScaleRequest},\n\t{Resource: AppsResource, Path: \"/:app_guid/processes/:type/instances/:index\", Method: http.MethodDelete, Name: DeleteApplicationProcessInstanceRequest},\n\t{Resource: AppsResource, Path: \"/:app_guid/relationships/current_droplet\", Method: http.MethodPatch, Name: PatchApplicationCurrentDropletRequest},\n\t{Resource: AppsResource, Path: \"/:app_guid/revisions\", Method: http.MethodGet, Name: GetApplicationRevisionsRequest},\n\t{Resource: AppsResource, Path: \"/:app_guid/routes\", Method: http.MethodGet, Name: GetApplicationRoutesRequest},\n\t{Resource: AppsResource, Path: \"/:app_guid/ssh_enabled\", Method: http.MethodGet, Name: GetSSHEnabled},\n\t{Resource: AppsResource, Path: \"/:app_guid/tasks\", Method: http.MethodGet, Name: GetApplicationTasksRequest},\n\t{Resource: AppsResource, Path: \"/:app_guid/tasks\", Method: http.MethodPost, Name: PostApplicationTasksRequest},\n\t{Resource: BuildpacksResource, Path: \"/\", Method: http.MethodGet, Name: GetBuildpacksRequest},\n\t{Resource: BuildpacksResource, Path: \"/\", Method: http.MethodPost, Name: PostBuildpackRequest},\n\t{Resource: BuildpacksResource, Path: \"/:buildpack_guid\", Method: http.MethodDelete, Name: DeleteBuildpackRequest},\n\t{Resource: BuildpacksResource, Path: \"/:buildpack_guid\", Method: http.MethodPatch, Name: PatchBuildpackRequest},\n\t{Resource: BuildpacksResource, Path: \"/:buildpack_guid/upload\", Method: http.MethodPost, Name: PostBuildpackBitsRequest},\n\t{Resource: BuildsResource, Path: \"/\", Method: http.MethodPost, Name: PostBuildRequest},\n\t{Resource: BuildsResource, Path: \"/:build_guid\", Method: http.MethodGet, Name: GetBuildRequest},\n\t{Resource: DeploymentsResource, Path: \"/\", Method: http.MethodGet, Name: GetDeploymentsRequest},\n\t{Resource: DeploymentsResource, Path: \"/\", Method: http.MethodPost, Name: PostApplicationDeploymentRequest},\n\t{Resource: DeploymentsResource, Path: \"/:deployment_guid\", Method: http.MethodGet, Name: GetDeploymentRequest},\n\t{Resource: DeploymentsResource, Path: \"/:deployment_guid/actions/cancel\", Method: http.MethodPost, Name: PostApplicationDeploymentActionCancelRequest},\n\t{Resource: DomainsResource, Path: \"/\", Method: http.MethodGet, Name: GetDomainsRequest},\n\t{Resource: DomainsResource, Path: \"/\", Method: http.MethodPost, Name: PostDomainRequest},\n\t{Resource: DomainsResource, Path: \"/:domain_guid\", Method: http.MethodDelete, Name: DeleteDomainRequest},\n\t{Resource: DomainsResource, Path: \"/:domain_guid\", Method: http.MethodGet, Name: GetDomainRequest},\n\t{Resource: DomainsResource, Path: \"/:domain_guid\", Method: http.MethodPatch, Name: PatchDomainRequest},\n\t{Resource: DomainsResource, Path: \"/:domain_guid/relationships/shared_organizations\", Method: http.MethodPost, Name: SharePrivateDomainRequest},\n\t{Resource: DomainsResource, Path: \"/:domain_guid/relationships/shared_organizations/:org_guid\", Method: http.MethodDelete, Name: DeleteSharedOrgFromDomainRequest},\n\t{Resource: DomainsResource, Path: \"/:domain_guid/route_reservations\", Method: http.MethodGet, Name: GetDomainRouteReservationsRequest},\n\t{Resource: DropletsResource, Path: \"/\", Method: http.MethodGet, Name: GetDropletsRequest},\n\t{Resource: DropletsResource, Path: \"/\", Method: http.MethodPost, Name: PostDropletRequest},\n\t{Resource: DropletsResource, Path: \"/:droplet_guid\", Method: http.MethodGet, Name: GetDropletRequest},\n\t{Resource: DropletsResource, Path: \"/:droplet_guid/upload\", Method: http.MethodPost, Name: PostDropletBitsRequest},\n\t{Resource: DropletsResource, Path: \"/:droplet_guid/download\", Method: http.MethodGet, Name: GetDropletBitsRequest},\n\t{Resource: EnvironmentVariableGroupsResource, Path: \"/:group_name\", Method: http.MethodGet, Name: GetEnvironmentVariableGroupRequest},\n\t{Resource: EnvironmentVariableGroupsResource, Path: \"/:group_name\", Method: http.MethodPatch, Name: PatchEnvironmentVariableGroupRequest},\n\t{Resource: EventsResource, Path: \"/\", Method: http.MethodGet, Name: GetEventsRequest},\n\t{Resource: FeatureFlagsResource, Path: \"/\", Method: http.MethodGet, Name: GetFeatureFlagsRequest},\n\t{Resource: FeatureFlagsResource, Path: \"/:name\", Method: http.MethodGet, Name: GetFeatureFlagRequest},\n\t{Resource: FeatureFlagsResource, Path: \"/:name\", Method: http.MethodPatch, Name: PatchFeatureFlagRequest},\n\t{Resource: IsolationSegmentsResource, Path: \"/\", Method: http.MethodGet, Name: GetIsolationSegmentsRequest},\n\t{Resource: IsolationSegmentsResource, Path: \"/\", Method: http.MethodPost, Name: PostIsolationSegmentsRequest},\n\t{Resource: IsolationSegmentsResource, Path: \"/:isolation_segment_guid\", Method: http.MethodDelete, Name: DeleteIsolationSegmentRequest},\n\t{Resource: IsolationSegmentsResource, Path: \"/:isolation_segment_guid\", Method: http.MethodGet, Name: GetIsolationSegmentRequest},\n\t{Resource: IsolationSegmentsResource, Path: \"/:isolation_segment_guid/organizations\", Method: http.MethodGet, Name: GetIsolationSegmentOrganizationsRequest},\n\t{Resource: IsolationSegmentsResource, Path: \"/:isolation_segment_guid/relationships/organizations\", Method: http.MethodPost, Name: PostIsolationSegmentRelationshipOrganizationsRequest},\n\t{Resource: IsolationSegmentsResource, Path: \"/:isolation_segment_guid/relationships/organizations/:organization_guid\", Method: http.MethodDelete, Name: DeleteIsolationSegmentRelationshipOrganizationRequest},\n\t{Resource: OrgsResource, Path: \"/\", Method: http.MethodGet, Name: GetOrganizationsRequest},\n\t{Resource: OrgsResource, Path: \"/\", Method: http.MethodPost, Name: PostOrganizationRequest},\n\t{Resource: OrgsResource, Path: \"/:organization_guid\", Method: http.MethodGet, Name: GetOrganizationRequest},\n\t{Resource: OrgsResource, Path: \"/:organization_guid/\", Method: http.MethodDelete, Name: DeleteOrganizationRequest},\n\t{Resource: OrgsResource, Path: \"/:organization_guid/\", Method: http.MethodPatch, Name: PatchOrganizationRequest},\n\t{Resource: OrgsResource, Path: \"/:organization_guid/domains\", Method: http.MethodGet, Name: GetOrganizationDomainsRequest},\n\t{Resource: OrgsResource, Path: \"/:organization_guid/domains/default\", Method: http.MethodGet, Name: GetDefaultDomainRequest},\n\t{Resource: OrgsResource, Path: \"/:organization_guid/relationships/default_isolation_segment\", Method: http.MethodGet, Name: GetOrganizationRelationshipDefaultIsolationSegmentRequest},\n\t{Resource: OrgsResource, Path: \"/:organization_guid/relationships/default_isolation_segment\", Method: http.MethodPatch, Name: PatchOrganizationRelationshipDefaultIsolationSegmentRequest},\n\t{Resource: OrgQuotasResource, Path: \"/:quota_guid\", Method: http.MethodPatch, Name: PatchOrganizationQuotaRequest},\n\t{Resource: OrgQuotasResource, Path: \"/\", Method: http.MethodPost, Name: PostOrganizationQuotaRequest},\n\t{Resource: OrgQuotasResource, Path: \"/:quota_guid/relationships/organizations\", Method: http.MethodPost, Name: PostOrganizationQuotaApplyRequest},\n\t{Resource: OrgQuotasResource, Path: \"/:quota_guid\", Method: http.MethodGet, Name: GetOrganizationQuotaRequest},\n\t{Resource: OrgQuotasResource, Path: \"/\", Method: http.MethodGet, Name: GetOrganizationQuotasRequest},\n\t{Resource: OrgQuotasResource, Path: \"/:quota_guid\", Method: http.MethodDelete, Name: DeleteOrganizationQuotaRequest},\n\t{Resource: PackagesResource, Path: \"/\", Method: http.MethodGet, Name: GetPackagesRequest},\n\t{Resource: PackagesResource, Path: \"/\", Method: http.MethodPost, Name: PostPackageRequest},\n\t{Resource: PackagesResource, Path: \"/:package_guid\", Method: http.MethodGet, Name: GetPackageRequest},\n\t{Resource: PackagesResource, Path: \"/:package_guid/upload\", Method: http.MethodPost, Name: PostPackageBitsRequest},\n\t{Resource: PackagesResource, Path: \"/:package_guid/droplets\", Method: http.MethodGet, Name: GetPackageDropletsRequest},\n\t{Resource: ProcessesResource, Path: \"/:process_guid\", Method: http.MethodGet, Name: GetProcessRequest},\n\t{Resource: ProcessesResource, Path: \"/\", Method: http.MethodGet, Name: GetProcessesRequest},\n\t{Resource: ProcessesResource, Path: \"/:process_guid\", Method: http.MethodPatch, Name: PatchProcessRequest},\n\t{Resource: ProcessesResource, Path: \"/:process_guid/stats\", Method: http.MethodGet, Name: GetProcessStatsRequest},\n\t{Resource: ProcessesResource, Path: \"/:process_guid/sidecars\", Method: http.MethodGet, Name: GetProcessSidecarsRequest},\n\t{Resource: ResourceMatches, Path: \"/\", Method: http.MethodPost, Name: PostResourceMatchesRequest},\n\t{Resource: RolesResource, Path: \"/\", Method: http.MethodGet, Name: GetRolesRequest},\n\t{Resource: RolesResource, Path: \"/\", Method: http.MethodPost, Name: PostRoleRequest},\n\t{Resource: RoutesResource, Path: \"/\", Method: http.MethodGet, Name: GetRoutesRequest},\n\t{Resource: RoutesResource, Path: \"/\", Method: http.MethodPost, Name: PostRouteRequest},\n\t{Resource: RoutesResource, Path: \"/:route_guid\", Method: http.MethodDelete, Name: DeleteRouteRequest},\n\t{Resource: RoutesResource, Path: \"/:route_guid\", Method: http.MethodPatch, Name: PatchRouteRequest},\n\t{Resource: RoutesResource, Path: \"/:route_guid/destinations\", Method: http.MethodGet, Name: GetRouteDestinationsRequest},\n\t{Resource: RoutesResource, Path: \"/:route_guid/destinations\", Method: http.MethodPost, Name: MapRouteRequest},\n\t{Resource: RoutesResource, Path: \"/:route_guid/destinations/:destination_guid\", Method: http.MethodDelete, Name: UnmapRouteRequest},\n\t{Resource: RolesResource, Path: \"/:role_guid\", Method: http.MethodDelete, Name: DeleteRoleRequest},\n\t{Resource: SecurityGroupsResource, Path: \"/\", Method: http.MethodGet, Name: GetSecurityGroupsRequest},\n\t{Resource: SecurityGroupsResource, Path: \"/\", Method: http.MethodPost, Name: PostSecurityGroupRequest},\n\t{Resource: SecurityGroupsResource, Path: \"/:security_group_guid\", Method: http.MethodDelete, Name: DeleteSecurityGroupRequest},\n\t{Resource: SecurityGroupsResource, Path: \"/:security_group_guid/relationships/staging_spaces\", Method: http.MethodPost, Name: PostSecurityGroupStagingSpaceRequest},\n\t{Resource: SecurityGroupsResource, Path: \"/:security_group_guid/relationships/running_spaces\", Method: http.MethodPost, Name: PostSecurityGroupRunningSpaceRequest},\n\t{Resource: SecurityGroupsResource, Path: \"/:security_group_guid/relationships/staging_spaces/:space_guid\", Method: http.MethodDelete, Name: DeleteSecurityGroupStagingSpaceRequest},\n\t{Resource: SecurityGroupsResource, Path: \"/:security_group_guid/relationships/running_spaces/:space_guid\", Method: http.MethodDelete, Name: DeleteSecurityGroupRunningSpaceRequest},\n\t{Resource: SecurityGroupsResource, Path: \"/:security_group_guid\", Method: http.MethodPatch, Name: PatchSecurityGroupRequest},\n\t{Resource: ServiceBrokersResource, Path: \"/\", Method: http.MethodGet, Name: GetServiceBrokersRequest},\n\t{Resource: ServiceBrokersResource, Path: \"/\", Method: http.MethodPost, Name: PostServiceBrokerRequest},\n\t{Resource: ServiceBrokersResource, Path: \"/:service_broker_guid\", Method: http.MethodDelete, Name: DeleteServiceBrokerRequest},\n\t{Resource: ServiceBrokersResource, Path: \"/:service_broker_guid\", Method: http.MethodPatch, Name: PatchServiceBrokerRequest},\n\t{Resource: ServiceInstancesResource, Path: \"/\", Method: http.MethodGet, Name: GetServiceInstancesRequest},\n\t{Resource: ServiceInstancesResource, Path: \"/:service_instance_guid/relationships/shared_spaces\", Method: http.MethodPost, Name: PostServiceInstanceRelationshipsSharedSpacesRequest},\n\t{Resource: ServiceInstancesResource, Path: \"/:service_instance_guid/relationships/shared_spaces/:space_guid\", Method: http.MethodDelete, Name: DeleteServiceInstanceRelationshipsSharedSpaceRequest},\n\t{Resource: ServiceOfferingsResource, Path: \"/\", Method: http.MethodGet, Name: GetServiceOfferingsRequest},\n\t{Resource: ServiceOfferingsResource, Path: \"/:service_offering_guid\", Method: http.MethodPatch, Name: PatchServiceOfferingRequest},\n\t{Resource: ServiceOfferingsResource, Path: \"/:service_offering_guid\", Method: http.MethodDelete, Name: DeleteServiceOfferingRequest},\n\t{Resource: ServicePlansResource, Path: \"/\", Method: http.MethodGet, Name: GetServicePlansRequest},\n\t{Resource: ServicePlansResource, Path: \"/:service_plan_guid\", Method: http.MethodPatch, Name: PatchServicePlanRequest},\n\t{Resource: ServicePlansResource, Path: \"/:service_plan_guid/visibility\", Method: http.MethodGet, Name: GetServicePlanVisibilityRequest},\n\t{Resource: ServicePlansResource, Path: \"/:service_plan_guid/visibility\", Method: http.MethodPost, Name: PostServicePlanVisibilityRequest},\n\t{Resource: ServicePlansResource, Path: \"/:service_plan_guid/visibility/:organization_guid\", Method: http.MethodDelete, Name: DeleteServicePlanVisibilityRequest},\n\t{Resource: SpacesResource, Path: \"/\", Method: http.MethodGet, Name: GetSpacesRequest},\n\t{Resource: SpacesResource, Path: \"/\", Method: http.MethodPost, Name: PostSpaceRequest},\n\t{Resource: SpacesResource, Path: \"/:space_guid\", Method: http.MethodDelete, Name: DeleteSpaceRequest},\n\t{Resource: SpacesResource, Path: \"/:space_guid\", Method: http.MethodPatch, Name: PatchSpaceRequest},\n\t{Resource: SpacesResource, Path: \"/:space_guid/actions/apply_manifest\", Method: http.MethodPost, Name: PostSpaceActionApplyManifestRequest},\n\t{Resource: SpacesResource, Path: \"/:space_guid/relationships/isolation_segment\", Method: http.MethodGet, Name: GetSpaceRelationshipIsolationSegmentRequest},\n\t{Resource: SpacesResource, Path: \"/:space_guid/relationships/isolation_segment\", Method: http.MethodPatch, Name: PatchSpaceRelationshipIsolationSegmentRequest},\n\t{Resource: SpacesResource, Path: \"/:space_guid/routes\", Method: http.MethodDelete, Name: DeleteOrphanedRoutesRequest},\n\t{Resource: SpacesResource, Path: \"/:space_guid/running_security_groups\", Method: http.MethodGet, Name: GetSpaceRunningSecurityGroupsRequest},\n\t{Resource: SpacesResource, Path: \"/:space_guid/staging_security_groups\", Method: http.MethodGet, Name: GetSpaceStagingSecurityGroupsRequest},\n\t{Resource: SpacesResource, Path: \"/:space_guid/features/:feature\", Method: http.MethodPatch, Name: PatchSpaceFeaturesRequest},\n\t{Resource: SpacesResource, Path: \"/:space_guid/features/:feature\", Method: http.MethodGet, Name: GetSpaceFeatureRequest},\n\t{Resource: SpaceQuotasResource, Path: \"/\", Method: http.MethodPost, Name: PostSpaceQuotaRequest},\n\t{Resource: SpaceQuotasResource, Path: \"/:quota_guid\", Method: http.MethodGet, Name: GetSpaceQuotaRequest},\n\t{Resource: SpaceQuotasResource, Path: \"/:quota_guid\", Method: http.MethodDelete, Name: DeleteSpaceQuotaRequest},\n\t{Resource: SpaceQuotasResource, Path: \"/:quota_guid/relationships/spaces\", Method: http.MethodPost, Name: PostSpaceQuotaRelationshipsRequest},\n\t{Resource: SpaceQuotasResource, Path: \"/\", Method: http.MethodGet, Name: GetSpaceQuotasRequest},\n\t{Resource: SpaceQuotasResource, Path: \"/:quota_guid\", Method: http.MethodPatch, Name: PatchSpaceQuotaRequest},\n\t{Resource: SpaceQuotasResource, Path: \"/:quota_guid/relationships/spaces/:space_guid\", Method: http.MethodDelete, Name: DeleteSpaceQuotaFromSpaceRequest},\n\t{Resource: StacksResource, Path: \"/\", Method: http.MethodGet, Name: GetStacksRequest},\n\t{Resource: StacksResource, Path: \"/:stack_guid\", Method: http.MethodPatch, Name: PatchStackRequest},\n\t{Resource: TasksResource, Path: \"/:task_guid/cancel\", Method: http.MethodPut, Name: PutTaskCancelRequest},\n\t{Resource: UsersResource, Path: \"/\", Method: http.MethodGet, Name: GetUsersRequest},\n\t{Resource: UsersResource, Path: \"/:user_guid\", Method: http.MethodGet, Name: GetUserRequest},\n\t{Resource: UsersResource, Path: \"/\", Method: http.MethodPost, Name: PostUserRequest},\n\t{Resource: UsersResource, Path: \"/:user_guid\", Method: http.MethodDelete, Name: DeleteUserRequest},\n}\n```\nAPIRoutes is a list of routes used by the router to construct request URLs.\n\n## Types\n\n```go\ntype Params map[string]string\n```\nParams map path keys to values.  For example, if your route has the path pattern:\n\n\t/person/:person_id/pets/:pet_type\n\nThen a correct Params map would lool like:\n\n\trouter.Params{\n\t  \"person_id\": \"123\",\n\t  \"pet_type\": \"cats\",\n\t}\n\n```go\ntype RealTime struct{}\n```\n\n```go\nfunc (RealTime) Now() time.Time\n```\n\n```go\ntype Route struct {\n\t// Name is a key specifying which HTTP route the router should associate with\n\t// the endpoint at runtime.\n\tName string\n\t// Method is any valid HTTP method\n\tMethod string\n\t// Path contains a path pattern\n\tPath string\n\t// Resource is a key specifying which resource root the router should\n\t// associate with the endpoint at runtime.\n\tResource string\n}\n```\nRoute defines the property of a Cloud Controller V3 endpoint.\n\nMethod can be one of the following:\n\n\tGET HEAD POST PUT PATCH DELETE CONNECT OPTIONS TRACE\n\nPath conforms to Pat-style pattern matching. The following docs are taken from [http://godoc.org/github.com/bmizerany/pat#PatternServeMux](http://godoc.org/github.com/bmizerany/pat#PatternServeMux)\n\nPath Patterns may contain literals or captures. Capture names start with a colon and consist of letters A-Z, a-z, \\_, and 0-9. The rest of the pattern matches literally. The portion of the URL matching each name ends with an occurrence of the character in the pattern immediately following the name, or a /, whichever comes first. It is possible for a name to match the empty string.\n\nExample pattern with one capture:\n\n\t/hello/:name\n\nWill match:\n\n\t/hello/blake\n\t/hello/keith\n\nWill not match:\n\n\t/hello/blake/\n\t/hello/blake/foo\n\t/foo\n\t/foo/bar\n\nExample 2:\n\n\t/hello/:name/\n\nWill match:\n\n\t/hello/blake/\n\t/hello/keith/foo\n\t/hello/blake\n\t/hello/keith\n\nWill not match:\n\n\t/foo\n\t/foo/bar\n\n```go\nfunc (r Route) CreatePath(params Params) (string, error)\n```\nCreatePath combines the route's path pattern with a Params map to produce a valid path.\n\n```go\ntype Router struct {\n\t// contains filtered or unexported fields\n}\n```\nRouter combines route and resource information in order to generate HTTP requests.\n\n```go\nfunc NewRouter(routes []Route, resources map[string]string) *Router\n```\nNewRouter returns a pointer to a new Router.\n\n```go\nfunc (router Router) CreateRequest(name string, params Params, body io.Reader) (*http.Request, error)\n```\nCreateRequest returns a request key'd off of the name given. The params are merged into the URL and body is set as the request body.\n\n","path":"code.cloudfoundry.org/cli/api/cloudcontroller/ccv3/internal","name":"internal","synopsis":"","isRedistributable":true}
