Package org.openstack4j.api
Interface OSClient<T extends OSClient<T>>
-
- All Known Subinterfaces:
OSClient.OSClientV2,OSClient.OSClientV3
- All Known Implementing Classes:
OSClientSession.OSClientSessionV2,OSClientSession.OSClientSessionV3
public interface OSClient<T extends OSClient<T>>A client which has been identified. Any calls spawned from this session will automatically utilize the original authentication that was successfully validated and authorized- Author:
- Jeremy Unruh
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static interfaceOSClient.OSClientV2OpenStack4j Client which authenticates against version V2static interfaceOSClient.OSClientV3OpenStack4j Client which authenticates against version V3
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ArtifactServiceartifact()Returns the Artifact Service APIBarbicanServicebarbican()Returns the Barbican Service APIBlockStorageServiceblockStorage()Returns the Block Storage Service APIComputeServicecompute()Returns the Compute Service APIDNSServicedns()Returns the DNS Service APIGbpServicegbp()Returns the Gbp Service APIStringgetEndpoint()Gets the current endpoint of the Identity serviceSet<ServiceType>getSupportedServices()Gets the supported services.Theaders(Map<String,String> headers)Passes the Headers for the current Session(Client)HeatServiceheat()Returns the Heat Service APIImageServiceimages()Returns the Image Service APIImageServiceimagesV2()Returns the Image V2 Service APIMagnumServicemagnum()Returns the Magnum Service APIAppCatalogServicemurano()Returns the Murano Service APINetworkingServicenetworking()Returns the Networking Service APIObjectStorageServiceobjectStorage()Returns the Object Storage Service APIOctaviaServiceoctavia()Returns the Load Balancer Service APITperspective(Facing perspective)Changes the Perspective for the current Session (Client)PlacementServiceplacement()Returns the Placement Service APITremoveRegion()Removes the current region making all calls no longer resolving to region (if originally set otherwise no-op)SaharaServicesahara()Returns the Sahara Service APISenlinServicesenlin()Returns the Senlin Service APIServiceFunctionChainServicesfc()Returns the SFC Service APIShareServiceshare()Returns the Shared File Systems APIbooleansupportsBlockStorage()Determines if the Block Storage (Cinder) service is supportedbooleansupportsCompute()Determines if the Compute (Nova) service is supportedbooleansupportsHeat()Determines if the Orchestration (Heat) service is supportedbooleansupportsIdentity()Determines if the Identity (Keystone) service is supportedbooleansupportsImage()Determines if the Image (Glance) service is supportedbooleansupportsMurano()Determines if the App Catalog (Murano) service is supportedbooleansupportsNetwork()Determines if the Network (Neutron) service is supportedbooleansupportsObjectStorage()Determines if the Object Storage (Swift) service is supportedbooleansupportsShare()Determines if the Shared File Systems (Manila) service is supportedbooleansupportsTelemetry()Determines if the Telemetry (Ceilometer) service is supportedTackerServicetacker()Returns the Tacker Service APITelemetryServicetelemetry()Returns the Telemetry Service APITroveServicetrove()Returns the Trove Service APITuseRegion(String region)Specifies the region that should be used for further invocations with this client.WorkflowServiceworkflow()Returns the Workflow Service API
-
-
-
Method Detail
-
useRegion
T useRegion(String region)
Specifies the region that should be used for further invocations with this client. If the region is invalid or doesn't exists execution errors will occur when invoking API calls and aRegionEndpointNotFoundExceptionwill be thrown- Parameters:
region- the region to use- Returns:
- OSClient for method chaining
-
removeRegion
T removeRegion()
Removes the current region making all calls no longer resolving to region (if originally set otherwise no-op)- Returns:
- OSClient for method chaining
-
perspective
T perspective(Facing perspective)
Changes the Perspective for the current Session (Client)- Parameters:
perspective- the new perspective- Returns:
- OSClient for method chaining
-
headers
T headers(Map<String,String> headers)
Passes the Headers for the current Session(Client)- Parameters:
headers- the headers to use for keystone tokenless- Returns:
- OSClient for method chaining
-
getSupportedServices
Set<ServiceType> getSupportedServices()
Gets the supported services. A set of ServiceTypes will be returned identifying the OpenStack services installed and supported- Returns:
- the supported services
-
supportsCompute
boolean supportsCompute()
Determines if the Compute (Nova) service is supported- Returns:
- true, if supports compute
-
supportsIdentity
boolean supportsIdentity()
Determines if the Identity (Keystone) service is supported- Returns:
- true, if supports identity
-
supportsNetwork
boolean supportsNetwork()
Determines if the Network (Neutron) service is supported- Returns:
- true, if supports network
-
supportsImage
boolean supportsImage()
Determines if the Image (Glance) service is supported- Returns:
- true, if supports image
-
supportsHeat
boolean supportsHeat()
Determines if the Orchestration (Heat) service is supported- Returns:
- true if supports Heat
-
supportsMurano
boolean supportsMurano()
Determines if the App Catalog (Murano) service is supported- Returns:
- true if supports Murano
-
supportsBlockStorage
boolean supportsBlockStorage()
Determines if the Block Storage (Cinder) service is supported- Returns:
- true if supports Block Storage
-
supportsObjectStorage
boolean supportsObjectStorage()
Determines if the Object Storage (Swift) service is supported- Returns:
- true if supports Object Storage
-
supportsTelemetry
boolean supportsTelemetry()
Determines if the Telemetry (Ceilometer) service is supported- Returns:
- true if supports Telemetry
-
supportsShare
boolean supportsShare()
Determines if the Shared File Systems (Manila) service is supported- Returns:
- true if supports Shared File Systems
-
getEndpoint
String getEndpoint()
Gets the current endpoint of the Identity service- Returns:
- the endpoint
-
compute
ComputeService compute()
Returns the Compute Service API- Returns:
- the compute service
-
networking
NetworkingService networking()
Returns the Networking Service API- Returns:
- the networking service
-
placement
PlacementService placement()
Returns the Placement Service API- Returns:
- the placement service
-
sfc
ServiceFunctionChainService sfc()
Returns the SFC Service API- Returns:
- the Service Function Chain Service API
-
octavia
OctaviaService octavia()
Returns the Load Balancer Service API- Returns:
- the Load Balancer service
-
artifact
ArtifactService artifact()
Returns the Artifact Service API- Returns:
- the artifact service
-
tacker
TackerService tacker()
Returns the Tacker Service API- Returns:
- the tacker service
-
blockStorage
BlockStorageService blockStorage()
Returns the Block Storage Service API- Returns:
- the block storage service
-
objectStorage
ObjectStorageService objectStorage()
Returns the Object Storage Service API- Returns:
- the object storage service
-
images
ImageService images()
Returns the Image Service API- Returns:
- the image service
-
imagesV2
ImageService imagesV2()
Returns the Image V2 Service API- Returns:
- the image v2 service
-
telemetry
TelemetryService telemetry()
Returns the Telemetry Service API- Returns:
- the telemetry service
-
share
ShareService share()
Returns the Shared File Systems API- Returns:
- the share service
-
heat
HeatService heat()
Returns the Heat Service API- Returns:
- the Heat service
-
murano
AppCatalogService murano()
Returns the Murano Service API- Returns:
- the Murano service
-
sahara
SaharaService sahara()
Returns the Sahara Service API- Returns:
- the Sahara service
-
workflow
WorkflowService workflow()
Returns the Workflow Service API- Returns:
- the Workflow service
-
magnum
MagnumService magnum()
Returns the Magnum Service API- Returns:
- the Magnum Service
-
gbp
GbpService gbp()
Returns the Gbp Service API- Returns:
- the Gbp service
-
senlin
SenlinService senlin()
Returns the Senlin Service API- Returns:
- the Senlin service
-
trove
TroveService trove()
Returns the Trove Service API- Returns:
- the Trove service
-
barbican
BarbicanService barbican()
Returns the Barbican Service API- Returns:
- the Barbican service
-
dns
DNSService dns()
Returns the DNS Service API- Returns:
- the DNS service
-
-