public class FeignClient extends Object implements CcOperations
| Constructor and Description |
|---|
FeignClient(String url)
Creates client applying default configuration
|
FeignClient(String url,
Function<feign.Feign.Builder,feign.Feign.Builder> customizations)
Creates client applying default configuration and then customizations.
|
| Modifier and Type | Method and Description |
|---|---|
void |
assignOrgRole(UUID userGuid,
UUID orgGuid,
Role role)
Assigns organization role to user identified by given GUID.
|
void |
assignSpaceRole(UUID userGuid,
UUID orgGuid,
Role role)
Assigns space role to user identified by given GUID.
|
void |
assignUserToOrganization(UUID userGuid,
UUID orgGuid)
Assigns user identified by given GUID to organization identified by given GUID.
|
void |
assignUserToSpace(UUID userGuid,
UUID spaceGuid)
Assigns user identified by given GUID to space identified by given GUID.
|
UUID |
createOrganization(String orgName)
Creates organization with given name.
|
CcServiceBinding |
createServiceBinding(CcNewServiceBinding ccNewServiceBinding)
Creates service binding for application.
|
rx.Observable<CcExtendedServiceInstance> |
createServiceInstance(CcNewServiceInstance serviceInstance)
Creates new service instance using provided configuration.
|
rx.Observable<CcServiceKey> |
createServiceKey(CcNewServiceKey serviceKey)
Creates a new service key
|
UUID |
createSpace(UUID orgGuid,
String name)
Creates space within given organization.
|
void |
createUser(UUID userGuid)
Creates new user with given GUID.
|
void |
deleteApp(UUID app)
Deletes application identified by given GUID.
|
void |
deleteOrg(UUID orgGuid)
Deletes organization identified by given GUID.
|
void |
deleteServiceBinding(UUID bindingGuid)
Deletes service binding for application identified by given GUID.
|
void |
deleteServiceInstance(UUID instanceGuid)
Deletes service instance identified by given GUID.
|
void |
deleteServiceKey(UUID keyGuid)
Deletes given service key
|
void |
deleteSpace(UUID spaceGuid)
Deletes space identified by given GUID.
|
void |
deleteUser(UUID guid)
Deletes user identified by given GUID.
|
CcServiceBindingList |
getAppBindings(UUID app)
Returns all bindings belonging to application identified by given GUID.
|
CcServiceBindingList |
getAppBindings(UUID app,
FilterQuery query)
Returns all bindings belonging to application identified by given GUID and filtering by
given filter.
|
rx.Observable<CcAppEnv> |
getAppEnv(UUID appUUID)
Returns environment variables for application identified by given GUID.
|
CcAppSummary |
getAppSummary(UUID app)
Returns summary for application identified by given GUID.
|
Collection<CcOrg> |
getAuditedOrganizations(UUID user)
Returns organizations audited by user identified by given GUID.
|
Collection<CcOrg> |
getBillingManagedOrganizations(UUID user)
Returns organizations billed by user identified by given GUID.
|
rx.Observable<CcBuildpack> |
getBuildpacks()
Returns buildpacks
|
rx.Observable<CcExtendedServiceInstance> |
getExtendedServiceInstances() |
rx.Observable<CcExtendedServiceInstance> |
getExtendedServiceInstances(FilterQuery filterQuery) |
rx.Observable<CcExtendedServiceInstance> |
getExtendedServiceInstances(FilterQuery filterQuery,
int depth) |
rx.Observable<CcExtendedServiceInstance> |
getExtendedServiceInstances(int depth) |
rx.Observable<CcExtendedServicePlan> |
getExtendedServicePlans(UUID serviceGuid)
Returns service plans within service identified by given GUID
|
rx.Observable<CcExtendedService> |
getExtendedServices()
Returns services
|
Collection<CcOrg> |
getManagedOrganizations(UUID user)
Returns organizations managed by user identified by given GUID.
|
rx.Observable<CcMemoryUsage> |
getMemoryUsage(UUID orgGuid)
Get memory usage from organization identified by given GUID.
|
rx.Observable<CcOrg> |
getOrg(UUID orgUUID)
Returns organization identified by given GUID.
|
rx.Observable<CcOrg> |
getOrgs()
Returns all organizations.
|
rx.Observable<CcOrgSummary> |
getOrgSummary(UUID orgGuid)
Get organization summary from organization identified by given GUID.
|
Collection<User> |
getOrgUsers(UUID orgGuid,
Role role)
Returns all users with given role within organization identified by given GUID.
|
rx.Observable<CcQuota> |
getQuota()
Get quota
|
rx.Observable<CcExtendedService> |
getService(UUID serviceGuid)
Returns service identified by given GUID.
|
CcServiceBindingList |
getServiceBindings(FilterQuery filterQuery)
Returns list of service bindings matching provided filter
|
rx.Observable<CcServiceKey> |
getServiceKeys()
Returns a list of all service keys acessible to user
|
rx.Observable<CcExtendedService> |
getServices(UUID spaceGuid)
Returns services within space identified by given GUID.
|
rx.Observable<CcSpace> |
getSpace(UUID spaceId)
Returns space identified by given GUID.
|
rx.Observable<CcSpace> |
getSpaces()
Returns all spaces.
|
rx.Observable<CcSpace> |
getSpaces(UUID org)
Returns all spaces withing organization identified by given GUID.
|
CcSummary |
getSpaceSummary(UUID spaceGuid)
Returns summary for space identified by given UUID
|
Collection<User> |
getSpaceUsers(UUID spaceGuid,
Role role)
Returns all users with given role within space identified by given GUID.
|
Collection<CcOrg> |
getUserOrgs(UUID userGuid)
Returns organizations assigned to user identified by given GUID.
|
Collection<CcOrgPermission> |
getUserPermissions(UUID user,
Collection<UUID> orgsFilter)
Returns users permissions for given organizations.
|
Collection<CcSpace> |
getUsersSpaces(UUID userGuid,
Role role,
UUID orgGuid)
Get spaces that user has access to in given role.
|
void |
renameOrg(UUID orgId,
String name)
Renames organization identified by given GUID.
|
void |
restageApp(UUID appGuid)
Restages application identified by given GUID.
|
void |
revokeOrgRole(UUID userGuid,
UUID orgId,
Role role)
Removes organization role from user identified by given GUID
|
void |
revokeSpaceRole(UUID userGuid,
UUID spaceId,
Role role)
Removes space role from user identified by given GUID
|
void |
switchApp(UUID app,
CcAppStatus appStatus)
Switches off application identified by given GUID.
|
public FeignClient(String url)
url - endpoint urlpublic FeignClient(String url, Function<feign.Feign.Builder,feign.Feign.Builder> customizations)
new FeignClient(apiUrl, builder -> builder.requestInterceptor(template ->
template.header("Authorization", "bearer " + token)));
url - endpoint urlcustomizations - custom configuration that should be applied after defaultspublic CcAppSummary getAppSummary(UUID app)
CcOperationsAppsgetAppSummary in interface CcOperationsAppsapp - application GUIDpublic void restageApp(UUID appGuid)
CcOperationsAppsrestageApp in interface CcOperationsAppsappGuid - application GUIDpublic CcServiceBindingList getAppBindings(UUID app)
CcOperationsAppsgetAppBindings in interface CcOperationsAppsapp - application GUIDpublic CcServiceBindingList getAppBindings(UUID app, FilterQuery query)
CcOperationsAppsgetAppBindings in interface CcOperationsAppsapp - application GUIDquery - filterpublic void deleteApp(UUID app)
CcOperationsAppsdeleteApp in interface CcOperationsAppsapp - application GUIDpublic CcServiceBinding createServiceBinding(CcNewServiceBinding ccNewServiceBinding)
CcOperationsAppscreateServiceBinding in interface CcOperationsAppsccNewServiceBinding - binding for applicationpublic void deleteServiceBinding(UUID bindingGuid)
CcOperationsAppsdeleteServiceBinding in interface CcOperationsAppsbindingGuid - binding GUIDpublic void createUser(UUID userGuid)
CcOperationsOrgsSpacescreateUser in interface CcOperationsOrgsSpacesuserGuid - user GUIDpublic UUID createOrganization(String orgName)
CcOperationsOrgsSpacescreateOrganization in interface CcOperationsOrgsSpacesorgName - name of organizationpublic UUID createSpace(UUID orgGuid, String name)
CcOperationsOrgsSpacescreateSpace in interface CcOperationsOrgsSpacesorgGuid - organization GUIDname - space namepublic void assignUserToOrganization(UUID userGuid, UUID orgGuid)
CcOperationsOrgsSpacesassignUserToOrganization in interface CcOperationsOrgsSpacesuserGuid - user GUIDorgGuid - organization GUIDpublic void assignUserToSpace(UUID userGuid, UUID spaceGuid)
CcOperationsOrgsSpacesassignUserToSpace in interface CcOperationsOrgsSpacesuserGuid - user GUIDspaceGuid - space GUIDpublic rx.Observable<CcOrg> getOrg(UUID orgUUID)
CcOperationsOrgsSpacesgetOrg in interface CcOperationsOrgsSpacesorgUUID - organization GUIDpublic rx.Observable<CcOrg> getOrgs()
CcOperationsOrgsSpacesgetOrgs in interface CcOperationsOrgsSpacespublic rx.Observable<CcSpace> getSpaces()
CcOperationsOrgsSpacesgetSpaces in interface CcOperationsOrgsSpacespublic rx.Observable<CcSpace> getSpace(UUID spaceId)
CcOperationsOrgsSpacesgetSpace in interface CcOperationsOrgsSpacesspaceId - space GUIDpublic rx.Observable<CcSpace> getSpaces(UUID org)
CcOperationsOrgsSpacesgetSpaces in interface CcOperationsOrgsSpacesorg - GUIDpublic Collection<CcOrg> getManagedOrganizations(UUID user)
CcOperationsOrgsSpacesgetManagedOrganizations in interface CcOperationsOrgsSpacesuser - GUIDpublic Collection<CcOrg> getAuditedOrganizations(UUID user)
CcOperationsOrgsSpacesgetAuditedOrganizations in interface CcOperationsOrgsSpacesuser - GUIDpublic Collection<CcOrg> getBillingManagedOrganizations(UUID user)
CcOperationsOrgsSpacesgetBillingManagedOrganizations in interface CcOperationsOrgsSpacesuser - GUIDpublic void renameOrg(UUID orgId, String name)
CcOperationsOrgsSpacesrenameOrg in interface CcOperationsOrgsSpacesorgId - GUIDname - new namepublic void deleteOrg(UUID orgGuid)
CcOperationsOrgsSpacesdeleteOrg in interface CcOperationsOrgsSpacesorgGuid - GUIDpublic void deleteSpace(UUID spaceGuid)
CcOperationsOrgsSpacesdeleteSpace in interface CcOperationsOrgsSpacesspaceGuid - GUIDpublic Collection<CcSpace> getUsersSpaces(UUID userGuid, Role role, UUID orgGuid)
CcOperationsOrgsSpacesgetUsersSpaces in interface CcOperationsOrgsSpacesuserGuid - GUIDrole - user roleorgGuid - GUIDpublic rx.Observable<CcExtendedService> getExtendedServices()
CcOperationsServicesgetExtendedServices in interface CcOperationsServicespublic rx.Observable<CcExtendedServiceInstance> getExtendedServiceInstances()
getExtendedServiceInstances in interface CcOperationsServicespublic rx.Observable<CcExtendedServiceInstance> getExtendedServiceInstances(FilterQuery filterQuery)
getExtendedServiceInstances in interface CcOperationsServicesfilterQuery - filter to use when requesting service instancespublic rx.Observable<CcExtendedServiceInstance> getExtendedServiceInstances(int depth)
getExtendedServiceInstances in interface CcOperationsServicesdepth - how deep the relations should be resolvedpublic rx.Observable<CcExtendedServiceInstance> getExtendedServiceInstances(FilterQuery filterQuery, int depth)
getExtendedServiceInstances in interface CcOperationsServicesfilterQuery - filter to use when requesting service instancesdepth - how deep the relations should be resolvedpublic rx.Observable<CcExtendedServicePlan> getExtendedServicePlans(UUID serviceGuid)
CcOperationsServicesgetExtendedServicePlans in interface CcOperationsServicespublic rx.Observable<CcExtendedService> getServices(UUID spaceGuid)
CcOperationsServicesgetServices in interface CcOperationsServicesspaceGuid - GUIDpublic rx.Observable<CcExtendedService> getService(UUID serviceGuid)
CcOperationsServicesgetService in interface CcOperationsServicesserviceGuid - GUIDpublic CcServiceBindingList getServiceBindings(FilterQuery filterQuery)
CcOperationsServicesgetServiceBindings in interface CcOperationsServicesfilterQuery - filterpublic rx.Observable<CcServiceKey> getServiceKeys()
CcOperationsServicesgetServiceKeys in interface CcOperationsServicespublic rx.Observable<CcServiceKey> createServiceKey(CcNewServiceKey serviceKey)
CcOperationsServicescreateServiceKey in interface CcOperationsServicespublic void deleteServiceKey(UUID keyGuid)
CcOperationsServicesdeleteServiceKey in interface CcOperationsServicespublic rx.Observable<CcExtendedServiceInstance> createServiceInstance(CcNewServiceInstance serviceInstance)
CcOperationsServicescreateServiceInstance in interface CcOperationsServicesserviceInstance - service instancepublic void deleteServiceInstance(UUID instanceGuid)
CcOperationsServicesdeleteServiceInstance in interface CcOperationsServicesinstanceGuid - GUIDpublic CcSummary getSpaceSummary(UUID spaceGuid)
CcOperationsCommongetSpaceSummary in interface CcOperationsCommonspaceGuid - space UUIDpublic Collection<CcOrg> getUserOrgs(UUID userGuid)
CcOperationsOrgsSpacesgetUserOrgs in interface CcOperationsOrgsSpacesuserGuid - GUIDpublic Collection<CcOrgPermission> getUserPermissions(UUID user, Collection<UUID> orgsFilter)
CcOperationsOrgsSpacesgetUserPermissions in interface CcOperationsOrgsSpacesuser - GUIDorgsFilter - organizations UUIDspublic Collection<User> getOrgUsers(UUID orgGuid, Role role)
CcOperationsUsersgetOrgUsers in interface CcOperationsUsersorgGuid - organization GUIDrole - user rolepublic Collection<User> getSpaceUsers(UUID spaceGuid, Role role)
CcOperationsUsersgetSpaceUsers in interface CcOperationsUsersspaceGuid - space GUIDrole - user rolepublic void assignOrgRole(UUID userGuid, UUID orgGuid, Role role)
CcOperationsUsersassignOrgRole in interface CcOperationsUsersuserGuid - user GUIDorgGuid - organization GUIDrole - organization rolepublic void assignSpaceRole(UUID userGuid, UUID orgGuid, Role role)
CcOperationsUsersassignSpaceRole in interface CcOperationsUsersuserGuid - user GUIDorgGuid - organization GUIDrole - space rolepublic void deleteUser(UUID guid)
CcOperationsUsersdeleteUser in interface CcOperationsUsersguid - user GUIDpublic void revokeOrgRole(UUID userGuid, UUID orgId, Role role)
CcOperationsUsersrevokeOrgRole in interface CcOperationsUsersuserGuid - user GUIDorgId - organization GUIDrole - organization rolepublic void revokeSpaceRole(UUID userGuid, UUID spaceId, Role role)
CcOperationsUsersrevokeSpaceRole in interface CcOperationsUsersuserGuid - user GUIDspaceId - space GUIDrole - rolepublic void switchApp(UUID app, CcAppStatus appStatus)
CcOperationsAppsswitchApp in interface CcOperationsAppsapp - application GUIDpublic rx.Observable<CcAppEnv> getAppEnv(UUID appUUID)
CcOperationsAppsgetAppEnv in interface CcOperationsAppsappUUID - application GUIDpublic rx.Observable<CcMemoryUsage> getMemoryUsage(UUID orgGuid)
CcOperationsOrgsSpacesgetMemoryUsage in interface CcOperationsOrgsSpacesorgGuid - GUIDpublic rx.Observable<CcQuota> getQuota()
CcOperationsCommongetQuota in interface CcOperationsCommonpublic rx.Observable<CcBuildpack> getBuildpacks()
CcOperationsCommongetBuildpacks in interface CcOperationsCommonpublic rx.Observable<CcOrgSummary> getOrgSummary(UUID orgGuid)
CcOperationsOrgsSpacesgetOrgSummary in interface CcOperationsOrgsSpacesorgGuid - GUIDCopyright © 2016 Pivotal Software, Inc.. All rights reserved.