本文整理了Java中org.zstack.header.identity.Action.<init>()
方法的一些代码示例,展示了Action.<init>()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Action.<init>()
方法的具体详情如下:
包路径:org.zstack.header.identity.Action
类名称:Action
方法名:<init>
暂无
代码示例来源:origin: zstackio/zstack
@Action(category = L2NetworkConstant.ACTION_CATEGORY, names = {"read"})
public class APIGetNetworkServiceProviderMsg extends APIGetMessage {
public static APIGetNetworkServiceProviderMsg __example__() {
APIGetNetworkServiceProviderMsg msg = new APIGetNetworkServiceProviderMsg();
return msg;
}
}
代码示例来源:origin: zstackio/zstack
@AutoQuery(replyClass = APIQueryNetworkServiceProviderReply.class, inventoryClass = NetworkServiceProviderInventory.class)
@Action(category = L3NetworkConstant.ACTION_CATEGORY, names = {"read"})
@RestRequest(
path = "/network-services/providers",
method = HttpMethod.GET,
responseClass = APIQueryNetworkServiceProviderReply.class
)
public class APIQueryNetworkServiceProviderMsg extends APIQueryMessage {
public static List<String> __example__() {
return asList();
}
}
代码示例来源:origin: zstackio/zstack
@Action(category = SecurityGroupConstant.ACTION_CATEGORY, names = {"read"})
@AutoQuery(replyClass = APIQueryVmNicInSecurityGroupReply.class, inventoryClass = VmNicSecurityGroupRefInventory.class)
@RestRequest(
path = "/security-groups/vm-instances/nics",
method = HttpMethod.GET,
responseClass = APIQueryVmNicInSecurityGroupReply.class
)
public class APIQueryVmNicInSecurityGroupMsg extends APIQueryMessage {
public static List<String> __example__() {
return asList();
}
}
代码示例来源:origin: zstackio/zstack
@AutoQuery(replyClass = APIQueryNetworkServiceL3NetworkRefReply.class, inventoryClass = NetworkServiceL3NetworkRefInventory.class)
@Action(category = L3NetworkConstant.ACTION_CATEGORY, names = {"read"})
@RestRequest(
path = "/l3-networks/network-services/refs",
method = HttpMethod.GET,
responseClass = APIQueryNetworkServiceL3NetworkRefReply.class
)
public class APIQueryNetworkServiceL3NetworkRefMsg extends APIQueryMessage {
public static List<String> __example__() {
return asList();
}
}
代码示例来源:origin: zstackio/zstack
@AutoQuery(replyClass = APIQueryInstanceOfferingReply.class, inventoryClass = InstanceOfferingInventory.class)
@Action(category = ConfigurationConstant.ACTION_CATEGORY, names = {"read"})
@RestRequest(
path = "/instance-offerings",
optionalPaths = "/instance-offerings/{uuid}",
responseClass = APIQueryInstanceOfferingReply.class,
method = HttpMethod.GET
)
public class APIQueryInstanceOfferingMsg extends APIQueryMessage {
public static List<String> __example__() {
return asList("uuid=" + uuid());
}
}
代码示例来源:origin: zstackio/zstack
@Action(category = HostConstant.ACTION_CATEGORY, names = {"read"})
@AutoQuery(replyClass = APIQueryHostReply.class, inventoryClass = HostInventory.class)
@RestRequest(
path = "/hosts",
optionalPaths = {"/hosts/{uuid}"},
responseClass = APIQueryHostReply.class,
method = HttpMethod.GET
)
public class APIQueryHostMsg extends APIQueryMessage {
public static List<String> __example__() {
return asList("uuid="+uuid());
}
}
代码示例来源:origin: zstackio/zstack
@AutoQuery(replyClass = APIQueryVolumeReply.class, inventoryClass = VolumeInventory.class)
@Action(category = VolumeConstant.ACTION_CATEGORY, names = {"read"})
@RestRequest(
path = "/volumes",
optionalPaths = {"/volumes/{uuid}"},
responseClass = APIQueryVolumeReply.class,
method = HttpMethod.GET
)
public class APIQueryVolumeMsg extends APIQueryMessage {
public static List<String> __example__() {
return asList();
}
}
代码示例来源:origin: zstackio/zstack
@AutoQuery(replyClass = APIQuerySecurityGroupReply.class, inventoryClass = SecurityGroupInventory.class)
@Action(category = SecurityGroupConstant.ACTION_CATEGORY, names = {"read"})
@RestRequest(
path = "/security-groups",
optionalPaths = {"/security-groups/{uuid}"},
method = HttpMethod.GET,
responseClass = APIQuerySecurityGroupReply.class
)
public class APIQuerySecurityGroupMsg extends APIQueryMessage {
public static List<String> __example__() {
return asList("name=web", "state=Enabled");
}
}
代码示例来源:origin: zstackio/zstack
@AutoQuery(replyClass = APIQueryImageReply.class, inventoryClass = ImageInventory.class)
@Action(category = ImageConstant.ACTION_CATEGORY, names = {"read"})
@RestRequest(
path = "/images",
optionalPaths = {"/images/{uuid}"},
method = HttpMethod.GET,
responseClass = APIQueryImageReply.class
)
public class APIQueryImageMsg extends APIQueryMessage {
public static List<String> __example__() {
return Collections.singletonList("uuid=" + uuid());
}
}
代码示例来源:origin: zstackio/zstack
@AutoQuery(replyClass = APIQueryL3NetworkReply.class, inventoryClass = L3NetworkInventory.class)
@Action(category = L3NetworkConstant.ACTION_CATEGORY, names = {"read"})
@RestRequest(
path = "/l3-networks",
optionalPaths = {"/l3-networks/{uuid}"},
method = HttpMethod.GET,
responseClass = APIQueryL3NetworkReply.class
)
public class APIQueryL3NetworkMsg extends APIQueryMessage {
public static List<String> __example__() {
return asList();
}
}
代码示例来源:origin: zstackio/zstack
@AutoQuery(replyClass = APIQueryVmNicReply.class, inventoryClass = VmNicInventory.class)
@Action(category = VmInstanceConstant.ACTION_CATEGORY, names = {"read"})
@RestRequest(
path = "/vm-instances/nics",
optionalPaths = {"/vm-instances/nics/{uuid}"},
method = HttpMethod.GET,
responseClass = APIQueryVmNicReply.class
)
public class APIQueryVmNicMsg extends APIQueryMessage {
public static List<String> __example__() {
return asList("ip=172.20.100.100");
}
}
代码示例来源:origin: zstackio/zstack
@AutoQuery(replyClass = APIQueryIpAddressReply.class, inventoryClass = UsedIpInventory.class)
@Action(category = L3NetworkConstant.ACTION_CATEGORY, names = {"read"})
@RestRequest(
path = "/l3-networks/ip-address",
optionalPaths = {"/l3-networks/ip-address/{uuid}"},
method = HttpMethod.GET,
responseClass = APIQueryIpAddressReply.class
)
public class APIQueryIpAddressMsg extends APIQueryMessage {
public static List<String> __example__() {
return asList();
}
}
代码示例来源:origin: zstackio/zstack
@AutoQuery(replyClass = APIQueryVmInstanceReply.class, inventoryClass = VmInstanceInventory.class)
@Action(category = VmInstanceConstant.ACTION_CATEGORY, names = {"read"})
@RestRequest(
path = "/vm-instances",
optionalPaths = {"/vm-instances/{uuid}"},
responseClass = APIQueryVmInstanceReply.class,
method = HttpMethod.GET
)
public class APIQueryVmInstanceMsg extends APIQueryMessage {
public static List<String> __example__() {
return asList("name=vm1", "vmNics.ip=192.168.20.100");
}
}
代码示例来源:origin: zstackio/zstack
@AutoQuery(replyClass = APIQueryVirtualRouterOfferingReply.class, inventoryClass = VirtualRouterOfferingInventory.class)
@Action(category = VirtualRouterConstant.ACTION_CATEGORY, names = {"read"})
@RestRequest(
path = "/instance-offerings/virtual-routers",
optionalPaths = {"/instance-offerings/virtual-routers/{uuid}"},
responseClass = APIQueryVirtualRouterOfferingReply.class,
method = HttpMethod.GET
)
public class APIQueryVirtualRouterOfferingMsg extends APIQueryMessage {
public static List<String> __example__() {
return asList();
}
}
代码示例来源:origin: zstackio/zstack
@AutoQuery(replyClass = APIQueryIpRangeReply.class, inventoryClass = IpRangeInventory.class)
@Action(category = L3NetworkConstant.ACTION_CATEGORY, names = {"read"})
@RestRequest(
path = "/l3-networks/ip-ranges",
optionalPaths = {"/l3-networks/ip-ranges/{uuid}"},
method = HttpMethod.GET,
responseClass = APIQueryIpRangeReply.class
)
public class APIQueryIpRangeMsg extends APIQueryMessage {
public static List<String> __example__() {
return asList(String.format("uuid=" + uuid()));
}
}
代码示例来源:origin: zstackio/zstack
@AutoQuery(replyClass = APIQueryPortForwardingRuleReply.class, inventoryClass = PortForwardingRuleInventory.class)
@Action(category = PortForwardingConstant.ACTION_CATEGORY, names = {"read"})
@RestRequest(
path = "/port-forwarding",
method = HttpMethod.GET,
optionalPaths = {"/port-forwarding/{uuid}"},
responseClass = APIQueryPortForwardingRuleReply.class
)
public class APIQueryPortForwardingRuleMsg extends APIQueryMessage {
public static List<String> __example__() {
return asList("name=pf1", "state=Enabled");
}
}
代码示例来源:origin: zstackio/zstack
@AutoQuery(replyClass = APIQueryZoneReply.class, inventoryClass = ZoneInventory.class)
@RestRequest(
path = "/zones",
optionalPaths = {"/zones/{uuid}"},
responseClass = APIQueryZoneReply.class,
method = HttpMethod.GET
)
@Action(category = "zone", names = {"read"})
public class APIQueryZoneMsg extends APIQueryMessage {
public static List<String> __example__() {
return asList("name=TestZone", "state=Enabled");
}
}
代码示例来源:origin: zstackio/zstack
@Action(category = BackupStorageConstant.ACTION_CATEGORY, names = {"read"})
@AutoQuery(replyClass = APIQueryBackupStorageReply.class, inventoryClass = BackupStorageInventory.class)
@RestRequest(
path = "/backup-storage",
optionalPaths = {"/backup-storage/{uuid}"},
method = HttpMethod.GET,
responseClass = APIQueryBackupStorageReply.class
)
public class APIQueryBackupStorageMsg extends APIQueryMessage {
public static List<String> __example__() {
return Collections.singletonList("uuid=" + uuid());
}
}
代码示例来源:origin: zstackio/zstack
@AutoQuery(replyClass = APIQueryDiskOfferingReply.class, inventoryClass = DiskOfferingInventory.class)
@Action(category = ConfigurationConstant.ACTION_CATEGORY, names = {"read"})
@RestRequest(
path = "/disk-offerings",
optionalPaths = "/disk-offerings/{uuid}",
method = HttpMethod.GET,
responseClass = APIQueryDiskOfferingReply.class
)
public class APIQueryDiskOfferingMsg extends APIQueryMessage {
public static List<String> __example__() {
return asList("uuid=" + uuid());
}
}
代码示例来源:origin: zstackio/zstack
@Action(category = BackupStorageConstant.ACTION_CATEGORY, names={"read"})
@AutoQuery(replyClass = APIQuerySftpBackupStorageReply.class, inventoryClass = SftpBackupStorageInventory.class)
@RestRequest(
path = "/backup-storage/sftp",
optionalPaths = {"/backup-storage/sftp/{uuid}"},
method = HttpMethod.GET,
responseClass = APIQuerySftpBackupStorageReply.class
)
public class APIQuerySftpBackupStorageMsg extends APIQueryMessage {
public static List<String> __example__() {
return asList("sshPort=8000");
}
}
内容来源于网络,如有侵权,请联系作者删除!