org.openstack4j.api.Builders Maven / Gradle / Ivy
package org.openstack4j.api;
import org.openstack4j.model.artifact.builder.ArtifactUpdateBuilder;
import org.openstack4j.model.artifact.builder.ToscaTemplatesArtifactBuilder;
import org.openstack4j.model.barbican.Secret;
import org.openstack4j.model.barbican.builder.ContainerCreateBuilder;
import org.openstack4j.model.barbican.builder.ContainerSecretBuilder;
import org.openstack4j.model.barbican.builder.SecretCreateBuilder;
import org.openstack4j.model.common.builder.LinkBuilder;
import org.openstack4j.model.compute.builder.*;
import org.openstack4j.model.dns.v2.builder.DNSV2Builders;
import org.openstack4j.model.dns.v2.builder.RecordsetBuilder;
import org.openstack4j.model.dns.v2.builder.ZoneBuilder;
import org.openstack4j.model.gbp.builder.ExternalPolicyBuilder;
import org.openstack4j.model.gbp.builder.ExternalRoutesBuilder;
import org.openstack4j.model.gbp.builder.ExternalSegmentBuilder;
import org.openstack4j.model.gbp.builder.L2PolicyBuilder;
import org.openstack4j.model.gbp.builder.L3PolicyBuilder;
import org.openstack4j.model.gbp.builder.NatPoolBuilder;
import org.openstack4j.model.gbp.builder.NetworkServicePolicyBuilder;
import org.openstack4j.model.gbp.builder.PolicyActionCreateBuilder;
import org.openstack4j.model.gbp.builder.PolicyActionUpdateBuilder;
import org.openstack4j.model.gbp.builder.PolicyClassifierBuilder;
import org.openstack4j.model.gbp.builder.PolicyClassifierUpdateBuilder;
import org.openstack4j.model.gbp.builder.PolicyRuleBuilder;
import org.openstack4j.model.gbp.builder.PolicyRuleSetBuilder;
import org.openstack4j.model.gbp.builder.PolicyTargetBuilder;
import org.openstack4j.model.gbp.builder.PolicyTargetGroupBuilder;
import org.openstack4j.model.heat.*;
import org.openstack4j.model.heat.builder.*;
import org.openstack4j.model.identity.v2.builder.IdentityV2Builders;
import org.openstack4j.model.identity.v3.builder.*;
import org.openstack4j.model.image.builder.ImageBuilder;
import org.openstack4j.model.image.v2.builder.ImageUpdateBuilder;
import org.openstack4j.model.image.v2.builder.TaskBuilder;
import org.openstack4j.model.magnum.BaymodelBuilder;
import org.openstack4j.model.manila.builder.*;
import org.openstack4j.model.murano.v1.builder.EnvironmentBuilder;
import org.openstack4j.model.murano.v1.builder.AppCatalogBuilders;
import org.openstack4j.model.network.builder.*;
import org.openstack4j.model.network.ext.builder.*;
import org.openstack4j.model.sahara.builder.*;
import org.openstack4j.model.storage.block.builder.BlockQuotaSetBuilder;
import org.openstack4j.model.storage.block.builder.StorageBuilders;
import org.openstack4j.model.storage.block.builder.VolumeBackupCreateBuilder;
import org.openstack4j.model.storage.block.builder.VolumeBuilder;
import org.openstack4j.model.storage.block.builder.VolumeSnapshotBuilder;
import org.openstack4j.model.storage.block.builder.VolumeTypeBuilder;
import org.openstack4j.model.tacker.builder.NfvBuilders;
import org.openstack4j.model.telemetry.builder.AlarmBuilder;
import org.openstack4j.model.telemetry.builder.TelemetryBuilders;
import org.openstack4j.model.trove.builder.DBServiceBuilders;
import org.openstack4j.openstack.artifact.domain.ArtifactUpdateModel;
import org.openstack4j.openstack.artifact.domain.ToscaTemplates;
import org.openstack4j.model.workflow.builder.WorkflowBuilders;
import org.openstack4j.openstack.barbican.domain.BarbicanContainer;
import org.openstack4j.openstack.barbican.domain.BarbicanContainerSecret;
import org.openstack4j.openstack.barbican.domain.BarbicanSecret;
import org.openstack4j.openstack.common.GenericLink;
import org.openstack4j.openstack.compute.builder.NovaBuilders;
import org.openstack4j.openstack.compute.domain.*;
import org.openstack4j.openstack.compute.domain.NovaSecGroupExtension.SecurityGroupRule;
import org.openstack4j.openstack.compute.domain.NovaServerCreate;
import org.openstack4j.openstack.dns.v2.builder.DesignateV2Builders;
import org.openstack4j.openstack.dns.v2.domain.DesignateRecordset;
import org.openstack4j.openstack.dns.v2.domain.DesignateZone;
import org.openstack4j.openstack.gbp.domain.GbpExternalPolicyCreate;
import org.openstack4j.openstack.gbp.domain.GbpExternalRoutes;
import org.openstack4j.openstack.gbp.domain.GbpExternalSegment;
import org.openstack4j.openstack.gbp.domain.GbpL2Policy;
import org.openstack4j.openstack.gbp.domain.GbpL3Policy;
import org.openstack4j.openstack.gbp.domain.GbpNatPool;
import org.openstack4j.openstack.gbp.domain.GbpNetworkServicePolicy;
import org.openstack4j.openstack.gbp.domain.GbpPolicyAction;
import org.openstack4j.openstack.gbp.domain.GbpPolicyActionUpdate;
import org.openstack4j.openstack.gbp.domain.GbpPolicyClassifier;
import org.openstack4j.openstack.gbp.domain.GbpPolicyClassifierUpdate;
import org.openstack4j.openstack.gbp.domain.GbpPolicyRule;
import org.openstack4j.openstack.gbp.domain.GbpPolicyRuleSet;
import org.openstack4j.openstack.gbp.domain.GbpPolicyTarget;
import org.openstack4j.openstack.gbp.domain.GbpPolicyTargetGroupCreate;
import org.openstack4j.openstack.heat.builder.HeatBuilders;
import org.openstack4j.openstack.heat.domain.*;
import org.openstack4j.openstack.identity.v2.builder.KeystoneV2Builders;
import org.openstack4j.openstack.identity.v3.builder.KeystoneV3Builders;
import org.openstack4j.openstack.identity.v3.domain.*;
import org.openstack4j.openstack.image.domain.GlanceImage;
import org.openstack4j.openstack.image.v2.domain.GlanceImageUpdate;
import org.openstack4j.openstack.image.v2.domain.GlanceTask;
import org.openstack4j.openstack.magnum.MagnumBaymodel;
import org.openstack4j.openstack.manila.builder.ManilaBuilders;
import org.openstack4j.openstack.manila.domain.*;
import org.openstack4j.openstack.murano.v1.builder.MuranoBuilders;
import org.openstack4j.openstack.murano.v1.domain.MuranoEnvironment;
import org.openstack4j.openstack.networking.builder.NeutronBuilders;
import org.openstack4j.openstack.networking.domain.*;
import org.openstack4j.openstack.networking.domain.ext.*;
import org.openstack4j.openstack.octavia.builder.OctaviaBuilders;
import org.openstack4j.openstack.sahara.builder.SaharaBuilders;
import org.openstack4j.openstack.sahara.domain.*;
import org.openstack4j.openstack.storage.block.builder.CinderBuilders;
import org.openstack4j.openstack.storage.block.domain.CinderBlockQuotaSet;
import org.openstack4j.openstack.storage.block.domain.CinderVolume;
import org.openstack4j.openstack.storage.block.domain.CinderVolumeBackupCreate;
import org.openstack4j.openstack.storage.block.domain.CinderVolumeSnapshot;
import org.openstack4j.openstack.storage.block.domain.CinderVolumeType;
import org.openstack4j.openstack.tacker.builders.TackerBuilders;
import org.openstack4j.openstack.telemetry.builder.CeilometerBuilders;
import org.openstack4j.openstack.telemetry.domain.CeilometerAlarm;
import org.openstack4j.openstack.trove.builder.TroveBuilders;
import org.openstack4j.openstack.workflow.builder.MistralBuilders;
/**
* A utility class to quickly access available Builders within the OpenStack API
*
* @author Jeremy Unruh
*/
public class Builders {
/**
* The builder to create a Link
*
* @return the link builder
*/
public static LinkBuilder link() {
return GenericLink.builder();
}
/**
* The builder to create a Server
*
* @return the server create builder
*/
public static ServerCreateBuilder server() {
return NovaServerCreate.builder();
}
public static BlockDeviceMappingBuilder blockDeviceMapping() {
return NovaBlockDeviceMappingCreate.builder();
}
public static ExtraDhcpOptBuilder extraDhcpOpt() {
return NeutronExtraDhcpOptCreate.builder();
}
/**
* The builder to create a Flavor.
*
* @return the flavor builder
*/
public static FlavorBuilder flavor() {
return NovaFlavor.builder();
}
/**
* The builder to create a ToscaTemplatesArtifact
*
* @return the ToscaTemplatesArtifactBuilder
*/
public static ToscaTemplatesArtifactBuilder toscaTemplatesArtifact() {
return ToscaTemplates.builder();
}
/**
* The builder to update an Artifact
*
* @return the ArtifactUpdateBuilder
*/
public static ArtifactUpdateBuilder artifactUpdate() {
return ArtifactUpdateModel.builder();
}
/**
* The builder to create a Network
*
* @return the network builder
*/
public static NetworkBuilder network() {
return NeutronNetwork.builder();
}
/**
* The builder to create a Flow Classifier
*
* @return the Flow Classifier builder
*/
public static FlowClassifierBuilder flowClassifier() {
return NeutronFlowClassifier.builder();
}
/**
* The builder to create a Port Pair
*
* @return the Port Pair builder
*/
public static PortPairBuilder portPair() {
return NeutronPortPair.builder();
}
/**
* The builder to create a Port Pair Group
*
* @return the Port Pair Group builder
*/
public static PortPairGroupBuilder portPairGroup() {
return NeutronPortPairGroup.builder();
}
/**
* The builder to create a Port Chain Group
*
* @return the Port Chain builder
*/
public static PortChainBuilder portChain() {
return NeutronPortChain.builder();
}
/**
* The builder to create a Subnet
*
* @return the subnet builder
*/
public static SubnetBuilder subnet() {
return NeutronSubnet.builder();
}
/**
* The builder to create a Port
*
* @return the port builder
*/
public static PortBuilder port() {
return NeutronPort.builder();
}
/**
* The builder to create a Router
*
* @return the router builder
*/
public static RouterBuilder router() {
return NeutronRouter.builder();
}
/**
* The builder to create a Glance Image
*
* @return the image builder
*/
public static ImageBuilder image() {
return GlanceImage.builder();
}
/**
* The builder to create a Block Volume
*
* @return the volume builder
*/
public static VolumeBuilder volume() {
return CinderVolume.builder();
}
/**
* The builder to create a Volume Type
*
* @return the volume type builder
*/
public static VolumeTypeBuilder volumeType() {
return CinderVolumeType.builder();
}
/**
* The builder to create a Block Volume Snapshot
*
* @return the snapshot builder
*/
public static VolumeSnapshotBuilder volumeSnapshot() {
return CinderVolumeSnapshot.builder();
}
/**
* The builder to create a Block Volume Backup
* @return the volume backup builder
*/
public static VolumeBackupCreateBuilder volumeBackupCreate(){
return CinderVolumeBackupCreate.builder();
}
/**
* The builder to create a Compute/Nova Floating IP
*
* @return the floating ip builder
*/
public static FloatingIPBuilder floatingIP() {
return NovaFloatingIP.builder();
}
/**
* A Builder which creates a Security Group Rule
*
* @return the security group rule builder
*/
public static SecurityGroupRuleBuilder secGroupRule() {
return SecurityGroupRule.builder();
}
/**
* The builder to create a Neutron Security Group
*
* @return the security group builder
*/
public static NetSecurityGroupBuilder securityGroup() {
return NeutronSecurityGroup.builder();
}
/**
* The builder to update a security group
*
* @return the security group update builder
*/
public static NetSecurityGroupUpdateBuilder securityGroupUpdate() {
return NeutronSecurityGroupUpdate.builder();
}
/**
* The builder to create a Neutron Security Group Rule
*
* @return the security group builder
*/
public static NetSecurityGroupRuleBuilder securityGroupRule() {
return NeutronSecurityGroupRule.builder();
}
/**
* The builder to create a Neutron Floating IP Address
*
* @return the floating ip builder
*/
public static NetFloatingIPBuilder netFloatingIP() {
return NeutronFloatingIP.builder();
}
/**
* The builder to create a {@link Template}
*
* @return the TemplateBuilder
*/
public static TemplateBuilder template() {
return HeatTemplate.build();
}
/**
* The builder to create a {@link StackCreate}
*
* @return the StackCreate builder
*/
public static StackCreateBuilder stack() {
return HeatStackCreate.build();
}
/**
* The builder to create a {@link SoftwareConfig}
*
* @return the software config builder
*/
public static SoftwareConfigBuilder softwareConfig() {
return new HeatSoftwareConfig.Builder();
}
/**
* The builder to create a {@link StackUpdate}
*
* @return the StackUpdate builder
*/
public static StackUpdateBuilder stackUpdate() {
return HeatStackUpdate.builder();
}
/**
* The builder to create a {@link ResourceHealth}
* @return
*/
public static ResourceHealthBuilder resourceHealth() {
return HeatResourceHealth.builder();
}
/**
* The builder to create NetQuota entities
*
* @return the NetQuota builder
*/
public static NetQuotaBuilder netQuota() {
return NeutronNetQuota.builder();
}
/**
* The builder to update a network
*
* @return the NetworkUpdateBuilder
*/
public static NetworkUpdateBuilder networkUpdate() {
return NeutronNetworkUpdate.builder();
}
/**
* The builder to create a lb member
*
* @return the Member Builder
*/
public static MemberBuilder member() {
return NeutronMember.builder();
}
/**
* The builder to update a lb member
*
* @return the MemberUpdate Builder
*/
public static MemberUpdateBuilder memberUpdate() {
return NeutronMemberUpdate.builder();
}
/**
* The builder to create and update a sessionPersistence
*
* @return SessionPersistenceBuilder
*/
public static SessionPersistenceBuilder sessionPersistence() {
return NeutronSessionPersistence.builder();
}
/**
* The builder to create a vip.
*
* @return VipBuilder the vip builder
*/
public static VipBuilder vip() {
return NeutronVip.builder();
}
/**
* The builder to update a vip.
*
* @return VipUpdateBuilder
*/
public static VipUpdateBuilder vipUpdate() {
return NeutronVipUpdate.builder();
}
/**
* The builder to create a healthMonitor
*
* @return HealthMonitorBuilder
*/
public static HealthMonitorBuilder healthMonitor() {
return NeutronHealthMonitor.builder();
}
/**
* The builder to update a healthMonitor
*
* @return HealthMonitorUpdateBuilder
*/
public static HealthMonitorUpdateBuilder healthMonitorUpdate() {
return NeutronHealthMonitorUpdate.builder();
}
/**
* The builder to create a firewall
*
* @return FirewallBuilder
*/
public static FirewallBuilder firewall() {
return NeutronFirewall.builder();
}
/**
* The builder to update a healthMonitor
*
* @return FirewallUpdateBuilder
*/
public static FirewallUpdateBuilder firewallUpdate() {
return NeutronFirewallUpdate.builder();
}
/**
* The builder to create a firewallRule
*
* @return FirewallRuleBuilder
*/
public static FirewallRuleBuilder firewallRule() {
return NeutronFirewallRule.builder();
}
/**
* The builder to update a firewallRule
*
* @return FirewallUpdateBuilder
*/
public static FirewallRuleUpdateBuilder firewallRuleUpdate() {
return NeutronFirewallRuleUpdate.builder();
}
/**
* The builder to create a firewallPolicy
*
* @return FirewallPolicyBuilder
*/
public static FirewallPolicyBuilder firewallPolicy() {
return NeutronFirewallPolicy.builder();
}
/**
* The builder to update a firewallPolicy
*
* @return FirewallPolicyUpdateBuilder
*/
public static FirewallPolicyUpdateBuilder firewallPolicyUpdate() {
return NeutronFirewallPolicyUpdate.builder();
}
/**
* The builder to create a lbPool
*
* @return LbPoolBuilder
*/
public static LbPoolBuilder lbPool() {
return NeutronLbPool.builder();
}
/**
* The builder to update a lbPool
*
* @return LbPoolUpdateBuilder
*/
public static LbPoolUpdateBuilder lbPoolUpdate() {
return NeutronLbPoolUpdate.builder();
}
/**
* The builder to create a lbPool
*
* @return HealthMonitorAssociateBuilder
*/
public static HealthMonitorAssociateBuilder lbPoolAssociateHealthMonitor() {
return NeutronHealthMonitorAssociate.builder();
}
/**
* The builder to create a sahara cluster
*
* @return the cluster builder
*/
public static ClusterBuilder cluster() {
return SaharaCluster.builder();
}
/**
* The builder to create a sahara cluster template
*
* @return the cluster template builder
*/
public static ClusterTemplateBuilder clusterTemplate() {
return SaharaClusterTemplate.builder();
}
/**
* The builder to create a sahara node group
*
* @return the node group builder
*/
public static NodeGroupBuilder nodeGroup() {
return SaharaNodeGroup.builder();
}
/**
* The builder to create a sahara node group template
*
* @return the node group template builder
*/
public static NodeGroupTemplateBuilder nodeGroupTemplate() {
return SaharaNodeGroupTemplate.builder();
}
/**
* The builder to create a sahara service configuration
*
* @return the service configuration builder
*/
public static ServiceConfigBuilder serviceConfig() {
return SaharaServiceConfig.builder();
}
/**
* This builder which creates a QuotaSet for updates
*
* @return the QuotaSet update builder
*/
public static QuotaSetUpdateBuilder quotaSet() {
return NovaQuotaSetUpdate.builder();
}
/**
* The builder to create an Alarm
*
* @return the image builder
*/
public static AlarmBuilder alarm() {
return CeilometerAlarm.builder();
}
/**
* The builder which creates a BlockQuotaSet
*
* @return the block quota-set builder
*/
public static BlockQuotaSetBuilder blockQuotaSet() {
return CinderBlockQuotaSet.builder();
}
/**
* The builder which creates a sahara Data Source
*
* @return the data source builder
*/
public static DataSourceBuilder dataSource() {
return SaharaDataSource.builder();
}
/**
* The builder which creates a sahara Job Binary
*
* @return the job binary builder
*/
public static JobBinaryBuilder jobBinary() {
return SaharaJobBinary.builder();
}
/**
* The builder which creates a sahara Job
*
* @return the job builder
*/
public static JobBuilder job() {
return SaharaJob.builder();
}
/**
* The builder which creates a job configuration for sahara job execution
*
* @return the job config builder
*/
public static JobConfigBuilder jobConfig() {
return SaharaJobConfig.builder();
}
/**
* The builder which creates a sahara job execution
*
* @return the job execution builder
*/
public static JobExecutionBuilder jobExecution() {
return SaharaJobExecution.builder();
}
/**
* The builder which creates manila security services
*
* @return the security service builder
*/
public static SecurityServiceCreateBuilder securityService() {
return ManilaSecurityServiceCreate.builder();
}
/**
* The builder which creates manila share networks.
*
* @return the share network builder
*/
public static ShareNetworkCreateBuilder shareNetwork() {
return ManilaShareNetworkCreate.builder();
}
/**
* The builder which creates manila shares.
*
* @return the share builder
*/
public static ShareCreateBuilder share() {
return ManilaShareCreate.builder();
}
/**
* The builder which creates share types.
*
* @return the shae type builder
*/
public static ShareTypeCreateBuilder shareType() {
return ManilaShareTypeCreate.builder();
}
/**
* The builder which creates manila share snapshots.
*
* @return the share builder
*/
public static ShareSnapshotCreateBuilder shareSnapshot() {
return ManilaShareSnapshotCreate.builder();
}
/**
* The builder which creates manila share manages
*
* @return the share manage builder
*/
public static ShareManageBuilder shareManage() {
return ManilaShareManage.builder();
}
/**
* The builder to create a Region
*
* @return the region builder
*/
public static RegionBuilder region() {
return KeystoneRegion.builder();
}
/**
* The builder to create a Credential.
*
* @return the credential builder
*/
public static CredentialBuilder credential() {
return KeystoneCredential.builder();
}
/**
* The builder to create a Domain.
*
* @return the domain builder
*/
public static DomainBuilder domain() {
return KeystoneDomain.builder();
}
/**
* The builder to create a Endpoint.
*
* @return the endpoint builder
*/
public static EndpointBuilder endpoint() {
return KeystoneEndpoint.builder();
}
/**
* The builder to create a Group.
*
* @return the group builder
*/
public static GroupBuilder group() {
return KeystoneGroup.builder();
}
/**
* The builder to create a Policy.
*
* @return the policy builder
*/
public static PolicyBuilder policy() {
return KeystonePolicy.builder();
}
/**
* The builder to create a Project.
*
* @return the project builder
*/
public static ProjectBuilder project() {
return KeystoneProject.builder();
}
/**
* The builder to create a Role.
*
* @return the role builder
*/
public static RoleBuilder role() {
return KeystoneRole.builder();
}
/**
* The builder to create a Service.
*
* @return the service builder
*/
public static ServiceBuilder service() {
return KeystoneService.builder();
}
/**
* The builder to create a User.
*
* @return the user builder
*/
public static UserBuilder user() {
return KeystoneUser.builder();
}
/**
* The builder which creates external policy for gbp
*
* @return the external policy builder
*/
public static ExternalPolicyBuilder externalPolicy() {
return GbpExternalPolicyCreate.builder();
}
/**
* The builder which creates external segment for gbp
*
* @return the external segment builder
*/
public static ExternalSegmentBuilder externalSegment() {
return GbpExternalSegment.builder();
}
/**
* The builder which creates L2 policy for gbp
*
* @return the L2 policy builder
*/
public static L2PolicyBuilder l2Policy() {
return GbpL2Policy.builder();
}
/**
* The builder which creates L3 policy for gbp
*
* @return the L3 policy builder
*/
public static L3PolicyBuilder l3Policy() {
return GbpL3Policy.builder();
}
/**
* The builder which creates nat pool for gbp
*
* @return the nat pool builder
*/
public static NatPoolBuilder natPool() {
return GbpNatPool.builder();
}
/**
* The builder which creates network service policy for gbp
*
*
* @return
*/
public static NetworkServicePolicyBuilder networkServicePolicy() {
return GbpNetworkServicePolicy.builder();
}
/**
* The builder which creates policy action for gbp
*
* @return the policy action builder
*/
public static PolicyActionCreateBuilder policyAction() {
return GbpPolicyAction.builder();
}
/**
* The builder which updates policy action for gbp
*
* @return the policy action builder
*/
public static PolicyActionUpdateBuilder policyActionUpdate() {
return GbpPolicyActionUpdate.builder();
}
/**
* The builder which creates policy classifier for gbp
*
* @return the policy classifier builder
*/
public static PolicyClassifierBuilder policyClassifier() {
return GbpPolicyClassifier.builder();
}
/**
* The builder which updates policy classifier for gbp
*
* @return the policy classifier builder
*/
public static PolicyClassifierUpdateBuilder policyClassifierUpdate() {
return GbpPolicyClassifierUpdate.builder();
}
/**
* The builder which creates policy rule for gbp
*
* @return the policy rule builder
*/
public static PolicyRuleBuilder policyRule() {
return GbpPolicyRule.builder();
}
/**
* The builder which creates policy rule set for gbp
*
* @return the policy rule set builder
*/
public static PolicyRuleSetBuilder policyRuleSet() {
return GbpPolicyRuleSet.builder();
}
/**
* The builder which creates policy target for gbp
*
* @return the policy target builder
*/
public static PolicyTargetBuilder policyTarget() {
return GbpPolicyTarget.builder();
}
/**
* The builder which creates policy target group for gbp
*
* @return the policy target group builder
*/
public static PolicyTargetGroupBuilder policyTargetGroup() {
return GbpPolicyTargetGroupCreate.builder();
}
/**
* The builder which creates external routes for gbp
*
* @return the external routes builder
*/
public static ExternalRoutesBuilder externalRoutes() {
return GbpExternalRoutes.builder();
}
// Builders.().