{"modulePath":"github.com/cloudfoundry-incubator/cli","version":"v7.1.0+incompatible","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package ccv2\n\nPackage ccv2 represents a Cloud Controller V2 client.\n\nThese sets of packages are still under development/pre-pre-pre...alpha. Use at your own risk! Functionality and design may change without warning.\n\nIt is currently designed to support Cloud Controller API 2.58.0. However, it may include features and endpoints of later API versions.\n\nFor more information on the Cloud Controller API see [https://apidocs.cloudfoundry.org/](https://apidocs.cloudfoundry.org/)\n\n### Method Naming Conventions {#hdr-Method_Naming_Conventions}\n\nThe client takes a '\\\u003cAction Name\u003e\\\u003cTop Level Endpoint\u003e\\\u003cnth... level endpoint\u003e\\\u003cReturn Value\u003e' approach to method names.  If the \\\u003cTop Level Endpoint\u003e and \\\u003cReturn Value\u003e are similar, they do not need to be repeated. If a GUID is required for the \\\u003cTop Level Endpoint\u003e, the pluralization is removed from said endpoint in the method name.\n\nFor Example:\n\n\tMethod Name: GetApplication\n\tEndpoint: /v2/applications/:guid\n\tAction Name: GET\n\tTop Level Endpoint: applications\n\tReturn Value: Application\n\n\tMethod Name: GetServiceInstances\n\tEndpoint: /v2/service_instances\n\tAction Name: GET\n\tTop Level Endpoint: service_instances\n\tReturn Value: []ServiceInstance\n\n\tMethod Name: GetSpaceServiceInstances\n\tEndpoint: /v2/spaces/:guid/service_instances\n\tAction Name: GET\n\tTop Level Endpoint: spaces\n\tReturn Value: []ServiceInstance\n\n\tMethod Name: UpdateRouteApplication\n\tEndpoint: /v2/routes/:route_guid/apps/:app_guid\n\tAction Name: PUT\n\tTop Level Endpoint: routes\n\tSecond Level Endpoint: Application\n\tReturn Value: Route\n\n\tMethod Name: DeleteSpaceJob\n\tEndpoint: /v2/spaces/:space_guid\n\tAction Name: DELETE\n\tTop Level Endpoint: spaces\n\tReturn Value: Job\n\nUse the following table to determine which HTTP Command equates to which Action Name:\n\n\tHTTP Command -\u003e Action Name\n\tPOST -\u003e Create\n\tGET -\u003e Get\n\tPUT -\u003e Update\n\tDELETE -\u003e Delete\n\tPATCH -\u003e Patch\n\n### Method Locations {#hdr-Method_Locations}\n\nMethods exist in the same file as their return type, regardless of which endpoint they use.\n\n### Error Handling {#hdr-Error_Handling}\n\nAll error handling that requires parsing the error\\_code/code returned back from the Cloud Controller should be placed in the errorWrapper. Everything else can be handled in the individual operations. All errors structs should be placed in individual files in the ccerror package.\n\n### No inline-relations-depth And summary Endpoints {#hdr-No_inline_relations_depth_And_summary_Endpoints}\n\nThis package will not ever use 'inline-relations-depth' or the '/summary' endpoints for any operations. These requests can be extremely taxing on the Cloud Controller and are avoided at all costs. Additionally, the objects returned back from these requests can become extremely inconsistent across versions and are problematic to deal with in general.\n\nAn additional problem that occurs with these endpoints is that lists of 51+ objects do not get returned by the CC. Example: Summary of Organizations includes a list of spaces. If there are 50 spaces, the endpoint returns these spaces under the 'spaces' field; if there are 51+, spaces, the 'spaces' field is missing from the CC return.\n\n## Functions\n\n```go\nfunc ConvertFilterParameters(filters []Filter) url.Values\n```\nConvertFilterParameters converts a Filter object into a collection that cloudcontroller.Request can accept.\n\n## Types\n\n```go\ntype APIInformation struct {\n\n\t// APIVersion is the Cloud Controller API version number.\n\tAPIVersion string `json:\"api_version\"`\n\n\t// AuthorizationEndpoint is the authorization endpoint for the targeted Cloud\n\t// Controller.\n\tAuthorizationEndpoint string `json:\"authorization_endpoint\"`\n\n\tDopplerEndpoint string `json:\"doppler_logging_endpoint\"`\n\n\tLogCacheEndpoint string `json:\"log_cache_endpoint\"`\n\n\tMinCLIVersion string `json:\"min_cli_version\"`\n\n\t// MinimumRecommendedCLIVersion is the minimum CLI version number recommended\n\t// for the targeted Cloud Controller.\n\tMinimumRecommendedCLIVersion string `json:\"min_recommended_cli_version\"`\n\n\t// Name is the name given to the targeted Cloud Controller.\n\tName string `json:\"name\"`\n\n\t// RoutingEndpoint is the Routing endpoint for the targeted Cloud Controller.\n\tRoutingEndpoint string `json:\"routing_endpoint\"`\n}\n```\nAPIInformation represents the information returned back from /v2/info\n\n```go\ntype APILink struct {\n\t// HREF is the fully qualified URL for the link.\n\tHREF string `json:\"href\"`\n\t// Method indicate the desired action to be performed on the identified\n\t// resource.\n\tMethod string `json:\"method\"`\n\n\t// Meta contains additional metadata about the API.\n\tMeta struct {\n\t\t// Version of the API\n\t\tVersion string `json:\"version\"`\n\n\t\t// Fingerprint to authenticate api with\n\t\tHostKeyFingerprint string `json:\"host_key_fingerprint\"`\n\n\t\t// Identifier for UAA queries\n\t\tOAuthClient string `json:\"oath_client\"`\n\t} `json:\"meta\"`\n}\n```\nAPILink represents a generic link from a response object.\n\n```go\ntype APILinks map[string]APILink\n```\nAPILinks is a directory of follow-up urls for the resource.\n\n```go\ntype Application struct {\n\t// Buildpack is the buildpack set by the user.\n\tBuildpack types.FilteredString\n\n\t// Command is the user specified start command.\n\tCommand types.FilteredString\n\n\t// DetectedBuildpack is the buildpack automatically detected.\n\tDetectedBuildpack types.FilteredString\n\n\t// DetectedStartCommand is the command used to start the application.\n\tDetectedStartCommand types.FilteredString\n\n\t// DiskQuota is the disk given to each instance, in megabytes.\n\tDiskQuota types.NullByteSizeInMb\n\n\t// DockerCredentials is the authentication information for the provided\n\t// DockerImage.\n\tDockerCredentials DockerCredentials\n\n\t// DockerImage is the docker image location.\n\tDockerImage string\n\n\t// EnvironmentVariables are the environment variables passed to the app.\n\tEnvironmentVariables map[string]string\n\n\t// GUID is the unique application identifier.\n\tGUID string\n\n\t// HealthCheckTimeout is the number of seconds for health checking of an\n\t// staged app when starting up.\n\tHealthCheckTimeout uint64\n\n\t// HealthCheckType is the type of health check that will be done to the app.\n\tHealthCheckType constant.ApplicationHealthCheckType\n\n\t// HealthCheckHTTPEndpoint is the url of the http health check endpoint.\n\tHealthCheckHTTPEndpoint string\n\n\t// Instances is the total number of app instances.\n\tInstances types.NullInt\n\n\t// Memory is the memory given to each instance, in megabytes.\n\tMemory types.NullByteSizeInMb\n\n\t// Name is the name given to the application.\n\tName string\n\n\t// PackageState represents the staging state of the application bits.\n\tPackageState constant.ApplicationPackageState\n\n\t// PackageUpdatedAt is the last time the app bits were updated. In RFC3339.\n\tPackageUpdatedAt time.Time\n\n\t// SpaceGUID is the GUID of the app's space.\n\tSpaceGUID string\n\n\t// StackGUID is the GUID for the Stack the application is running on.\n\tStackGUID string\n\n\t// StagingFailedDescription is the verbose description of why the package\n\t// failed to stage.\n\tStagingFailedDescription string\n\n\t// StagingFailedReason is the reason why the package failed to stage.\n\tStagingFailedReason string\n\n\t// State is the desired state of the application.\n\tState constant.ApplicationState\n}\n```\nApplication represents a Cloud Controller Application.\n\n```go\nfunc (application Application) MarshalJSON() ([]byte, error)\n```\nMarshalJSON converts an application into a Cloud Controller Application.\n\n```go\nfunc (application *Application) UnmarshalJSON(data []byte) error\n```\nUnmarshalJSON helps unmarshal a Cloud Controller Application response.\n\n```go\ntype ApplicationInstance struct {\n\t// Details are arbitrary information about the instance.\n\tDetails string\n\n\t// ID is the instance ID.\n\tID int\n\n\t// Since is the Unix time stamp that represents the time the instance was\n\t// created.\n\tSince float64\n\n\t// State is the instance's state.\n\tState constant.ApplicationInstanceState\n}\n```\nApplicationInstance represents a Cloud Controller Application Instance.\n\n```go\nfunc (instance *ApplicationInstance) UnmarshalJSON(data []byte) error\n```\nUnmarshalJSON helps unmarshal a Cloud Controller application instance response.\n\n```go\ntype ApplicationInstanceStatus struct {\n\t// CPU is the instance's CPU utilization percentage.\n\tCPU float64\n\n\t// Disk is the instance's disk usage in bytes.\n\tDisk int64\n\n\t// DiskQuota is the instance's allowed disk usage in bytes.\n\tDiskQuota int64\n\n\t// ID is the instance ID.\n\tID int\n\n\t// IsolationSegment that the app is currently running on.\n\tIsolationSegment string\n\n\t// Memory is the instance's memory usage in bytes.\n\tMemory int64\n\n\t// MemoryQuota is the instance's allowed memory usage in bytes.\n\tMemoryQuota int64\n\n\t// State is the instance's state.\n\tState constant.ApplicationInstanceState\n\n\t// Uptime is the number of seconds the instance has been running.\n\tUptime int64\n}\n```\nApplicationInstanceStatus represents a Cloud Controller Application Instance.\n\n```go\nfunc (instance *ApplicationInstanceStatus) UnmarshalJSON(data []byte) error\n```\nUnmarshalJSON helps unmarshal a Cloud Controller application instance response.\n\n```go\ntype Buildpack struct {\n\tLocked   types.NullBool\n\tEnabled  types.NullBool\n\tGUID     string\n\tName     string\n\tPosition types.NullInt\n\tStack    string\n}\n```\nBuildpack represents a Cloud Controller Buildpack.\n\n```go\nfunc (buildpack Buildpack) MarshalJSON() ([]byte, error)\n```\n\n```go\nfunc (buildpack *Buildpack) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype Client struct {\n\t// contains filtered or unexported fields\n}\n```\nClient is a client that can be used to talk to a Cloud Controller's V2 Endpoints.\n\n```go\nfunc NewClient(config Config) *Client\n```\nNewClient returns a new Cloud Controller Client.\n\n```go\nfunc (client *Client) API() string\n```\nAPI returns the Cloud Controller API URL for the targeted Cloud Controller.\n\n```go\nfunc (client *Client) APIVersion() string\n```\nAPIVersion returns Cloud Controller API Version for the targeted Cloud Controller.\n\n```go\nfunc (client *Client) AuthorizationEndpoint() string\n```\nAuthorizationEndpoint returns the authorization endpoint for the targeted Cloud Controller.\n\n```go\nfunc (client *Client) CheckRoute(route Route) (bool, Warnings, error)\n```\nCheckRoute returns true if the route exists in the CF instance.\n\n```go\nfunc (client *Client) CreateApplication(app Application) (Application, Warnings, error)\n```\nCreateApplication creates a cloud controller application in with the given settings. SpaceGUID and Name are the only required fields.\n\n```go\nfunc (client *Client) CreateBuildpack(buildpack Buildpack) (Buildpack, Warnings, error)\n```\nCreateBuildpack creates a new buildpack.\n\n```go\nfunc (client *Client) CreateOrganization(orgName string, quotaGUID string) (Organization, Warnings, error)\n```\n\n```go\nfunc (client *Client) CreateRoute(route Route, generatePort bool) (Route, Warnings, error)\n```\nCreateRoute creates the route with the given properties; SpaceGUID and DomainGUID are required Route properties. Additional configuration rules: - generatePort = true to generate a random port on the cloud controller. - generatePort takes precedence over the provided port. Setting the port and generatePort only works with CC API 2.53.0 or higher and when TCP router groups are enabled.\n\n```go\nfunc (client *Client) CreateServiceBinding(appGUID string, serviceInstanceGUID string, bindingName string, acceptsIncomplete bool, parameters map[string]interface{}) (ServiceBinding, Warnings, error)\n```\n\n```go\nfunc (client *Client) CreateServiceBroker(brokerName, username, password, url, spaceGUID string) (ServiceBroker, Warnings, error)\n```\nCreateServiceBroker posts a service broker resource with the provided attributes to the api and returns the result.\n\n```go\nfunc (client *Client) CreateServiceInstance(spaceGUID, servicePlanGUID, serviceInstance string, parameters map[string]interface{}, tags []string) (ServiceInstance, Warnings, error)\n```\nCreateServiceInstance posts a service instance resource with the provided attributes to the api and returns the result.\n\n```go\nfunc (client *Client) CreateServiceKey(serviceInstanceGUID string, keyName string, parameters map[string]interface{}) (ServiceKey, Warnings, error)\n```\nCreateServiceKey creates a new service key using the provided name and parameters for the requested service instance.\n\n```go\nfunc (client *Client) CreateServicePlanVisibility(planGUID string, orgGUID string) (ServicePlanVisibility, Warnings, error)\n```\n\n```go\nfunc (client *Client) CreateSharedDomain(domainName string, routerGroupdGUID string, isInternal bool) (Warnings, error)\n```\n\n```go\nfunc (client *Client) CreateSpace(spaceName string, orgGUID string) (Space, Warnings, error)\n```\nCreateSpace creates a new space with the provided spaceName in the org with the provided orgGUID.\n\n```go\nfunc (client *Client) CreateUser(uaaUserID string) (User, Warnings, error)\n```\nCreateUser creates a new Cloud Controller User from the provided UAA user ID.\n\n```go\nfunc (client *Client) DeleteOrganization(guid string) (Job, Warnings, error)\n```\nDeleteOrganization deletes the Organization associated with the provided GUID. It will return the Cloud Controller job that is assigned to the Organization deletion.\n\n```go\nfunc (client *Client) DeleteOrganizationJob(guid string) (Job, Warnings, error)\n```\nDeleteOrganizationJob deletes the Organization associated with the provided GUID. It will return the Cloud Controller job that is assigned to the Organization deletion.\n\n```go\nfunc (client *Client) DeleteRoute(routeGUID string) (Warnings, error)\n```\nDeleteRoute deletes the Route associated with the provided Route GUID.\n\n```go\nfunc (client *Client) DeleteRouteApplication(routeGUID string, appGUID string) (Warnings, error)\n```\nDeleteRouteApplication removes the link between the route and application.\n\n```go\nfunc (client *Client) DeleteSecurityGroupSpace(securityGroupGUID string, spaceGUID string) (Warnings, error)\n```\nDeleteSecurityGroupSpace disassociates a security group in the running phase for the lifecycle, specified by its GUID, from a space, which is also specified by its GUID.\n\n```go\nfunc (client *Client) DeleteSecurityGroupStagingSpace(securityGroupGUID string, spaceGUID string) (Warnings, error)\n```\nDeleteSecurityGroupStagingSpace disassociates a security group in the staging phase fo the lifecycle, specified by its GUID, from a space, which is also specified by its GUID.\n\n```go\nfunc (client *Client) DeleteService(serviceGUID string, purge bool) (Warnings, error)\n```\nDeleteService deletes the service with the given GUID, and returns any errors and warnings.\n\n```go\nfunc (client *Client) DeleteServiceBinding(serviceBindingGUID string, acceptsIncomplete bool) (ServiceBinding, Warnings, error)\n```\nDeleteServiceBinding deletes the specified Service Binding. An updated service binding is returned only if acceptsIncomplete is true.\n\n```go\nfunc (client *Client) DeleteServicePlanVisibility(servicePlanVisibilityGUID string) (Warnings, error)\n```\n\n```go\nfunc (client *Client) DeleteSpace(guid string) (Job, Warnings, error)\n```\nDeleteSpace deletes the Space associated with the provided GUID. It will return the Cloud Controller job that is assigned to the Space deletion.\n\n```go\nfunc (client *Client) DeleteSpaceJob(guid string) (Job, Warnings, error)\n```\nDeleteSpaceJob deletes the Space associated with the provided GUID. It will return the Cloud Controller job that is assigned to the Space deletion.\n\n```go\nfunc (client *Client) DeleteSpaceUnmappedRoutes(spaceGUID string) (Warnings, error)\n```\nDeleteSpaceUnmappedRoutes deletes Routes within a specified Space not mapped to an Application\n\n```go\nfunc (client *Client) DopplerEndpoint() string\n```\nDopplerEndpoint returns the Doppler endpoint for the targetd Cloud Controller.\n\n```go\nfunc (client *Client) GetApplication(guid string) (Application, Warnings, error)\n```\nGetApplication returns back an Application.\n\n```go\nfunc (client *Client) GetApplicationApplicationInstanceStatuses(guid string) (map[int]ApplicationInstanceStatus, Warnings, error)\n```\nGetApplicationApplicationInstanceStatuses returns a list of ApplicationInstanceStatus for a given application. Depending on the state of an application, it might skip some application instance statuses.\n\n```go\nfunc (client *Client) GetApplicationApplicationInstances(guid string) (map[int]ApplicationInstance, Warnings, error)\n```\nGetApplicationApplicationInstances returns a list of ApplicationInstance for a given application. Depending on the state of an application, it might skip some application instances.\n\n```go\nfunc (client *Client) GetApplicationRoutes(appGUID string, filters ...Filter) ([]Route, Warnings, error)\n```\nGetApplicationRoutes returns a list of Routes associated with the provided Application GUID, and filtered by the provided filters.\n\n```go\nfunc (client *Client) GetApplications(filters ...Filter) ([]Application, Warnings, error)\n```\nGetApplications returns back a list of Applications based off of the provided filters.\n\n```go\nfunc (client *Client) GetBuildpacks(filters ...Filter) ([]Buildpack, Warnings, error)\n```\nGetBuildpacks searches for a buildpack with the given name and returns it if it exists.\n\n```go\nfunc (client Client) GetConfigFeatureFlags() ([]FeatureFlag, Warnings, error)\n```\nGetConfigFeatureFlags retrieves a list of FeatureFlag from the Cloud Controller.\n\n```go\nfunc (client *Client) GetEvents(filters ...Filter) ([]Event, Warnings, error)\n```\nGetEvents returns back a list of Events based off of the provided queries.\n\n```go\nfunc (client *Client) GetJob(jobGUID string) (Job, Warnings, error)\n```\nGetJob returns a job for the provided GUID.\n\n```go\nfunc (client *Client) GetOrganization(guid string) (Organization, Warnings, error)\n```\nGetOrganization returns an Organization associated with the provided GUID.\n\n```go\nfunc (client *Client) GetOrganizationPrivateDomains(orgGUID string, filters ...Filter) ([]Domain, Warnings, error)\n```\nGetOrganizationPrivateDomains returns the private domains associated with an organization.\n\n```go\nfunc (client *Client) GetOrganizationQuota(guid string) (OrganizationQuota, Warnings, error)\n```\nGetOrganizationQuota returns an Organization Quota associated with the provided GUID.\n\n```go\nfunc (client *Client) GetOrganizationQuotas(filters ...Filter) ([]OrganizationQuota, Warnings, error)\n```\nGetOrganizationQuotas returns an Organization Quota list associated with the provided filters.\n\n```go\nfunc (client *Client) GetOrganizations(filters ...Filter) ([]Organization, Warnings, error)\n```\nGetOrganizations returns back a list of Organizations based off of the provided filters.\n\n```go\nfunc (client *Client) GetPrivateDomain(domainGUID string) (Domain, Warnings, error)\n```\nGetPrivateDomain returns the Private Domain associated with the provided Domain GUID.\n\n```go\nfunc (client *Client) GetPrivateDomains(filters ...Filter) ([]Domain, Warnings, error)\n```\nGetPrivateDomains returns the private domains this client has access to.\n\n```go\nfunc (client *Client) GetRoute(guid string) (Route, Warnings, error)\n```\nGetRoute returns a route with the provided guid.\n\n```go\nfunc (client *Client) GetRouteApplications(routeGUID string, filters ...Filter) ([]Application, Warnings, error)\n```\nGetRouteApplications returns a list of Applications based off a route GUID and the provided filters.\n\n```go\nfunc (client *Client) GetRouteMapping(guid string) (RouteMapping, Warnings, error)\n```\nGetRouteMapping returns a route mapping with the provided guid.\n\n```go\nfunc (client *Client) GetRouteMappings(filters ...Filter) ([]RouteMapping, Warnings, error)\n```\nGetRouteMappings returns a list of RouteMappings based off of the provided queries.\n\n```go\nfunc (client *Client) GetRoutes(filters ...Filter) ([]Route, Warnings, error)\n```\nGetRoutes returns a list of Routes based off of the provided filters.\n\n```go\nfunc (client *Client) GetSecurityGroupSpaces(securityGroupGUID string) ([]Space, Warnings, error)\n```\nGetSecurityGroupSpaces returns a list of Spaces based on the provided SecurityGroup GUID.\n\n```go\nfunc (client *Client) GetSecurityGroupStagingSpaces(securityGroupGUID string) ([]Space, Warnings, error)\n```\nGetSecurityGroupStagingSpaces returns a list of Spaces based on the provided SecurityGroup GUID.\n\n```go\nfunc (client *Client) GetSecurityGroups(filters ...Filter) ([]SecurityGroup, Warnings, error)\n```\nGetSecurityGroups returns a list of Security Groups based off the provided filters.\n\n```go\nfunc (client *Client) GetService(serviceGUID string) (Service, Warnings, error)\n```\nGetService returns the service with the given GUID.\n\n```go\nfunc (client *Client) GetServiceBinding(guid string) (ServiceBinding, Warnings, error)\n```\nGetServiceBinding returns back a service binding with the provided GUID.\n\n```go\nfunc (client *Client) GetServiceBindings(filters ...Filter) ([]ServiceBinding, Warnings, error)\n```\nGetServiceBindings returns back a list of Service Bindings based off of the provided filters.\n\n```go\nfunc (client *Client) GetServiceBrokers(filters ...Filter) ([]ServiceBroker, Warnings, error)\n```\nGetServiceBrokers returns back a list of Service Brokers given the provided filters.\n\n```go\nfunc (client *Client) GetServiceInstance(serviceInstanceGUID string) (ServiceInstance, Warnings, error)\n```\nGetServiceInstance returns the service instance with the given GUID. This service can be either a managed or user provided.\n\n```go\nfunc (client *Client) GetServiceInstanceServiceBindings(serviceInstanceGUID string) ([]ServiceBinding, Warnings, error)\n```\nGetServiceInstanceServiceBindings returns back a list of Service Bindings for the provided service instance GUID.\n\n```go\nfunc (client *Client) GetServiceInstanceSharedFrom(serviceInstanceGUID string) (ServiceInstanceSharedFrom, Warnings, error)\n```\nGetServiceInstanceSharedFrom returns back a ServiceInstanceSharedFrom object.\n\n```go\nfunc (client *Client) GetServiceInstanceSharedTos(serviceInstanceGUID string) ([]ServiceInstanceSharedTo, Warnings, error)\n```\nGetServiceInstanceSharedTos returns a list of ServiceInstanceSharedTo objects.\n\n```go\nfunc (client *Client) GetServiceInstances(filters ...Filter) ([]ServiceInstance, Warnings, error)\n```\nGetServiceInstances returns back a list of \\*managed\\* Service Instances based off of the provided filters.\n\n```go\nfunc (client *Client) GetServicePlan(servicePlanGUID string) (ServicePlan, Warnings, error)\n```\nGetServicePlan returns the service plan with the given GUID.\n\n```go\nfunc (client *Client) GetServicePlanVisibilities(filters ...Filter) ([]ServicePlanVisibility, Warnings, error)\n```\nGetServicePlanVisibilities returns back a list of Service Plan Visibilities given the provided filters.\n\n```go\nfunc (client *Client) GetServicePlans(filters ...Filter) ([]ServicePlan, Warnings, error)\n```\n\n```go\nfunc (client *Client) GetServices(filters ...Filter) ([]Service, Warnings, error)\n```\nGetServices returns a list of Services given the provided filters.\n\n```go\nfunc (client *Client) GetSharedDomain(domainGUID string) (Domain, Warnings, error)\n```\nGetSharedDomain returns the Shared Domain associated with the provided Domain GUID.\n\n```go\nfunc (client *Client) GetSharedDomains(filters ...Filter) ([]Domain, Warnings, error)\n```\nGetSharedDomains returns the global shared domains.\n\n```go\nfunc (client *Client) GetSpaceQuotaDefinition(guid string) (SpaceQuota, Warnings, error)\n```\nGetSpaceQuotaDefinition returns a Space Quota.\n\n```go\nfunc (client *Client) GetSpaceQuotas(orgGUID string) ([]SpaceQuota, Warnings, error)\n```\nGetSpaceQuotas returns all the space quotas for the org\n\n```go\nfunc (client *Client) GetSpaceRoutes(spaceGUID string, filters ...Filter) ([]Route, Warnings, error)\n```\nGetSpaceRoutes returns a list of Routes associated with the provided Space GUID, and filtered by the provided filters.\n\n```go\nfunc (client *Client) GetSpaceSecurityGroups(spaceGUID string, filters ...Filter) ([]SecurityGroup, Warnings, error)\n```\nGetSpaceSecurityGroups returns the running Security Groups associated with the provided Space GUID.\n\n```go\nfunc (client *Client) GetSpaceServiceInstances(spaceGUID string, includeUserProvidedServices bool, filters ...Filter) ([]ServiceInstance, Warnings, error)\n```\nGetSpaceServiceInstances returns back a list of Service Instances based off of the space and filters provided. User provided services will be included if includeUserProvidedServices is set to true.\n\n```go\nfunc (client *Client) GetSpaceServices(spaceGUID string, filters ...Filter) ([]Service, Warnings, error)\n```\n\n```go\nfunc (client *Client) GetSpaceStagingSecurityGroups(spaceGUID string, filters ...Filter) ([]SecurityGroup, Warnings, error)\n```\nGetSpaceStagingSecurityGroups returns the staging Security Groups associated with the provided Space GUID.\n\n```go\nfunc (client *Client) GetSpaceSummary(spaceGUID string) (SpaceSummary, Warnings, error)\n```\nGetSpaceSummary returns the summary of the space with the given GUID.\n\n```go\nfunc (client *Client) GetSpaces(filters ...Filter) ([]Space, Warnings, error)\n```\nGetSpaces returns a list of Spaces based off of the provided filters.\n\n```go\nfunc (client *Client) GetStack(guid string) (Stack, Warnings, error)\n```\nGetStack returns the requested stack.\n\n```go\nfunc (client *Client) GetStacks(filters ...Filter) ([]Stack, Warnings, error)\n```\nGetStacks returns a list of Stacks based off of the provided filters.\n\n```go\nfunc (client *Client) GetUserProvidedServiceInstanceServiceBindings(userProvidedServiceInstanceGUID string) ([]ServiceBinding, Warnings, error)\n```\nGetUserProvidedServiceInstanceServiceBindings returns back a list of Service Bindings for the provided user provided service instance GUID.\n\n```go\nfunc (client *Client) GetUserProvidedServiceInstances(filters ...Filter) ([]ServiceInstance, Warnings, error)\n```\nGetUserProvidedServiceInstances returns back a list of \\*user provided\\* Service Instances based off the provided queries.\n\n```go\nfunc (client *Client) Info() (APIInformation, Warnings, error)\n```\nInfo returns back endpoint and API information from /v2/info.\n\n```go\nfunc (client *Client) LogCacheEndpoint() string\n```\n\n```go\nfunc (client *Client) MinCLIVersion() string\n```\nMinCLIVersion returns the minimum CLI version required for the targeted Cloud Controller\n\n```go\nfunc (client *Client) PollJob(job Job) (Warnings, error)\n```\nPollJob will keep polling the given job until the job has terminated, an error is encountered, or config.OverallPollingTimeout is reached. In the last case, a JobTimeoutError is returned.\n\n```go\nfunc (client *Client) RestageApplication(app Application) (Application, Warnings, error)\n```\nRestageApplication restages the application with the given GUID.\n\n```go\nfunc (client *Client) RootResponse() (Info, Warnings, error)\n```\nrootResponse returns the CC API root document.\n\n```go\nfunc (client *Client) RoutingEndpoint() string\n```\nRoutingEndpoint returns the Routing endpoint for the targeted Cloud Controller.\n\n```go\nfunc (client *Client) SetSpaceQuota(spaceGUID string, quotaGUID string) (Warnings, error)\n```\nSetSpaceQuota should set the quota for the space and returns the warnings\n\n```go\nfunc (client *Client) TargetCF(settings TargetSettings) (Warnings, error)\n```\nTargetCF sets the client to use the Cloud Controller specified in the configuration. Any other configuration is also applied to the client.\n\n```go\nfunc (client *Client) UpdateApplication(app Application) (Application, Warnings, error)\n```\nUpdateApplication updates the application with the given GUID. Note: Sending DockerImage and StackGUID at the same time will result in an API error.\n\n```go\nfunc (client *Client) UpdateBuildpack(buildpack Buildpack) (Buildpack, Warnings, error)\n```\nUpdateBuildpack updates the buildpack with the provided GUID and returns the updated buildpack. Note: Stack cannot be updated without uploading a new buildpack.\n\n```go\nfunc (client *Client) UpdateOrganizationManager(guid string, uaaID string) (Warnings, error)\n```\nUpdateOrganizationManager assigns the org manager role to the UAA user or client with the provided ID.\n\n```go\nfunc (client *Client) UpdateOrganizationManagerByUsername(guid string, username string) (Warnings, error)\n```\nUpdateOrganizationManagerByUsername assigns the org manager role to the user with the provided name.\n\n```go\nfunc (client *Client) UpdateOrganizationUser(guid string, uaaID string) (Warnings, error)\n```\nUpdateOrganizationUser makes the user or client with the given UAA ID a member of the org.\n\n```go\nfunc (client Client) UpdateOrganizationUserByUsername(orgGUID string, username string) (Warnings, error)\n```\nUpdateOrganizationUserByUsername makes the user with the given username a member of the org.\n\n```go\nfunc (client *Client) UpdateResourceMatch(resourcesToMatch []Resource) ([]Resource, Warnings, error)\n```\nUpdateResourceMatch returns the resources that exist on the cloud foundry instance from the set of resources given.\n\n```go\nfunc (client *Client) UpdateRouteApplication(routeGUID string, appGUID string) (Route, Warnings, error)\n```\nUpdateRouteApplication creates a link between the route and application.\n\n```go\nfunc (client *Client) UpdateSecurityGroupSpace(securityGroupGUID string, spaceGUID string) (Warnings, error)\n```\nUpdateSecurityGroupSpace associates a security group in the running phase for the lifecycle, specified by its GUID, from a space, which is also specified by its GUID.\n\n```go\nfunc (client *Client) UpdateSecurityGroupStagingSpace(securityGroupGUID string, spaceGUID string) (Warnings, error)\n```\nUpdateSecurityGroupStagingSpace associates a security group in the staging phase for the lifecycle, specified by its GUID, from a space, which is also specified by its GUID.\n\n```go\nfunc (client *Client) UpdateServiceInstanceMaintenanceInfo(serviceInstanceGUID string, maintenanceInfo MaintenanceInfo) (Warnings, error)\n```\n\n```go\nfunc (client *Client) UpdateServicePlan(guid string, public bool) (Warnings, error)\n```\n\n```go\nfunc (client *Client) UpdateSpaceDeveloper(spaceGUID string, uaaID string) (Warnings, error)\n```\nUpdateSpaceDeveloper grants the space developer role to the user or client associated with the given UAA ID.\n\n```go\nfunc (client *Client) UpdateSpaceDeveloperByUsername(spaceGUID string, username string) (Warnings, error)\n```\nUpdateSpaceDeveloperByUsername grants the given username the space developer role.\n\n```go\nfunc (client *Client) UpdateSpaceManager(spaceGUID string, uaaID string) (Warnings, error)\n```\nUpdateSpaceManager grants the space manager role to the user or client associated with the given UAA ID.\n\n```go\nfunc (client *Client) UpdateSpaceManagerByUsername(spaceGUID string, username string) (Warnings, error)\n```\nUpdateSpaceManagerByUsername grants the given username the space manager role.\n\n```go\nfunc (client *Client) UpdateUserProvidedServiceInstance(serviceGUID string, instance UserProvidedServiceInstance) (Warnings, error)\n```\n\n```go\nfunc (client *Client) UploadApplicationPackage(appGUID string, existingResources []Resource, newResources Reader, newResourcesLength int64) (Job, Warnings, error)\n```\nUploadApplicationPackage uploads the newResources and a list of existing resources to the cloud controller. A job that combines the requested/newly uploaded bits is returned. The function will act differently given the following Readers:\n\n\tio.ReadSeeker: Will function properly on retry.\n\tio.Reader: Will return a ccerror.PipeSeekError on retry.\n\tnil: Will not add the \"application\" section to the request.\n\tnewResourcesLength is ignored in this case.\n\n```go\nfunc (client *Client) UploadBuildpack(buildpackGUID string, buildpackPath string, buildpack io.Reader, buildpackLength int64) (Warnings, error)\n```\nUploadBuildpack uploads the contents of a buildpack zip to the server.\n\n```go\nfunc (client *Client) UploadDroplet(appGUID string, droplet io.Reader, dropletLength int64) (Job, Warnings, error)\n```\nUploadDroplet defines and uploads a previously staged droplet that an application will run, using a multipart PUT request. The uploaded file should be a gzipped tar file.\n\n```go\nfunc (client *Client) WrapConnection(wrapper ConnectionWrapper)\n```\nWrapConnection wraps the current Client connection in the wrapper.\n\n```go\ntype Config struct {\n\t// AppName is the name of the application/process using the client.\n\tAppName string\n\n\t// AppVersion is the version of the application/process using the client.\n\tAppVersion string\n\n\t// JobPollingTimeout is the maximum amount of time a job polls for.\n\tJobPollingTimeout time.Duration\n\n\t// JobPollingInterval is the wait time between job polls.\n\tJobPollingInterval time.Duration\n\n\t// Wrappers that apply to the client connection.\n\tWrappers []ConnectionWrapper\n}\n```\nConfig allows the Client to be configured\n\n```go\ntype ConnectionWrapper interface {\n\tcloudcontroller.Connection\n\tWrap(innerconnection cloudcontroller.Connection) cloudcontroller.Connection\n}\n```\nConnectionWrapper can wrap a given connection allowing the wrapper to modify all requests going in and out of the given connection.\n\n```go\ntype DockerCredentials struct {\n\t// Username is the username for a user that has access to a given docker\n\t// image.\n\tUsername string `json:\"username,omitempty\"`\n\n\t// Password is the password for the user.\n\tPassword string `json:\"password,omitempty\"`\n}\n```\nDockerCredentials are the authentication credentials to pull a docker image from it's repository.\n\n```go\ntype Domain struct {\n\t// GUID is the unique domain identifier.\n\tGUID string\n\n\t// Internal indicates whether the domain is an internal domain.\n\tInternal bool\n\n\t// Name is the name given to the domain.\n\tName string\n\n\t// RouterGroupGUID is the unique identier of the router group this domain is\n\t// assigned to.\n\tRouterGroupGUID string\n\n\t// RouterGroupType is the type of router group this domain is assigned to. It\n\t// can be of type `tcp` or `http`.\n\tRouterGroupType constant.RouterGroupType\n\n\t// DomainType is the access type of the domain. It can be either a domain\n\t// private to a single org or it can be a domain shared to all orgs.\n\tType constant.DomainType\n}\n```\nDomain represents a Cloud Controller Domain.\n\n```go\nfunc (domain *Domain) UnmarshalJSON(data []byte) error\n```\nUnmarshalJSON helps unmarshal a Cloud Controller Domain response.\n\n```go\ntype Event struct {\n\t// GUID is the unique event identifier.\n\tGUID string\n\n\t// Type is the type of event.\n\tType constant.EventType\n\n\t// ActorGUID is the GUID of the actor initiating an event.\n\tActorGUID string\n\n\t// ActorType is the type of actor initiating an event.\n\tActorType string\n\n\t// ActorName is the name of the actor initiating an event.\n\tActorName string\n\n\t// ActeeGUID is the GUID of the cc object affected by an event.\n\tActeeGUID string\n\n\t// ActeeType is the type of the cc object affected by an event.\n\tActeeType string\n\n\t// ActeeName is the name of the cc object affected by an event.\n\tActeeName string\n\n\t// Timestamp is the event creation time.\n\tTimestamp time.Time\n\n\t// Metadata contains additional information about the event.\n\tMetadata map[string]interface{}\n}\n```\nEvent represents a Cloud Controller Event\n\n```go\nfunc (event *Event) UnmarshalJSON(data []byte) error\n```\nUnmarshalJSON helps unmarshal a Cloud Controller Event response.\n\n```go\ntype FeatureFlag struct {\n\t// Name is a string representation of the Cloud Controller\n\t// feature flag's name.\n\tName string `json:\"name\"`\n\n\t// Enabled is the status of the Cloud Controller feature\n\t// flag.\n\tEnabled bool `json:\"enabled\"`\n}\n```\nFeatureFlag represents a Cloud Controller feature flag.\n\n```go\ntype Filter struct {\n\t// Type is the component that determines what the query is filtered by.\n\tType constant.FilterType\n\n\t// Operator is the component that determines how the the query will be filtered.\n\tOperator constant.FilterOperator\n\n\t// Values is the component that determines what values are filtered.\n\tValues []string\n}\n```\nFilter is a type of filter that can be passed to specific request to narrow down the return set.\n\n```go\ntype Info struct {\n\t// Links is a list of top level Cloud Controller APIs.\n\tLinks InfoLinks `json:\"links\"`\n}\n```\nInfo represents a GET response from the '/' endpoint of the cloud controller API.\n\n```go\ntype InfoLinks struct {\n\tLogCache APILink `json:\"log_cache\"`\n}\n```\n\n```go\ntype Job struct {\n\n\t// Error is the error a job returns if it failed. It is otherwise empty.\n\tError string\n\n\t// ErrorDetails is a detailed description of a job failure returned by the\n\t// Cloud Controller.\n\tErrorDetails struct {\n\t\tDescription string\n\t}\n\n\t// GUID is the unique job identifier.\n\tGUID string\n\n\t// Status is the current state of the job.\n\tStatus constant.JobStatus\n}\n```\nJob represents a Cloud Controller Job.\n\n```go\nfunc (job Job) Failed() bool\n```\nFailed returns true when the job has completed with an error/failure.\n\n```go\nfunc (job Job) Finished() bool\n```\nFinished returns true when the job has completed successfully.\n\n```go\nfunc (job *Job) UnmarshalJSON(data []byte) error\n```\nUnmarshalJSON helps unmarshal a Cloud Controller Job response.\n\n```go\ntype LastOperation struct {\n\t// Type is the type of operation that was last performed or currently being\n\t// performed on the service instance.\n\tType string `json:\"type\"`\n\n\t// State is the status of the last operation or current operation being\n\t// performed on the service instance.\n\tState constant.LastOperationState `json:\"state\"`\n\n\t// Description is the service broker-provided description of the operation.\n\tDescription string `json:\"description\"`\n\n\t// UpdatedAt is the timestamp that the Cloud Controller last checked the\n\t// service instance state from the broker.\n\tUpdatedAt string `json:\"updated_at\"`\n\n\t// CreatedAt is the timestamp that the Cloud Controller created the service\n\t// instance from the broker.\n\tCreatedAt string `json:\"created_at\"`\n}\n```\nLastOperation is the status of the last operation requested on a service instance.\n\n```go\ntype MaintenanceInfo struct {\n\tVersion     string `json:\"version,omitempty\"`\n\tDescription string `json:\"description,omitempty\"`\n}\n```\n\n```go\ntype Organization struct {\n\n\t// GUID is the unique Organization identifier.\n\tGUID string\n\n\t// Name is the organization's name.\n\tName string\n\n\t// QuotaDefinitionGUID is unique identifier of the quota assigned to this\n\t// organization.\n\tQuotaDefinitionGUID string\n\n\t// DefaultIsolationSegmentGUID is the unique identifier of the isolation\n\t// segment this organization is tagged with.\n\tDefaultIsolationSegmentGUID string\n}\n```\nOrganization represents a Cloud Controller Organization.\n\n```go\nfunc (org *Organization) UnmarshalJSON(data []byte) error\n```\nUnmarshalJSON helps unmarshal a Cloud Controller Organization response.\n\n```go\ntype OrganizationQuota struct {\n\n\t// GUID is the unique OrganizationQuota identifier.\n\tGUID string\n\n\t// Name is the name of the OrganizationQuota.\n\tName string\n}\n```\nOrganizationQuota is the definition of a quota for an organization.\n\n```go\nfunc (application *OrganizationQuota) UnmarshalJSON(data []byte) error\n```\nUnmarshalJSON helps unmarshal a Cloud Controller organization quota response.\n\n```go\ntype PaginatedResources struct {\n\tNextURL        string          `json:\"next_url\"`\n\tResourcesBytes json.RawMessage `json:\"resources\"`\n\t// contains filtered or unexported fields\n}\n```\nPaginatedResources represents a page of resources returned by the Cloud Controller.\n\n```go\nfunc NewPaginatedResources(exampleResource interface{}) *PaginatedResources\n```\nNewPaginatedResources returns a new PaginatedResources struct with the given resource type.\n\n```go\nfunc (pr PaginatedResources) Resources() ([]interface{}, error)\n```\nResources unmarshals JSON representing a page of resources and returns a slice of the given resource type.\n\n```go\ntype Params map[string]string\n```\nParams represents URI parameters for a request.\n\n```go\ntype Reader interface {\n\tio.Reader\n}\n```\nReader is an io.Reader.\n\n```go\ntype Resource struct {\n\n\t// Filename is the name of the resource.\n\tFilename string `json:\"fn\"`\n\n\t// Mode is the operating system file mode (aka file permissions) of the\n\t// resource.\n\tMode os.FileMode `json:\"mode\"`\n\n\t// SHA1 represents the SHA-1 hash of the resource.\n\tSHA1 string `json:\"sha1\"`\n\n\t// Size represents the file size of the resource.\n\tSize int64 `json:\"size\"`\n}\n```\nResource represents a Cloud Controller Resource.\n\n```go\nfunc (r Resource) MarshalJSON() ([]byte, error)\n```\nMarshalJSON converts a resource into a Cloud Controller Resource.\n\n```go\nfunc (r *Resource) UnmarshalJSON(data []byte) error\n```\nUnmarshalJSON helps unmarshal a Cloud Controller Resource response.\n\n```go\ntype Route struct {\n\n\t// GUID is the unique Route identifier.\n\tGUID string `json:\"-\"`\n\n\t// Host is the hostname of the route.\n\tHost string `json:\"host,omitempty\"`\n\n\t// Path is the path of the route.\n\tPath string `json:\"path,omitempty\"`\n\n\t// Port is the port number of the route.\n\tPort types.NullInt `json:\"port,omitempty\"`\n\n\t// DomainGUID is the unique Domain identifier.\n\tDomainGUID string `json:\"domain_guid\"`\n\n\t// SpaceGUID is the unique Space identifier.\n\tSpaceGUID string `json:\"space_guid\"`\n}\n```\nRoute represents a Cloud Controller Route.\n\n```go\nfunc (route *Route) UnmarshalJSON(data []byte) error\n```\nUnmarshalJSON helps unmarshal a Cloud Controller Route response.\n\n```go\ntype RouteMapping struct {\n\t// GUID is the unique route mapping identifier.\n\tGUID string\n\n\t// AppGUID is the unique application identifier.\n\tAppGUID string\n\n\t// RouteGUID is the unique route identifier.\n\tRouteGUID string\n}\n```\nRouteMapping represents a Cloud Controller map between an application and route.\n\n```go\nfunc (routeMapping *RouteMapping) UnmarshalJSON(data []byte) error\n```\nUnmarshalJSON helps unmarshal a Cloud Controller Route Mapping\n\n```go\ntype SecurityGroup struct {\n\t// GUID is the unique Security Group identifier.\n\tGUID string\n\t// Name is the Security Group's name.\n\tName string\n\t// Rules are the Security Group Rules associated with this Security Group.\n\tRules []SecurityGroupRule\n\t// RunningDefault is true when this Security Group is applied to all running\n\t// apps in the CF instance.\n\tRunningDefault bool\n\t// StagingDefault is true when this Security Group is applied to all staging\n\t// apps in the CF instance.\n\tStagingDefault bool\n}\n```\nSecurityGroup represents a Cloud Controller Security Group.\n\n```go\nfunc (securityGroup *SecurityGroup) UnmarshalJSON(data []byte) error\n```\nUnmarshalJSON helps unmarshal a Cloud Controller Security Group response\n\n```go\ntype SecurityGroupRule struct {\n\t// Description is a short message discribing the rule.\n\tDescription string\n\n\t// Destination is the destination CIDR or range of IPs.\n\tDestination string\n\n\t// Ports is the port or port range.\n\tPorts string\n\n\t// Protocol can be tcp, icmp, udp, all.\n\tProtocol string\n}\n```\nSecurityGroupRule represents a Cloud Controller Security Group Role.\n\n```go\ntype Service struct {\n\t// GUID is the unique Service identifier.\n\tGUID string\n\t// Label is the name of the service.\n\tLabel string\n\t// Description is a short blurb describing the service.\n\tDescription string\n\t// DocumentationURL is a url that points to a documentation page for the\n\t// service.\n\tDocumentationURL string\n\t// ServiceBrokerName is name of the service broker associated with the service\n\tServiceBrokerName string\n\t// Extra is a field with extra data pertaining to the service.\n\tExtra ServiceExtra\n}\n```\nService represents a Cloud Controller Service.\n\n```go\nfunc (service *Service) UnmarshalJSON(data []byte) error\n```\nUnmarshalJSON helps unmarshal a Cloud Controller Service response.\n\n```go\ntype ServiceBinding struct {\n\t// AppGUID is the associated application GUID.\n\tAppGUID string\n\t// GUID is the unique Service Binding identifier.\n\tGUID string\n\t// LastOperation\n\tLastOperation LastOperation\n\t// Name is the name of the service binding\n\tName string\n\t// ServiceInstanceGUID is the associated service GUID.\n\tServiceInstanceGUID string\n}\n```\nServiceBinding represents a Cloud Controller Service Binding.\n\n```go\nfunc (serviceBinding *ServiceBinding) UnmarshalJSON(data []byte) error\n```\nUnmarshalJSON helps unmarshal a Cloud Controller Service Binding response.\n\n```go\ntype ServiceBroker struct {\n\t// AuthUsername is the HTTP Basic Auth username of the service broker.\n\tAuthUsername string\n\t// BrokerURL is the URL of the service broker.\n\tBrokerURL string\n\t// GUID is the unique Service Broker identifier.\n\tGUID string\n\t// Name is the name of the service broker.\n\tName string\n\t// SpaceGUID is the space guid of the serivce broker. Only applies to space scoped service brokers.\n\tSpaceGUID string\n}\n```\nServiceBroker represents a Cloud Controller Service Broker.\n\n```go\nfunc (serviceBroker *ServiceBroker) UnmarshalJSON(data []byte) error\n```\nUnmarshalJSON helps unmarshal a Cloud Controller Service Broker response.\n\n```go\ntype ServiceExtra struct {\n\t// DocumentationURL is the URL of the documentation page for the service.\n\tDocumentationURL string `json:\"documentationUrl\"`\n\n\t// Shareable is true if the service is shareable across organizations and\n\t// spaces.\n\tShareable bool\n}\n```\nServiceExtra contains extra service related properties.\n\n```go\ntype ServiceInstance struct {\n\t// GUID is the unique service instance identifier.\n\tGUID string\n\n\t// Name is the name given to the service instance.\n\tName string\n\n\t// SpaceGUID is the unique identifier of the space that this service instance\n\t// belongs to.\n\tSpaceGUID string\n\n\t// ServiceGUID is the unique identifier of the service that this service\n\t// instance belongs to.\n\tServiceGUID string\n\n\t// ServicePlanGUID is the unique identifier of the service plan that this\n\t// service instance belongs to.\n\tServicePlanGUID string\n\n\t// Type is the type of service instance.\n\tType constant.ServiceInstanceType\n\n\t// Tags is a list of all tags for the service instance.\n\tTags []string\n\n\t// DashboardURL is the service-broker provided URL to access administrative\n\t// features of the service instance.\n\tDashboardURL string\n\n\t// RouteServiceURL is the URL of the user-provided service to which requests\n\t// for bound routes will be forwarded.\n\tRouteServiceURL string\n\n\t// LastOperation is the status of the last operation requested on the service\n\t// instance.\n\tLastOperation LastOperation\n\n\t// MaintenanceInfo is the maintenance version of this service instance\n\tMaintenanceInfo MaintenanceInfo\n}\n```\nServiceInstance represents a Cloud Controller Service Instance.\n\n```go\nfunc (serviceInstance ServiceInstance) Managed() bool\n```\nManaged returns true if the Service Instance is a managed service.\n\n```go\nfunc (serviceInstance *ServiceInstance) UnmarshalJSON(data []byte) error\n```\nUnmarshalJSON helps unmarshal a Cloud Controller Service Instance response.\n\n```go\nfunc (serviceInstance ServiceInstance) UserProvided() bool\n```\nUserProvided returns true if the Service Instance is a user provided service.\n\n```go\ntype ServiceInstanceSharedFrom struct {\n\t// SpaceGUID is the unique identifier of the space that this service is\n\t// shared from.\n\tSpaceGUID string `json:\"space_guid\"`\n\n\t// SpaceName is the name of the space that this service is shared from.\n\tSpaceName string `json:\"space_name\"`\n\n\t// OrganizationName is the name of the organization that this service is\n\t// shared from.\n\tOrganizationName string `json:\"organization_name\"`\n}\n```\nServiceInstanceSharedFrom represents a Cloud Controller relationship object that describes a service instance in another space (and possibly org) that this service instance is \\*\\*shared from\\*\\*.\n\n```go\ntype ServiceInstanceSharedTo struct {\n\t// SpaceGUID is the unique identifier of the space that this service is\n\t// shared to.\n\tSpaceGUID string `json:\"space_guid\"`\n\n\t// SpaceName is the name of the space that this service is shared to.\n\tSpaceName string `json:\"space_name\"`\n\n\t// OrganizationName is the name of the organization that this service is\n\t// shared to.\n\tOrganizationName string `json:\"organization_name\"`\n\n\t// BoundAppCount is the number of apps that are bound to the shared to\n\t// service instance.\n\tBoundAppCount int `json:\"bound_app_count\"`\n}\n```\nServiceInstanceSharedTo represents a Cloud Controller relationship object that describes a service instance in another space (and possibly org) that this service is \\*\\*shared to\\*\\*.\n\n```go\ntype ServiceKey struct {\n\t// GUID is the unique Service Key identifier.\n\tGUID string\n\t// Name is the name of the service key.\n\tName string\n\t// ServiceInstanceGUID is the associated service instance GUID.\n\tServiceInstanceGUID string\n\t// Credentials are the credentials returned by the service broker for the service key.\n\tCredentials map[string]interface{}\n}\n```\nServiceKey represents a Cloud Controller Service Key.\n\n```go\nfunc (serviceKey *ServiceKey) UnmarshalJSON(data []byte) error\n```\n\n```go\ntype ServicePlan struct {\n\t//GUID is the unique identifier of the service plan.\n\tGUID string\n\n\t// Name is the name of the service plan.\n\tName string\n\n\t// ServiceGUID is the unique identifier of the service that the service\n\t// plan belongs to.\n\tServiceGUID string\n\n\t// Public is true if plan is accessible to all organizations.\n\tPublic bool\n\n\t// Description of the plan\n\tDescription string\n\n\t// Free is true if plan is free\n\tFree bool\n\n\t// Information about maintenance available\n\tMaintenanceInfo MaintenanceInfo\n}\n```\nServicePlan represents a predefined set of configurations for a Cloud Controller service object.\n\n```go\nfunc (servicePlan *ServicePlan) UnmarshalJSON(data []byte) error\n```\nUnmarshalJSON helps unmarshal a Cloud Controller Service Plan response.\n\n```go\ntype ServicePlanVisibility struct {\n\t// GUID is the unique Service Plan Visibility identifier.\n\tGUID string\n\t// ServicePlanGUID of the associated Service Plan.\n\tServicePlanGUID string\n\t// OrganizationGUID of the associated Organization.\n\tOrganizationGUID string\n}\n```\nServicePlanVisibility represents a Cloud Controller Service Plan Visibility.\n\n```go\nfunc (servicePlanVisibility *ServicePlanVisibility) UnmarshalJSON(data []byte) error\n```\nUnmarshalJSON helps unmarshal a Cloud Controller Service Plan Visibilities response.\n\n```go\ntype Space struct {\n\t// AllowSSH specifies whether SSH is enabled for this space.\n\tAllowSSH bool\n\n\t// GUID is the unique space identifier.\n\tGUID string\n\n\t// Name is the name given to the space.\n\tName string\n\n\t// OrganizationGUID is the unique identifier of the organization this space\n\t// belongs to.\n\tOrganizationGUID string\n\n\t// SpaceQuotaDefinitionGUID is the unique identifier of the space quota\n\t// defined for this space.\n\tSpaceQuotaDefinitionGUID string\n}\n```\nSpace represents a Cloud Controller Space.\n\n```go\nfunc (space *Space) UnmarshalJSON(data []byte) error\n```\nUnmarshalJSON helps unmarshal a Cloud Controller Space response.\n\n```go\ntype SpaceQuota struct {\n\n\t// GUID is the unique space quota identifier.\n\tGUID string\n\n\t// Name is the name given to the space quota.\n\tName string\n}\n```\nSpaceQuota represents the Cloud Controller configured quota assigned to the space.\n\n```go\nfunc (spaceQuota *SpaceQuota) UnmarshalJSON(data []byte) error\n```\nUnmarshalJSON helps unmarshal a Cloud Controller Space Quota response.\n\n```go\ntype SpaceSummary struct {\n\tApplications     []SpaceSummaryApplication\n\tName             string\n\tServiceInstances []SpaceSummaryServiceInstance\n}\n```\nSpaceSummary represents a service instance inside a space\n\n```go\nfunc (spaceSummary *SpaceSummary) UnmarshalJSON(data []byte) error\n```\nUnmarshalJSON helps unmarshal a Cloud Controller Space Summary response.\n\n```go\ntype SpaceSummaryApplication struct {\n\tName         string   `json:\"name\"`\n\tServiceNames []string `json:\"service_names\"`\n}\n```\nSpaceSummaryApplication represents an application inside a space\n\n```go\ntype SpaceSummaryService struct {\n\tGUID              string\n\tLabel             string\n\tServiceBrokerName string\n}\n```\nSpaceSummaryService represents a service inside a space\n\n```go\ntype SpaceSummaryServiceInstance struct {\n\tLastOperation   LastOperation           `json:\"last_operation\"`\n\tName            string                  `json:\"name\"`\n\tServicePlan     SpaceSummaryServicePlan `json:\"service_plan\"`\n\tMaintenanceInfo MaintenanceInfo         `json:\"maintenance_info\"`\n}\n```\nSpaceSummaryServiceInstance represents a service instance inside a space\n\n```go\ntype SpaceSummaryServicePlan struct {\n\tGUID            string              `json:\"guid\"`\n\tName            string              `json:\"name\"`\n\tService         SpaceSummaryService `json:\"service\"`\n\tMaintenanceInfo MaintenanceInfo     `json:\"maintenance_info\"`\n}\n```\nSpaceSummaryServicePlan represents a service plan inside a space\n\n```go\ntype Stack struct {\n\t// GUID is the unique stack identifier.\n\tGUID string\n\n\t// Name is the name given to the stack.\n\tName string\n\n\t// Description is the description of the stack.\n\tDescription string\n}\n```\nStack represents a Cloud Controller Stack.\n\n```go\nfunc (stack *Stack) UnmarshalJSON(data []byte) error\n```\nUnmarshalJSON helps unmarshal a Cloud Controller Stack response.\n\n```go\ntype TargetSettings struct {\n\t// DialTimeout is the DNS timeout used to make all requests to the Cloud\n\t// Controller.\n\tDialTimeout time.Duration\n\n\t// SkipSSLValidation controls whether a client verifies the server's\n\t// certificate chain and host name. If SkipSSLValidation is true, TLS accepts\n\t// any certificate presented by the server and any host name in that\n\t// certificate for *all* client requests going forward.\n\t//\n\t// In this mode, TLS is susceptible to man-in-the-middle attacks. This should\n\t// be used only for testing.\n\tSkipSSLValidation bool\n\n\t// URL is a fully qualified URL to the Cloud Controller API.\n\tURL string\n}\n```\nTargetSettings represents configuration for establishing a connection to the Cloud Controller server.\n\n```go\ntype User struct {\n\t// GUID is the unique user identifier.\n\tGUID string\n}\n```\nUser represents a Cloud Controller User.\n\n```go\nfunc (user *User) UnmarshalJSON(data []byte) error\n```\nUnmarshalJSON helps unmarshal a Cloud Controller User response.\n\n```go\ntype UserProvidedServiceInstance struct {\n\t// Tags on the user-provided service instance\n\tTags *[]string `json:\"tags,omitempty\"`\n\t// SyslogDrainURL for the user-provided service instance\n\tSyslogDrainURL *string `json:\"syslog_drain_url,omitempty\"`\n\t// RouteServiceURL for the user-provided service instance\n\tRouteServiceURL *string `json:\"route_service_url,omitempty\"`\n\t// Credentials for the user-provided service instance\n\tCredentials interface{} `json:\"credentials,omitempty\"`\n}\n```\nUserProvidedServiceInstance represents the data to update a user-provided service instance. All fields are optional.\n\n```go\nfunc (u UserProvidedServiceInstance) WithCredentials(creds map[string]interface{}) UserProvidedServiceInstance\n```\n\n```go\nfunc (u UserProvidedServiceInstance) WithRouteServiceURL(url string) UserProvidedServiceInstance\n```\n\n```go\nfunc (u UserProvidedServiceInstance) WithSyslogDrainURL(url string) UserProvidedServiceInstance\n```\n\n```go\nfunc (u UserProvidedServiceInstance) WithTags(tags []string) UserProvidedServiceInstance\n```\n\n```go\ntype Warnings []string\n```\nWarnings are a collection of warnings that the Cloud Controller can return back from an API request.\n\n","path":"github.com/cloudfoundry-incubator/cli/api/cloudcontroller/ccv2","name":"ccv2","synopsis":"Package ccv2 represents a Cloud Controller V2 client.","isRedistributable":true}
