org.jclouds.openstack.v2_0.services.Extension.<init>()方法的使用及代码示例

x33g5p2x  于2022-01-19 转载在 其他  
字(10.6k)|赞(0)|评价(0)|浏览(146)

本文整理了Java中org.jclouds.openstack.v2_0.services.Extension.<init>()方法的一些代码示例,展示了Extension.<init>()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Extension.<init>()方法的具体详情如下:
包路径:org.jclouds.openstack.v2_0.services.Extension
类名称:Extension
方法名:<init>

Extension.<init>介绍

暂无

代码示例

代码示例来源:origin: io.cloudsoft.jclouds.api/openstack-nova

/**
 * @author Inbar Stolberg
 */
@Beta
@Extension(of = ServiceType.COMPUTE, namespace = ExtensionNamespaces.ADMIN_ACTIONS)
public interface AvailabilityZoneAPI {

  /**
  * @return all availability zones
  */
  FluentIterable<? extends AvailabilityZone> list();

}

代码示例来源:origin: jclouds/legacy-jclouds

/**
 * Provides synchronous access to Virtual Interface features (VIFs).
 * 
 * @see VirtualInterfaceAsyncApi
 * @author Adam Lowe
 */
@Beta
@Extension(of = ServiceType.COMPUTE, namespace = ExtensionNamespaces.VIRTUAL_INTERFACES)
public interface VirtualInterfaceApi {

  /**
  * Returns the list of Virtual Interfaces for a given instance.
  *
  * @return the list of snapshots
  */
  FluentIterable<? extends VirtualInterface> listOnServer(String serverId);   

}

代码示例来源:origin: org.jclouds.api/openstack-nova

/**
 * Provides synchronous access to Virtual Interface features (VIFs).
 * 
 * @see VirtualInterfaceAsyncApi
 * @author Adam Lowe
 */
@Beta
@Extension(of = ServiceType.COMPUTE, namespace = ExtensionNamespaces.VIRTUAL_INTERFACES)
public interface VirtualInterfaceApi {

  /**
  * Returns the list of Virtual Interfaces for a given instance.
  *
  * @return the list of snapshots
  */
  FluentIterable<? extends VirtualInterface> listOnServer(String serverId);   

}

代码示例来源:origin: io.cloudsoft.jclouds.api/openstack-nova

/**
 * Provides synchronous access to Virtual Interface features (VIFs).
 * 
 * @see VirtualInterfaceAsyncApi
 * @author Adam Lowe
 */
@Beta
@Extension(of = ServiceType.COMPUTE, namespace = ExtensionNamespaces.VIRTUAL_INTERFACES)
public interface VirtualInterfaceApi {

  /**
  * Returns the list of Virtual Interfaces for a given instance.
  *
  * @return the list of snapshots
  */
  FluentIterable<? extends VirtualInterface> listOnServer(String serverId);   

}

代码示例来源:origin: jclouds/legacy-jclouds

/**
 * Provides synchronous access to Server details including security group, referred to as the CREATESERVEREXT extension
 * in the nova documentation
 * <p/>
 * NOTE: the equivalent to listServersInDetail() isn't available at the other end, so not extending ServerApi at this
 * time.
 *
 * @author Adam Lowe
 * @see org.jclouds.openstack.nova.v2_0.features.ServerApi
 * @see ServerWithSecurityGroupsAsyncApi
 * @see <a href="http://nova.openstack.org/api/nova.api.openstack.compute.contrib.createserverext.html"/>
 */
@Beta
@Extension(of = ServiceType.COMPUTE, namespace = ExtensionNamespaces.CREATESERVEREXT)
public interface ServerWithSecurityGroupsApi {

  /**
  * Retrieve details of the specified server, including security groups
  *
  * @param id id of the server
  * @return server or null if not found
  */
  ServerWithSecurityGroups get(String id);

}

代码示例来源:origin: jclouds/legacy-jclouds

/**
 * Provides asynchronous access to Simple Tenant Usage via the REST API.
 * <p/>
 *
 * @author Adam Lowe
 * @see SimpleTenantUsageAsyncApi
 */
@Beta
@Extension(of = ServiceType.COMPUTE, namespace = ExtensionNamespaces.SIMPLE_TENANT_USAGE)
public interface SimpleTenantUsageApi {

  /**
  * Retrieve tenant_usage for all tenants
  *
  * @return the set of TenantUsage reports
  */
  FluentIterable<? extends SimpleTenantUsage> list();

  /**
  * Retrieve tenant_usage for a specified tenant
  *
  * @return the requested tenant usage
  */
  SimpleTenantUsage get(String tenantId);
}

代码示例来源:origin: io.cloudsoft.jclouds.api/openstack-nova

/**
 * @author Inbar Stolberg
 */

@Beta
@Extension(of = ServiceType.COMPUTE, namespace = ExtensionNamespaces.ADMIN_ACTIONS)
@RequestFilters(AuthenticateRequest.class)
public interface AvailabilityZoneAsyncApi {

  /**
  * @return all availability zones
  */
  @GET
  @Path("/os-availability-zone")
  @SelectJson("availabilityZoneInfo")
  @Consumes(MediaType.APPLICATION_JSON)
  @Fallback(Fallbacks.EmptyFluentIterableOnNotFoundOr404.class)
  ListenableFuture<? extends FluentIterable<? extends AvailabilityZone>> list();

}

代码示例来源:origin: jclouds/legacy-jclouds

/**
 * Provides asynchronous access to Virtual Interface features (VIFs).
 * 
 * @see VirtualInterfaceApi
 * @author Adam Lowe
 */
@Beta
@Extension(of = ServiceType.COMPUTE, namespace = ExtensionNamespaces.VIRTUAL_INTERFACES)
@RequestFilters(AuthenticateRequest.class)
public interface VirtualInterfaceAsyncApi {
  /**
  * @see VirtualInterfaceApi#listOnServer(String)
  */
  @Named("virtualinterface:list")
  @GET
  @SelectJson("virtual_interfaces")
  @Consumes(MediaType.APPLICATION_JSON)
  @Path("/servers/{server_id}/os-virtual-interfaces")
  @Fallback(EmptyFluentIterableOnNotFoundOr404.class)
  ListenableFuture<? extends FluentIterable<? extends VirtualInterface>> listOnServer(@PathParam("server_id") String serverId);
}

代码示例来源:origin: jclouds/legacy-jclouds

/**
 * Provides synchronous access to Servers with Security Groups.
 *
 * @author Adam Lowe
 * @see org.jclouds.openstack.nova.v2_0.features.ServerAsyncApi
 * @see ServerWithSecurityGroupsApi
 * @see <a href="http://nova.openstack.org/api/nova.api.openstack.compute.contrib.createserverext.html"/>
 */
@Beta
@Extension(of = ServiceType.COMPUTE, namespace = ExtensionNamespaces.CREATESERVEREXT)
@RequestFilters(AuthenticateRequest.class)
public interface ServerWithSecurityGroupsAsyncApi {

  /**
  * @see ServerWithSecurityGroupsApi#get(String)
  */
  @Named("server:get")
  @GET
  @SelectJson("server")
  @Consumes(MediaType.APPLICATION_JSON)
  @Path("/os-create-server-ext/{id}")
  @Fallback(NullOnNotFoundOr404.class)
  ListenableFuture<? extends ServerWithSecurityGroups> get(@PathParam("id") String id);

}

代码示例来源:origin: org.jclouds.api/openstack-nova

/**
 * Provides asynchronous access to Virtual Interface features (VIFs).
 * 
 * @see VirtualInterfaceApi
 * @author Adam Lowe
 */
@Beta
@Extension(of = ServiceType.COMPUTE, namespace = ExtensionNamespaces.VIRTUAL_INTERFACES)
@RequestFilters(AuthenticateRequest.class)
public interface VirtualInterfaceAsyncApi {
  /**
  * @see VirtualInterfaceApi#listOnServer(String)
  */
  @Named("virtualinterface:list")
  @GET
  @SelectJson("virtual_interfaces")
  @Consumes(MediaType.APPLICATION_JSON)
  @Path("/servers/{server_id}/os-virtual-interfaces")
  @Fallback(EmptyFluentIterableOnNotFoundOr404.class)
  ListenableFuture<? extends FluentIterable<? extends VirtualInterface>> listOnServer(@PathParam("server_id") String serverId);
}

代码示例来源:origin: io.cloudsoft.jclouds.api/openstack-nova

/**
 * Provides asynchronous access to Virtual Interface features (VIFs).
 * 
 * @see VirtualInterfaceApi
 * @author Adam Lowe
 */
@Beta
@Extension(of = ServiceType.COMPUTE, namespace = ExtensionNamespaces.VIRTUAL_INTERFACES)
@RequestFilters(AuthenticateRequest.class)
public interface VirtualInterfaceAsyncApi {
  /**
  * @see VirtualInterfaceApi#listOnServer(String)
  */
  @Named("virtualinterface:list")
  @GET
  @SelectJson("virtual_interfaces")
  @Consumes(MediaType.APPLICATION_JSON)
  @Path("/servers/{server_id}/os-virtual-interfaces")
  @Fallback(EmptyFluentIterableOnNotFoundOr404.class)
  ListenableFuture<? extends FluentIterable<? extends VirtualInterface>> listOnServer(@PathParam("server_id") String serverId);
}

代码示例来源:origin: com.amysta.jclouds.api/openstack-nova

@Beta
@Extension(of = ServiceType.COMPUTE, namespace = ExtensionNamespaces.FLOATING_IP_POOLS,
   name = ExtensionNames.FLOATING_IP_POOLS, alias = ExtensionAliases.FLOATING_IP_POOLS)
@Consumes(MediaType.APPLICATION_JSON)
@Path("/os-floating-ip-pools")
@RequestFilters(AuthenticateRequest.class)
public interface FloatingIPPoolApi {

  /**
  * Lists all Floating IP Pools
  *
  * @return all Floating IP Pools
  */
  @GET
  @SelectJson("floating_ip_pools")
  @Fallback(Fallbacks.EmptyFluentIterableOnNotFoundOr404.class)
  FluentIterable<? extends FloatingIPPool> list();
}

代码示例来源:origin: org.apache.jclouds.api/openstack-nova

@Beta
@Extension(of = ServiceType.COMPUTE, namespace = ExtensionNamespaces.FLOATING_IP_POOLS,
   name = ExtensionNames.FLOATING_IP_POOLS, alias = ExtensionAliases.FLOATING_IP_POOLS)
@Consumes(MediaType.APPLICATION_JSON)
@Path("/os-floating-ip-pools")
@RequestFilters(AuthenticateRequest.class)
public interface FloatingIPPoolApi {

  /**
  * Lists all Floating IP Pools
  *
  * @return all Floating IP Pools
  */
  @GET
  @SelectJson("floating_ip_pools")
  @Fallback(Fallbacks.EmptyFluentIterableOnNotFoundOr404.class)
  FluentIterable<? extends FloatingIPPool> list();
}

代码示例来源:origin: apache/jclouds

@Beta
@Extension(of = ServiceType.COMPUTE, namespace = ExtensionNamespaces.FLOATING_IP_POOLS,
   name = ExtensionNames.FLOATING_IP_POOLS, alias = ExtensionAliases.FLOATING_IP_POOLS)
@Consumes(MediaType.APPLICATION_JSON)
@Path("/os-floating-ip-pools")
@RequestFilters(AuthenticateRequest.class)
public interface FloatingIPPoolApi {

  /**
  * Lists all Floating IP Pools
  *
  * @return all Floating IP Pools
  */
  @GET
  @SelectJson("floating_ip_pools")
  @Fallback(Fallbacks.EmptyFluentIterableOnNotFoundOr404.class)
  FluentIterable<? extends FloatingIPPool> list();
}

代码示例来源:origin: com.amysta.jclouds.api/openstack-cinder

/**
 * Provides access to the OpenStack Block Storage (Cinder) Availability Zone Extension API.
 */
@Beta
@Extension(of = ServiceType.BLOCK_STORAGE, namespace = ExtensionNamespaces.ADMIN_ACTIONS)
@RequestFilters(AuthenticateRequest.class)
@Consumes(MediaType.APPLICATION_JSON)
@Path("/os-availability-zone")
public interface AvailabilityZoneApi {

  /**
  * Lists all availability zones
  *
  * @return all availability zones
  */
  @GET
  @SelectJson("availabilityZoneInfo")
  @Fallback(Fallbacks.EmptyFluentIterableOnNotFoundOr404.class)
  FluentIterable<AvailabilityZone> list();

}

代码示例来源:origin: jclouds/legacy-jclouds

@org.jclouds.openstack.v2_0.services.Extension(of = ServiceType.COMPUTE, namespace = "http://docs.openstack.org/ext/keypairs/api/v1.1")
static interface KeyPairAsyncApi {
}

代码示例来源:origin: jclouds/legacy-jclouds

@org.jclouds.openstack.v2_0.services.Extension(of = ServiceType.COMPUTE, namespace = "http://docs.openstack.org/ext/floating_ips/api/v1.1")
static interface FloatingIPAsyncApi {
}

代码示例来源:origin: apache/jclouds

/**
 * Provides access to the OpenStack Block Storage (Cinder) Availability Zone Extension API.
 */
@Beta
@Extension(of = ServiceType.BLOCK_STORAGE, namespace = ExtensionNamespaces.ADMIN_ACTIONS)
@RequestFilters(AuthenticateRequest.class)
@Consumes(MediaType.APPLICATION_JSON)
@Path("/os-availability-zone")
public interface AvailabilityZoneApi {

  /**
  * Lists all availability zones
  *
  * @return all availability zones
  */
  @GET
  @SelectJson("availabilityZoneInfo")
  @Fallback(Fallbacks.EmptyFluentIterableOnNotFoundOr404.class)
  FluentIterable<AvailabilityZone> list();

}

代码示例来源:origin: apache/jclouds

@org.jclouds.openstack.v2_0.services.Extension(of = ServiceType.COMPUTE, namespace = "http://docs.openstack.org/ext/keypairs/api/v1.1")
interface KeyPairApi {
}

代码示例来源:origin: apache/jclouds

@org.jclouds.openstack.v2_0.services.Extension(of = ServiceType.COMPUTE, name = "Floating_ips", alias = "os-floating-ips", namespace = "http://docs.openstack.org/ext/floating_ips/api/v1.1")
interface FloatingIPApi {
}

相关文章