github.com/wanddynosios/cli/v8@v8.7.9-0.20240221182337-1a92e3a7017f/command/v7/actor.go (about) 1 package v7 2 3 import ( 4 "context" 5 "io" 6 "net/http" 7 "time" 8 9 "code.cloudfoundry.org/cli/actor/sharedaction" 10 "code.cloudfoundry.org/cli/actor/v7action" 11 "code.cloudfoundry.org/cli/api/cloudcontroller/ccv3" 12 "code.cloudfoundry.org/cli/api/cloudcontroller/ccv3/constant" 13 uaa "code.cloudfoundry.org/cli/api/uaa/constant" 14 "code.cloudfoundry.org/cli/cf/configuration/coreconfig" 15 "code.cloudfoundry.org/cli/resources" 16 "code.cloudfoundry.org/cli/types" 17 "code.cloudfoundry.org/cli/util/configv3" 18 "github.com/SermoDigital/jose/jwt" 19 ) 20 21 //go:generate go run github.com/maxbrunsfeld/counterfeiter/v6 . Actor 22 23 type Actor interface { 24 ApplyOrganizationQuotaByName(quotaName string, orgGUID string) (v7action.Warnings, error) 25 ApplySpaceQuotaByName(quotaName string, spaceGUID string, orgGUID string) (v7action.Warnings, error) 26 AssignIsolationSegmentToSpaceByNameAndSpace(isolationSegmentName string, spaceGUID string) (v7action.Warnings, error) 27 Authenticate(credentials map[string]string, origin string, grantType uaa.GrantType) error 28 BindSecurityGroupToSpaces(securityGroupGUID string, spaces []resources.Space, lifecycle constant.SecurityGroupLifecycle) (v7action.Warnings, error) 29 CancelDeployment(deploymentGUID string) (v7action.Warnings, error) 30 CheckRoute(domainName string, hostname string, path string, port int) (bool, v7action.Warnings, error) 31 ClearTarget() 32 CopyPackage(sourceApp resources.Application, targetApp resources.Application) (resources.Package, v7action.Warnings, error) 33 CreateAndUploadBitsPackageByApplicationNameAndSpace(appName string, spaceGUID string, bitsPath string) (resources.Package, v7action.Warnings, error) 34 CreateApplicationDroplet(appGUID string) (resources.Droplet, v7action.Warnings, error) 35 CreateApplicationInSpace(app resources.Application, spaceGUID string) (resources.Application, v7action.Warnings, error) 36 CreateBitsPackageByApplication(appGUID string) (resources.Package, v7action.Warnings, error) 37 CreateBuildpack(buildpack resources.Buildpack) (resources.Buildpack, v7action.Warnings, error) 38 CreateDeploymentByApplicationAndDroplet(appGUID string, dropletGUID string) (string, v7action.Warnings, error) 39 CreateDeploymentByApplicationAndRevision(appGUID string, revisionGUID string) (string, v7action.Warnings, error) 40 CreateDockerPackageByApplication(appGUID string, dockerImageCredentials v7action.DockerImageCredentials) (resources.Package, v7action.Warnings, error) 41 CreateDockerPackageByApplicationNameAndSpace(appName string, spaceGUID string, dockerImageCredentials v7action.DockerImageCredentials) (resources.Package, v7action.Warnings, error) 42 CreateIsolationSegmentByName(isolationSegment resources.IsolationSegment) (v7action.Warnings, error) 43 CreateManagedServiceInstance(managedServiceInstanceParams v7action.CreateManagedServiceInstanceParams) (chan v7action.PollJobEvent, v7action.Warnings, error) 44 CreateOrgRole(roleType constant.RoleType, orgGUID string, userNameOrGUID string, userOrigin string, isClient bool) (v7action.Warnings, error) 45 CreateOrganization(orgName string) (resources.Organization, v7action.Warnings, error) 46 CreateOrganizationQuota(name string, limits v7action.QuotaLimits) (v7action.Warnings, error) 47 CreatePrivateDomain(domainName string, orgName string) (v7action.Warnings, error) 48 CreateRoute(spaceGUID, domainName, hostname, path string, port int) (resources.Route, v7action.Warnings, error) 49 CreateRouteBinding(params v7action.CreateRouteBindingParams) (chan v7action.PollJobEvent, v7action.Warnings, error) 50 CreateSecurityGroup(name, filePath string) (v7action.Warnings, error) 51 CreateServiceAppBinding(params v7action.CreateServiceAppBindingParams) (chan v7action.PollJobEvent, v7action.Warnings, error) 52 CreateServiceBroker(model resources.ServiceBroker) (v7action.Warnings, error) 53 CreateServiceKey(params v7action.CreateServiceKeyParams) (chan v7action.PollJobEvent, v7action.Warnings, error) 54 CreateSharedDomain(domainName string, internal bool, routerGroupName string) (v7action.Warnings, error) 55 CreateSpace(spaceName, orgGUID string) (resources.Space, v7action.Warnings, error) 56 CreateSpaceQuota(spaceQuotaName string, orgGuid string, limits v7action.QuotaLimits) (v7action.Warnings, error) 57 CreateSpaceRole(roleType constant.RoleType, orgGUID string, spaceGUID string, userNameOrGUID string, userOrigin string, isClient bool) (v7action.Warnings, error) 58 CreateUser(username string, password string, origin string) (resources.User, v7action.Warnings, error) 59 CreateUserProvidedServiceInstance(instance resources.ServiceInstance) (v7action.Warnings, error) 60 DeleteApplicationByNameAndSpace(name, spaceGUID string, deleteRoutes bool) (v7action.Warnings, error) 61 DeleteBuildpackByNameAndStack(buildpackName string, buildpackStack string) (v7action.Warnings, error) 62 DeleteDomain(domain resources.Domain) (v7action.Warnings, error) 63 DeleteInstanceByApplicationNameSpaceProcessTypeAndIndex(appName string, spaceGUID string, processType string, instanceIndex int) (v7action.Warnings, error) 64 DeleteOrgRole(roleType constant.RoleType, orgGUID string, userNameOrGUID string, userOrigin string, isClient bool) (v7action.Warnings, error) 65 DeleteOrganization(orgName string) (v7action.Warnings, error) 66 DeleteOrganizationQuota(quotaName string) (v7action.Warnings, error) 67 DeleteOrphanedRoutes(spaceGUID string) (v7action.Warnings, error) 68 DeleteRoute(domainName, hostname, path string, port int) (v7action.Warnings, error) 69 DeleteRouteBinding(params v7action.DeleteRouteBindingParams) (chan v7action.PollJobEvent, v7action.Warnings, error) 70 DeleteSecurityGroup(securityGroupName string) (v7action.Warnings, error) 71 DeleteServiceAppBinding(params v7action.DeleteServiceAppBindingParams) (chan v7action.PollJobEvent, v7action.Warnings, error) 72 DeleteServiceBroker(serviceBrokerGUID string) (v7action.Warnings, error) 73 DeleteServiceInstance(serviceInstanceName, spaceGUID string) (chan v7action.PollJobEvent, v7action.Warnings, error) 74 DeleteServiceKeyByServiceInstanceAndName(serviceInstanceName, serviceKeyName, spaceGUID string) (chan v7action.PollJobEvent, v7action.Warnings, error) 75 DeleteSpaceByNameAndOrganizationName(spaceName string, orgName string) (v7action.Warnings, error) 76 DeleteSpaceQuotaByName(quotaName string, orgGUID string) (v7action.Warnings, error) 77 DeleteSpaceRole(roleType constant.RoleType, spaceGUID string, userNameOrGUID string, userOrigin string, isClient bool) (v7action.Warnings, error) 78 DeleteUser(userGuid string) (v7action.Warnings, error) 79 DeleteIsolationSegmentByName(name string) (v7action.Warnings, error) 80 DeleteIsolationSegmentOrganizationByName(isolationSegmentName string, orgName string) (v7action.Warnings, error) 81 DiffSpaceManifest(spaceGUID string, rawManifest []byte) (resources.ManifestDiff, v7action.Warnings, error) 82 DisableFeatureFlag(flagName string) (v7action.Warnings, error) 83 DisableServiceAccess(offeringName, brokerName, orgName, planName string) (v7action.SkippedPlans, v7action.Warnings, error) 84 DownloadCurrentDropletByAppName(appName string, spaceGUID string) ([]byte, string, v7action.Warnings, error) 85 DownloadDropletByGUIDAndAppName(dropletGUID string, appName string, spaceGUID string) ([]byte, v7action.Warnings, error) 86 EnableFeatureFlag(flagName string) (v7action.Warnings, error) 87 EnableServiceAccess(offeringName, brokerName, orgName, planName string) (v7action.SkippedPlans, v7action.Warnings, error) 88 EntitleIsolationSegmentToOrganizationByName(isolationSegmentName string, orgName string) (v7action.Warnings, error) 89 GetAppFeature(appGUID string, featureName string) (resources.ApplicationFeature, v7action.Warnings, error) 90 GetAppSummariesForSpace(spaceGUID string, labels string) ([]v7action.ApplicationSummary, v7action.Warnings, error) 91 GetApplicationByNameAndSpace(appName string, spaceGUID string) (resources.Application, v7action.Warnings, error) 92 GetApplicationMapForRoute(route resources.Route) (map[string]resources.Application, v7action.Warnings, error) 93 GetApplicationDroplets(appName string, spaceGUID string) ([]resources.Droplet, v7action.Warnings, error) 94 GetApplicationLabels(appName string, spaceGUID string) (map[string]types.NullString, v7action.Warnings, error) 95 GetApplicationPackages(appName string, spaceGUID string) ([]resources.Package, v7action.Warnings, error) 96 GetApplicationProcessHealthChecksByNameAndSpace(appName string, spaceGUID string) ([]v7action.ProcessHealthCheck, v7action.Warnings, error) 97 GetApplicationRevisionsDeployed(appGUID string) ([]resources.Revision, v7action.Warnings, error) 98 GetApplicationRoutes(appGUID string) ([]resources.Route, v7action.Warnings, error) 99 GetApplicationTasks(appName string, sortOrder v7action.SortOrder) ([]resources.Task, v7action.Warnings, error) 100 GetApplicationsByNamesAndSpace(appNames []string, spaceGUID string) ([]resources.Application, v7action.Warnings, error) 101 GetBuildpackLabels(buildpackName string, buildpackStack string) (map[string]types.NullString, v7action.Warnings, error) 102 GetBuildpacks(labelSelector string) ([]resources.Buildpack, v7action.Warnings, error) 103 GetCurrentUser() (configv3.User, error) 104 GetDefaultDomain(orgGUID string) (resources.Domain, v7action.Warnings, error) 105 GetDetailedAppSummary(appName string, spaceGUID string, withObfuscatedValues bool) (v7action.DetailedApplicationSummary, v7action.Warnings, error) 106 GetDomain(domainGUID string) (resources.Domain, v7action.Warnings, error) 107 GetDomainByName(domainName string) (resources.Domain, v7action.Warnings, error) 108 GetDomainLabels(domainName string) (map[string]types.NullString, v7action.Warnings, error) 109 GetEffectiveIsolationSegmentBySpace(spaceGUID string, orgDefaultIsolationSegmentGUID string) (resources.IsolationSegment, v7action.Warnings, error) 110 GetEnvironmentVariableGroup(group constant.EnvironmentVariableGroupName) (v7action.EnvironmentVariableGroup, v7action.Warnings, error) 111 GetEnvironmentVariablesByApplicationNameAndSpace(appName string, spaceGUID string) (v7action.EnvironmentVariableGroups, v7action.Warnings, error) 112 GetFeatureFlagByName(featureFlagName string) (resources.FeatureFlag, v7action.Warnings, error) 113 GetFeatureFlags() ([]resources.FeatureFlag, v7action.Warnings, error) 114 GetGlobalRunningSecurityGroups() ([]resources.SecurityGroup, v7action.Warnings, error) 115 GetGlobalStagingSecurityGroups() ([]resources.SecurityGroup, v7action.Warnings, error) 116 GetIsolationSegmentsByOrganization(orgName string) ([]resources.IsolationSegment, v7action.Warnings, error) 117 GetIsolationSegmentByName(isoSegmentName string) (resources.IsolationSegment, v7action.Warnings, error) 118 GetIsolationSegmentSummaries() ([]v7action.IsolationSegmentSummary, v7action.Warnings, error) 119 GetLatestActiveDeploymentForApp(appGUID string) (resources.Deployment, v7action.Warnings, error) 120 GetLoginPrompts() (map[string]coreconfig.AuthPrompt, error) 121 GetNewestReadyPackageForApplication(app resources.Application) (resources.Package, v7action.Warnings, error) 122 GetOrgUsersByRoleType(orgGUID string) (map[constant.RoleType][]resources.User, v7action.Warnings, error) 123 GetOrganizationByName(orgName string) (resources.Organization, v7action.Warnings, error) 124 GetOrganizationDomains(string, string) ([]resources.Domain, v7action.Warnings, error) 125 GetOrganizationLabels(orgName string) (map[string]types.NullString, v7action.Warnings, error) 126 GetOrganizationQuotaByName(orgQuotaName string) (resources.OrganizationQuota, v7action.Warnings, error) 127 GetOrganizationQuotas() ([]resources.OrganizationQuota, v7action.Warnings, error) 128 GetOrganizationSpaces(orgGUID string) ([]resources.Space, v7action.Warnings, error) 129 GetOrganizationSpacesWithLabelSelector(orgGUID string, labelSelector string) ([]resources.Space, v7action.Warnings, error) 130 GetOrganizationSummaryByName(orgName string) (v7action.OrganizationSummary, v7action.Warnings, error) 131 GetOrganizations(labelSelector string) ([]resources.Organization, v7action.Warnings, error) 132 GetProcessByTypeAndApplication(processType string, appGUID string) (resources.Process, v7action.Warnings, error) 133 GetRawApplicationManifestByNameAndSpace(appName string, spaceGUID string) ([]byte, v7action.Warnings, error) 134 GetRecentEventsByApplicationNameAndSpace(appName string, spaceGUID string) ([]v7action.Event, v7action.Warnings, error) 135 GetRecentLogsForApplicationByNameAndSpace(appName string, spaceGUID string, client sharedaction.LogCacheClient) ([]sharedaction.LogMessage, v7action.Warnings, error) 136 GetRootResponse() (v7action.Info, v7action.Warnings, error) 137 GetRevisionByApplicationAndVersion(appGUID string, revisionVersion int) (resources.Revision, v7action.Warnings, error) 138 GetRevisionsByApplicationNameAndSpace(appName string, spaceGUID string) ([]resources.Revision, v7action.Warnings, error) 139 GetRouteByAttributes(domain resources.Domain, hostname string, path string, port int) (resources.Route, v7action.Warnings, error) 140 GetRouteDestinationByAppGUID(route resources.Route, appGUID string) (resources.RouteDestination, error) 141 GetRouteLabels(routeName string, spaceGUID string) (map[string]types.NullString, v7action.Warnings, error) 142 GetRouterGroups() ([]v7action.RouterGroup, error) 143 GetRouteSummaries([]resources.Route) ([]v7action.RouteSummary, v7action.Warnings, error) 144 GetRoutesByOrg(orgGUID string, labels string) ([]resources.Route, v7action.Warnings, error) 145 GetRoutesBySpace(spaceGUID string, labels string) ([]resources.Route, v7action.Warnings, error) 146 GetSSHEnabled(appGUID string) (ccv3.SSHEnabled, v7action.Warnings, error) 147 GetSSHEnabledByAppName(appName string, spaceGUID string) (ccv3.SSHEnabled, v7action.Warnings, error) 148 GetSSHPasscode() (string, error) 149 GetSecureShellConfigurationByApplicationNameSpaceProcessTypeAndIndex(appName string, spaceGUID string, processType string, processIndex uint) (v7action.SSHAuthentication, v7action.Warnings, error) 150 GetSecurityGroup(securityGroupName string) (resources.SecurityGroup, v7action.Warnings, error) 151 GetSecurityGroupSummary(securityGroupName string) (v7action.SecurityGroupSummary, v7action.Warnings, error) 152 GetSecurityGroups() ([]v7action.SecurityGroupSummary, v7action.Warnings, error) 153 GetServiceAccess(offeringName, brokerName, orgName string) ([]v7action.ServicePlanAccess, v7action.Warnings, error) 154 GetServiceBrokerByName(serviceBrokerName string) (resources.ServiceBroker, v7action.Warnings, error) 155 GetServiceBrokerLabels(serviceBrokerName string) (map[string]types.NullString, v7action.Warnings, error) 156 GetServiceBrokers() ([]resources.ServiceBroker, v7action.Warnings, error) 157 GetServiceKeyByServiceInstanceAndName(serviceInstanceName, serviceKeyName, spaceGUID string) (resources.ServiceCredentialBinding, v7action.Warnings, error) 158 GetServiceKeyDetailsByServiceInstanceAndName(serviceInstanceName, serviceKeyName, spaceGUID string) (resources.ServiceCredentialBindingDetails, v7action.Warnings, error) 159 GetServiceInstanceByNameAndSpace(serviceInstanceName, spaceGUID string) (resources.ServiceInstance, v7action.Warnings, error) 160 GetServiceInstanceDetails(serviceInstanceName, spaceGUID string, omitApps bool) (v7action.ServiceInstanceDetails, v7action.Warnings, error) 161 GetServiceInstanceParameters(serviceInstanceName, spaceGUID string) (v7action.ServiceInstanceParameters, v7action.Warnings, error) 162 GetServiceInstanceLabels(serviceInstanceName, spaceGUID string) (map[string]types.NullString, v7action.Warnings, error) 163 GetServiceInstancesForSpace(spaceGUID string, omitApps bool) ([]v7action.ServiceInstance, v7action.Warnings, error) 164 GetServiceKeysByServiceInstance(serviceInstanceName, spaceGUID string) ([]resources.ServiceCredentialBinding, v7action.Warnings, error) 165 GetServiceOfferingLabels(serviceOfferingName, serviceBrokerName string) (map[string]types.NullString, v7action.Warnings, error) 166 GetServicePlanLabels(servicePlanName, serviceOfferingName, serviceBrokerName string) (map[string]types.NullString, v7action.Warnings, error) 167 GetServicePlanByNameOfferingAndBroker(servicePlanName, serviceOfferingName, serviceBrokerName string) (resources.ServicePlan, v7action.Warnings, error) 168 GetSpaceByNameAndOrganization(spaceName string, orgGUID string) (resources.Space, v7action.Warnings, error) 169 GetSpaceFeature(spaceName string, orgGUID string, feature string) (bool, v7action.Warnings, error) 170 GetSpaceLabels(spaceName string, orgGUID string) (map[string]types.NullString, v7action.Warnings, error) 171 GetSpaceQuotaByName(spaceQuotaName string, orgGUID string) (resources.SpaceQuota, v7action.Warnings, error) 172 GetSpaceQuotasByOrgGUID(orgGUID string) ([]resources.SpaceQuota, v7action.Warnings, error) 173 GetSpaceSummaryByNameAndOrganization(spaceName string, orgGUID string) (v7action.SpaceSummary, v7action.Warnings, error) 174 GetSpaceUsersByRoleType(spaceGuid string) (map[constant.RoleType][]resources.User, v7action.Warnings, error) 175 GetStackByName(stackName string) (resources.Stack, v7action.Warnings, error) 176 GetStackLabels(stackName string) (map[string]types.NullString, v7action.Warnings, error) 177 GetStacks(string) ([]resources.Stack, v7action.Warnings, error) 178 GetStreamingLogsForApplicationByNameAndSpace(appName string, spaceGUID string, client sharedaction.LogCacheClient) (<-chan sharedaction.LogMessage, <-chan error, context.CancelFunc, v7action.Warnings, error) 179 GetTaskBySequenceIDAndApplication(sequenceID int, appGUID string) (resources.Task, v7action.Warnings, error) 180 GetUAAAPIVersion() (string, error) 181 GetUnstagedNewestPackageGUID(appGuid string) (string, v7action.Warnings, error) 182 GetUser(username, origin string) (resources.User, error) 183 MakeCurlRequest(httpMethod string, path string, customHeaders []string, httpData string, failOnHTTPError bool) ([]byte, *http.Response, error) 184 MapRoute(routeGUID string, appGUID string, destinationProtocol string) (v7action.Warnings, error) 185 Marketplace(filter v7action.MarketplaceFilter) ([]v7action.ServiceOfferingWithPlans, v7action.Warnings, error) 186 MoveRoute(routeGUID string, spaceGUID string) (v7action.Warnings, error) 187 ParseAccessToken(accessToken string) (jwt.JWT, error) 188 PollBuild(buildGUID string, appName string) (resources.Droplet, v7action.Warnings, error) 189 PollPackage(pkg resources.Package) (resources.Package, v7action.Warnings, error) 190 PollStart(app resources.Application, noWait bool, handleProcessStats func(string)) (v7action.Warnings, error) 191 PollStartForRolling(app resources.Application, deploymentGUID string, noWait bool, handleProcessStats func(string)) (v7action.Warnings, error) 192 PollTask(task resources.Task) (resources.Task, v7action.Warnings, error) 193 PollUploadBuildpackJob(jobURL ccv3.JobURL) (v7action.Warnings, error) 194 PrepareBuildpackBits(inputPath string, tmpDirPath string, downloader v7action.Downloader) (string, error) 195 PurgeServiceInstance(serviceInstanceName, spaceGUID string) (v7action.Warnings, error) 196 PurgeServiceOfferingByNameAndBroker(serviceOfferingName, serviceBrokerName string) (v7action.Warnings, error) 197 RefreshAccessToken() (string, error) 198 RenameApplicationByNameAndSpaceGUID(oldAppName, newAppName, spaceGUID string) (resources.Application, v7action.Warnings, error) 199 RenameOrganization(oldOrgName, newOrgName string) (resources.Organization, v7action.Warnings, error) 200 RenameServiceInstance(currentServiceInstanceName, spaceGUID, newServiceInstanceName string) (v7action.Warnings, error) 201 RenameSpaceByNameAndOrganizationGUID(oldSpaceName, newSpaceName, orgGUID string) (resources.Space, v7action.Warnings, error) 202 ResetOrganizationDefaultIsolationSegment(orgGUID string) (v7action.Warnings, error) 203 ResetSpaceIsolationSegment(orgGUID string, spaceGUID string) (string, v7action.Warnings, error) 204 ResourceMatch(resources []sharedaction.V3Resource) ([]sharedaction.V3Resource, v7action.Warnings, error) 205 RestartApplication(appGUID string, noWait bool) (v7action.Warnings, error) 206 RevokeAccessAndRefreshTokens() error 207 RunTask(appGUID string, task resources.Task) (resources.Task, v7action.Warnings, error) 208 ScaleProcessByApplication(appGUID string, process resources.Process) (v7action.Warnings, error) 209 ScheduleTokenRefresh(func(time.Duration) <-chan time.Time, chan struct{}, chan struct{}) (<-chan error, error) 210 SetApplicationDroplet(appGUID string, dropletGUID string) (v7action.Warnings, error) 211 SetApplicationDropletByApplicationNameAndSpace(appName string, spaceGUID string, dropletGUID string) (v7action.Warnings, error) 212 SetApplicationManifest(appGUID string, rawManifest []byte) (v7action.Warnings, error) 213 SetApplicationProcessHealthCheckTypeByNameAndSpace(appName string, spaceGUID string, healthCheckType constant.HealthCheckType, httpEndpoint string, processType string, invocationTimeout int64) (resources.Application, v7action.Warnings, error) 214 SetEnvironmentVariableByApplicationNameAndSpace(appName string, spaceGUID string, envPair v7action.EnvironmentVariablePair) (v7action.Warnings, error) 215 SetEnvironmentVariableGroup(group constant.EnvironmentVariableGroupName, envVars resources.EnvironmentVariables) (v7action.Warnings, error) 216 SetOrganizationDefaultIsolationSegment(orgGUID string, isoSegGUID string) (v7action.Warnings, error) 217 SetSpaceManifest(spaceGUID string, rawManifest []byte) (v7action.Warnings, error) 218 SetTarget(settings v7action.TargetSettings) (v7action.Warnings, error) 219 SharePrivateDomain(domainName string, orgName string) (v7action.Warnings, error) 220 ShareServiceInstanceToSpaceAndOrg(serviceInstanceName, targetedSpaceGUID, targetedOrgGUID string, sharedToDetails v7action.ServiceInstanceSharingParams) (v7action.Warnings, error) 221 ShareRoute(routeGUID string, spaceGUID string) (v7action.Warnings, error) 222 StageApplicationPackage(pkgGUID string) (resources.Build, v7action.Warnings, error) 223 StagePackage(packageGUID, appName, spaceGUID string) (<-chan resources.Droplet, <-chan v7action.Warnings, <-chan error) 224 StartApplication(appGUID string) (v7action.Warnings, error) 225 StopApplication(appGUID string) (v7action.Warnings, error) 226 TerminateTask(taskGUID string) (resources.Task, v7action.Warnings, error) 227 UnbindSecurityGroup(securityGroupName string, orgGUID string, spaceGUID string, lifecycle constant.SecurityGroupLifecycle) (v7action.Warnings, error) 228 UnmapRoute(routeGUID string, destinationGUID string) (v7action.Warnings, error) 229 UnsetEnvironmentVariableByApplicationNameAndSpace(appName string, spaceGUID string, EnvironmentVariableName string) (v7action.Warnings, error) 230 UnsetSpaceQuota(spaceQuotaName, spaceName, orgGUID string) (v7action.Warnings, error) 231 UnsharePrivateDomain(domainName string, orgName string) (v7action.Warnings, error) 232 UnshareRoute(routeGUID string, spaceGUID string) (v7action.Warnings, error) 233 UnshareServiceInstanceFromSpaceAndOrg(serviceInstanceName, targetedSpaceGUID, targetedOrgGUID string, unshareFromDetails v7action.ServiceInstanceSharingParams) (v7action.Warnings, error) 234 UpdateAppFeature(app resources.Application, enabled bool, featureName string) (v7action.Warnings, error) 235 UpdateApplication(app resources.Application) (resources.Application, v7action.Warnings, error) 236 UpdateApplicationLabelsByApplicationName(string, string, map[string]types.NullString) (v7action.Warnings, error) 237 UpdateBuildpackByNameAndStack(buildpackName string, buildpackStack string, buildpack resources.Buildpack) (resources.Buildpack, v7action.Warnings, error) 238 UpdateBuildpackLabelsByBuildpackNameAndStack(string, string, map[string]types.NullString) (v7action.Warnings, error) 239 UpdateDestination(string, string, string) (v7action.Warnings, error) 240 UpdateDomainLabelsByDomainName(string, map[string]types.NullString) (v7action.Warnings, error) 241 UpdateManagedServiceInstance(params v7action.UpdateManagedServiceInstanceParams) (chan v7action.PollJobEvent, v7action.Warnings, error) 242 UpgradeManagedServiceInstance(serviceInstanceName, spaceGUID string) (chan v7action.PollJobEvent, v7action.Warnings, error) 243 UpdateOrganizationLabelsByOrganizationName(string, map[string]types.NullString) (v7action.Warnings, error) 244 UpdateOrganizationQuota(quotaName string, newName string, limits v7action.QuotaLimits) (v7action.Warnings, error) 245 UpdateProcessByTypeAndApplication(processType string, appGUID string, updatedProcess resources.Process) (v7action.Warnings, error) 246 UpdateRouteLabels(string, string, map[string]types.NullString) (v7action.Warnings, error) 247 UpdateSecurityGroup(name, filePath string) (v7action.Warnings, error) 248 UpdateSecurityGroupGloballyEnabled(securityGroupName string, lifecycle constant.SecurityGroupLifecycle, enabled bool) (v7action.Warnings, error) 249 UpdateServiceBroker(serviceBrokerGUID string, model resources.ServiceBroker) (v7action.Warnings, error) 250 UpdateServiceBrokerLabelsByServiceBrokerName(string, map[string]types.NullString) (v7action.Warnings, error) 251 UpdateServiceInstanceLabels(serviceInstanceName, spaceGUID string, labels map[string]types.NullString) (v7action.Warnings, error) 252 UpdateServiceOfferingLabels(serviceOfferingName string, serviceBrokerName string, labels map[string]types.NullString) (v7action.Warnings, error) 253 UpdateServicePlanLabels(servicePlanName string, serviceOfferingName string, serviceBrokerName string, labels map[string]types.NullString) (v7action.Warnings, error) 254 UpdateSpaceFeature(spaceName string, orgGUID string, enableds bool, feature string) (v7action.Warnings, error) 255 UpdateSpaceLabelsBySpaceName(string, string, map[string]types.NullString) (v7action.Warnings, error) 256 UpdateSpaceQuota(quotaName, orgGUID, newName string, limits v7action.QuotaLimits) (v7action.Warnings, error) 257 UpdateStackLabelsByStackName(string, map[string]types.NullString) (v7action.Warnings, error) 258 UpdateUserPassword(userGUID string, oldPassword string, newPassword string) error 259 UpdateUserProvidedServiceInstance(serviceInstanceName, spaceGUID string, serviceInstanceUpdates resources.ServiceInstance) (v7action.Warnings, error) 260 UploadBitsPackage(pkg resources.Package, matchedResources []sharedaction.V3Resource, newResources io.Reader, newResourcesLength int64) (resources.Package, v7action.Warnings, error) 261 UploadBuildpack(guid string, pathToBuildpackBits string, progressBar v7action.SimpleProgressBar) (ccv3.JobURL, v7action.Warnings, error) 262 UploadDroplet(dropletGUID string, dropletPath string, progressReader io.Reader, fileSize int64) (v7action.Warnings, error) 263 }