mirror of https://github.com/apache/jclouds.git
JCLOUDS-151. Deprecate CloudStack *Client classes, add dummy *Api classes.
This commit is contained in:
parent
264d47e3ce
commit
35a44243a7
|
@ -0,0 +1,191 @@
|
|||
/*
|
||||
* Licensed to the Apache Software Foundation (ASF) under one or more
|
||||
* contributor license agreements. See the NOTICE file distributed with
|
||||
* this work for additional information regarding copyright ownership.
|
||||
* The ASF licenses this file to You under the Apache License, Version 2.0
|
||||
* (the "License"); you may not use this file except in compliance with
|
||||
* the License. You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
package org.jclouds.cloudstack;
|
||||
|
||||
import org.jclouds.cloudstack.features.AccountApi;
|
||||
import org.jclouds.cloudstack.features.AddressApi;
|
||||
import org.jclouds.cloudstack.features.AsyncJobApi;
|
||||
import org.jclouds.cloudstack.features.ConfigurationApi;
|
||||
import org.jclouds.cloudstack.features.EventApi;
|
||||
import org.jclouds.cloudstack.features.FirewallApi;
|
||||
import org.jclouds.cloudstack.features.GuestOSApi;
|
||||
import org.jclouds.cloudstack.features.HypervisorApi;
|
||||
import org.jclouds.cloudstack.features.ISOApi;
|
||||
import org.jclouds.cloudstack.features.LimitApi;
|
||||
import org.jclouds.cloudstack.features.LoadBalancerApi;
|
||||
import org.jclouds.cloudstack.features.NATApi;
|
||||
import org.jclouds.cloudstack.features.NetworkApi;
|
||||
import org.jclouds.cloudstack.features.OfferingApi;
|
||||
import org.jclouds.cloudstack.features.SSHKeyPairApi;
|
||||
import org.jclouds.cloudstack.features.SecurityGroupApi;
|
||||
import org.jclouds.cloudstack.features.SessionApi;
|
||||
import org.jclouds.cloudstack.features.SnapshotApi;
|
||||
import org.jclouds.cloudstack.features.TemplateApi;
|
||||
import org.jclouds.cloudstack.features.VMGroupApi;
|
||||
import org.jclouds.cloudstack.features.VirtualMachineApi;
|
||||
import org.jclouds.cloudstack.features.VolumeApi;
|
||||
import org.jclouds.cloudstack.features.ZoneApi;
|
||||
import org.jclouds.rest.annotations.Delegate;
|
||||
|
||||
/**
|
||||
* Provides synchronous access to CloudStack.
|
||||
* <p/>
|
||||
*
|
||||
* @author Adrian Cole
|
||||
* @see CloudStackAsyncApi
|
||||
* @see <a href="http://download.cloud.com/releases/2.2.0/api_2.2.12/TOC_User.html" />
|
||||
*/
|
||||
public interface CloudStackApi {
|
||||
/**
|
||||
* Provides synchronous access to Zone features.
|
||||
*/
|
||||
@Delegate
|
||||
ZoneApi getZoneApi();
|
||||
|
||||
/**
|
||||
* Provides synchronous access to Template features.
|
||||
*/
|
||||
@Delegate
|
||||
TemplateApi getTemplateApi();
|
||||
|
||||
/**
|
||||
* Provides synchronous access to Service, Disk, and Network Offering
|
||||
* features.
|
||||
*/
|
||||
@Delegate
|
||||
OfferingApi getOfferingApi();
|
||||
|
||||
/**
|
||||
* Provides synchronous access to Network features.
|
||||
*/
|
||||
@Delegate
|
||||
NetworkApi getNetworkApi();
|
||||
|
||||
/**
|
||||
* Provides synchronous access to VirtualMachine features.
|
||||
*/
|
||||
@Delegate
|
||||
VirtualMachineApi getVirtualMachineApi();
|
||||
|
||||
/**
|
||||
* Provides synchronous access to SecurityGroup features.
|
||||
*/
|
||||
@Delegate
|
||||
SecurityGroupApi getSecurityGroupApi();
|
||||
|
||||
/**
|
||||
* Provides synchronous access to AsyncJob features.
|
||||
*/
|
||||
@Delegate
|
||||
AsyncJobApi getAsyncJobApi();
|
||||
|
||||
/**
|
||||
* Provides synchronous access to Address features.
|
||||
*/
|
||||
@Delegate
|
||||
AddressApi getAddressApi();
|
||||
|
||||
/**
|
||||
* Provides synchronous access to NAT features.
|
||||
*/
|
||||
@Delegate
|
||||
NATApi getNATApi();
|
||||
|
||||
/**
|
||||
* Provides synchronous access to Firewall features.
|
||||
*/
|
||||
@Delegate
|
||||
FirewallApi getFirewallApi();
|
||||
|
||||
/**
|
||||
* Provides synchronous access to LoadBalancer features.
|
||||
*/
|
||||
@Delegate
|
||||
LoadBalancerApi getLoadBalancerApi();
|
||||
|
||||
/**
|
||||
* Provides synchronous access to GuestOS features.
|
||||
*/
|
||||
@Delegate
|
||||
GuestOSApi getGuestOSApi();
|
||||
|
||||
/**
|
||||
* Provides synchronous access to Hypervisor features.
|
||||
*/
|
||||
@Delegate
|
||||
HypervisorApi getHypervisorApi();
|
||||
|
||||
/**
|
||||
* Provides synchronous access to Configuration features.
|
||||
*/
|
||||
@Delegate
|
||||
ConfigurationApi getConfigurationApi();
|
||||
|
||||
/**
|
||||
* Provides synchronous access to Account features.
|
||||
*/
|
||||
@Delegate
|
||||
AccountApi getAccountApi();
|
||||
|
||||
/**
|
||||
* Provides synchronous access to SSH Keypairs
|
||||
*/
|
||||
@Delegate
|
||||
SSHKeyPairApi getSSHKeyPairApi();
|
||||
|
||||
/**
|
||||
* Provides synchronous access to VM groups
|
||||
*/
|
||||
@Delegate
|
||||
VMGroupApi getVMGroupApi();
|
||||
|
||||
/**
|
||||
* Provides synchronous access to Events
|
||||
*/
|
||||
@Delegate
|
||||
EventApi getEventApi();
|
||||
|
||||
/**
|
||||
* Provides synchronous access to Resource Limits
|
||||
*/
|
||||
@Delegate
|
||||
LimitApi getLimitApi();
|
||||
|
||||
/**
|
||||
* Provides synchronous access to ISOs
|
||||
*/
|
||||
@Delegate
|
||||
ISOApi getISOApi();
|
||||
|
||||
/**
|
||||
* Provides synchronous access to Volumes
|
||||
*/
|
||||
@Delegate
|
||||
VolumeApi getVolumeApi();
|
||||
|
||||
/**
|
||||
* Provides synchronous access to Snapshots
|
||||
*/
|
||||
@Delegate
|
||||
SnapshotApi getSnapshotApi();
|
||||
|
||||
/**
|
||||
* Provides synchronous access to Sessions
|
||||
*/
|
||||
@Delegate
|
||||
SessionApi getSessionApi();
|
||||
}
|
|
@ -0,0 +1,195 @@
|
|||
/*
|
||||
* Licensed to the Apache Software Foundation (ASF) under one or more
|
||||
* contributor license agreements. See the NOTICE file distributed with
|
||||
* this work for additional information regarding copyright ownership.
|
||||
* The ASF licenses this file to You under the Apache License, Version 2.0
|
||||
* (the "License"); you may not use this file except in compliance with
|
||||
* the License. You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
package org.jclouds.cloudstack;
|
||||
|
||||
import org.jclouds.cloudstack.features.AccountAsyncApi;
|
||||
import org.jclouds.cloudstack.features.AddressAsyncApi;
|
||||
import org.jclouds.cloudstack.features.AsyncJobAsyncApi;
|
||||
import org.jclouds.cloudstack.features.ConfigurationAsyncApi;
|
||||
import org.jclouds.cloudstack.features.EventAsyncApi;
|
||||
import org.jclouds.cloudstack.features.FirewallAsyncApi;
|
||||
import org.jclouds.cloudstack.features.GuestOSAsyncApi;
|
||||
import org.jclouds.cloudstack.features.HypervisorAsyncApi;
|
||||
import org.jclouds.cloudstack.features.ISOAsyncApi;
|
||||
import org.jclouds.cloudstack.features.LimitAsyncApi;
|
||||
import org.jclouds.cloudstack.features.LoadBalancerAsyncApi;
|
||||
import org.jclouds.cloudstack.features.NATAsyncApi;
|
||||
import org.jclouds.cloudstack.features.NetworkAsyncApi;
|
||||
import org.jclouds.cloudstack.features.OfferingAsyncApi;
|
||||
import org.jclouds.cloudstack.features.SSHKeyPairAsyncApi;
|
||||
import org.jclouds.cloudstack.features.SecurityGroupAsyncApi;
|
||||
import org.jclouds.cloudstack.features.SessionAsyncApi;
|
||||
import org.jclouds.cloudstack.features.SnapshotAsyncApi;
|
||||
import org.jclouds.cloudstack.features.TemplateAsyncApi;
|
||||
import org.jclouds.cloudstack.features.VMGroupAsyncApi;
|
||||
import org.jclouds.cloudstack.features.VirtualMachineAsyncApi;
|
||||
import org.jclouds.cloudstack.features.VolumeAsyncApi;
|
||||
import org.jclouds.cloudstack.features.ZoneAsyncApi;
|
||||
import org.jclouds.rest.annotations.Delegate;
|
||||
|
||||
/**
|
||||
* Provides asynchronous access to CloudStack via their REST API.
|
||||
* <p/>
|
||||
*
|
||||
* @author Adrian Cole
|
||||
* @see CloudStackApi
|
||||
* @see <a href="http://download.cloud.com/releases/2.2.0/api_2.2.12/TOC_User.html" />
|
||||
* @deprecated please use {@code org.jclouds.ContextBuilder#buildApi(CloudStackApi.class)} as
|
||||
* {@link CloudStackAsyncApi} interface will be removed in jclouds 1.7.
|
||||
*/
|
||||
@Deprecated
|
||||
public interface CloudStackAsyncApi {
|
||||
|
||||
/**
|
||||
* Provides asynchronous access to Zone features.
|
||||
*/
|
||||
@Delegate
|
||||
ZoneAsyncApi getZoneApi();
|
||||
|
||||
/**
|
||||
* Provides asynchronous access to Template features.
|
||||
*/
|
||||
@Delegate
|
||||
TemplateAsyncApi getTemplateApi();
|
||||
|
||||
/**
|
||||
* Provides asynchronous access to Service, Disk, and Network Offering
|
||||
* features.
|
||||
*/
|
||||
@Delegate
|
||||
OfferingAsyncApi getOfferingApi();
|
||||
|
||||
/**
|
||||
* Provides asynchronous access to Network features.
|
||||
*/
|
||||
@Delegate
|
||||
NetworkAsyncApi getNetworkApi();
|
||||
|
||||
/**
|
||||
* Provides asynchronous access to VirtualMachine features.
|
||||
*/
|
||||
@Delegate
|
||||
VirtualMachineAsyncApi getVirtualMachineApi();
|
||||
|
||||
/**
|
||||
* Provides asynchronous access to SecurityGroup features.
|
||||
*/
|
||||
@Delegate
|
||||
SecurityGroupAsyncApi getSecurityGroupApi();
|
||||
|
||||
/**
|
||||
* Provides asynchronous access to AsyncJob features.
|
||||
*/
|
||||
@Delegate
|
||||
AsyncJobAsyncApi getAsyncJobApi();
|
||||
|
||||
/**
|
||||
* Provides asynchronous access to Address features.
|
||||
*/
|
||||
@Delegate
|
||||
AddressAsyncApi getAddressApi();
|
||||
|
||||
/**
|
||||
* Provides asynchronous access to NAT features.
|
||||
*/
|
||||
@Delegate
|
||||
NATAsyncApi getNATApi();
|
||||
|
||||
/**
|
||||
* Provides asynchronous access to Firewall features.
|
||||
*/
|
||||
@Delegate
|
||||
FirewallAsyncApi getFirewallApi();
|
||||
|
||||
/**
|
||||
* Provides asynchronous access to LoadBalancer features.
|
||||
*/
|
||||
@Delegate
|
||||
LoadBalancerAsyncApi getLoadBalancerApi();
|
||||
|
||||
/**
|
||||
* Provides asynchronous access to GuestOS features.
|
||||
*/
|
||||
@Delegate
|
||||
GuestOSAsyncApi getGuestOSApi();
|
||||
|
||||
/**
|
||||
* Provides asynchronous access to Hypervisor features.
|
||||
*/
|
||||
@Delegate
|
||||
HypervisorAsyncApi getHypervisorApi();
|
||||
|
||||
/**
|
||||
* Provides asynchronous access to Configuration features.
|
||||
*/
|
||||
@Delegate
|
||||
ConfigurationAsyncApi getConfigurationApi();
|
||||
|
||||
/**
|
||||
* Provides asynchronous access to Account features.
|
||||
*/
|
||||
@Delegate
|
||||
AccountAsyncApi getAccountApi();
|
||||
|
||||
/**
|
||||
* Provides asynchronous access to SSH Keypairs
|
||||
*/
|
||||
@Delegate
|
||||
SSHKeyPairAsyncApi getSSHKeyPairApi();
|
||||
|
||||
/**
|
||||
* Provides asynchronous access to VM groups
|
||||
*/
|
||||
@Delegate
|
||||
VMGroupAsyncApi getVMGroupApi();
|
||||
|
||||
/**
|
||||
* Provides synchronous access to Events
|
||||
*/
|
||||
@Delegate
|
||||
EventAsyncApi getEventApi();
|
||||
|
||||
/**
|
||||
* Provides synchronous access to Resource Limits
|
||||
*/
|
||||
@Delegate
|
||||
LimitAsyncApi getLimitApi();
|
||||
|
||||
/**
|
||||
* Provides asynchronous access to ISOs
|
||||
*/
|
||||
@Delegate
|
||||
ISOAsyncApi getISOApi();
|
||||
|
||||
/**
|
||||
* Provides asynchronous access to Volumes
|
||||
*/
|
||||
@Delegate
|
||||
VolumeAsyncApi getVolumeApi();
|
||||
|
||||
/**
|
||||
* Provides asynchronous access to Snapshots
|
||||
*/
|
||||
@Delegate
|
||||
SnapshotAsyncApi getSnapshotApi();
|
||||
|
||||
/**
|
||||
* Provides asynchronous access to Sessions
|
||||
*/
|
||||
@Delegate
|
||||
SessionAsyncApi getSessionApi();
|
||||
}
|
|
@ -45,10 +45,12 @@ import org.jclouds.rest.annotations.Delegate;
|
|||
* Provides synchronous access to CloudStack.
|
||||
* <p/>
|
||||
*
|
||||
* @deprecated The *Client classes will be replaced with the *Api classes in jclouds 1.7.
|
||||
* @author Adrian Cole
|
||||
* @see CloudStackAsyncClient
|
||||
* @see <a href="http://download.cloud.com/releases/2.2.0/api_2.2.12/TOC_User.html" />
|
||||
*/
|
||||
@Deprecated
|
||||
public interface CloudStackClient {
|
||||
/**
|
||||
* Provides synchronous access to Zone features.
|
||||
|
|
|
@ -0,0 +1,62 @@
|
|||
/*
|
||||
* Licensed to the Apache Software Foundation (ASF) under one or more
|
||||
* contributor license agreements. See the NOTICE file distributed with
|
||||
* this work for additional information regarding copyright ownership.
|
||||
* The ASF licenses this file to You under the Apache License, Version 2.0
|
||||
* (the "License"); you may not use this file except in compliance with
|
||||
* the License. You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
package org.jclouds.cloudstack;
|
||||
|
||||
import org.jclouds.cloudstack.features.DomainAccountApi;
|
||||
import org.jclouds.cloudstack.features.DomainDomainApi;
|
||||
import org.jclouds.cloudstack.features.DomainLimitApi;
|
||||
import org.jclouds.cloudstack.features.DomainUserApi;
|
||||
import org.jclouds.rest.annotations.Delegate;
|
||||
|
||||
/**
|
||||
* Provides synchronous access to CloudStack.
|
||||
* <p/>
|
||||
*
|
||||
* @author Adrian Cole
|
||||
* @see CloudStackDomainAsyncApi
|
||||
* @see <a href=
|
||||
* "http://download.cloud.com/releases/2.2.0/api_2.2.12/TOC_Domain_Admin.html"
|
||||
* />
|
||||
*/
|
||||
public interface CloudStackDomainApi extends CloudStackApi {
|
||||
|
||||
/**
|
||||
* Provides synchronous access to Resource Limits
|
||||
*/
|
||||
@Delegate
|
||||
@Override
|
||||
DomainLimitApi getLimitApi();
|
||||
|
||||
/**
|
||||
* Provides synchronous access to Accounts
|
||||
*/
|
||||
@Delegate
|
||||
@Override
|
||||
DomainAccountApi getAccountApi();
|
||||
|
||||
/**
|
||||
* Provides synchronous access to Users
|
||||
*/
|
||||
@Delegate
|
||||
DomainUserApi getUserApi();
|
||||
|
||||
/**
|
||||
* Provides synchronous access to Domains
|
||||
*/
|
||||
@Delegate
|
||||
DomainDomainApi getDomainApi();
|
||||
}
|
|
@ -0,0 +1,66 @@
|
|||
/*
|
||||
* Licensed to the Apache Software Foundation (ASF) under one or more
|
||||
* contributor license agreements. See the NOTICE file distributed with
|
||||
* this work for additional information regarding copyright ownership.
|
||||
* The ASF licenses this file to You under the Apache License, Version 2.0
|
||||
* (the "License"); you may not use this file except in compliance with
|
||||
* the License. You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
package org.jclouds.cloudstack;
|
||||
|
||||
import org.jclouds.cloudstack.features.DomainAccountAsyncApi;
|
||||
import org.jclouds.cloudstack.features.DomainDomainAsyncApi;
|
||||
import org.jclouds.cloudstack.features.DomainLimitAsyncApi;
|
||||
import org.jclouds.cloudstack.features.DomainUserAsyncApi;
|
||||
import org.jclouds.rest.annotations.Delegate;
|
||||
|
||||
/**
|
||||
* Provides asynchronous access to CloudStack via their REST API.
|
||||
* <p/>
|
||||
*
|
||||
* @author Adrian Cole
|
||||
* @see CloudStackDomainApi
|
||||
* @see <a href=
|
||||
* "http://download.cloud.com/releases/2.2.0/api_2.2.12/TOC_Domain_Admin.html"
|
||||
* />
|
||||
* @deprecated please use {@code org.jclouds.ContextBuilder#buildApi(CloudStackDomainApi.class)} as
|
||||
* {@link CloudStackDomainAsyncApi} interface will be removed in jclouds 1.7.
|
||||
*/
|
||||
@Deprecated
|
||||
public interface CloudStackDomainAsyncApi extends CloudStackAsyncApi {
|
||||
|
||||
/**
|
||||
* Provides synchronous access to Resource Limits
|
||||
*/
|
||||
@Delegate
|
||||
@Override
|
||||
DomainLimitAsyncApi getLimitApi();
|
||||
|
||||
/**
|
||||
* Provides synchronous access to Accounts
|
||||
*/
|
||||
@Delegate
|
||||
@Override
|
||||
DomainAccountAsyncApi getAccountApi();
|
||||
|
||||
/**
|
||||
* Provides asynchronous access to Users
|
||||
*/
|
||||
@Delegate
|
||||
DomainUserAsyncApi getUserApi();
|
||||
|
||||
/**
|
||||
* Provides asynchronous access to Domains
|
||||
*/
|
||||
@Delegate
|
||||
DomainDomainAsyncApi getDomainApi();
|
||||
|
||||
}
|
|
@ -26,12 +26,14 @@ import org.jclouds.rest.annotations.Delegate;
|
|||
* Provides synchronous access to CloudStack.
|
||||
* <p/>
|
||||
*
|
||||
* @deprecated The *Client classes will be replaced with the *Api classes in jclouds 1.7.
|
||||
* @author Adrian Cole
|
||||
* @see CloudStackDomainAsyncClient
|
||||
* @see <a href=
|
||||
* "http://download.cloud.com/releases/2.2.0/api_2.2.12/TOC_Domain_Admin.html"
|
||||
* />
|
||||
*/
|
||||
@Deprecated
|
||||
public interface CloudStackDomainClient extends CloudStackClient {
|
||||
|
||||
/**
|
||||
|
|
|
@ -0,0 +1,131 @@
|
|||
/*
|
||||
* Licensed to the Apache Software Foundation (ASF) under one or more
|
||||
* contributor license agreements. See the NOTICE file distributed with
|
||||
* this work for additional information regarding copyright ownership.
|
||||
* The ASF licenses this file to You under the Apache License, Version 2.0
|
||||
* (the "License"); you may not use this file except in compliance with
|
||||
* the License. You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
package org.jclouds.cloudstack;
|
||||
|
||||
import org.jclouds.cloudstack.features.GlobalAccountApi;
|
||||
import org.jclouds.cloudstack.features.GlobalAlertApi;
|
||||
import org.jclouds.cloudstack.features.GlobalCapacityApi;
|
||||
import org.jclouds.cloudstack.features.GlobalConfigurationApi;
|
||||
import org.jclouds.cloudstack.features.GlobalDomainApi;
|
||||
import org.jclouds.cloudstack.features.GlobalHostApi;
|
||||
import org.jclouds.cloudstack.features.GlobalOfferingApi;
|
||||
import org.jclouds.cloudstack.features.GlobalPodApi;
|
||||
import org.jclouds.cloudstack.features.GlobalStoragePoolApi;
|
||||
import org.jclouds.cloudstack.features.GlobalUsageApi;
|
||||
import org.jclouds.cloudstack.features.GlobalUserApi;
|
||||
import org.jclouds.cloudstack.features.GlobalVlanApi;
|
||||
import org.jclouds.cloudstack.features.GlobalZoneApi;
|
||||
import org.jclouds.rest.annotations.Delegate;
|
||||
|
||||
/**
|
||||
* Provides synchronous access to CloudStack.
|
||||
* <p/>
|
||||
*
|
||||
* @deprecated The *Api classes will be replaced with the *Api classes in jclouds 1.7.
|
||||
* @author Adrian Cole
|
||||
* @see CloudStackDomainAsyncApi
|
||||
* @see <a href=
|
||||
* "http://download.cloud.com/releases/2.2.0/api_2.2.12/TOC_Global_Admin.html"
|
||||
* />
|
||||
*/
|
||||
@Deprecated
|
||||
public interface CloudStackGlobalApi extends CloudStackDomainApi {
|
||||
|
||||
/**
|
||||
* Provides synchronous access to Accounts
|
||||
*/
|
||||
@Delegate
|
||||
@Override
|
||||
GlobalAccountApi getAccountApi();
|
||||
|
||||
/**
|
||||
* Provides synchronous access to Users
|
||||
*/
|
||||
@Delegate
|
||||
@Override
|
||||
GlobalUserApi getUserApi();
|
||||
|
||||
/**
|
||||
* Provides synchronous access to Alerts
|
||||
*/
|
||||
@Delegate
|
||||
GlobalAlertApi getAlertApi();
|
||||
|
||||
/**
|
||||
* Provides synchronous access to Capacities
|
||||
*/
|
||||
@Delegate
|
||||
GlobalCapacityApi getCapacityApi();
|
||||
|
||||
/**
|
||||
* Provides synchronous access to Offerings
|
||||
*/
|
||||
@Delegate
|
||||
@Override
|
||||
GlobalOfferingApi getOfferingApi();
|
||||
|
||||
/**
|
||||
* Provides synchronous access to Hosts
|
||||
*/
|
||||
@Delegate
|
||||
GlobalHostApi getHostApi();
|
||||
|
||||
/**
|
||||
* Provides synchronous access to Storage Pools
|
||||
*/
|
||||
@Delegate
|
||||
GlobalStoragePoolApi getStoragePoolApi();
|
||||
|
||||
/**
|
||||
* Provides synchronous access to Usage
|
||||
*/
|
||||
@Delegate
|
||||
GlobalUsageApi getUsageApi();
|
||||
|
||||
/**
|
||||
* Provides synchronous access to Configuration
|
||||
*/
|
||||
@Delegate
|
||||
@Override
|
||||
GlobalConfigurationApi getConfigurationApi();
|
||||
|
||||
/**
|
||||
* Provides synchronous access to Domain
|
||||
*/
|
||||
@Delegate
|
||||
@Override
|
||||
GlobalDomainApi getDomainApi();
|
||||
|
||||
/**
|
||||
* Provides synchronous access to Zone
|
||||
*/
|
||||
@Delegate
|
||||
@Override
|
||||
GlobalZoneApi getZoneApi();
|
||||
|
||||
/**
|
||||
* Provides synchronous access to Pod
|
||||
*/
|
||||
@Delegate
|
||||
GlobalPodApi getPodApi();
|
||||
|
||||
/**
|
||||
* Provides synchronous access to Vlan
|
||||
*/
|
||||
@Delegate
|
||||
GlobalVlanApi getVlanApi();
|
||||
}
|
|
@ -0,0 +1,132 @@
|
|||
/*
|
||||
* Licensed to the Apache Software Foundation (ASF) under one or more
|
||||
* contributor license agreements. See the NOTICE file distributed with
|
||||
* this work for additional information regarding copyright ownership.
|
||||
* The ASF licenses this file to You under the Apache License, Version 2.0
|
||||
* (the "License"); you may not use this file except in compliance with
|
||||
* the License. You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
package org.jclouds.cloudstack;
|
||||
|
||||
import org.jclouds.cloudstack.features.GlobalAccountAsyncApi;
|
||||
import org.jclouds.cloudstack.features.GlobalAlertAsyncApi;
|
||||
import org.jclouds.cloudstack.features.GlobalCapacityAsyncApi;
|
||||
import org.jclouds.cloudstack.features.GlobalConfigurationAsyncApi;
|
||||
import org.jclouds.cloudstack.features.GlobalDomainAsyncApi;
|
||||
import org.jclouds.cloudstack.features.GlobalHostAsyncApi;
|
||||
import org.jclouds.cloudstack.features.GlobalOfferingAsyncApi;
|
||||
import org.jclouds.cloudstack.features.GlobalPodAsyncApi;
|
||||
import org.jclouds.cloudstack.features.GlobalStoragePoolAsyncApi;
|
||||
import org.jclouds.cloudstack.features.GlobalUsageAsyncApi;
|
||||
import org.jclouds.cloudstack.features.GlobalUserAsyncApi;
|
||||
import org.jclouds.cloudstack.features.GlobalVlanAsyncApi;
|
||||
import org.jclouds.cloudstack.features.GlobalZoneAsyncApi;
|
||||
import org.jclouds.rest.annotations.Delegate;
|
||||
|
||||
/**
|
||||
* Provides asynchronous access to CloudStack via their REST API.
|
||||
* <p/>
|
||||
*
|
||||
* @author Adrian Cole
|
||||
* @see CloudStackGlobalApi
|
||||
* @see <a href=
|
||||
* "http://download.cloud.com/releases/2.2.0/api_2.2.12/TOC_Global_Admin.html"
|
||||
* />
|
||||
* @deprecated please use {@code org.jclouds.ContextBuilder#buildApi(CloudStackGlobalApi.class)} as
|
||||
* {@link CloudStackGlobalAsyncApi} interface will be removed in jclouds 1.7.
|
||||
*/
|
||||
@Deprecated
|
||||
public interface CloudStackGlobalAsyncApi extends CloudStackDomainAsyncApi {
|
||||
|
||||
/**
|
||||
* Provides asynchronous access to Accounts
|
||||
*/
|
||||
@Delegate
|
||||
@Override
|
||||
GlobalAccountAsyncApi getAccountApi();
|
||||
|
||||
/**
|
||||
* Provides asynchronous access to Users
|
||||
*/
|
||||
@Delegate
|
||||
@Override
|
||||
GlobalUserAsyncApi getUserApi();
|
||||
|
||||
/**
|
||||
* Provides asynchronous access to Alerts
|
||||
*/
|
||||
@Delegate
|
||||
GlobalAlertAsyncApi getAlertApi();
|
||||
|
||||
/**
|
||||
* Provides asynchronous access to Capacities
|
||||
*/
|
||||
@Delegate
|
||||
GlobalCapacityAsyncApi getCapacityApi();
|
||||
|
||||
/**
|
||||
* Provides asynchronous access to Offerings
|
||||
*/
|
||||
@Delegate
|
||||
@Override
|
||||
GlobalOfferingAsyncApi getOfferingApi();
|
||||
|
||||
/**
|
||||
* Provides asynchronous access to Hosts
|
||||
*/
|
||||
@Delegate
|
||||
GlobalHostAsyncApi getHostApi();
|
||||
|
||||
/**
|
||||
* Provides synchronous access to Storage Pools
|
||||
*/
|
||||
@Delegate
|
||||
GlobalStoragePoolAsyncApi getStoragePoolApi();
|
||||
|
||||
/**
|
||||
* Provides asynchronous access to Usage
|
||||
*/
|
||||
@Delegate
|
||||
GlobalUsageAsyncApi getUsageApi();
|
||||
|
||||
/**
|
||||
* Provides asynchronous access to Configuration
|
||||
*/
|
||||
@Delegate
|
||||
@Override
|
||||
GlobalConfigurationAsyncApi getConfigurationApi();
|
||||
|
||||
/**
|
||||
* Provides asynchronous access to Domain
|
||||
*/
|
||||
@Delegate
|
||||
@Override
|
||||
GlobalDomainAsyncApi getDomainApi();
|
||||
|
||||
/**
|
||||
* Provides asynchronous access to Zone
|
||||
*/
|
||||
@Delegate
|
||||
@Override
|
||||
GlobalZoneAsyncApi getZoneApi();
|
||||
|
||||
/**
|
||||
* Provides asynchronous access to Pod
|
||||
*/
|
||||
@Delegate
|
||||
GlobalPodAsyncApi getPodApi();
|
||||
|
||||
/**
|
||||
* Provides asynchronous access to Vlan
|
||||
*/
|
||||
@Delegate
|
||||
GlobalVlanAsyncApi getVlanApi();
|
||||
}
|
|
@ -35,12 +35,14 @@ import org.jclouds.rest.annotations.Delegate;
|
|||
* Provides synchronous access to CloudStack.
|
||||
* <p/>
|
||||
*
|
||||
* @deprecated The *Client classes will be replaced with the *Api classes in jclouds 1.7.
|
||||
* @author Adrian Cole
|
||||
* @see CloudStackDomainAsyncClient
|
||||
* @see <a href=
|
||||
* "http://download.cloud.com/releases/2.2.0/api_2.2.12/TOC_Global_Admin.html"
|
||||
* />
|
||||
*/
|
||||
@Deprecated
|
||||
public interface CloudStackGlobalClient extends CloudStackDomainClient {
|
||||
|
||||
/**
|
||||
|
|
|
@ -28,6 +28,12 @@ import org.jclouds.cloudstack.CloudStackDomainAsyncClient;
|
|||
import org.jclouds.cloudstack.CloudStackDomainClient;
|
||||
import org.jclouds.cloudstack.CloudStackGlobalAsyncClient;
|
||||
import org.jclouds.cloudstack.CloudStackGlobalClient;
|
||||
import org.jclouds.cloudstack.CloudStackAsyncApi;
|
||||
import org.jclouds.cloudstack.CloudStackApi;
|
||||
import org.jclouds.cloudstack.CloudStackDomainAsyncApi;
|
||||
import org.jclouds.cloudstack.CloudStackDomainApi;
|
||||
import org.jclouds.cloudstack.CloudStackGlobalAsyncApi;
|
||||
import org.jclouds.cloudstack.CloudStackGlobalApi;
|
||||
import org.jclouds.cloudstack.domain.LoginResponse;
|
||||
import org.jclouds.cloudstack.features.AccountAsyncClient;
|
||||
import org.jclouds.cloudstack.features.AccountClient;
|
||||
|
@ -109,6 +115,86 @@ import org.jclouds.cloudstack.features.VolumeAsyncClient;
|
|||
import org.jclouds.cloudstack.features.VolumeClient;
|
||||
import org.jclouds.cloudstack.features.ZoneAsyncClient;
|
||||
import org.jclouds.cloudstack.features.ZoneClient;
|
||||
import org.jclouds.cloudstack.features.AccountAsyncApi;
|
||||
import org.jclouds.cloudstack.features.AccountApi;
|
||||
import org.jclouds.cloudstack.features.AddressAsyncApi;
|
||||
import org.jclouds.cloudstack.features.AddressApi;
|
||||
import org.jclouds.cloudstack.features.AsyncJobAsyncApi;
|
||||
import org.jclouds.cloudstack.features.AsyncJobApi;
|
||||
import org.jclouds.cloudstack.features.ConfigurationAsyncApi;
|
||||
import org.jclouds.cloudstack.features.ConfigurationApi;
|
||||
import org.jclouds.cloudstack.features.DomainAccountAsyncApi;
|
||||
import org.jclouds.cloudstack.features.DomainAccountApi;
|
||||
import org.jclouds.cloudstack.features.DomainDomainAsyncApi;
|
||||
import org.jclouds.cloudstack.features.DomainDomainApi;
|
||||
import org.jclouds.cloudstack.features.DomainLimitAsyncApi;
|
||||
import org.jclouds.cloudstack.features.DomainLimitApi;
|
||||
import org.jclouds.cloudstack.features.DomainUserAsyncApi;
|
||||
import org.jclouds.cloudstack.features.DomainUserApi;
|
||||
import org.jclouds.cloudstack.features.EventAsyncApi;
|
||||
import org.jclouds.cloudstack.features.EventApi;
|
||||
import org.jclouds.cloudstack.features.FirewallAsyncApi;
|
||||
import org.jclouds.cloudstack.features.FirewallApi;
|
||||
import org.jclouds.cloudstack.features.GlobalAccountAsyncApi;
|
||||
import org.jclouds.cloudstack.features.GlobalAccountApi;
|
||||
import org.jclouds.cloudstack.features.GlobalAlertAsyncApi;
|
||||
import org.jclouds.cloudstack.features.GlobalAlertApi;
|
||||
import org.jclouds.cloudstack.features.GlobalCapacityAsyncApi;
|
||||
import org.jclouds.cloudstack.features.GlobalCapacityApi;
|
||||
import org.jclouds.cloudstack.features.GlobalConfigurationAsyncApi;
|
||||
import org.jclouds.cloudstack.features.GlobalConfigurationApi;
|
||||
import org.jclouds.cloudstack.features.GlobalDomainAsyncApi;
|
||||
import org.jclouds.cloudstack.features.GlobalDomainApi;
|
||||
import org.jclouds.cloudstack.features.GlobalHostAsyncApi;
|
||||
import org.jclouds.cloudstack.features.GlobalHostApi;
|
||||
import org.jclouds.cloudstack.features.GlobalOfferingAsyncApi;
|
||||
import org.jclouds.cloudstack.features.GlobalOfferingApi;
|
||||
import org.jclouds.cloudstack.features.GlobalPodAsyncApi;
|
||||
import org.jclouds.cloudstack.features.GlobalPodApi;
|
||||
import org.jclouds.cloudstack.features.GlobalStoragePoolAsyncApi;
|
||||
import org.jclouds.cloudstack.features.GlobalStoragePoolApi;
|
||||
import org.jclouds.cloudstack.features.GlobalUsageAsyncApi;
|
||||
import org.jclouds.cloudstack.features.GlobalUsageApi;
|
||||
import org.jclouds.cloudstack.features.GlobalUserAsyncApi;
|
||||
import org.jclouds.cloudstack.features.GlobalUserApi;
|
||||
import org.jclouds.cloudstack.features.GlobalVlanAsyncApi;
|
||||
import org.jclouds.cloudstack.features.GlobalVlanApi;
|
||||
import org.jclouds.cloudstack.features.GlobalZoneAsyncApi;
|
||||
import org.jclouds.cloudstack.features.GlobalZoneApi;
|
||||
import org.jclouds.cloudstack.features.GuestOSAsyncApi;
|
||||
import org.jclouds.cloudstack.features.GuestOSApi;
|
||||
import org.jclouds.cloudstack.features.HypervisorAsyncApi;
|
||||
import org.jclouds.cloudstack.features.HypervisorApi;
|
||||
import org.jclouds.cloudstack.features.ISOAsyncApi;
|
||||
import org.jclouds.cloudstack.features.ISOApi;
|
||||
import org.jclouds.cloudstack.features.LimitAsyncApi;
|
||||
import org.jclouds.cloudstack.features.LimitApi;
|
||||
import org.jclouds.cloudstack.features.LoadBalancerAsyncApi;
|
||||
import org.jclouds.cloudstack.features.LoadBalancerApi;
|
||||
import org.jclouds.cloudstack.features.NATAsyncApi;
|
||||
import org.jclouds.cloudstack.features.NATApi;
|
||||
import org.jclouds.cloudstack.features.NetworkAsyncApi;
|
||||
import org.jclouds.cloudstack.features.NetworkApi;
|
||||
import org.jclouds.cloudstack.features.OfferingAsyncApi;
|
||||
import org.jclouds.cloudstack.features.OfferingApi;
|
||||
import org.jclouds.cloudstack.features.SSHKeyPairAsyncApi;
|
||||
import org.jclouds.cloudstack.features.SSHKeyPairApi;
|
||||
import org.jclouds.cloudstack.features.SecurityGroupAsyncApi;
|
||||
import org.jclouds.cloudstack.features.SecurityGroupApi;
|
||||
import org.jclouds.cloudstack.features.SessionAsyncApi;
|
||||
import org.jclouds.cloudstack.features.SessionApi;
|
||||
import org.jclouds.cloudstack.features.SnapshotAsyncApi;
|
||||
import org.jclouds.cloudstack.features.SnapshotApi;
|
||||
import org.jclouds.cloudstack.features.TemplateAsyncApi;
|
||||
import org.jclouds.cloudstack.features.TemplateApi;
|
||||
import org.jclouds.cloudstack.features.VMGroupAsyncApi;
|
||||
import org.jclouds.cloudstack.features.VMGroupApi;
|
||||
import org.jclouds.cloudstack.features.VirtualMachineAsyncApi;
|
||||
import org.jclouds.cloudstack.features.VirtualMachineApi;
|
||||
import org.jclouds.cloudstack.features.VolumeAsyncApi;
|
||||
import org.jclouds.cloudstack.features.VolumeApi;
|
||||
import org.jclouds.cloudstack.features.ZoneAsyncApi;
|
||||
import org.jclouds.cloudstack.features.ZoneApi;
|
||||
import org.jclouds.cloudstack.filters.AddSessionKeyAndJSessionIdToRequest;
|
||||
import org.jclouds.cloudstack.filters.AuthenticationFilter;
|
||||
import org.jclouds.cloudstack.filters.QuerySigner;
|
||||
|
@ -148,47 +234,87 @@ import com.google.inject.name.Named;
|
|||
@ConfiguresRestClient
|
||||
public class CloudStackRestClientModule extends RestClientModule<CloudStackClient, CloudStackAsyncClient> {
|
||||
|
||||
public static final Map<Class<?>, Class<?>> DELEGATE_MAP = ImmutableMap.<Class<?>, Class<?>> builder()//
|
||||
.put(ZoneClient.class, ZoneAsyncClient.class)//
|
||||
.put(GlobalZoneClient.class, GlobalZoneAsyncClient.class)//
|
||||
.put(TemplateClient.class, TemplateAsyncClient.class)//
|
||||
.put(OfferingClient.class, OfferingAsyncClient.class)//
|
||||
.put(NetworkClient.class, NetworkAsyncClient.class)//
|
||||
.put(VirtualMachineClient.class, VirtualMachineAsyncClient.class)//
|
||||
.put(SecurityGroupClient.class, SecurityGroupAsyncClient.class)//
|
||||
.put(AsyncJobClient.class, AsyncJobAsyncClient.class)//
|
||||
.put(AddressClient.class, AddressAsyncClient.class)//
|
||||
.put(NATClient.class, NATAsyncClient.class)//
|
||||
.put(FirewallClient.class, FirewallAsyncClient.class)//
|
||||
.put(LoadBalancerClient.class, LoadBalancerAsyncClient.class)//
|
||||
.put(GuestOSClient.class, GuestOSAsyncClient.class)//
|
||||
.put(HypervisorClient.class, HypervisorAsyncClient.class)//
|
||||
.put(ConfigurationClient.class, ConfigurationAsyncClient.class)//
|
||||
.put(GlobalConfigurationClient.class, GlobalConfigurationAsyncClient.class)//
|
||||
.put(AccountClient.class, AccountAsyncClient.class)//
|
||||
.put(DomainAccountClient.class, DomainAccountAsyncClient.class)//
|
||||
.put(DomainUserClient.class, DomainUserAsyncClient.class)//
|
||||
.put(DomainDomainClient.class, DomainDomainAsyncClient.class)//
|
||||
.put(GlobalDomainClient.class, GlobalDomainAsyncClient.class)//
|
||||
.put(GlobalAccountClient.class, GlobalAccountAsyncClient.class)//
|
||||
.put(GlobalUserClient.class, GlobalUserAsyncClient.class)//
|
||||
.put(EventClient.class, EventAsyncClient.class)//
|
||||
.put(LimitClient.class, LimitAsyncClient.class)//
|
||||
.put(DomainLimitClient.class, DomainLimitAsyncClient.class)//
|
||||
.put(SSHKeyPairClient.class, SSHKeyPairAsyncClient.class)//
|
||||
.put(VMGroupClient.class, VMGroupAsyncClient.class)//
|
||||
.put(ISOClient.class, ISOAsyncClient.class)//
|
||||
.put(VolumeClient.class, VolumeAsyncClient.class)//
|
||||
.put(SnapshotClient.class, SnapshotAsyncClient.class)//
|
||||
.put(GlobalAlertClient.class, GlobalAlertAsyncClient.class)//
|
||||
.put(GlobalCapacityClient.class, GlobalCapacityAsyncClient.class)//
|
||||
.put(GlobalOfferingClient.class, GlobalOfferingAsyncClient.class)//
|
||||
.put(GlobalHostClient.class, GlobalHostAsyncClient.class)//
|
||||
.put(GlobalStoragePoolClient.class, GlobalStoragePoolAsyncClient.class)//
|
||||
.put(GlobalUsageClient.class, GlobalUsageAsyncClient.class)//
|
||||
.put(GlobalPodClient.class, GlobalPodAsyncClient.class)//
|
||||
.put(GlobalVlanClient.class, GlobalVlanAsyncClient.class)//
|
||||
.put(SessionClient.class, SessionAsyncClient.class)//
|
||||
public static final Map<Class<?>, Class<?>> DELEGATE_MAP = ImmutableMap.<Class<?>, Class<?>> builder()
|
||||
.put(ZoneClient.class, ZoneAsyncClient.class)
|
||||
.put(GlobalZoneClient.class, GlobalZoneAsyncClient.class)
|
||||
.put(TemplateClient.class, TemplateAsyncClient.class)
|
||||
.put(OfferingClient.class, OfferingAsyncClient.class)
|
||||
.put(NetworkClient.class, NetworkAsyncClient.class)
|
||||
.put(VirtualMachineClient.class, VirtualMachineAsyncClient.class)
|
||||
.put(SecurityGroupClient.class, SecurityGroupAsyncClient.class)
|
||||
.put(AsyncJobClient.class, AsyncJobAsyncClient.class)
|
||||
.put(AddressClient.class, AddressAsyncClient.class)
|
||||
.put(NATClient.class, NATAsyncClient.class)
|
||||
.put(FirewallClient.class, FirewallAsyncClient.class)
|
||||
.put(LoadBalancerClient.class, LoadBalancerAsyncClient.class)
|
||||
.put(GuestOSClient.class, GuestOSAsyncClient.class)
|
||||
.put(HypervisorClient.class, HypervisorAsyncClient.class)
|
||||
.put(ConfigurationClient.class, ConfigurationAsyncClient.class)
|
||||
.put(GlobalConfigurationClient.class, GlobalConfigurationAsyncClient.class)
|
||||
.put(AccountClient.class, AccountAsyncClient.class)
|
||||
.put(DomainAccountClient.class, DomainAccountAsyncClient.class)
|
||||
.put(DomainUserClient.class, DomainUserAsyncClient.class)
|
||||
.put(DomainDomainClient.class, DomainDomainAsyncClient.class)
|
||||
.put(GlobalDomainClient.class, GlobalDomainAsyncClient.class)
|
||||
.put(GlobalAccountClient.class, GlobalAccountAsyncClient.class)
|
||||
.put(GlobalUserClient.class, GlobalUserAsyncClient.class)
|
||||
.put(EventClient.class, EventAsyncClient.class)
|
||||
.put(LimitClient.class, LimitAsyncClient.class)
|
||||
.put(DomainLimitClient.class, DomainLimitAsyncClient.class)
|
||||
.put(SSHKeyPairClient.class, SSHKeyPairAsyncClient.class)
|
||||
.put(VMGroupClient.class, VMGroupAsyncClient.class)
|
||||
.put(ISOClient.class, ISOAsyncClient.class)
|
||||
.put(VolumeClient.class, VolumeAsyncClient.class)
|
||||
.put(SnapshotClient.class, SnapshotAsyncClient.class)
|
||||
.put(GlobalAlertClient.class, GlobalAlertAsyncClient.class)
|
||||
.put(GlobalCapacityClient.class, GlobalCapacityAsyncClient.class)
|
||||
.put(GlobalOfferingClient.class, GlobalOfferingAsyncClient.class)
|
||||
.put(GlobalHostClient.class, GlobalHostAsyncClient.class)
|
||||
.put(GlobalStoragePoolClient.class, GlobalStoragePoolAsyncClient.class)
|
||||
.put(GlobalUsageClient.class, GlobalUsageAsyncClient.class)
|
||||
.put(GlobalPodClient.class, GlobalPodAsyncClient.class)
|
||||
.put(GlobalVlanClient.class, GlobalVlanAsyncClient.class)
|
||||
.put(SessionClient.class, SessionAsyncClient.class)
|
||||
.put(ZoneApi.class, ZoneAsyncApi.class)
|
||||
.put(GlobalZoneApi.class, GlobalZoneAsyncApi.class)
|
||||
.put(TemplateApi.class, TemplateAsyncApi.class)
|
||||
.put(OfferingApi.class, OfferingAsyncApi.class)
|
||||
.put(NetworkApi.class, NetworkAsyncApi.class)
|
||||
.put(VirtualMachineApi.class, VirtualMachineAsyncApi.class)
|
||||
.put(SecurityGroupApi.class, SecurityGroupAsyncApi.class)
|
||||
.put(AsyncJobApi.class, AsyncJobAsyncApi.class)
|
||||
.put(AddressApi.class, AddressAsyncApi.class)
|
||||
.put(NATApi.class, NATAsyncApi.class)
|
||||
.put(FirewallApi.class, FirewallAsyncApi.class)
|
||||
.put(LoadBalancerApi.class, LoadBalancerAsyncApi.class)
|
||||
.put(GuestOSApi.class, GuestOSAsyncApi.class)
|
||||
.put(HypervisorApi.class, HypervisorAsyncApi.class)
|
||||
.put(ConfigurationApi.class, ConfigurationAsyncApi.class)
|
||||
.put(GlobalConfigurationApi.class, GlobalConfigurationAsyncApi.class)
|
||||
.put(AccountApi.class, AccountAsyncApi.class)
|
||||
.put(DomainAccountApi.class, DomainAccountAsyncApi.class)
|
||||
.put(DomainUserApi.class, DomainUserAsyncApi.class)
|
||||
.put(DomainDomainApi.class, DomainDomainAsyncApi.class)
|
||||
.put(GlobalDomainApi.class, GlobalDomainAsyncApi.class)
|
||||
.put(GlobalAccountApi.class, GlobalAccountAsyncApi.class)
|
||||
.put(GlobalUserApi.class, GlobalUserAsyncApi.class)
|
||||
.put(EventApi.class, EventAsyncApi.class)
|
||||
.put(LimitApi.class, LimitAsyncApi.class)
|
||||
.put(DomainLimitApi.class, DomainLimitAsyncApi.class)
|
||||
.put(SSHKeyPairApi.class, SSHKeyPairAsyncApi.class)
|
||||
.put(VMGroupApi.class, VMGroupAsyncApi.class)
|
||||
.put(ISOApi.class, ISOAsyncApi.class)
|
||||
.put(VolumeApi.class, VolumeAsyncApi.class)
|
||||
.put(SnapshotApi.class, SnapshotAsyncApi.class)
|
||||
.put(GlobalAlertApi.class, GlobalAlertAsyncApi.class)
|
||||
.put(GlobalCapacityApi.class, GlobalCapacityAsyncApi.class)
|
||||
.put(GlobalOfferingApi.class, GlobalOfferingAsyncApi.class)
|
||||
.put(GlobalHostApi.class, GlobalHostAsyncApi.class)
|
||||
.put(GlobalStoragePoolApi.class, GlobalStoragePoolAsyncApi.class)
|
||||
.put(GlobalUsageApi.class, GlobalUsageAsyncApi.class)
|
||||
.put(GlobalPodApi.class, GlobalPodAsyncApi.class)
|
||||
.put(GlobalVlanApi.class, GlobalVlanAsyncApi.class)
|
||||
.put(SessionApi.class, SessionAsyncApi.class)
|
||||
.build();
|
||||
|
||||
public CloudStackRestClientModule() {
|
||||
|
@ -208,6 +334,9 @@ public class CloudStackRestClientModule extends RestClientModule<CloudStackClien
|
|||
bindSyncToAsyncHttpApi(binder(), SessionClient.class, SessionAsyncClient.class);
|
||||
bindSyncToAsyncHttpApi(binder(), CloudStackDomainClient.class, CloudStackDomainAsyncClient.class);
|
||||
bindSyncToAsyncHttpApi(binder(), CloudStackGlobalClient.class, CloudStackGlobalAsyncClient.class);
|
||||
bindSyncToAsyncHttpApi(binder(), SessionApi.class, SessionAsyncApi.class);
|
||||
bindSyncToAsyncHttpApi(binder(), CloudStackDomainApi.class, CloudStackDomainAsyncApi.class);
|
||||
bindSyncToAsyncHttpApi(binder(), CloudStackGlobalApi.class, CloudStackGlobalAsyncApi.class);
|
||||
bind(HttpRetryHandler.class).annotatedWith(ClientError.class).to(InvalidateSessionAndRetryOn401AndLogoutOnClose.class);
|
||||
|
||||
super.configure();
|
||||
|
|
|
@ -0,0 +1,33 @@
|
|||
/*
|
||||
* Licensed to the Apache Software Foundation (ASF) under one or more
|
||||
* contributor license agreements. See the NOTICE file distributed with
|
||||
* this work for additional information regarding copyright ownership.
|
||||
* The ASF licenses this file to You under the Apache License, Version 2.0
|
||||
* (the "License"); you may not use this file except in compliance with
|
||||
* the License. You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
package org.jclouds.cloudstack.features;
|
||||
|
||||
import java.util.Set;
|
||||
import org.jclouds.cloudstack.domain.Account;
|
||||
|
||||
/**
|
||||
* Provides synchronous access to CloudStack Account features.
|
||||
* <p/>
|
||||
*
|
||||
* Note that this class is transitionary and will fully replace AccountClient in 1.7.
|
||||
*
|
||||
* @see <a href="http://download.cloud.com/releases/2.2.0/api_2.2.12/TOC_User.html" />
|
||||
* @author Adrian Cole
|
||||
*/
|
||||
public interface AccountApi extends AccountClient {
|
||||
|
||||
}
|
|
@ -0,0 +1,53 @@
|
|||
/*
|
||||
* Licensed to the Apache Software Foundation (ASF) under one or more
|
||||
* contributor license agreements. See the NOTICE file distributed with
|
||||
* this work for additional information regarding copyright ownership.
|
||||
* The ASF licenses this file to You under the Apache License, Version 2.0
|
||||
* (the "License"); you may not use this file except in compliance with
|
||||
* the License. You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
package org.jclouds.cloudstack.features;
|
||||
|
||||
import java.util.Set;
|
||||
|
||||
import javax.inject.Named;
|
||||
import javax.ws.rs.Consumes;
|
||||
import javax.ws.rs.GET;
|
||||
import javax.ws.rs.QueryParam;
|
||||
import javax.ws.rs.core.MediaType;
|
||||
|
||||
import org.jclouds.Fallbacks.EmptySetOnNotFoundOr404;
|
||||
import org.jclouds.Fallbacks.NullOnNotFoundOr404;
|
||||
import org.jclouds.cloudstack.domain.Account;
|
||||
import org.jclouds.cloudstack.filters.AuthenticationFilter;
|
||||
import org.jclouds.rest.annotations.Fallback;
|
||||
import org.jclouds.rest.annotations.OnlyElement;
|
||||
import org.jclouds.rest.annotations.QueryParams;
|
||||
import org.jclouds.rest.annotations.RequestFilters;
|
||||
import org.jclouds.rest.annotations.SelectJson;
|
||||
|
||||
import com.google.common.util.concurrent.ListenableFuture;
|
||||
|
||||
/**
|
||||
* Provides asynchronous access to cloudstack via their REST API.
|
||||
* <p/>
|
||||
*
|
||||
* @deprecated This class will be removed in 1.7.
|
||||
* @see AccountApi
|
||||
* @see <a href="http://download.cloud.com/releases/2.2.0/api_2.2.12/TOC_User.html" />
|
||||
* @author Adrian Cole
|
||||
*/
|
||||
@Deprecated
|
||||
@RequestFilters(AuthenticationFilter.class)
|
||||
@QueryParams(keys = "response", values = "json")
|
||||
public interface AccountAsyncApi extends AccountAsyncClient {
|
||||
|
||||
}
|
|
@ -41,10 +41,12 @@ import com.google.common.util.concurrent.ListenableFuture;
|
|||
* Provides asynchronous access to cloudstack via their REST API.
|
||||
* <p/>
|
||||
*
|
||||
* @deprecated The async interface will be removed in jclouds 1.7.
|
||||
* @see AccountClient
|
||||
* @see <a href="http://download.cloud.com/releases/2.2.0/api_2.2.12/TOC_User.html" />
|
||||
* @author Adrian Cole
|
||||
*/
|
||||
@Deprecated
|
||||
@RequestFilters(AuthenticationFilter.class)
|
||||
@QueryParams(keys = "response", values = "json")
|
||||
public interface AccountAsyncClient {
|
||||
|
|
|
@ -24,9 +24,11 @@ import org.jclouds.cloudstack.options.ListAccountsOptions;
|
|||
* Provides synchronous access to CloudStack Account features.
|
||||
* <p/>
|
||||
*
|
||||
* @deprecated The *Client classes will be replaced with the *Api classes in jclouds 1.7.
|
||||
* @see <a href="http://download.cloud.com/releases/2.2.0/api_2.2.12/TOC_User.html" />
|
||||
* @author Adrian Cole
|
||||
*/
|
||||
@Deprecated
|
||||
public interface AccountClient {
|
||||
/**
|
||||
* Lists Accounts
|
||||
|
|
|
@ -0,0 +1,32 @@
|
|||
/*
|
||||
* Licensed to the Apache Software Foundation (ASF) under one or more
|
||||
* contributor license agreements. See the NOTICE file distributed with
|
||||
* this work for additional information regarding copyright ownership.
|
||||
* The ASF licenses this file to You under the Apache License, Version 2.0
|
||||
* (the "License"); you may not use this file except in compliance with
|
||||
* the License. You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
package org.jclouds.cloudstack.features;
|
||||
|
||||
import java.util.Set;
|
||||
|
||||
/**
|
||||
* Provides synchronous access to CloudStack Address features.
|
||||
* <p/>
|
||||
*
|
||||
* Note that this class is transitionary and will fully replace AddressClient in 1.7.
|
||||
*
|
||||
* @see <a href="http://download.cloud.com/releases/2.2.0/api_2.2.12/TOC_User.html" />
|
||||
* @author Adrian Cole
|
||||
*/
|
||||
public interface AddressApi extends AddressClient {
|
||||
|
||||
}
|
|
@ -0,0 +1,52 @@
|
|||
/*
|
||||
* Licensed to the Apache Software Foundation (ASF) under one or more
|
||||
* contributor license agreements. See the NOTICE file distributed with
|
||||
* this work for additional information regarding copyright ownership.
|
||||
* The ASF licenses this file to You under the Apache License, Version 2.0
|
||||
* (the "License"); you may not use this file except in compliance with
|
||||
* the License. You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
package org.jclouds.cloudstack.features;
|
||||
|
||||
import java.util.Set;
|
||||
|
||||
import javax.inject.Named;
|
||||
import javax.ws.rs.Consumes;
|
||||
import javax.ws.rs.GET;
|
||||
import javax.ws.rs.QueryParam;
|
||||
import javax.ws.rs.core.MediaType;
|
||||
|
||||
import org.jclouds.Fallbacks.EmptySetOnNotFoundOr404;
|
||||
import org.jclouds.Fallbacks.NullOnNotFoundOr404;
|
||||
import org.jclouds.cloudstack.filters.AuthenticationFilter;
|
||||
import org.jclouds.rest.annotations.Fallback;
|
||||
import org.jclouds.rest.annotations.OnlyElement;
|
||||
import org.jclouds.rest.annotations.QueryParams;
|
||||
import org.jclouds.rest.annotations.RequestFilters;
|
||||
import org.jclouds.rest.annotations.SelectJson;
|
||||
|
||||
import com.google.common.util.concurrent.ListenableFuture;
|
||||
|
||||
/**
|
||||
* Provides asynchronous access to cloudstack via their REST API.
|
||||
* <p/>
|
||||
*
|
||||
* @deprecated This class will be removed in 1.7.
|
||||
* @see AddressApi
|
||||
* @see <a href="http://download.cloud.com/releases/2.2.0/api_2.2.12/TOC_User.html" />
|
||||
* @author Adrian Cole
|
||||
*/
|
||||
@Deprecated
|
||||
@RequestFilters(AuthenticationFilter.class)
|
||||
@QueryParams(keys = "response", values = "json")
|
||||
public interface AddressAsyncApi extends AddressAsyncClient {
|
||||
|
||||
}
|
|
@ -45,10 +45,12 @@ import com.google.common.util.concurrent.ListenableFuture;
|
|||
* Provides asynchronous access to cloudstack via their REST API.
|
||||
* <p/>
|
||||
*
|
||||
* @deprecated The async interface will be removed in jclouds 1.7.
|
||||
* @see AddressClient
|
||||
* @see <a href="http://download.cloud.com/releases/2.2.0/api_2.2.12/TOC_User.html" />
|
||||
* @author Adrian Cole
|
||||
*/
|
||||
@Deprecated
|
||||
@RequestFilters(AuthenticationFilter.class)
|
||||
@QueryParams(keys = "response", values = "json")
|
||||
public interface AddressAsyncClient {
|
||||
|
|
|
@ -26,10 +26,12 @@ import org.jclouds.cloudstack.options.ListPublicIPAddressesOptions;
|
|||
* Provides synchronous access to CloudStack IPAddress features.
|
||||
* <p/>
|
||||
*
|
||||
* @deprecated The *Client classes will be replaced with the *Api classes in jclouds 1.7.
|
||||
* @see IPAddressAsyncClient
|
||||
* @see <a href="http://download.cloud.com/releases/2.2.0/api_2.2.12/TOC_User.html" />
|
||||
* @author Adrian Cole
|
||||
*/
|
||||
@Deprecated
|
||||
public interface AddressClient {
|
||||
/**
|
||||
* Lists IPAddresses
|
||||
|
|
|
@ -0,0 +1,33 @@
|
|||
/*
|
||||
* Licensed to the Apache Software Foundation (ASF) under one or more
|
||||
* contributor license agreements. See the NOTICE file distributed with
|
||||
* this work for additional information regarding copyright ownership.
|
||||
* The ASF licenses this file to You under the Apache License, Version 2.0
|
||||
* (the "License"); you may not use this file except in compliance with
|
||||
* the License. You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
package org.jclouds.cloudstack.features;
|
||||
|
||||
import java.util.Set;
|
||||
import org.jclouds.cloudstack.domain.AsyncJob;
|
||||
|
||||
/**
|
||||
* Provides synchronous access to CloudStack Account features.
|
||||
* <p/>
|
||||
*
|
||||
* Note that this class is transitionary and will fully replace AsyncJobClient in 1.7.
|
||||
*
|
||||
* @see <a href="http://download.cloud.com/releases/2.2.0/api_2.2.12/TOC_User.html" />
|
||||
* @author Adrian Cole
|
||||
*/
|
||||
public interface AsyncJobApi extends AsyncJobClient {
|
||||
|
||||
}
|
|
@ -0,0 +1,53 @@
|
|||
/*
|
||||
* Licensed to the Apache Software Foundation (ASF) under one or more
|
||||
* contributor license agreements. See the NOTICE file distributed with
|
||||
* this work for additional information regarding copyright ownership.
|
||||
* The ASF licenses this file to You under the Apache License, Version 2.0
|
||||
* (the "License"); you may not use this file except in compliance with
|
||||
* the License. You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
package org.jclouds.cloudstack.features;
|
||||
|
||||
import java.util.Set;
|
||||
|
||||
import javax.inject.Named;
|
||||
import javax.ws.rs.Consumes;
|
||||
import javax.ws.rs.GET;
|
||||
import javax.ws.rs.QueryParam;
|
||||
import javax.ws.rs.core.MediaType;
|
||||
|
||||
import org.jclouds.Fallbacks.EmptySetOnNotFoundOr404;
|
||||
import org.jclouds.Fallbacks.NullOnNotFoundOr404;
|
||||
import org.jclouds.cloudstack.domain.AsyncJob;
|
||||
import org.jclouds.cloudstack.filters.AuthenticationFilter;
|
||||
import org.jclouds.rest.annotations.Fallback;
|
||||
import org.jclouds.rest.annotations.OnlyElement;
|
||||
import org.jclouds.rest.annotations.QueryParams;
|
||||
import org.jclouds.rest.annotations.RequestFilters;
|
||||
import org.jclouds.rest.annotations.SelectJson;
|
||||
|
||||
import com.google.common.util.concurrent.ListenableFuture;
|
||||
|
||||
/**
|
||||
* Provides asynchronous access to cloudstack via their REST API.
|
||||
* <p/>
|
||||
*
|
||||
* @deprecated This class will be removed in 1.7.
|
||||
* @see AsyncJobApi
|
||||
* @see <a href="http://download.cloud.com/releases/2.2.0/api_2.2.12/TOC_User.html" />
|
||||
* @author Adrian Cole
|
||||
*/
|
||||
@Deprecated
|
||||
@RequestFilters(AuthenticationFilter.class)
|
||||
@QueryParams(keys = "response", values = "json")
|
||||
public interface AsyncJobAsyncApi extends AsyncJobAsyncClient {
|
||||
|
||||
}
|
|
@ -42,10 +42,12 @@ import com.google.common.util.concurrent.ListenableFuture;
|
|||
* Provides asynchronous access to cloudstack via their REST API.
|
||||
* <p/>
|
||||
*
|
||||
* @deprecated The async interface will be removed in jclouds 1.7.
|
||||
* @see AsyncJobClient
|
||||
* @see <a href="http://download.cloud.com/releases/2.2.0/api_2.2.12/TOC_User.html" />
|
||||
* @author Adrian Cole
|
||||
*/
|
||||
@Deprecated
|
||||
@RequestFilters(AuthenticationFilter.class)
|
||||
@QueryParams(keys = "response", values = "json")
|
||||
public interface AsyncJobAsyncClient {
|
||||
|
|
|
@ -24,10 +24,12 @@ import org.jclouds.cloudstack.options.ListAsyncJobsOptions;
|
|||
* Provides synchronous access to CloudStack asyncJob features.
|
||||
* <p/>
|
||||
*
|
||||
* @deprecated The *Client classes will be replaced with the *Api classes in jclouds 1.7.
|
||||
* @see AsyncJobAsyncClient
|
||||
* @see <a href="http://download.cloud.com/releases/2.2.0/api_2.2.12/TOC_User.html" />
|
||||
* @author Adrian Cole
|
||||
*/
|
||||
@Deprecated
|
||||
public interface AsyncJobClient {
|
||||
/**
|
||||
* Lists asyncJobs
|
||||
|
|
|
@ -0,0 +1,32 @@
|
|||
/*
|
||||
* Licensed to the Apache Software Foundation (ASF) under one or more
|
||||
* contributor license agreements. See the NOTICE file distributed with
|
||||
* this work for additional information regarding copyright ownership.
|
||||
* The ASF licenses this file to You under the Apache License, Version 2.0
|
||||
* (the "License"); you may not use this file except in compliance with
|
||||
* the License. You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
package org.jclouds.cloudstack.features;
|
||||
|
||||
import java.util.Set;
|
||||
|
||||
/**
|
||||
* Provides synchronous access to CloudStack Configuration features.
|
||||
* <p/>
|
||||
*
|
||||
* Note that this class is transitionary and will fully replace ConfigurationClient in 1.7.
|
||||
*
|
||||
* @see <a href="http://download.cloud.com/releases/2.2.0/api_2.2.12/TOC_User.html" />
|
||||
* @author Adrian Cole
|
||||
*/
|
||||
public interface ConfigurationApi extends ConfigurationClient {
|
||||
|
||||
}
|
|
@ -0,0 +1,52 @@
|
|||
/*
|
||||
* Licensed to the Apache Software Foundation (ASF) under one or more
|
||||
* contributor license agreements. See the NOTICE file distributed with
|
||||
* this work for additional information regarding copyright ownership.
|
||||
* The ASF licenses this file to You under the Apache License, Version 2.0
|
||||
* (the "License"); you may not use this file except in compliance with
|
||||
* the License. You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
package org.jclouds.cloudstack.features;
|
||||
|
||||
import java.util.Set;
|
||||
|
||||
import javax.inject.Named;
|
||||
import javax.ws.rs.Consumes;
|
||||
import javax.ws.rs.GET;
|
||||
import javax.ws.rs.QueryParam;
|
||||
import javax.ws.rs.core.MediaType;
|
||||
|
||||
import org.jclouds.Fallbacks.EmptySetOnNotFoundOr404;
|
||||
import org.jclouds.Fallbacks.NullOnNotFoundOr404;
|
||||
import org.jclouds.cloudstack.filters.AuthenticationFilter;
|
||||
import org.jclouds.rest.annotations.Fallback;
|
||||
import org.jclouds.rest.annotations.OnlyElement;
|
||||
import org.jclouds.rest.annotations.QueryParams;
|
||||
import org.jclouds.rest.annotations.RequestFilters;
|
||||
import org.jclouds.rest.annotations.SelectJson;
|
||||
|
||||
import com.google.common.util.concurrent.ListenableFuture;
|
||||
|
||||
/**
|
||||
* Provides asynchronous access to cloudstack via their REST API.
|
||||
* <p/>
|
||||
*
|
||||
* @deprecated This class will be removed in 1.7.
|
||||
* @see ConfigurationApi
|
||||
* @see <a href="http://download.cloud.com/releases/2.2.0/api_2.2.12/TOC_User.html" />
|
||||
* @author Adrian Cole
|
||||
*/
|
||||
@Deprecated
|
||||
@RequestFilters(AuthenticationFilter.class)
|
||||
@QueryParams(keys = "response", values = "json")
|
||||
public interface ConfigurationAsyncApi extends ConfigurationAsyncClient {
|
||||
|
||||
}
|
|
@ -33,10 +33,12 @@ import com.google.common.util.concurrent.ListenableFuture;
|
|||
* Provides asynchronous access to cloudstack via their REST API.
|
||||
* <p/>
|
||||
*
|
||||
* @deprecated The async interface will be removed in jclouds 1.7.
|
||||
* @see ConfigurationClient
|
||||
* @see <a href="http://download.cloud.com/releases/2.2.0/api_2.2.12/TOC_User.html" />
|
||||
* @author Adrian Cole
|
||||
*/
|
||||
@Deprecated
|
||||
@RequestFilters(AuthenticationFilter.class)
|
||||
@QueryParams(keys = { "response", "listAll" }, values = { "json", "true" })
|
||||
public interface ConfigurationAsyncClient {
|
||||
|
|
|
@ -22,10 +22,12 @@ import org.jclouds.cloudstack.domain.Capabilities;
|
|||
* Provides synchronous access to CloudStack Configuration features.
|
||||
* <p/>
|
||||
*
|
||||
* @deprecated The *Client classes will be replaced with the *Api classes in jclouds 1.7.
|
||||
* @see ConfigurationAsyncClient
|
||||
* @see <a href="http://download.cloud.com/releases/2.2.0/api_2.2.12/TOC_User.html" />
|
||||
* @author Adrian Cole
|
||||
*/
|
||||
@Deprecated
|
||||
public interface ConfigurationClient {
|
||||
/**
|
||||
* Lists capabilities
|
||||
|
|
|
@ -0,0 +1,32 @@
|
|||
/*
|
||||
* Licensed to the Apache Software Foundation (ASF) under one or more
|
||||
* contributor license agreements. See the NOTICE file distributed with
|
||||
* this work for additional information regarding copyright ownership.
|
||||
* The ASF licenses this file to You under the Apache License, Version 2.0
|
||||
* (the "License"); you may not use this file except in compliance with
|
||||
* the License. You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
package org.jclouds.cloudstack.features;
|
||||
|
||||
import java.util.Set;
|
||||
|
||||
/**
|
||||
* Provides synchronous access to CloudStack Account features.
|
||||
* <p/>
|
||||
*
|
||||
* Note that this class is transitionary and will fully replace DomainAccountClient in 1.7.
|
||||
*
|
||||
* @see <a href="http://download.cloud.com/releases/2.2.0/api_2.2.12/TOC_User.html" />
|
||||
* @author Adrian Cole
|
||||
*/
|
||||
public interface DomainAccountApi extends DomainAccountClient, AccountApi {
|
||||
|
||||
}
|
|
@ -0,0 +1,52 @@
|
|||
/*
|
||||
* Licensed to the Apache Software Foundation (ASF) under one or more
|
||||
* contributor license agreements. See the NOTICE file distributed with
|
||||
* this work for additional information regarding copyright ownership.
|
||||
* The ASF licenses this file to You under the Apache License, Version 2.0
|
||||
* (the "License"); you may not use this file except in compliance with
|
||||
* the License. You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
package org.jclouds.cloudstack.features;
|
||||
|
||||
import java.util.Set;
|
||||
|
||||
import javax.inject.Named;
|
||||
import javax.ws.rs.Consumes;
|
||||
import javax.ws.rs.GET;
|
||||
import javax.ws.rs.QueryParam;
|
||||
import javax.ws.rs.core.MediaType;
|
||||
|
||||
import org.jclouds.Fallbacks.EmptySetOnNotFoundOr404;
|
||||
import org.jclouds.Fallbacks.NullOnNotFoundOr404;
|
||||
import org.jclouds.cloudstack.filters.AuthenticationFilter;
|
||||
import org.jclouds.rest.annotations.Fallback;
|
||||
import org.jclouds.rest.annotations.OnlyElement;
|
||||
import org.jclouds.rest.annotations.QueryParams;
|
||||
import org.jclouds.rest.annotations.RequestFilters;
|
||||
import org.jclouds.rest.annotations.SelectJson;
|
||||
|
||||
import com.google.common.util.concurrent.ListenableFuture;
|
||||
|
||||
/**
|
||||
* Provides asynchronous access to cloudstack via their REST API.
|
||||
* <p/>
|
||||
*
|
||||
* @deprecated This class will be removed in 1.7.
|
||||
* @see DomainAccountApi
|
||||
* @see <a href="http://download.cloud.com/releases/2.2.0/api_2.2.12/TOC_User.html" />
|
||||
* @author Adrian Cole
|
||||
*/
|
||||
@Deprecated
|
||||
@RequestFilters(AuthenticationFilter.class)
|
||||
@QueryParams(keys = "response", values = "json")
|
||||
public interface DomainAccountAsyncApi extends DomainAccountAsyncClient, AccountAsyncApi {
|
||||
|
||||
}
|
|
@ -38,11 +38,13 @@ import com.google.common.util.concurrent.ListenableFuture;
|
|||
* Provides asynchronous access to CloudStack Account features available to Domain
|
||||
* Admin users.
|
||||
*
|
||||
* @deprecated The async interface will be removed in jclouds 1.7.
|
||||
* @author Adrian Cole
|
||||
* @see <a href=
|
||||
* "http://download.cloud.com/releases/2.2.0/api_2.2.12/TOC_Domain_Admin.html"
|
||||
* />
|
||||
*/
|
||||
@Deprecated
|
||||
@RequestFilters(AuthenticationFilter.class)
|
||||
@QueryParams(keys = "response", values = "json")
|
||||
public interface DomainAccountAsyncClient extends AccountAsyncClient {
|
||||
|
|
|
@ -23,11 +23,13 @@ import org.jclouds.cloudstack.domain.AsyncCreateResponse;
|
|||
* Provides synchronous access to CloudStack Account features available to Domain
|
||||
* Admin users.
|
||||
*
|
||||
* @deprecated The *Client classes will be replaced with the *Api classes in jclouds 1.7.
|
||||
* @author Adrian Cole
|
||||
* @see <a href=
|
||||
* "http://download.cloud.com/releases/2.2.0/api_2.2.12/TOC_Domain_Admin.html"
|
||||
* />
|
||||
*/
|
||||
@Deprecated
|
||||
public interface DomainAccountClient extends AccountClient {
|
||||
|
||||
/**
|
||||
|
|
|
@ -0,0 +1,32 @@
|
|||
/*
|
||||
* Licensed to the Apache Software Foundation (ASF) under one or more
|
||||
* contributor license agreements. See the NOTICE file distributed with
|
||||
* this work for additional information regarding copyright ownership.
|
||||
* The ASF licenses this file to You under the Apache License, Version 2.0
|
||||
* (the "License"); you may not use this file except in compliance with
|
||||
* the License. You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
package org.jclouds.cloudstack.features;
|
||||
|
||||
import java.util.Set;
|
||||
|
||||
/**
|
||||
* Provides synchronous access to CloudStack Domain features.
|
||||
* <p/>
|
||||
*
|
||||
* Note that this class is transitionary and will fully replace DomainDomainClient in 1.7.
|
||||
*
|
||||
* @see <a href="http://download.cloud.com/releases/2.2.0/api_2.2.12/TOC_User.html" />
|
||||
* @author Adrian Cole
|
||||
*/
|
||||
public interface DomainDomainApi extends DomainDomainClient {
|
||||
|
||||
}
|
|
@ -0,0 +1,52 @@
|
|||
/*
|
||||
* Licensed to the Apache Software Foundation (ASF) under one or more
|
||||
* contributor license agreements. See the NOTICE file distributed with
|
||||
* this work for additional information regarding copyright ownership.
|
||||
* The ASF licenses this file to You under the Apache License, Version 2.0
|
||||
* (the "License"); you may not use this file except in compliance with
|
||||
* the License. You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
package org.jclouds.cloudstack.features;
|
||||
|
||||
import java.util.Set;
|
||||
|
||||
import javax.inject.Named;
|
||||
import javax.ws.rs.Consumes;
|
||||
import javax.ws.rs.GET;
|
||||
import javax.ws.rs.QueryParam;
|
||||
import javax.ws.rs.core.MediaType;
|
||||
|
||||
import org.jclouds.Fallbacks.EmptySetOnNotFoundOr404;
|
||||
import org.jclouds.Fallbacks.NullOnNotFoundOr404;
|
||||
import org.jclouds.cloudstack.filters.AuthenticationFilter;
|
||||
import org.jclouds.rest.annotations.Fallback;
|
||||
import org.jclouds.rest.annotations.OnlyElement;
|
||||
import org.jclouds.rest.annotations.QueryParams;
|
||||
import org.jclouds.rest.annotations.RequestFilters;
|
||||
import org.jclouds.rest.annotations.SelectJson;
|
||||
|
||||
import com.google.common.util.concurrent.ListenableFuture;
|
||||
|
||||
/**
|
||||
* Provides asynchronous access to cloudstack via their REST API.
|
||||
* <p/>
|
||||
*
|
||||
* @deprecated This class will be removed in 1.7.
|
||||
* @see DomainDomainApi
|
||||
* @see <a href="http://download.cloud.com/releases/2.2.0/api_2.2.12/TOC_User.html" />
|
||||
* @author Adrian Cole
|
||||
*/
|
||||
@Deprecated
|
||||
@RequestFilters(AuthenticationFilter.class)
|
||||
@QueryParams(keys = "response", values = "json")
|
||||
public interface DomainDomainAsyncApi extends DomainDomainAsyncClient {
|
||||
|
||||
}
|
|
@ -42,11 +42,13 @@ import com.google.common.util.concurrent.ListenableFuture;
|
|||
* Provides asynchronous access to CloudStack Domain features available to Domain
|
||||
* Admin users.
|
||||
*
|
||||
* @deprecated The async interface will be removed in jclouds 1.7.
|
||||
* @author Andrei Savu
|
||||
* @see <a href=
|
||||
* "http://download.cloud.com/releases/2.2.0/api_2.2.12/TOC_Domain_Admin.html"
|
||||
* />
|
||||
*/
|
||||
@Deprecated
|
||||
@RequestFilters(AuthenticationFilter.class)
|
||||
@QueryParams(keys = "response", values = "json")
|
||||
public interface DomainDomainAsyncClient {
|
||||
|
|
|
@ -25,11 +25,13 @@ import org.jclouds.cloudstack.options.ListDomainsOptions;
|
|||
* Provides synchronous access to CloudStack Domain features available to Domain
|
||||
* Admin users.
|
||||
*
|
||||
* @deprecated The *Client classes will be replaced with the *Api classes in jclouds 1.7.
|
||||
* @author Andrei Savu
|
||||
* @see <a href=
|
||||
* "http://download.cloud.com/releases/2.2.0/api_2.2.12/TOC_Domain_Admin.html"
|
||||
* />
|
||||
*/
|
||||
@Deprecated
|
||||
public interface DomainDomainClient {
|
||||
|
||||
/**
|
||||
|
|
|
@ -0,0 +1,32 @@
|
|||
/*
|
||||
* Licensed to the Apache Software Foundation (ASF) under one or more
|
||||
* contributor license agreements. See the NOTICE file distributed with
|
||||
* this work for additional information regarding copyright ownership.
|
||||
* The ASF licenses this file to You under the Apache License, Version 2.0
|
||||
* (the "License"); you may not use this file except in compliance with
|
||||
* the License. You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
package org.jclouds.cloudstack.features;
|
||||
|
||||
import java.util.Set;
|
||||
|
||||
/**
|
||||
* Provides synchronous access to CloudStack Limit features.
|
||||
* <p/>
|
||||
*
|
||||
* Note that this class is transitionary and will fully replace DomainLimitClient in 1.7.
|
||||
*
|
||||
* @see <a href="http://download.cloud.com/releases/2.2.0/api_2.2.12/TOC_User.html" />
|
||||
* @author Adrian Cole
|
||||
*/
|
||||
public interface DomainLimitApi extends DomainLimitClient, LimitApi {
|
||||
|
||||
}
|
|
@ -0,0 +1,52 @@
|
|||
/*
|
||||
* Licensed to the Apache Software Foundation (ASF) under one or more
|
||||
* contributor license agreements. See the NOTICE file distributed with
|
||||
* this work for additional information regarding copyright ownership.
|
||||
* The ASF licenses this file to You under the Apache License, Version 2.0
|
||||
* (the "License"); you may not use this file except in compliance with
|
||||
* the License. You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
package org.jclouds.cloudstack.features;
|
||||
|
||||
import java.util.Set;
|
||||
|
||||
import javax.inject.Named;
|
||||
import javax.ws.rs.Consumes;
|
||||
import javax.ws.rs.GET;
|
||||
import javax.ws.rs.QueryParam;
|
||||
import javax.ws.rs.core.MediaType;
|
||||
|
||||
import org.jclouds.Fallbacks.EmptySetOnNotFoundOr404;
|
||||
import org.jclouds.Fallbacks.NullOnNotFoundOr404;
|
||||
import org.jclouds.cloudstack.filters.AuthenticationFilter;
|
||||
import org.jclouds.rest.annotations.Fallback;
|
||||
import org.jclouds.rest.annotations.OnlyElement;
|
||||
import org.jclouds.rest.annotations.QueryParams;
|
||||
import org.jclouds.rest.annotations.RequestFilters;
|
||||
import org.jclouds.rest.annotations.SelectJson;
|
||||
|
||||
import com.google.common.util.concurrent.ListenableFuture;
|
||||
|
||||
/**
|
||||
* Provides asynchronous access to cloudstack via their REST API.
|
||||
* <p/>
|
||||
*
|
||||
* @deprecated This class will be removed in 1.7.
|
||||
* @see DomainLimitApi
|
||||
* @see <a href="http://download.cloud.com/releases/2.2.0/api_2.2.12/TOC_User.html" />
|
||||
* @author Adrian Cole
|
||||
*/
|
||||
@Deprecated
|
||||
@RequestFilters(AuthenticationFilter.class)
|
||||
@QueryParams(keys = "response", values = "json")
|
||||
public interface DomainLimitAsyncApi extends DomainLimitAsyncClient, LimitAsyncApi {
|
||||
|
||||
}
|
|
@ -35,11 +35,13 @@ import com.google.common.util.concurrent.ListenableFuture;
|
|||
* Provides asynchronous access to CloudStack Limit features available to Domain
|
||||
* Admin users.
|
||||
*
|
||||
* @deprecated The async interface will be removed in jclouds 1.7.
|
||||
* @author Adrian Cole
|
||||
* @see <a href=
|
||||
* "http://download.cloud.com/releases/2.2.0/api_2.2.12/TOC_Domain_Admin.html"
|
||||
* />
|
||||
*/
|
||||
@Deprecated
|
||||
@RequestFilters(AuthenticationFilter.class)
|
||||
@QueryParams(keys = "response", values = "json")
|
||||
public interface DomainLimitAsyncClient extends LimitAsyncClient {
|
||||
|
|
|
@ -22,11 +22,13 @@ import org.jclouds.cloudstack.domain.ResourceLimit;
|
|||
* Provides synchronous access to CloudStack Limit features available to Domain
|
||||
* Admin users.
|
||||
*
|
||||
* @deprecated The *Client classes will be replaced with the *Api classes in jclouds 1.7.
|
||||
* @author Adrian Cole
|
||||
* @see <a href=
|
||||
* "http://download.cloud.com/releases/2.2.0/api_2.2.12/TOC_Domain_Admin.html"
|
||||
* />
|
||||
*/
|
||||
@Deprecated
|
||||
public interface DomainLimitClient extends LimitClient {
|
||||
/**
|
||||
* Updates resource limits for an account in a domain.
|
||||
|
|
|
@ -0,0 +1,32 @@
|
|||
/*
|
||||
* Licensed to the Apache Software Foundation (ASF) under one or more
|
||||
* contributor license agreements. See the NOTICE file distributed with
|
||||
* this work for additional information regarding copyright ownership.
|
||||
* The ASF licenses this file to You under the Apache License, Version 2.0
|
||||
* (the "License"); you may not use this file except in compliance with
|
||||
* the License. You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
package org.jclouds.cloudstack.features;
|
||||
|
||||
import java.util.Set;
|
||||
|
||||
/**
|
||||
* Provides synchronous access to CloudStack Userfeatures.
|
||||
* <p/>
|
||||
*
|
||||
* Note that this class is transitionary and will fully replace DomainUserClient in 1.7.
|
||||
*
|
||||
* @see <a href="http://download.cloud.com/releases/2.2.0/api_2.2.12/TOC_User.html" />
|
||||
* @author Adrian Cole
|
||||
*/
|
||||
public interface DomainUserApi extends DomainUserClient {
|
||||
|
||||
}
|
|
@ -0,0 +1,52 @@
|
|||
/*
|
||||
* Licensed to the Apache Software Foundation (ASF) under one or more
|
||||
* contributor license agreements. See the NOTICE file distributed with
|
||||
* this work for additional information regarding copyright ownership.
|
||||
* The ASF licenses this file to You under the Apache License, Version 2.0
|
||||
* (the "License"); you may not use this file except in compliance with
|
||||
* the License. You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
package org.jclouds.cloudstack.features;
|
||||
|
||||
import java.util.Set;
|
||||
|
||||
import javax.inject.Named;
|
||||
import javax.ws.rs.Consumes;
|
||||
import javax.ws.rs.GET;
|
||||
import javax.ws.rs.QueryParam;
|
||||
import javax.ws.rs.core.MediaType;
|
||||
|
||||
import org.jclouds.Fallbacks.EmptySetOnNotFoundOr404;
|
||||
import org.jclouds.Fallbacks.NullOnNotFoundOr404;
|
||||
import org.jclouds.cloudstack.filters.AuthenticationFilter;
|
||||
import org.jclouds.rest.annotations.Fallback;
|
||||
import org.jclouds.rest.annotations.OnlyElement;
|
||||
import org.jclouds.rest.annotations.QueryParams;
|
||||
import org.jclouds.rest.annotations.RequestFilters;
|
||||
import org.jclouds.rest.annotations.SelectJson;
|
||||
|
||||
import com.google.common.util.concurrent.ListenableFuture;
|
||||
|
||||
/**
|
||||
* Provides asynchronous access to cloudstack via their REST API.
|
||||
* <p/>
|
||||
*
|
||||
* @deprecated This class will be removed in 1.7.
|
||||
* @see DomainUserApi
|
||||
* @see <a href="http://download.cloud.com/releases/2.2.0/api_2.2.12/TOC_User.html" />
|
||||
* @author Adrian Cole
|
||||
*/
|
||||
@Deprecated
|
||||
@RequestFilters(AuthenticationFilter.class)
|
||||
@QueryParams(keys = "response", values = "json")
|
||||
public interface DomainUserAsyncApi extends DomainUserAsyncClient {
|
||||
|
||||
}
|
|
@ -42,11 +42,13 @@ import com.google.common.util.concurrent.ListenableFuture;
|
|||
* Provides asynchronous access to CloudStack User features available to Domain
|
||||
* Admin users.
|
||||
*
|
||||
* @deprecated The async interface will be removed in jclouds 1.7.
|
||||
* @author Andrei Savu
|
||||
* @see <a href=
|
||||
* "http://download.cloud.com/releases/2.2.0/api_2.2.12/TOC_Domain_Admin.html"
|
||||
* />
|
||||
*/
|
||||
@Deprecated
|
||||
@RequestFilters(AuthenticationFilter.class)
|
||||
@QueryParams(keys = "response", values = "json")
|
||||
public interface DomainUserAsyncClient {
|
||||
|
|
|
@ -25,11 +25,13 @@ import org.jclouds.cloudstack.options.ListUsersOptions;
|
|||
* Provides synchronous access to CloudStack User features available to Domain
|
||||
* Admin users.
|
||||
*
|
||||
* @deprecated The *Client classes will be replaced with the *Api classes in jclouds 1.7.
|
||||
* @author Andrei Savu
|
||||
* @see <a href=
|
||||
* "http://download.cloud.com/releases/2.2.0/api_2.2.12/TOC_Domain_Admin.html"
|
||||
* />
|
||||
*/
|
||||
@Deprecated
|
||||
public interface DomainUserClient {
|
||||
|
||||
/**
|
||||
|
|
|
@ -0,0 +1,33 @@
|
|||
/*
|
||||
* Licensed to the Apache Software Foundation (ASF) under one or more
|
||||
* contributor license agreements. See the NOTICE file distributed with
|
||||
* this work for additional information regarding copyright ownership.
|
||||
* The ASF licenses this file to You under the Apache License, Version 2.0
|
||||
* (the "License"); you may not use this file except in compliance with
|
||||
* the License. You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
package org.jclouds.cloudstack.features;
|
||||
|
||||
import java.util.Set;
|
||||
import org.jclouds.cloudstack.domain.Event;
|
||||
|
||||
/**
|
||||
* Provides synchronous access to CloudStack Account features.
|
||||
* <p/>
|
||||
*
|
||||
* Note that this class is transitionary and will fully replace EventClient in 1.7.
|
||||
*
|
||||
* @see <a href="http://download.cloud.com/releases/2.2.0/api_2.2.12/TOC_User.html" />
|
||||
* @author Adrian Cole
|
||||
*/
|
||||
public interface EventApi extends EventClient {
|
||||
|
||||
}
|
|
@ -0,0 +1,53 @@
|
|||
/*
|
||||
* Licensed to the Apache Software Foundation (ASF) under one or more
|
||||
* contributor license agreements. See the NOTICE file distributed with
|
||||
* this work for additional information regarding copyright ownership.
|
||||
* The ASF licenses this file to You under the Apache License, Version 2.0
|
||||
* (the "License"); you may not use this file except in compliance with
|
||||
* the License. You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
package org.jclouds.cloudstack.features;
|
||||
|
||||
import java.util.Set;
|
||||
|
||||
import javax.inject.Named;
|
||||
import javax.ws.rs.Consumes;
|
||||
import javax.ws.rs.GET;
|
||||
import javax.ws.rs.QueryParam;
|
||||
import javax.ws.rs.core.MediaType;
|
||||
|
||||
import org.jclouds.Fallbacks.EmptySetOnNotFoundOr404;
|
||||
import org.jclouds.Fallbacks.NullOnNotFoundOr404;
|
||||
import org.jclouds.cloudstack.domain.Event;
|
||||
import org.jclouds.cloudstack.filters.AuthenticationFilter;
|
||||
import org.jclouds.rest.annotations.Fallback;
|
||||
import org.jclouds.rest.annotations.OnlyElement;
|
||||
import org.jclouds.rest.annotations.QueryParams;
|
||||
import org.jclouds.rest.annotations.RequestFilters;
|
||||
import org.jclouds.rest.annotations.SelectJson;
|
||||
|
||||
import com.google.common.util.concurrent.ListenableFuture;
|
||||
|
||||
/**
|
||||
* Provides asynchronous access to cloudstack via their REST API.
|
||||
* <p/>
|
||||
*
|
||||
* @deprecated This class will be removed in 1.7.
|
||||
* @see EventApi
|
||||
* @see <a href="http://download.cloud.com/releases/2.2.0/api_2.2.12/TOC_User.html" />
|
||||
* @author Adrian Cole
|
||||
*/
|
||||
@Deprecated
|
||||
@RequestFilters(AuthenticationFilter.class)
|
||||
@QueryParams(keys = "response", values = "json")
|
||||
public interface EventAsyncApi extends EventAsyncClient {
|
||||
|
||||
}
|
|
@ -40,10 +40,12 @@ import com.google.common.util.concurrent.ListenableFuture;
|
|||
* Provides asynchronous access to cloudstack via their REST API.
|
||||
* <p/>
|
||||
*
|
||||
* @deprecated The async interface will be removed in jclouds 1.7.
|
||||
* @author Vijay Kiran
|
||||
* @see org.jclouds.cloudstack.features.AccountClient
|
||||
* @see <a href="http://download.cloud.com/releases/2.2.0/api_2.2.12/TOC_User.html" />
|
||||
*/
|
||||
@Deprecated
|
||||
@RequestFilters(AuthenticationFilter.class)
|
||||
@QueryParams(keys = { "response", "listAll" }, values = { "json", "true" })
|
||||
public interface EventAsyncClient {
|
||||
|
|
|
@ -24,9 +24,11 @@ import org.jclouds.cloudstack.options.ListEventsOptions;
|
|||
* Provides synchronous access to CloudStack Event features.
|
||||
* <p/>
|
||||
*
|
||||
* @deprecated The *Client classes will be replaced with the *Api classes in jclouds 1.7.
|
||||
* @author Vijay Kiran
|
||||
* @see <a href="http://download.cloud.com/releases/2.2.0/api_2.2.12/TOC_User.html" />
|
||||
*/
|
||||
@Deprecated
|
||||
public interface EventClient {
|
||||
|
||||
/**
|
||||
|
|
|
@ -0,0 +1,32 @@
|
|||
/*
|
||||
* Licensed to the Apache Software Foundation (ASF) under one or more
|
||||
* contributor license agreements. See the NOTICE file distributed with
|
||||
* this work for additional information regarding copyright ownership.
|
||||
* The ASF licenses this file to You under the Apache License, Version 2.0
|
||||
* (the "License"); you may not use this file except in compliance with
|
||||
* the License. You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
package org.jclouds.cloudstack.features;
|
||||
|
||||
import java.util.Set;
|
||||
|
||||
/**
|
||||
* Provides synchronous access to CloudStack Firewall features.
|
||||
* <p/>
|
||||
*
|
||||
* Note that this class is transitionary and will fully replace FirewallClient in 1.7.
|
||||
*
|
||||
* @see <a href="http://download.cloud.com/releases/2.2.0/api_2.2.12/TOC_User.html" />
|
||||
* @author Adrian Cole
|
||||
*/
|
||||
public interface FirewallApi extends FirewallClient {
|
||||
|
||||
}
|
|
@ -0,0 +1,52 @@
|
|||
/*
|
||||
* Licensed to the Apache Software Foundation (ASF) under one or more
|
||||
* contributor license agreements. See the NOTICE file distributed with
|
||||
* this work for additional information regarding copyright ownership.
|
||||
* The ASF licenses this file to You under the Apache License, Version 2.0
|
||||
* (the "License"); you may not use this file except in compliance with
|
||||
* the License. You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
package org.jclouds.cloudstack.features;
|
||||
|
||||
import java.util.Set;
|
||||
|
||||
import javax.inject.Named;
|
||||
import javax.ws.rs.Consumes;
|
||||
import javax.ws.rs.GET;
|
||||
import javax.ws.rs.QueryParam;
|
||||
import javax.ws.rs.core.MediaType;
|
||||
|
||||
import org.jclouds.Fallbacks.EmptySetOnNotFoundOr404;
|
||||
import org.jclouds.Fallbacks.NullOnNotFoundOr404;
|
||||
import org.jclouds.cloudstack.filters.AuthenticationFilter;
|
||||
import org.jclouds.rest.annotations.Fallback;
|
||||
import org.jclouds.rest.annotations.OnlyElement;
|
||||
import org.jclouds.rest.annotations.QueryParams;
|
||||
import org.jclouds.rest.annotations.RequestFilters;
|
||||
import org.jclouds.rest.annotations.SelectJson;
|
||||
|
||||
import com.google.common.util.concurrent.ListenableFuture;
|
||||
|
||||
/**
|
||||
* Provides asynchronous access to cloudstack via their REST API.
|
||||
* <p/>
|
||||
*
|
||||
* @deprecated This class will be removed in 1.7.
|
||||
* @see FirewallApi
|
||||
* @see <a href="http://download.cloud.com/releases/2.2.0/api_2.2.12/TOC_User.html" />
|
||||
* @author Adrian Cole
|
||||
*/
|
||||
@Deprecated
|
||||
@RequestFilters(AuthenticationFilter.class)
|
||||
@QueryParams(keys = "response", values = "json")
|
||||
public interface FirewallAsyncApi extends FirewallAsyncClient {
|
||||
|
||||
}
|
|
@ -47,10 +47,12 @@ import com.google.common.util.concurrent.ListenableFuture;
|
|||
* Provides asynchronous access to cloudstack via their REST API.
|
||||
* <p/>
|
||||
*
|
||||
* @deprecated The async interface will be removed in jclouds 1.7.
|
||||
* @author Adrian Cole
|
||||
* @see FirewallClient
|
||||
* @see <a href="http://download.cloud.com/releases/2.2.0/api_2.2.12/TOC_User.html" />
|
||||
*/
|
||||
@Deprecated
|
||||
@RequestFilters(AuthenticationFilter.class)
|
||||
@QueryParams(keys = "response", values = "json")
|
||||
public interface FirewallAsyncClient {
|
||||
|
|
|
@ -28,10 +28,12 @@ import org.jclouds.cloudstack.options.ListPortForwardingRulesOptions;
|
|||
* Provides synchronous access to CloudStack PortForwardingRule features.
|
||||
* <p/>
|
||||
*
|
||||
* @deprecated The *Client classes will be replaced with the *Api classes in jclouds 1.7.
|
||||
* @see PortForwardingRuleAsyncClient
|
||||
* @see <a href="http://download.cloud.com/releases/2.2.0/api_2.2.12/TOC_User.html" />
|
||||
* @author Adrian Cole
|
||||
*/
|
||||
@Deprecated
|
||||
public interface FirewallClient {
|
||||
|
||||
/**
|
||||
|
|
|
@ -0,0 +1,32 @@
|
|||
/*
|
||||
* Licensed to the Apache Software Foundation (ASF) under one or more
|
||||
* contributor license agreements. See the NOTICE file distributed with
|
||||
* this work for additional information regarding copyright ownership.
|
||||
* The ASF licenses this file to You under the Apache License, Version 2.0
|
||||
* (the "License"); you may not use this file except in compliance with
|
||||
* the License. You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
package org.jclouds.cloudstack.features;
|
||||
|
||||
import java.util.Set;
|
||||
|
||||
/**
|
||||
* Provides synchronous access to CloudStack Account features.
|
||||
* <p/>
|
||||
*
|
||||
* Note that this class is transitionary and will fully replace GlobalAccountClient in 1.7.
|
||||
*
|
||||
* @see <a href="http://download.cloud.com/releases/2.2.0/api_2.2.12/TOC_User.html" />
|
||||
* @author Adrian Cole
|
||||
*/
|
||||
public interface GlobalAccountApi extends GlobalAccountClient, DomainAccountApi {
|
||||
|
||||
}
|
|
@ -0,0 +1,52 @@
|
|||
/*
|
||||
* Licensed to the Apache Software Foundation (ASF) under one or more
|
||||
* contributor license agreements. See the NOTICE file distributed with
|
||||
* this work for additional information regarding copyright ownership.
|
||||
* The ASF licenses this file to You under the Apache License, Version 2.0
|
||||
* (the "License"); you may not use this file except in compliance with
|
||||
* the License. You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
package org.jclouds.cloudstack.features;
|
||||
|
||||
import java.util.Set;
|
||||
|
||||
import javax.inject.Named;
|
||||
import javax.ws.rs.Consumes;
|
||||
import javax.ws.rs.GET;
|
||||
import javax.ws.rs.QueryParam;
|
||||
import javax.ws.rs.core.MediaType;
|
||||
|
||||
import org.jclouds.Fallbacks.EmptySetOnNotFoundOr404;
|
||||
import org.jclouds.Fallbacks.NullOnNotFoundOr404;
|
||||
import org.jclouds.cloudstack.filters.AuthenticationFilter;
|
||||
import org.jclouds.rest.annotations.Fallback;
|
||||
import org.jclouds.rest.annotations.OnlyElement;
|
||||
import org.jclouds.rest.annotations.QueryParams;
|
||||
import org.jclouds.rest.annotations.RequestFilters;
|
||||
import org.jclouds.rest.annotations.SelectJson;
|
||||
|
||||
import com.google.common.util.concurrent.ListenableFuture;
|
||||
|
||||
/**
|
||||
* Provides asynchronous access to cloudstack via their REST API.
|
||||
* <p/>
|
||||
*
|
||||
* @deprecated This class will be removed in 1.7.
|
||||
* @see GlobalAccountApi
|
||||
* @see <a href="http://download.cloud.com/releases/2.2.0/api_2.2.12/TOC_User.html" />
|
||||
* @author Adrian Cole
|
||||
*/
|
||||
@Deprecated
|
||||
@RequestFilters(AuthenticationFilter.class)
|
||||
@QueryParams(keys = "response", values = "json")
|
||||
public interface GlobalAccountAsyncApi extends GlobalAccountAsyncClient, DomainAccountAsyncApi {
|
||||
|
||||
}
|
|
@ -38,11 +38,13 @@ import com.google.common.util.concurrent.ListenableFuture;
|
|||
* Provides asynchronous access to CloudStack Account features available to Global
|
||||
* Admin users.
|
||||
*
|
||||
* @deprecated The async interface will be removed in jclouds 1.7.
|
||||
* @author Adrian Cole, Andrei Savu
|
||||
* @see <a href=
|
||||
* "http://download.cloud.com/releases/2.2.0/api_2.2.12/TOC_Global_Admin.html"
|
||||
* />
|
||||
*/
|
||||
@Deprecated
|
||||
@RequestFilters(AuthenticationFilter.class)
|
||||
@QueryParams(keys = "response", values = "json")
|
||||
public interface GlobalAccountAsyncClient extends DomainAccountAsyncClient {
|
||||
|
|
|
@ -24,11 +24,13 @@ import org.jclouds.cloudstack.options.UpdateAccountOptions;
|
|||
* Provides synchronous access to CloudStack Account features available to Global
|
||||
* Admin users.
|
||||
*
|
||||
* @deprecated The *Client classes will be replaced with the *Api classes in jclouds 1.7.
|
||||
* @author Adrian Cole, Andrei Savu
|
||||
* @see <a href=
|
||||
* "http://download.cloud.com/releases/2.2.0/api_2.2.12/TOC_Global_Admin.html"
|
||||
* />
|
||||
*/
|
||||
@Deprecated
|
||||
public interface GlobalAccountClient extends DomainAccountClient {
|
||||
|
||||
/**
|
||||
|
|
|
@ -0,0 +1,32 @@
|
|||
/*
|
||||
* Licensed to the Apache Software Foundation (ASF) under one or more
|
||||
* contributor license agreements. See the NOTICE file distributed with
|
||||
* this work for additional information regarding copyright ownership.
|
||||
* The ASF licenses this file to You under the Apache License, Version 2.0
|
||||
* (the "License"); you may not use this file except in compliance with
|
||||
* the License. You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
package org.jclouds.cloudstack.features;
|
||||
|
||||
import java.util.Set;
|
||||
|
||||
/**
|
||||
* Provides synchronous access to CloudStack Alert features.
|
||||
* <p/>
|
||||
*
|
||||
* Note that this class is transitionary and will fully replace GlobalAlertClient in 1.7.
|
||||
*
|
||||
* @see <a href="http://download.cloud.com/releases/2.2.0/api_2.2.12/TOC_User.html" />
|
||||
* @author Adrian Cole
|
||||
*/
|
||||
public interface GlobalAlertApi extends GlobalAlertClient {
|
||||
|
||||
}
|
|
@ -0,0 +1,52 @@
|
|||
/*
|
||||
* Licensed to the Apache Software Foundation (ASF) under one or more
|
||||
* contributor license agreements. See the NOTICE file distributed with
|
||||
* this work for additional information regarding copyright ownership.
|
||||
* The ASF licenses this file to You under the Apache License, Version 2.0
|
||||
* (the "License"); you may not use this file except in compliance with
|
||||
* the License. You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
package org.jclouds.cloudstack.features;
|
||||
|
||||
import java.util.Set;
|
||||
|
||||
import javax.inject.Named;
|
||||
import javax.ws.rs.Consumes;
|
||||
import javax.ws.rs.GET;
|
||||
import javax.ws.rs.QueryParam;
|
||||
import javax.ws.rs.core.MediaType;
|
||||
|
||||
import org.jclouds.Fallbacks.EmptySetOnNotFoundOr404;
|
||||
import org.jclouds.Fallbacks.NullOnNotFoundOr404;
|
||||
import org.jclouds.cloudstack.filters.AuthenticationFilter;
|
||||
import org.jclouds.rest.annotations.Fallback;
|
||||
import org.jclouds.rest.annotations.OnlyElement;
|
||||
import org.jclouds.rest.annotations.QueryParams;
|
||||
import org.jclouds.rest.annotations.RequestFilters;
|
||||
import org.jclouds.rest.annotations.SelectJson;
|
||||
|
||||
import com.google.common.util.concurrent.ListenableFuture;
|
||||
|
||||
/**
|
||||
* Provides asynchronous access to cloudstack via their REST API.
|
||||
* <p/>
|
||||
*
|
||||
* @deprecated This class will be removed in 1.7.
|
||||
* @see GlobalAlertApi
|
||||
* @see <a href="http://download.cloud.com/releases/2.2.0/api_2.2.12/TOC_User.html" />
|
||||
* @author Adrian Cole
|
||||
*/
|
||||
@Deprecated
|
||||
@RequestFilters(AuthenticationFilter.class)
|
||||
@QueryParams(keys = "response", values = "json")
|
||||
public interface GlobalAlertAsyncApi extends GlobalAlertAsyncClient {
|
||||
|
||||
}
|
|
@ -38,11 +38,13 @@ import com.google.common.util.concurrent.ListenableFuture;
|
|||
* Provides asynchronous access to CloudStack Account features available to Global
|
||||
* Admin users.
|
||||
*
|
||||
* @deprecated The async interface will be removed in jclouds 1.7.
|
||||
* @author Richard Downer
|
||||
* @see <a href=
|
||||
* "http://download.cloud.com/releases/2.2.0/api_2.2.12/TOC_Global_Admin.html"
|
||||
* />
|
||||
*/
|
||||
@Deprecated
|
||||
@RequestFilters(AuthenticationFilter.class)
|
||||
@QueryParams(keys = "response", values = "json")
|
||||
public interface GlobalAlertAsyncClient {
|
||||
|
|
|
@ -24,11 +24,13 @@ import org.jclouds.cloudstack.options.ListAlertsOptions;
|
|||
* Provides synchronous access to CloudStack Alerts features available to Global
|
||||
* Admin users.
|
||||
*
|
||||
* @deprecated The *Client classes will be replaced with the *Api classes in jclouds 1.7.
|
||||
* @author Richard Downer
|
||||
* @see <a href=
|
||||
* "http://download.cloud.com/releases/2.2.0/api_2.2.12/TOC_Global_Admin.html"
|
||||
* />
|
||||
*/
|
||||
@Deprecated
|
||||
public interface GlobalAlertClient {
|
||||
|
||||
/**
|
||||
|
|
|
@ -0,0 +1,32 @@
|
|||
/*
|
||||
* Licensed to the Apache Software Foundation (ASF) under one or more
|
||||
* contributor license agreements. See the NOTICE file distributed with
|
||||
* this work for additional information regarding copyright ownership.
|
||||
* The ASF licenses this file to You under the Apache License, Version 2.0
|
||||
* (the "License"); you may not use this file except in compliance with
|
||||
* the License. You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
package org.jclouds.cloudstack.features;
|
||||
|
||||
import java.util.Set;
|
||||
|
||||
/**
|
||||
* Provides synchronous access to CloudStack Capacity features.
|
||||
* <p/>
|
||||
*
|
||||
* Note that this class is transitionary and will fully replace GlobalCapacityClient in 1.7.
|
||||
*
|
||||
* @see <a href="http://download.cloud.com/releases/2.2.0/api_2.2.12/TOC_User.html" />
|
||||
* @author Adrian Cole
|
||||
*/
|
||||
public interface GlobalCapacityApi extends GlobalCapacityClient {
|
||||
|
||||
}
|
|
@ -0,0 +1,52 @@
|
|||
/*
|
||||
* Licensed to the Apache Software Foundation (ASF) under one or more
|
||||
* contributor license agreements. See the NOTICE file distributed with
|
||||
* this work for additional information regarding copyright ownership.
|
||||
* The ASF licenses this file to You under the Apache License, Version 2.0
|
||||
* (the "License"); you may not use this file except in compliance with
|
||||
* the License. You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
package org.jclouds.cloudstack.features;
|
||||
|
||||
import java.util.Set;
|
||||
|
||||
import javax.inject.Named;
|
||||
import javax.ws.rs.Consumes;
|
||||
import javax.ws.rs.GET;
|
||||
import javax.ws.rs.QueryParam;
|
||||
import javax.ws.rs.core.MediaType;
|
||||
|
||||
import org.jclouds.Fallbacks.EmptySetOnNotFoundOr404;
|
||||
import org.jclouds.Fallbacks.NullOnNotFoundOr404;
|
||||
import org.jclouds.cloudstack.filters.AuthenticationFilter;
|
||||
import org.jclouds.rest.annotations.Fallback;
|
||||
import org.jclouds.rest.annotations.OnlyElement;
|
||||
import org.jclouds.rest.annotations.QueryParams;
|
||||
import org.jclouds.rest.annotations.RequestFilters;
|
||||
import org.jclouds.rest.annotations.SelectJson;
|
||||
|
||||
import com.google.common.util.concurrent.ListenableFuture;
|
||||
|
||||
/**
|
||||
* Provides asynchronous access to cloudstack via their REST API.
|
||||
* <p/>
|
||||
*
|
||||
* @deprecated This class will be removed in 1.7.
|
||||
* @see GlobalCapacityApi
|
||||
* @see <a href="http://download.cloud.com/releases/2.2.0/api_2.2.12/TOC_User.html" />
|
||||
* @author Adrian Cole
|
||||
*/
|
||||
@Deprecated
|
||||
@RequestFilters(AuthenticationFilter.class)
|
||||
@QueryParams(keys = "response", values = "json")
|
||||
public interface GlobalCapacityAsyncApi extends GlobalCapacityAsyncClient {
|
||||
|
||||
}
|
|
@ -38,11 +38,13 @@ import com.google.common.util.concurrent.ListenableFuture;
|
|||
* Provides asynchronous access to CloudStack Account features available to Global
|
||||
* Admin users.
|
||||
*
|
||||
* @deprecated The async interface will be removed in jclouds 1.7.
|
||||
* @author Richard Downer
|
||||
* @see <a href=
|
||||
* "http://download.cloud.com/releases/2.2.0/api_2.2.12/TOC_Global_Admin.html"
|
||||
* />
|
||||
*/
|
||||
@Deprecated
|
||||
@RequestFilters(AuthenticationFilter.class)
|
||||
@QueryParams(keys = "response", values = "json")
|
||||
public interface GlobalCapacityAsyncClient {
|
||||
|
|
|
@ -24,11 +24,13 @@ import org.jclouds.cloudstack.options.ListCapacityOptions;
|
|||
* Provides synchronous access to CloudStack Capacities features available to Global
|
||||
* Admin users.
|
||||
*
|
||||
* @deprecated The *Client classes will be replaced with the *Api classes in jclouds 1.7.
|
||||
* @author Richard Downer
|
||||
* @see <a href=
|
||||
* "http://download.cloud.com/releases/2.2.0/api_2.2.12/TOC_Global_Admin.html"
|
||||
* />
|
||||
*/
|
||||
@Deprecated
|
||||
public interface GlobalCapacityClient {
|
||||
|
||||
/**
|
||||
|
|
|
@ -0,0 +1,32 @@
|
|||
/*
|
||||
* Licensed to the Apache Software Foundation (ASF) under one or more
|
||||
* contributor license agreements. See the NOTICE file distributed with
|
||||
* this work for additional information regarding copyright ownership.
|
||||
* The ASF licenses this file to You under the Apache License, Version 2.0
|
||||
* (the "License"); you may not use this file except in compliance with
|
||||
* the License. You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
package org.jclouds.cloudstack.features;
|
||||
|
||||
import java.util.Set;
|
||||
|
||||
/**
|
||||
* Provides synchronous access to CloudStack REST features.
|
||||
* <p/>
|
||||
*
|
||||
* Note that this class is transitionary and will fully replace GlobalConfigurationClient in 1.7.
|
||||
*
|
||||
* @see <a href="http://download.cloud.com/releases/2.2.0/api_2.2.12/TOC_User.html" />
|
||||
* @author Adrian Cole
|
||||
*/
|
||||
public interface GlobalConfigurationApi extends GlobalConfigurationClient, ConfigurationApi {
|
||||
|
||||
}
|
|
@ -0,0 +1,52 @@
|
|||
/*
|
||||
* Licensed to the Apache Software Foundation (ASF) under one or more
|
||||
* contributor license agreements. See the NOTICE file distributed with
|
||||
* this work for additional information regarding copyright ownership.
|
||||
* The ASF licenses this file to You under the Apache License, Version 2.0
|
||||
* (the "License"); you may not use this file except in compliance with
|
||||
* the License. You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
package org.jclouds.cloudstack.features;
|
||||
|
||||
import java.util.Set;
|
||||
|
||||
import javax.inject.Named;
|
||||
import javax.ws.rs.Consumes;
|
||||
import javax.ws.rs.GET;
|
||||
import javax.ws.rs.QueryParam;
|
||||
import javax.ws.rs.core.MediaType;
|
||||
|
||||
import org.jclouds.Fallbacks.EmptySetOnNotFoundOr404;
|
||||
import org.jclouds.Fallbacks.NullOnNotFoundOr404;
|
||||
import org.jclouds.cloudstack.filters.AuthenticationFilter;
|
||||
import org.jclouds.rest.annotations.Fallback;
|
||||
import org.jclouds.rest.annotations.OnlyElement;
|
||||
import org.jclouds.rest.annotations.QueryParams;
|
||||
import org.jclouds.rest.annotations.RequestFilters;
|
||||
import org.jclouds.rest.annotations.SelectJson;
|
||||
|
||||
import com.google.common.util.concurrent.ListenableFuture;
|
||||
|
||||
/**
|
||||
* Provides asynchronous access to cloudstack via their REST API.
|
||||
* <p/>
|
||||
*
|
||||
* @deprecated This class will be removed in 1.7.
|
||||
* @see GlobalConfigurationApi
|
||||
* @see <a href="http://download.cloud.com/releases/2.2.0/api_2.2.12/TOC_User.html" />
|
||||
* @author Adrian Cole
|
||||
*/
|
||||
@Deprecated
|
||||
@RequestFilters(AuthenticationFilter.class)
|
||||
@QueryParams(keys = "response", values = "json")
|
||||
public interface GlobalConfigurationAsyncApi extends GlobalConfigurationAsyncClient, ConfigurationAsyncApi {
|
||||
|
||||
}
|
|
@ -40,11 +40,13 @@ import com.google.common.util.concurrent.ListenableFuture;
|
|||
* Provides asynchronous access to CloudStack Configuration features available to Global
|
||||
* Admin users.
|
||||
*
|
||||
* @deprecated The async interface will be removed in jclouds 1.7.
|
||||
* @author Andrei Savu
|
||||
* @see <a href=
|
||||
* "http://download.cloud.com/releases/2.2.0/api_2.2.12/TOC_Global_Admin.html"
|
||||
* />
|
||||
*/
|
||||
@Deprecated
|
||||
@RequestFilters(AuthenticationFilter.class)
|
||||
@QueryParams(keys = "response", values = "json")
|
||||
public interface GlobalConfigurationAsyncClient extends ConfigurationAsyncClient {
|
||||
|
|
|
@ -24,11 +24,13 @@ import org.jclouds.cloudstack.options.ListConfigurationEntriesOptions;
|
|||
* Provides synchronous access to CloudStack Configuration features available to Global
|
||||
* Admin users.
|
||||
*
|
||||
* @deprecated The *Client classes will be replaced with the *Api classes in jclouds 1.7.
|
||||
* @author Andrei Savu
|
||||
* @see <a href=
|
||||
* "http://download.cloud.com/releases/2.2.0/api_2.2.12/TOC_Global_Admin.html"
|
||||
* />
|
||||
*/
|
||||
@Deprecated
|
||||
public interface GlobalConfigurationClient extends ConfigurationClient {
|
||||
|
||||
/**
|
||||
|
|
|
@ -0,0 +1,32 @@
|
|||
/*
|
||||
* Licensed to the Apache Software Foundation (ASF) under one or more
|
||||
* contributor license agreements. See the NOTICE file distributed with
|
||||
* this work for additional information regarding copyright ownership.
|
||||
* The ASF licenses this file to You under the Apache License, Version 2.0
|
||||
* (the "License"); you may not use this file except in compliance with
|
||||
* the License. You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
package org.jclouds.cloudstack.features;
|
||||
|
||||
import java.util.Set;
|
||||
|
||||
/**
|
||||
* Provides synchronous access to CloudStack Domain features.
|
||||
* <p/>
|
||||
*
|
||||
* Note that this class is transitionary and will fully replace GlobalDomainClient in 1.7.
|
||||
*
|
||||
* @see <a href="http://download.cloud.com/releases/2.2.0/api_2.2.12/TOC_User.html" />
|
||||
* @author Adrian Cole
|
||||
*/
|
||||
public interface GlobalDomainApi extends GlobalDomainClient, DomainDomainApi {
|
||||
|
||||
}
|
|
@ -0,0 +1,52 @@
|
|||
/*
|
||||
* Licensed to the Apache Software Foundation (ASF) under one or more
|
||||
* contributor license agreements. See the NOTICE file distributed with
|
||||
* this work for additional information regarding copyright ownership.
|
||||
* The ASF licenses this file to You under the Apache License, Version 2.0
|
||||
* (the "License"); you may not use this file except in compliance with
|
||||
* the License. You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
package org.jclouds.cloudstack.features;
|
||||
|
||||
import java.util.Set;
|
||||
|
||||
import javax.inject.Named;
|
||||
import javax.ws.rs.Consumes;
|
||||
import javax.ws.rs.GET;
|
||||
import javax.ws.rs.QueryParam;
|
||||
import javax.ws.rs.core.MediaType;
|
||||
|
||||
import org.jclouds.Fallbacks.EmptySetOnNotFoundOr404;
|
||||
import org.jclouds.Fallbacks.NullOnNotFoundOr404;
|
||||
import org.jclouds.cloudstack.filters.AuthenticationFilter;
|
||||
import org.jclouds.rest.annotations.Fallback;
|
||||
import org.jclouds.rest.annotations.OnlyElement;
|
||||
import org.jclouds.rest.annotations.QueryParams;
|
||||
import org.jclouds.rest.annotations.RequestFilters;
|
||||
import org.jclouds.rest.annotations.SelectJson;
|
||||
|
||||
import com.google.common.util.concurrent.ListenableFuture;
|
||||
|
||||
/**
|
||||
* Provides asynchronous access to cloudstack via their REST API.
|
||||
* <p/>
|
||||
*
|
||||
* @deprecated This class will be removed in 1.7.
|
||||
* @see GlobalDomainApi
|
||||
* @see <a href="http://download.cloud.com/releases/2.2.0/api_2.2.12/TOC_User.html" />
|
||||
* @author Adrian Cole
|
||||
*/
|
||||
@Deprecated
|
||||
@RequestFilters(AuthenticationFilter.class)
|
||||
@QueryParams(keys = "response", values = "json")
|
||||
public interface GlobalDomainAsyncApi extends GlobalDomainAsyncClient, DomainDomainAsyncApi {
|
||||
|
||||
}
|
|
@ -39,11 +39,13 @@ import com.google.common.util.concurrent.ListenableFuture;
|
|||
* Provides asynchronous access to CloudStack Domain features available to Global
|
||||
* Admin users.
|
||||
*
|
||||
* @deprecated The async interface will be removed in jclouds 1.7.
|
||||
* @author Andrei Savu
|
||||
* @see <a href=
|
||||
* "http://download.cloud.com/releases/2.2.0/api_2.2.12/TOC_Global_Admin.html"
|
||||
* />
|
||||
*/
|
||||
@Deprecated
|
||||
@RequestFilters(AuthenticationFilter.class)
|
||||
@QueryParams(keys = "response", values = "json")
|
||||
public interface GlobalDomainAsyncClient extends DomainDomainAsyncClient {
|
||||
|
|
|
@ -24,11 +24,13 @@ import org.jclouds.cloudstack.options.UpdateDomainOptions;
|
|||
* Provides synchronous access to CloudStack Domain features available to Global
|
||||
* Admin users.
|
||||
*
|
||||
* @deprecated The *Client classes will be replaced with the *Api classes in jclouds 1.7.
|
||||
* @author Andrei Savu
|
||||
* @see <a href=
|
||||
* "http://download.cloud.com/releases/2.2.0/api_2.2.12/TOC_Global_Admin.html"
|
||||
* />
|
||||
*/
|
||||
@Deprecated
|
||||
public interface GlobalDomainClient extends DomainDomainClient {
|
||||
|
||||
/**
|
||||
|
|
|
@ -0,0 +1,32 @@
|
|||
/*
|
||||
* Licensed to the Apache Software Foundation (ASF) under one or more
|
||||
* contributor license agreements. See the NOTICE file distributed with
|
||||
* this work for additional information regarding copyright ownership.
|
||||
* The ASF licenses this file to You under the Apache License, Version 2.0
|
||||
* (the "License"); you may not use this file except in compliance with
|
||||
* the License. You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
package org.jclouds.cloudstack.features;
|
||||
|
||||
import java.util.Set;
|
||||
|
||||
/**
|
||||
* Provides synchronous access to CloudStack Host features.
|
||||
* <p/>
|
||||
*
|
||||
* Note that this class is transitionary and will fully replace GlobalHostClient in 1.7.
|
||||
*
|
||||
* @see <a href="http://download.cloud.com/releases/2.2.0/api_2.2.12/TOC_User.html" />
|
||||
* @author Adrian Cole
|
||||
*/
|
||||
public interface GlobalHostApi extends GlobalHostClient {
|
||||
|
||||
}
|
|
@ -0,0 +1,52 @@
|
|||
/*
|
||||
* Licensed to the Apache Software Foundation (ASF) under one or more
|
||||
* contributor license agreements. See the NOTICE file distributed with
|
||||
* this work for additional information regarding copyright ownership.
|
||||
* The ASF licenses this file to You under the Apache License, Version 2.0
|
||||
* (the "License"); you may not use this file except in compliance with
|
||||
* the License. You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
package org.jclouds.cloudstack.features;
|
||||
|
||||
import java.util.Set;
|
||||
|
||||
import javax.inject.Named;
|
||||
import javax.ws.rs.Consumes;
|
||||
import javax.ws.rs.GET;
|
||||
import javax.ws.rs.QueryParam;
|
||||
import javax.ws.rs.core.MediaType;
|
||||
|
||||
import org.jclouds.Fallbacks.EmptySetOnNotFoundOr404;
|
||||
import org.jclouds.Fallbacks.NullOnNotFoundOr404;
|
||||
import org.jclouds.cloudstack.filters.AuthenticationFilter;
|
||||
import org.jclouds.rest.annotations.Fallback;
|
||||
import org.jclouds.rest.annotations.OnlyElement;
|
||||
import org.jclouds.rest.annotations.QueryParams;
|
||||
import org.jclouds.rest.annotations.RequestFilters;
|
||||
import org.jclouds.rest.annotations.SelectJson;
|
||||
|
||||
import com.google.common.util.concurrent.ListenableFuture;
|
||||
|
||||
/**
|
||||
* Provides asynchronous access to cloudstack via their REST API.
|
||||
* <p/>
|
||||
*
|
||||
* @deprecated This class will be removed in 1.7.
|
||||
* @see GlobalHostApi
|
||||
* @see <a href="http://download.cloud.com/releases/2.2.0/api_2.2.12/TOC_User.html" />
|
||||
* @author Adrian Cole
|
||||
*/
|
||||
@Deprecated
|
||||
@RequestFilters(AuthenticationFilter.class)
|
||||
@QueryParams(keys = "response", values = "json")
|
||||
public interface GlobalHostAsyncApi extends GlobalHostAsyncClient {
|
||||
|
||||
}
|
|
@ -47,10 +47,12 @@ import com.google.common.util.concurrent.ListenableFuture;
|
|||
* Provides asynchronous access to cloudstack via their REST API.
|
||||
* <p/>
|
||||
*
|
||||
* @deprecated The async interface will be removed in jclouds 1.7.
|
||||
* @see GlobalHostClient
|
||||
* @see <a href="http://download.cloud.com/releases/2.2.0/api_2.2.12/TOC_Global_Admin.html" />
|
||||
* @author Andrei Savu
|
||||
*/
|
||||
@Deprecated
|
||||
@RequestFilters(AuthenticationFilter.class)
|
||||
@QueryParams(keys = "response", values = "json")
|
||||
public interface GlobalHostAsyncClient {
|
||||
|
|
|
@ -32,10 +32,12 @@ import org.jclouds.cloudstack.options.UpdateHostOptions;
|
|||
* Provides synchronous access to CloudStack host features.
|
||||
* <p/>
|
||||
*
|
||||
* @deprecated The *Client classes will be replaced with the *Api classes in jclouds 1.7.
|
||||
* @see org.jclouds.cloudstack.features.GlobalOfferingAsyncClient
|
||||
* @see <a href="http://download.cloud.com/releases/2.2.0/api_2.2.12/TOC_Global_Admin.html" />
|
||||
* @author Andrei Savu
|
||||
*/
|
||||
@Deprecated
|
||||
public interface GlobalHostClient {
|
||||
|
||||
/**
|
||||
|
|
|
@ -0,0 +1,32 @@
|
|||
/*
|
||||
* Licensed to the Apache Software Foundation (ASF) under one or more
|
||||
* contributor license agreements. See the NOTICE file distributed with
|
||||
* this work for additional information regarding copyright ownership.
|
||||
* The ASF licenses this file to You under the Apache License, Version 2.0
|
||||
* (the "License"); you may not use this file except in compliance with
|
||||
* the License. You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
package org.jclouds.cloudstack.features;
|
||||
|
||||
import java.util.Set;
|
||||
|
||||
/**
|
||||
* Provides synchronous access to CloudStack Offering features.
|
||||
* <p/>
|
||||
*
|
||||
* Note that this class is transitionary and will fully replace GlobalOfferingClient in 1.7.
|
||||
*
|
||||
* @see <a href="http://download.cloud.com/releases/2.2.0/api_2.2.12/TOC_User.html" />
|
||||
* @author Adrian Cole
|
||||
*/
|
||||
public interface GlobalOfferingApi extends GlobalOfferingClient, OfferingApi {
|
||||
|
||||
}
|
|
@ -0,0 +1,52 @@
|
|||
/*
|
||||
* Licensed to the Apache Software Foundation (ASF) under one or more
|
||||
* contributor license agreements. See the NOTICE file distributed with
|
||||
* this work for additional information regarding copyright ownership.
|
||||
* The ASF licenses this file to You under the Apache License, Version 2.0
|
||||
* (the "License"); you may not use this file except in compliance with
|
||||
* the License. You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
package org.jclouds.cloudstack.features;
|
||||
|
||||
import java.util.Set;
|
||||
|
||||
import javax.inject.Named;
|
||||
import javax.ws.rs.Consumes;
|
||||
import javax.ws.rs.GET;
|
||||
import javax.ws.rs.QueryParam;
|
||||
import javax.ws.rs.core.MediaType;
|
||||
|
||||
import org.jclouds.Fallbacks.EmptySetOnNotFoundOr404;
|
||||
import org.jclouds.Fallbacks.NullOnNotFoundOr404;
|
||||
import org.jclouds.cloudstack.filters.AuthenticationFilter;
|
||||
import org.jclouds.rest.annotations.Fallback;
|
||||
import org.jclouds.rest.annotations.OnlyElement;
|
||||
import org.jclouds.rest.annotations.QueryParams;
|
||||
import org.jclouds.rest.annotations.RequestFilters;
|
||||
import org.jclouds.rest.annotations.SelectJson;
|
||||
|
||||
import com.google.common.util.concurrent.ListenableFuture;
|
||||
|
||||
/**
|
||||
* Provides asynchronous access to cloudstack via their REST API.
|
||||
* <p/>
|
||||
*
|
||||
* @deprecated This class will be removed in 1.7.
|
||||
* @see GlobalOfferingApi
|
||||
* @see <a href="http://download.cloud.com/releases/2.2.0/api_2.2.12/TOC_User.html" />
|
||||
* @author Adrian Cole
|
||||
*/
|
||||
@Deprecated
|
||||
@RequestFilters(AuthenticationFilter.class)
|
||||
@QueryParams(keys = "response", values = "json")
|
||||
public interface GlobalOfferingAsyncApi extends GlobalOfferingAsyncClient, OfferingAsyncApi {
|
||||
|
||||
}
|
|
@ -43,10 +43,12 @@ import com.google.common.util.concurrent.ListenableFuture;
|
|||
* Provides asynchronous access to cloudstack via their REST API.
|
||||
* <p/>
|
||||
*
|
||||
* @deprecated The async interface will be removed in jclouds 1.7.
|
||||
* @see GlobalOfferingClient
|
||||
* @see <a href="http://download.cloud.com/releases/2.2.0/api_2.2.12/TOC_Global_Admin.html" />
|
||||
* @author Andrei Savu
|
||||
*/
|
||||
@Deprecated
|
||||
@RequestFilters(AuthenticationFilter.class)
|
||||
@QueryParams(keys = "response", values = "json")
|
||||
public interface GlobalOfferingAsyncClient extends OfferingAsyncClient {
|
||||
|
|
|
@ -29,10 +29,12 @@ import org.jclouds.cloudstack.options.UpdateServiceOfferingOptions;
|
|||
* Provides synchronous access to CloudStack zone features.
|
||||
* <p/>
|
||||
*
|
||||
* @deprecated The *Client classes will be replaced with the *Api classes in jclouds 1.7.
|
||||
* @see GlobalOfferingAsyncClient
|
||||
* @see <a href="http://download.cloud.com/releases/2.2.0/api_2.2.12/TOC_Global_Admin.html" />
|
||||
* @author Andrei Savu
|
||||
*/
|
||||
@Deprecated
|
||||
public interface GlobalOfferingClient extends OfferingClient {
|
||||
|
||||
/**
|
||||
|
|
|
@ -0,0 +1,32 @@
|
|||
/*
|
||||
* Licensed to the Apache Software Foundation (ASF) under one or more
|
||||
* contributor license agreements. See the NOTICE file distributed with
|
||||
* this work for additional information regarding copyright ownership.
|
||||
* The ASF licenses this file to You under the Apache License, Version 2.0
|
||||
* (the "License"); you may not use this file except in compliance with
|
||||
* the License. You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
package org.jclouds.cloudstack.features;
|
||||
|
||||
import java.util.Set;
|
||||
|
||||
/**
|
||||
* Provides synchronous access to CloudStack pod features.
|
||||
* <p/>
|
||||
*
|
||||
* Note that this class is transitionary and will fully replace GlobalPodClient in 1.7.
|
||||
*
|
||||
* @see <a href="http://download.cloud.com/releases/2.2.0/api_2.2.12/TOC_User.html" />
|
||||
* @author Adrian Cole
|
||||
*/
|
||||
public interface GlobalPodApi extends GlobalPodClient {
|
||||
|
||||
}
|
|
@ -0,0 +1,52 @@
|
|||
/*
|
||||
* Licensed to the Apache Software Foundation (ASF) under one or more
|
||||
* contributor license agreements. See the NOTICE file distributed with
|
||||
* this work for additional information regarding copyright ownership.
|
||||
* The ASF licenses this file to You under the Apache License, Version 2.0
|
||||
* (the "License"); you may not use this file except in compliance with
|
||||
* the License. You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
package org.jclouds.cloudstack.features;
|
||||
|
||||
import java.util.Set;
|
||||
|
||||
import javax.inject.Named;
|
||||
import javax.ws.rs.Consumes;
|
||||
import javax.ws.rs.GET;
|
||||
import javax.ws.rs.QueryParam;
|
||||
import javax.ws.rs.core.MediaType;
|
||||
|
||||
import org.jclouds.Fallbacks.EmptySetOnNotFoundOr404;
|
||||
import org.jclouds.Fallbacks.NullOnNotFoundOr404;
|
||||
import org.jclouds.cloudstack.filters.AuthenticationFilter;
|
||||
import org.jclouds.rest.annotations.Fallback;
|
||||
import org.jclouds.rest.annotations.OnlyElement;
|
||||
import org.jclouds.rest.annotations.QueryParams;
|
||||
import org.jclouds.rest.annotations.RequestFilters;
|
||||
import org.jclouds.rest.annotations.SelectJson;
|
||||
|
||||
import com.google.common.util.concurrent.ListenableFuture;
|
||||
|
||||
/**
|
||||
* Provides asynchronous access to cloudstack via their REST API.
|
||||
* <p/>
|
||||
*
|
||||
* @deprecated This class will be removed in 1.7.
|
||||
* @see GlobalPodApi
|
||||
* @see <a href="http://download.cloud.com/releases/2.2.0/api_2.2.12/TOC_User.html" />
|
||||
* @author Adrian Cole
|
||||
*/
|
||||
@Deprecated
|
||||
@RequestFilters(AuthenticationFilter.class)
|
||||
@QueryParams(keys = "response", values = "json")
|
||||
public interface GlobalPodAsyncApi extends GlobalPodAsyncClient {
|
||||
|
||||
}
|
|
@ -44,11 +44,13 @@ import com.google.common.util.concurrent.ListenableFuture;
|
|||
* Provides asynchronous access to CloudStack Pod features available to Global
|
||||
* Admin users.
|
||||
*
|
||||
* @deprecated The async interface will be removed in jclouds 1.7.
|
||||
* @author Richard Downer
|
||||
* @see <a href=
|
||||
* "http://download.cloud.com/releases/2.2.0/api_2.2.12/TOC_Global_Admin.html"
|
||||
* />
|
||||
*/
|
||||
@Deprecated
|
||||
@RequestFilters(AuthenticationFilter.class)
|
||||
@QueryParams(keys = "response", values = "json")
|
||||
public interface GlobalPodAsyncClient {
|
||||
|
|
|
@ -26,11 +26,13 @@ import org.jclouds.cloudstack.options.UpdatePodOptions;
|
|||
* Provides synchronous access to CloudStack Pod features available to Global
|
||||
* Admin users.
|
||||
*
|
||||
* @deprecated The *Client classes will be replaced with the *Api classes in jclouds 1.7.
|
||||
* @author Richard Downer
|
||||
* @see <a href=
|
||||
* "http://download.cloud.com/releases/2.2.0/api_2.2.12/TOC_Global_Admin.html"
|
||||
* />
|
||||
*/
|
||||
@Deprecated
|
||||
public interface GlobalPodClient {
|
||||
|
||||
/**
|
||||
|
|
|
@ -0,0 +1,32 @@
|
|||
/*
|
||||
* Licensed to the Apache Software Foundation (ASF) under one or more
|
||||
* contributor license agreements. See the NOTICE file distributed with
|
||||
* this work for additional information regarding copyright ownership.
|
||||
* The ASF licenses this file to You under the Apache License, Version 2.0
|
||||
* (the "License"); you may not use this file except in compliance with
|
||||
* the License. You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
package org.jclouds.cloudstack.features;
|
||||
|
||||
import java.util.Set;
|
||||
|
||||
/**
|
||||
* Provides synchronous access to CloudStack Storage Pool features.
|
||||
* <p/>
|
||||
*
|
||||
* Note that this class is transitionary and will fully replace GlobalStoragePoolClient in 1.7.
|
||||
*
|
||||
* @see <a href="http://download.cloud.com/releases/2.2.0/api_2.2.12/TOC_User.html" />
|
||||
* @author Adrian Cole
|
||||
*/
|
||||
public interface GlobalStoragePoolApi extends GlobalStoragePoolClient {
|
||||
|
||||
}
|
|
@ -0,0 +1,52 @@
|
|||
/*
|
||||
* Licensed to the Apache Software Foundation (ASF) under one or more
|
||||
* contributor license agreements. See the NOTICE file distributed with
|
||||
* this work for additional information regarding copyright ownership.
|
||||
* The ASF licenses this file to You under the Apache License, Version 2.0
|
||||
* (the "License"); you may not use this file except in compliance with
|
||||
* the License. You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
package org.jclouds.cloudstack.features;
|
||||
|
||||
import java.util.Set;
|
||||
|
||||
import javax.inject.Named;
|
||||
import javax.ws.rs.Consumes;
|
||||
import javax.ws.rs.GET;
|
||||
import javax.ws.rs.QueryParam;
|
||||
import javax.ws.rs.core.MediaType;
|
||||
|
||||
import org.jclouds.Fallbacks.EmptySetOnNotFoundOr404;
|
||||
import org.jclouds.Fallbacks.NullOnNotFoundOr404;
|
||||
import org.jclouds.cloudstack.filters.AuthenticationFilter;
|
||||
import org.jclouds.rest.annotations.Fallback;
|
||||
import org.jclouds.rest.annotations.OnlyElement;
|
||||
import org.jclouds.rest.annotations.QueryParams;
|
||||
import org.jclouds.rest.annotations.RequestFilters;
|
||||
import org.jclouds.rest.annotations.SelectJson;
|
||||
|
||||
import com.google.common.util.concurrent.ListenableFuture;
|
||||
|
||||
/**
|
||||
* Provides asynchronous access to cloudstack via their REST API.
|
||||
* <p/>
|
||||
*
|
||||
* @deprecated This class will be removed in 1.7.
|
||||
* @see GlobalStoragePoolApi
|
||||
* @see <a href="http://download.cloud.com/releases/2.2.0/api_2.2.12/TOC_User.html" />
|
||||
* @author Adrian Cole
|
||||
*/
|
||||
@Deprecated
|
||||
@RequestFilters(AuthenticationFilter.class)
|
||||
@QueryParams(keys = "response", values = "json")
|
||||
public interface GlobalStoragePoolAsyncApi extends GlobalStoragePoolAsyncClient {
|
||||
|
||||
}
|
|
@ -36,10 +36,12 @@ import com.google.common.util.concurrent.ListenableFuture;
|
|||
* Provides asynchronous access to CloudStack storage pool features.
|
||||
* <p/>
|
||||
*
|
||||
* @deprecated The async interface will be removed in jclouds 1.7.
|
||||
* @see GlobalStoragePoolClient
|
||||
* @see <a href="http://download.cloud.com/releases/2.2.0/api_2.2.12/TOC_Global_Admin.html" />
|
||||
* @author Richard Downer
|
||||
*/
|
||||
@Deprecated
|
||||
@RequestFilters(AuthenticationFilter.class)
|
||||
@QueryParams(keys = "response", values = "json")
|
||||
public interface GlobalStoragePoolAsyncClient {
|
||||
|
|
|
@ -24,10 +24,12 @@ import org.jclouds.cloudstack.options.ListStoragePoolsOptions;
|
|||
* Provides synchronous access to CloudStack storage pool features.
|
||||
* <p/>
|
||||
*
|
||||
* @deprecated The *Client classes will be replaced with the *Api classes in jclouds 1.7.
|
||||
* @see GlobalStoragePoolClient
|
||||
* @see <a href="http://download.cloud.com/releases/2.2.0/api_2.2.12/TOC_Global_Admin.html" />
|
||||
* @author Richard Downer
|
||||
*/
|
||||
@Deprecated
|
||||
public interface GlobalStoragePoolClient {
|
||||
|
||||
Set<StoragePool> listStoragePools(ListStoragePoolsOptions... options);
|
||||
|
|
|
@ -0,0 +1,32 @@
|
|||
/*
|
||||
* Licensed to the Apache Software Foundation (ASF) under one or more
|
||||
* contributor license agreements. See the NOTICE file distributed with
|
||||
* this work for additional information regarding copyright ownership.
|
||||
* The ASF licenses this file to You under the Apache License, Version 2.0
|
||||
* (the "License"); you may not use this file except in compliance with
|
||||
* the License. You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
package org.jclouds.cloudstack.features;
|
||||
|
||||
import java.util.Set;
|
||||
|
||||
/**
|
||||
* Provides synchronous access to CloudStack Usage features.
|
||||
* <p/>
|
||||
*
|
||||
* Note that this class is transitionary and will fully replace GlobalUsageClient in 1.7.
|
||||
*
|
||||
* @see <a href="http://download.cloud.com/releases/2.2.0/api_2.2.12/TOC_User.html" />
|
||||
* @author Adrian Cole
|
||||
*/
|
||||
public interface GlobalUsageApi extends GlobalUsageClient {
|
||||
|
||||
}
|
|
@ -0,0 +1,52 @@
|
|||
/*
|
||||
* Licensed to the Apache Software Foundation (ASF) under one or more
|
||||
* contributor license agreements. See the NOTICE file distributed with
|
||||
* this work for additional information regarding copyright ownership.
|
||||
* The ASF licenses this file to You under the Apache License, Version 2.0
|
||||
* (the "License"); you may not use this file except in compliance with
|
||||
* the License. You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
package org.jclouds.cloudstack.features;
|
||||
|
||||
import java.util.Set;
|
||||
|
||||
import javax.inject.Named;
|
||||
import javax.ws.rs.Consumes;
|
||||
import javax.ws.rs.GET;
|
||||
import javax.ws.rs.QueryParam;
|
||||
import javax.ws.rs.core.MediaType;
|
||||
|
||||
import org.jclouds.Fallbacks.EmptySetOnNotFoundOr404;
|
||||
import org.jclouds.Fallbacks.NullOnNotFoundOr404;
|
||||
import org.jclouds.cloudstack.filters.AuthenticationFilter;
|
||||
import org.jclouds.rest.annotations.Fallback;
|
||||
import org.jclouds.rest.annotations.OnlyElement;
|
||||
import org.jclouds.rest.annotations.QueryParams;
|
||||
import org.jclouds.rest.annotations.RequestFilters;
|
||||
import org.jclouds.rest.annotations.SelectJson;
|
||||
|
||||
import com.google.common.util.concurrent.ListenableFuture;
|
||||
|
||||
/**
|
||||
* Provides asynchronous access to cloudstack via their REST API.
|
||||
* <p/>
|
||||
*
|
||||
* @deprecated This class will be removed in 1.7.
|
||||
* @see GlobalUsageApi
|
||||
* @see <a href="http://download.cloud.com/releases/2.2.0/api_2.2.12/TOC_User.html" />
|
||||
* @author Adrian Cole
|
||||
*/
|
||||
@Deprecated
|
||||
@RequestFilters(AuthenticationFilter.class)
|
||||
@QueryParams(keys = "response", values = "json")
|
||||
public interface GlobalUsageAsyncApi extends GlobalUsageAsyncClient {
|
||||
|
||||
}
|
|
@ -42,10 +42,12 @@ import com.google.common.util.concurrent.ListenableFuture;
|
|||
* Provides asynchronous access to CloudStack usage features.
|
||||
* <p/>
|
||||
*
|
||||
* @deprecated The async interface will be removed in jclouds 1.7.
|
||||
* @see GlobalOfferingAsyncClient
|
||||
* @see <a href="http://download.cloud.com/releases/2.2.0/api_2.2.12/TOC_Global_Admin.html" />
|
||||
* @author Richard Downer
|
||||
*/
|
||||
@Deprecated
|
||||
@RequestFilters(AuthenticationFilter.class)
|
||||
@QueryParams(keys = "response", values = "json")
|
||||
public interface GlobalUsageAsyncClient {
|
||||
|
|
|
@ -27,10 +27,12 @@ import org.jclouds.cloudstack.options.ListUsageRecordsOptions;
|
|||
* Provides synchronous access to CloudStack usage features.
|
||||
* <p/>
|
||||
*
|
||||
* @deprecated The *Client classes will be replaced with the *Api classes in jclouds 1.7.
|
||||
* @see org.jclouds.cloudstack.features.GlobalOfferingAsyncClient
|
||||
* @see <a href="http://download.cloud.com/releases/2.2.0/api_2.2.12/TOC_Global_Admin.html" />
|
||||
* @author Richard Downer
|
||||
*/
|
||||
@Deprecated
|
||||
public interface GlobalUsageClient {
|
||||
|
||||
JobResult generateUsageRecords(Date start, Date end, GenerateUsageRecordsOptions... options);
|
||||
|
|
|
@ -0,0 +1,32 @@
|
|||
/*
|
||||
* Licensed to the Apache Software Foundation (ASF) under one or more
|
||||
* contributor license agreements. See the NOTICE file distributed with
|
||||
* this work for additional information regarding copyright ownership.
|
||||
* The ASF licenses this file to You under the Apache License, Version 2.0
|
||||
* (the "License"); you may not use this file except in compliance with
|
||||
* the License. You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
package org.jclouds.cloudstack.features;
|
||||
|
||||
import java.util.Set;
|
||||
|
||||
/**
|
||||
* Provides synchronous access to CloudStack User features.
|
||||
* <p/>
|
||||
*
|
||||
* Note that this class is transitionary and will fully replace GlobalUserClient in 1.7.
|
||||
*
|
||||
* @see <a href="http://download.cloud.com/releases/2.2.0/api_2.2.12/TOC_User.html" />
|
||||
* @author Adrian Cole
|
||||
*/
|
||||
public interface GlobalUserApi extends GlobalUserClient, DomainUserApi {
|
||||
|
||||
}
|
|
@ -0,0 +1,52 @@
|
|||
/*
|
||||
* Licensed to the Apache Software Foundation (ASF) under one or more
|
||||
* contributor license agreements. See the NOTICE file distributed with
|
||||
* this work for additional information regarding copyright ownership.
|
||||
* The ASF licenses this file to You under the Apache License, Version 2.0
|
||||
* (the "License"); you may not use this file except in compliance with
|
||||
* the License. You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
package org.jclouds.cloudstack.features;
|
||||
|
||||
import java.util.Set;
|
||||
|
||||
import javax.inject.Named;
|
||||
import javax.ws.rs.Consumes;
|
||||
import javax.ws.rs.GET;
|
||||
import javax.ws.rs.QueryParam;
|
||||
import javax.ws.rs.core.MediaType;
|
||||
|
||||
import org.jclouds.Fallbacks.EmptySetOnNotFoundOr404;
|
||||
import org.jclouds.Fallbacks.NullOnNotFoundOr404;
|
||||
import org.jclouds.cloudstack.filters.AuthenticationFilter;
|
||||
import org.jclouds.rest.annotations.Fallback;
|
||||
import org.jclouds.rest.annotations.OnlyElement;
|
||||
import org.jclouds.rest.annotations.QueryParams;
|
||||
import org.jclouds.rest.annotations.RequestFilters;
|
||||
import org.jclouds.rest.annotations.SelectJson;
|
||||
|
||||
import com.google.common.util.concurrent.ListenableFuture;
|
||||
|
||||
/**
|
||||
* Provides asynchronous access to cloudstack via their REST API.
|
||||
* <p/>
|
||||
*
|
||||
* @deprecated This class will be removed in 1.7.
|
||||
* @see GlobalUserApi
|
||||
* @see <a href="http://download.cloud.com/releases/2.2.0/api_2.2.12/TOC_User.html" />
|
||||
* @author Adrian Cole
|
||||
*/
|
||||
@Deprecated
|
||||
@RequestFilters(AuthenticationFilter.class)
|
||||
@QueryParams(keys = "response", values = "json")
|
||||
public interface GlobalUserAsyncApi extends GlobalUserAsyncClient, DomainUserAsyncApi {
|
||||
|
||||
}
|
|
@ -39,11 +39,13 @@ import com.google.common.util.concurrent.ListenableFuture;
|
|||
* Provides asynchronous access to CloudStack User features available to Global
|
||||
* Admin users.
|
||||
*
|
||||
* @deprecated The async interface will be removed in jclouds 1.7.
|
||||
* @author Andrei Savu
|
||||
* @see <a href=
|
||||
* "http://download.cloud.com/releases/2.2.0/api_2.2.12/TOC_Global_Admin.html"
|
||||
* />
|
||||
*/
|
||||
@Deprecated
|
||||
@RequestFilters(AuthenticationFilter.class)
|
||||
@QueryParams(keys = "response", values = "json")
|
||||
public interface GlobalUserAsyncClient extends DomainUserAsyncClient {
|
||||
|
|
|
@ -25,11 +25,13 @@ import org.jclouds.cloudstack.options.UpdateUserOptions;
|
|||
* Provides synchronous access to CloudStack User features available to Global
|
||||
* Admin users.
|
||||
*
|
||||
* @deprecated The *Client classes will be replaced with the *Api classes in jclouds 1.7.
|
||||
* @author Andrei savu
|
||||
* @see <a href=
|
||||
* "http://download.cloud.com/releases/2.2.0/api_2.2.12/TOC_Global_Admin.html"
|
||||
* />
|
||||
*/
|
||||
@Deprecated
|
||||
public interface GlobalUserClient extends DomainUserClient {
|
||||
|
||||
|
||||
|
|
|
@ -0,0 +1,32 @@
|
|||
/*
|
||||
* Licensed to the Apache Software Foundation (ASF) under one or more
|
||||
* contributor license agreements. See the NOTICE file distributed with
|
||||
* this work for additional information regarding copyright ownership.
|
||||
* The ASF licenses this file to You under the Apache License, Version 2.0
|
||||
* (the "License"); you may not use this file except in compliance with
|
||||
* the License. You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
package org.jclouds.cloudstack.features;
|
||||
|
||||
import java.util.Set;
|
||||
|
||||
/**
|
||||
* Provides synchronous access to CloudStack Vlan features.
|
||||
* <p/>
|
||||
*
|
||||
* Note that this class is transitionary and will fully replace GlobalVlanClient in 1.7.
|
||||
*
|
||||
* @see <a href="http://download.cloud.com/releases/2.2.0/api_2.2.12/TOC_User.html" />
|
||||
* @author Adrian Cole
|
||||
*/
|
||||
public interface GlobalVlanApi extends GlobalVlanClient {
|
||||
|
||||
}
|
|
@ -0,0 +1,52 @@
|
|||
/*
|
||||
* Licensed to the Apache Software Foundation (ASF) under one or more
|
||||
* contributor license agreements. See the NOTICE file distributed with
|
||||
* this work for additional information regarding copyright ownership.
|
||||
* The ASF licenses this file to You under the Apache License, Version 2.0
|
||||
* (the "License"); you may not use this file except in compliance with
|
||||
* the License. You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
package org.jclouds.cloudstack.features;
|
||||
|
||||
import java.util.Set;
|
||||
|
||||
import javax.inject.Named;
|
||||
import javax.ws.rs.Consumes;
|
||||
import javax.ws.rs.GET;
|
||||
import javax.ws.rs.QueryParam;
|
||||
import javax.ws.rs.core.MediaType;
|
||||
|
||||
import org.jclouds.Fallbacks.EmptySetOnNotFoundOr404;
|
||||
import org.jclouds.Fallbacks.NullOnNotFoundOr404;
|
||||
import org.jclouds.cloudstack.filters.AuthenticationFilter;
|
||||
import org.jclouds.rest.annotations.Fallback;
|
||||
import org.jclouds.rest.annotations.OnlyElement;
|
||||
import org.jclouds.rest.annotations.QueryParams;
|
||||
import org.jclouds.rest.annotations.RequestFilters;
|
||||
import org.jclouds.rest.annotations.SelectJson;
|
||||
|
||||
import com.google.common.util.concurrent.ListenableFuture;
|
||||
|
||||
/**
|
||||
* Provides asynchronous access to cloudstack via their REST API.
|
||||
* <p/>
|
||||
*
|
||||
* @deprecated This class will be removed in 1.7.
|
||||
* @see GlobalVlanApi
|
||||
* @see <a href="http://download.cloud.com/releases/2.2.0/api_2.2.12/TOC_User.html" />
|
||||
* @author Adrian Cole
|
||||
*/
|
||||
@Deprecated
|
||||
@RequestFilters(AuthenticationFilter.class)
|
||||
@QueryParams(keys = "response", values = "json")
|
||||
public interface GlobalVlanAsyncApi extends GlobalVlanAsyncClient {
|
||||
|
||||
}
|
|
@ -43,10 +43,12 @@ import com.google.common.util.concurrent.ListenableFuture;
|
|||
* Provides asynchronous access to cloudstack via their REST API.
|
||||
* <p/>
|
||||
*
|
||||
* @deprecated The async interface will be removed in jclouds 1.7.
|
||||
* @see org.jclouds.cloudstack.features.GlobalVlanClient
|
||||
* @see <a href="http://download.cloud.com/releases/2.2.0/api_2.2.12/TOC_Global_Admin.html" />
|
||||
* @author Richard Downer
|
||||
*/
|
||||
@Deprecated
|
||||
@RequestFilters(AuthenticationFilter.class)
|
||||
@QueryParams(keys = "response", values = "json")
|
||||
public interface GlobalVlanAsyncClient {
|
||||
|
|
|
@ -25,10 +25,12 @@ import org.jclouds.cloudstack.options.ListVlanIPRangesOptions;
|
|||
* Provides synchronous access to CloudStack VLAN features.
|
||||
* <p/>
|
||||
*
|
||||
* @deprecated The *Client classes will be replaced with the *Api classes in jclouds 1.7.
|
||||
* @see GlobalOfferingAsyncClient
|
||||
* @see <a href="http://download.cloud.com/releases/2.2.0/api_2.2.12/TOC_Global_Admin.html" />
|
||||
* @author Richard Downer
|
||||
*/
|
||||
@Deprecated
|
||||
public interface GlobalVlanClient {
|
||||
|
||||
/**
|
||||
|
|
|
@ -0,0 +1,32 @@
|
|||
/*
|
||||
* Licensed to the Apache Software Foundation (ASF) under one or more
|
||||
* contributor license agreements. See the NOTICE file distributed with
|
||||
* this work for additional information regarding copyright ownership.
|
||||
* The ASF licenses this file to You under the Apache License, Version 2.0
|
||||
* (the "License"); you may not use this file except in compliance with
|
||||
* the License. You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
package org.jclouds.cloudstack.features;
|
||||
|
||||
import java.util.Set;
|
||||
|
||||
/**
|
||||
* Provides synchronous access to CloudStack Zone features.
|
||||
* <p/>
|
||||
*
|
||||
* Note that this class is transitionary and will fully replace GlobalZoneClient in 1.7.
|
||||
*
|
||||
* @see <a href="http://download.cloud.com/releases/2.2.0/api_2.2.12/TOC_User.html" />
|
||||
* @author Adrian Cole
|
||||
*/
|
||||
public interface GlobalZoneApi extends GlobalZoneClient, ZoneApi {
|
||||
|
||||
}
|
|
@ -0,0 +1,52 @@
|
|||
/*
|
||||
* Licensed to the Apache Software Foundation (ASF) under one or more
|
||||
* contributor license agreements. See the NOTICE file distributed with
|
||||
* this work for additional information regarding copyright ownership.
|
||||
* The ASF licenses this file to You under the Apache License, Version 2.0
|
||||
* (the "License"); you may not use this file except in compliance with
|
||||
* the License. You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
package org.jclouds.cloudstack.features;
|
||||
|
||||
import java.util.Set;
|
||||
|
||||
import javax.inject.Named;
|
||||
import javax.ws.rs.Consumes;
|
||||
import javax.ws.rs.GET;
|
||||
import javax.ws.rs.QueryParam;
|
||||
import javax.ws.rs.core.MediaType;
|
||||
|
||||
import org.jclouds.Fallbacks.EmptySetOnNotFoundOr404;
|
||||
import org.jclouds.Fallbacks.NullOnNotFoundOr404;
|
||||
import org.jclouds.cloudstack.filters.AuthenticationFilter;
|
||||
import org.jclouds.rest.annotations.Fallback;
|
||||
import org.jclouds.rest.annotations.OnlyElement;
|
||||
import org.jclouds.rest.annotations.QueryParams;
|
||||
import org.jclouds.rest.annotations.RequestFilters;
|
||||
import org.jclouds.rest.annotations.SelectJson;
|
||||
|
||||
import com.google.common.util.concurrent.ListenableFuture;
|
||||
|
||||
/**
|
||||
* Provides asynchronous access to cloudstack via their REST API.
|
||||
* <p/>
|
||||
*
|
||||
* @deprecated This class will be removed in 1.7.
|
||||
* @see GlobalZoneApi
|
||||
* @see <a href="http://download.cloud.com/releases/2.2.0/api_2.2.12/TOC_User.html" />
|
||||
* @author Adrian Cole
|
||||
*/
|
||||
@Deprecated
|
||||
@RequestFilters(AuthenticationFilter.class)
|
||||
@QueryParams(keys = "response", values = "json")
|
||||
public interface GlobalZoneAsyncApi extends GlobalZoneAsyncClient, ZoneAsyncApi {
|
||||
|
||||
}
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue